Skip to content

Simplify API billing cards and Settings - #130

Merged
pbember merged 1 commit into
mainfrom
api-billing-compact
Nov 13, 2026
Merged

pbember merged 1 commit into
mainfrom
api-billing-compact

Conversation

@pbember

@pbember pbember commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

What changes for users

Less text, same numbers.

  • Cards: Total credit / Used / Left, one note line (for example Estimate from Nov 13 · expires Dec 4 (21 days left)) and one line Nov 1–13 · fetched 07:12 UTC. The heading is $9.25 in Nov. A card with no balance says "Add your credit in Settings to see what's left." The full capture time is in a tooltip. The redundant "API billing" label and the card's Priority Tier line are removed.
  • Settings → API connections: Admin key and Credit groups, one help line each. Key row: Use saved key · or · paste field · Fetch billing. Labels are shorter: Credit (USD), Added on (UTC), Renews monthly on this day, Save credit.

ADR 0049 is amended. Data and behavior are unchanged.

Validation (cjbb, Linux)

  • pnpm typecheck: pass
  • pnpm test: 1035 passed, 10 skipped
  • pnpm build: pass
  • A static render of the card and Settings

🤖 Generated with Claude Code

Cards show the three figures, one note line and one "period · fetched"
line; the full capture time moves to a tooltip. Settings groups Admin key
and Credit with one help line each and drops repeated explanations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a296bb2-3085-46b1-8523-3a4832075675
Commits

Reviewing files that changed from the base of the PR and between 2b0ddb7 and 29ace21.

Files selected for processing: 10

  • CHANGELOG.md
  • docs/API_USAGE_BETA.md
  • docs/KB.md
  • docs/adr/0049-api-credit-total-used-left.md
  • src/renderer/api-billing-setup.tsx
  • src/renderer/app.tsx
  • src/renderer/style.css
  • tests/api-billing-balance.test.ts
  • tests/api-billing-integration.test.ts
  • tests/api-billing-setup.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@pbember
pbember merged commit 41178bf into main Nov 13, 2026
11 checks passed
@pbember
pbember deleted the api-billing-compact branch November 13, 2026 07:28
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.

1 participant