Skip to content

feat(billing): Update percentUsed and credit pricing types on the Seer wallet - #129939

Merged
srest2021 merged 3 commits into
masterfrom
srest2021/cw-3054-seer-wallet-percent-used
Nov 5, 2026
Merged

srest2021 merged 3 commits into
masterfrom
srest2021/cw-3054-seer-wallet-percent-used

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Relates to CW-3054

Frontend follow-up to getsentry/getsentry#22940

getsentry/getsentry#22940 opens GET /customers/{org}/seer-wallet/ to every org member, adds percentUsed to the response, and only returns creditPriceCents to users with org:billing.

This PR updates SeerWalletBalance to match: it adds percentUsed and makes creditPriceCents optional.

SeerWalletCard only renders for billing roles right now, so it should always get the price. If it doesn't, the card now shows its existing "Unable to load" state instead of dividing by undefined.

#129552's top-up modal reads wallet.creditPriceCents and will need a guard once it rebases onto this.

via @srest2021.

--

View Session [Sentry]

The Seer wallet endpoint now returns percentUsed to every member and only
includes creditPriceCents for billing roles. Update SeerWalletBalance to
match, and have SeerWalletCard show its error state if pricing is missing.

Refs CW-3054

Co-Authored-By: Sofia Rest <[email protected]>
@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

CW-3054

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 4, 2026
@srest2021
srest2021 marked this pull request as ready for review November 4, 2026 21:05
@srest2021
srest2021 requested a review from a team as a code owner November 4, 2026 21:06
@srest2021 srest2021 changed the title feat(billing): Type percentUsed and optional pricing on the Seer wallet feat(billing): Update percentUsed and credit pricing types on the Seer wallet Nov 4, 2026

@sehr-m sehr-m left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good!

@srest2021
srest2021 merged commit 5ef3e5c into master Nov 5, 2026
78 checks passed
@srest2021
srest2021 deleted the srest2021/cw-3054-seer-wallet-percent-used branch November 5, 2026 17:40

This branch was successfully deployed

1 active deployment
Preview — 0ce60b70 Deployed Nov 4, 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