Repository navigation
Conversation
When auto-load was off, the modal replaced any amount that wasn't a preset with the $15 default, so a custom amount came back as $15 when turning auto-load on again. The modal now starts at $15 only when no amount was ever saved, which the API reports as a null topUpCredits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-du0x96x4g.sentry.dev |
…ily limit Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Why?
When auto-load was off, the modal replaced any amount that wasn't a preset with the $15 default. Turning off keeps the saved amount, so a custom amount came back as $15 when turning auto-load on again.
How?
The auto top-up endpoint now returns
topUpCredits: nulluntil an amount is first saved. The modal starts at the $15 preset only in that case and otherwise shows the saved amount.Merge after the backend change that returns
nullhas deployed. (https://github.com/getsentry/getsentry/pull/23181) Before then, the endpoint still sends its 1,000-credit default, which would show as a custom $10 for organizations that never saved an amount.Generated with Claude Code
🤖 Generated with Claude Code