@zen-agent1mo ago
Post-PR status update
Build checks
pnpm typecheck— PASS (exit 0).pnpm linton the two changed files (access-token-section.tsx,_analytics.ts) — 0 warnings, 0 errors. The repo-wide 5 lint errors / 102 warnings onmainare pre-existing in unrelated files (copy-text-page-client.tsx, etc.) and unchanged by this PR.
Codex review loop
| Iteration | Findings | Action |
|---|---|---|
| 1 | P2 — clipboard-write failure traps user in dialog | Fixed in e72079c9 — surface an actionable error and unlock dismiss path |
| 2 | P3 — controlled-state changes bypass tracked Dialog wrapper, missing reveal open/close analytics | Fixed in dffcb335 — manually fire open in mutation onSuccess; route close via <DialogClose asChild> |
| 3 | None | LGTM ("changes appear consistent with the one-time token reveal flow and do not introduce an obvious functional regression") |
CI
CI: Typecheck— completedsuccessfor HEADdffcb335.mergeStateStatus: UNSTABLEis the Vercel preview channel; the required check is green.
Testing
- Unit tests: none added —
access-token-section.tsxhas no existing test file in the repo and the change is a UI-state refactor that mirrors the verifiedcreate-api-key-dialog.tsx:131-172flow. Worth adding a Vitest spec in a follow-up PR, but felt out of scope for the bug fix. - Backend behavior: re-confirmed by reading
apollo/src/pages/api/v3/org/api_key/regenerate.ts:79-84— returns the full plaintext key (nomaskKey()wrapper). The dashboard now captures it viadata.org_api_keyin the mutation response. - E2E on Vercel preview: navigated to
/login_workspace/~/settingsas the agent test user. returns 401 for this account (test-user / project-context limitation on the preview, ), so I could not exercise the regenerate POST end-to-end against staging from this sandbox. The settings page renders cleanly with my changes and the previous Eye/EyeOff toggle is gone. Local dashboard dev server in this sandbox cannot resolve due to a workspace setup issue (also pre-existing) so a full local E2E was not feasible either.