Skip to content

fix(seer-billing): Show the credit usage meter to members without billing access - #130803

Merged
srest2021 merged 3 commits into
masterfrom
sofiarest/fix/seer-credit-meter-non-billing
Nov 11, 2026
Merged

srest2021 merged 3 commits into
masterfrom
sofiarest/fix/seer-credit-meter-non-billing

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem: The credit usage meter next to the send button in the Seer chat only rendered for members with org:billing (#129563). The designs show it to every member, and every member can already read the wallet (GET /customers/{org}/seer-wallet/ uses RelaxedBillingPermission).

This PR: Show the meter to all members of orgs that have seer-credit-checks and token-billed-seer-enabled.

Members without billing access see:

  • the percent bar, with the same warning color rules
  • "Your organization has used X% of your available credits." (no "monthly" since we don't have permission to know if autoload is on or not)
  • "{remaining}/{total} credits remaining."
  • no auto reload line and no "Configure auto-reload." link.

No UI change for members with billing access.

Before:
image

After:
image

via sofia.

--

View Session [Sentry]

Every member can read the Seer wallet, so the chat's credit usage meter
now shows for them too. Only billing members can read the auto reload
settings, so for everyone else the tooltip skips the auto reload line and
counts available credits rather than monthly ones.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-px93gwy9b.sentry.dev

@srest2021
srest2021 marked this pull request as ready for review November 11, 2026 19:18
@srest2021
srest2021 requested a review from a team as a code owner November 11, 2026 19:19
@srest2021
srest2021 requested a review from a team November 11, 2026 19:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 812311b. Configure here.

@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

CW-3096

@srest2021 srest2021 changed the title fix(seer): Show the credit usage meter to members without billing access fix(seer-billing): Show the credit usage meter to members without billing access Nov 11, 2026
@srest2021
srest2021 merged commit 1b881cb into master Nov 11, 2026
79 checks passed
@srest2021
srest2021 deleted the sofiarest/fix/seer-credit-meter-non-billing branch November 11, 2026 19:56

This branch was successfully deployed

1 active deployment
Preview — 08cc6e1e Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants