feat(dashboard): docs links and direct whitelabel SIWE sign-in#2081
Conversation
- footer links now read About / Docs / Terms of Service / Give Feedback: About keeps the GitBook link, Docs points to https://docs.anticapture.com - API keys page gets a "See our Docs" button next to Create key - whitelabel sign-in skips the one-button login modal and triggers the SIWE flow directly; the dialog only surfaces for signing progress or errors, and dismissing the wallet picker cancels sign-in cleanly
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd68b6246f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
🎨 UI Review
API Keys header (
|
|
🚅 Deployed to the anticapture-pr-2081 environment in anticapture-infra
|
Design review feedback: the row options menu held a single action and its ellipsis trigger was too small to notice. The menu is gone; each active key row now shows a tooltip-labeled destructive trash button that opens the same delete confirmation modal.
|
🔍 Vercel preview: https://anticapture-ae01cv6hy-ful.vercel.app |
Summary
Points the product at the new docs site and streamlines whitelabel sign-in: the footer gains an About link (old GitBook) while Docs now goes to https://docs.anticapture.com, the API keys page gets a "See our Docs" button, and whitelabel deployments trigger SIWE directly instead of opening a one-button login modal.
Context
feat/docs-links-and-whitelabel-siweWhat changed
UI
Footer.tsx: link row is now About / Docs / Terms of Service / Give Feedback in both the mobile and desktop blocks. About keeps the old GitBook URL (https://blockful.gitbook.io/anticapture/); Docs points to https://docs.anticapture.com. The mobile row now wraps (flex-wrap) since it grew to four links and could overflow narrow phones.ApiKeysManager.tsx: added a "See our Docs" outline button next to "Create key", linking to https://docs.anticapture.com in a new tab.ApiKeysTable.tsx(design review feedback): the per-row options menu (a small ellipsis trigger holding a single "Delete key" action) was replaced by a direct, tooltip-labeled destructive trash button that opens the existing delete confirmation modal. The table itself already uses the design-systemTablecomponent.Auth (whitelabel only)
LoginModal.tsx: whitelabel offers exactly one sign-in method, so opening the login now auto-starts the SIWE flow (wallet picker, then signature) instead of showing a chooser with a single "Connect wallet" button. The dialog only surfaces when there is ceremony state worth seeing: signing/verifying progress or an error with a retry button. Dismissing the wallet picker cancels the sign-in outright (the modal fully closes, so the next click re-triggers cleanly). If the verify timeout resets the flow, the dialog shows the plain connect button as a retry surface.isWhitelabel, andhandleOpenChangewas only memoized (same body, all deps stable).Flow
sequenceDiagram participant U as User participant H as Header (whitelabel) participant P as LoginProvider participant M as LoginModal participant R as RainbowKit participant W as Wallet U->>H: click "Connect wallet" H->>P: openLogin() P->>M: open=true Note over M: auto-start (whitelabel): dialog stays hidden M->>R: openConnectModal() alt user dismisses picker R-->>M: closed without connecting M->>P: close after grace timer (no stray modal) else wallet connects R-->>W: connect M->>W: SIWE nonce + signMessage Note over M: dialog visible: "Check your wallet…" W-->>M: signature verified P->>P: session lands, close + redirect endVerification
pnpm dashboard typecheckandpnpm dashboard lintpass (0 errors; only pre-existing warnings in unrelated files).FORCE_DAO=ENS): footer links correct in both breakpoint blocks (mobile row wraps at 375px with no horizontal overflow), docs button renders and opens in a new tab withnoopener noreferrer, whitelabel connect opens RainbowKit directly with no intermediate modal, dismissing leaves no stray dialog, and re-clicking re-triggers the flow.Self-review summary
LoginProvider's wallet/session coherence effects.openConnectModalundefined) is a dead click that self-heals via the same grace timer.Changeset
@anticapture/dashboard: minor, new footer/docs entry points and new whitelabel sign-in behavior.