Skip to content

Account panel: plan, AI credits left and the Pro waitlist - #35

Merged
I-794 merged 3 commits into
mainfrom
claude/practical-archimedes-s2nxsa
Nov 15, 2026
Merged

I-794 merged 3 commits into
mainfrom
claude/practical-archimedes-s2nxsa

Conversation

@I-794

@I-794 I-794 commented Nov 15, 2026

Copy link
Copy Markdown
Owner

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:

  • name, email and plan badge
  • hosted AI credits left this month, a bar, and the date they start over
  • what each request costs
  • a Glint Pro box with a waitlist link (the Upgrade and Manage billing buttons will go here once checkout exists)
  • Manage account (Clerk's own window) and Sign out

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 with textContent only
  • src/features/account.js: getAccount(), onAccountChange(), keeps what the account route said
  • src/features/auth.js: openUserProfile(), signOut()
  • api/_account.js: ?op=me also reports proCredits
  • header chip is a <button>; palette command account-open; styles
  • docs/GLINT-PRO-STATUS.md (new): where the Glint Pro work stands; CLAUDE.md updated

Testing

  • npm run check passes (lint, knip, tests, build); the metering test now checks proCredits
  • Opened in a browser against a stand-in sign-in and a mocked account route, in six states (free, Pro with no credits left, out of credits in light mode, signed out, load failed, phone width): layout fits, buttons work, Escape closes and focus returns to the chip, Enter opens it
  • Not yet tried with a real account; that is the first thing to do once this is live

Generated by Claude Code

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
@vercel

vercel Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
glint Ready Ready Preview Nov 15, 2026 4:47am UTC

@I-794
I-794 merged commit 2935d69 into main Nov 15, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — b1398cae Deployed Nov 15, 2026 by vercel[bot]
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.

2 participants