Repository navigation
Account panel: plan, AI credits left and the Pro waitlist - #35
Merged
Merged
Conversation
Records what is live, what is being set up and what comes after, so the work can be resumed in any session. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSRcwDsHcLgxbSDvQgC
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSRcwDsHcLgxbSDvQgC
The credits chip in the editor header is now a button that opens a panel with the plan, the hosted AI credits left this month, what each request costs, the Glint Pro waitlist link, and Manage account and Sign out. Also reachable from the command palette. The account route now reports the Pro allowance so the panel can show it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016tciSRcwDsHcLgxbSDvQgC
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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 this adds
The credits chip in the editor header is now a button. It opens an account panel (also in the command palette as "Account: Plan and AI credits") with:
Signed out, it shows a "Sign in for free AI credits" box instead. It also covers: out of credits, an own API key saved in the browser (explains why credits do not drop), and credits that failed to load (Try again).
Changes
src/features/account-panel.js(new): the panel, a native<dialog>, built withtextContentonlysrc/features/account.js:getAccount(),onAccountChange(), keeps what the account route saidsrc/features/auth.js:openUserProfile(),signOut()api/_account.js:?op=mealso reportsproCredits<button>; palette commandaccount-open; stylesdocs/GLINT-PRO-STATUS.md(new): where the Glint Pro work stands;CLAUDE.mdupdatedTesting
npm run checkpasses (lint, knip, tests, build); the metering test now checksproCreditsGenerated by Claude Code