Skip to content

chore(dashboard): AIN-87/88 · honest-disable fake-toast Settings buttons#41

Merged
hizrianraz merged 1 commit into
mainfrom
chore/ain-87-88-honest-disable-stub-buttons
May 18, 2026
Merged

chore(dashboard): AIN-87/88 · honest-disable fake-toast Settings buttons#41
hizrianraz merged 1 commit into
mainfrom
chore/ain-87-88-honest-disable-stub-buttons

Conversation

@hizrianraz
Copy link
Copy Markdown
Contributor

Summary

Memory #5 honest-deferred pass on Settings tabs. Removes/disables fake-toast handlers whose backing endpoints don't exist.

  • Delete dead KEY_ROWS table branch (lines 121-178 pre-patch). KEY_ROWS = [] hardcoded → table never rendered, but rotate/revoke buttons inside toast "lands D6" — multi-key CRUD requires new api_keys schema (AIN-87, multi-day).
  • Tenant "Save changes" → disabled. No PATCH /v1/tenants/{id} endpoint exists. Label now: "Save changes (post-Seed)" + tooltip explains.
  • Compliance "Export bundle now" / "Configure schedule" → disabled. Annex IV export endpoint doesn't exist; pointer to live /v1/audit/public as the honest current surface.

What still works (untouched)

  • Mint Card flow (MintAgentTriggerMintAgentModalPOST /v1/agents/signup)
  • Spend-policy editor (PATCH /v1/agents/{id}/spend-policy)
  • Audit feed (5s poll)
  • Empty-state copy on /agents pointing at ainfera install

Why this clean-up

After verifying AIN-87 schema reality (singular TenantORM.api_key_hash) and AIN-88 endpoint reality (no Annex IV export), the dashboard's rotate/revoke/save toasts were promising functionality the backend can't deliver in a single session. Honest disabled buttons + post-Seed labels beat half-shipped fakes per founder guidance (Memory #5).

Test plan

  • pnpm -F dashboard typecheck — passes
  • Visual: /settings → Keys (empty-state copy intact), Tenant (Save grayed), Compliance (both buttons grayed)
  • No regressions to Billing tab (untouched — payment lane)

🤖 Generated with Claude Code

Memory #5 (honest-deferred > half-shipped fakes) cleanup pass on
Settings tabs whose toast handlers promised UX backed by endpoints
that don't exist:

- Delete dead KEY_ROWS table branch + its rotate/revoke fake-toast
  handlers. KEY_ROWS was hardcoded [] so the table never rendered,
  but the rotate/revoke buttons within the never-rendered branch
  toast "lands D6" — multi-key CRUD actually needs new api_keys
  schema (AIN-87, multi-day).

- Tenant tab "Save changes" button → disabled with honest
  "post-Seed" label + tooltip pointing at the missing
  PATCH /v1/tenants/{id} surface.

- Compliance tab "Export bundle now" + "Configure schedule" buttons
  → disabled. Annex IV export endpoint doesn't exist; public audit
  chain at /v1/audit/public is the current honest surface.

No behavior changes for surfaces that work today (Mint Card via
/agents, spend-policy editor, audit feed, etc).

Co-Authored-By: Claude <noreply@anthropic.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented May 18, 2026

You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace.

To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ainfera-dashboard Ready Ready Preview, Comment May 18, 2026 2:27pm
ainfera-marketing Ready Ready Preview, Comment May 18, 2026 2:27pm
web Error Error May 18, 2026 2:27pm

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 18, 2026

This pull request has been ignored for the connected project dftfpwzqxoebwzepygzl because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@hizrianraz hizrianraz merged commit dac087a into main May 18, 2026
6 of 7 checks passed
@hizrianraz hizrianraz deleted the chore/ain-87-88-honest-disable-stub-buttons branch May 18, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant