Repository navigation
Add AI API Access card to team dashboard - #376
Merged
Merged
Conversation
Approved teams get a prominent GatewayKeyCard as the first card on their dashboard (after the deadline strip): endpoint + copy button, masked API key with reveal/hide + copy, budget meter, model chips, and setup guide links (guide + Cursor/Claude Code/Python deep links). The card reads GET /api/team/<id>/gateway-key via a new useGatewayKey hook and fetchGatewayKey API helper. IN_REVIEW teams keep the limited dashboard and never see the card.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 7, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Approved teams see an "AI API Access" card at the top of their team dashboard with their gateway endpoint, API key, budget meter, and setup guide links.
Changes
src/components/TeamDashboard/GatewayKeyCard.js(new): endpoint + copy button, masked API key with reveal/copy, budget meter ("$X of $15 used"), model chips, Setup guide button plus Cursor/Claude Code/Python deep links into the gateway guide.src/hooks/use-gateway-key.js(new): fetch states with retry.src/lib/teamDashboardApi.js:fetchGatewayKey+isGatewayKeyNotProvisionedmatcher.TeamDashboard.js, right after the deadline strip.IN_REVIEWteams see nothing (no key exists before approval).Notes
GET /api/team/<teamid>/gateway-key. Until that deploys, approved teams see "Your AI key is being prepared" with a retry button.