Repository navigation
fix(billing): Enforce Seer auto-reload minimums in the modal - #130828
Merged
billyvg merged 7 commits intoNov 17, 2026
Merged
Conversation
billyvg
marked this pull request as ready for review
November 11, 2026 23:23
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-eycwp3jpi.sentry.dev |
billyvg
force-pushed
the
billyvong/reveng-733-auto-reload-modal-allows-0-daily-limit
branch
from
November 12, 2026 01:07
b59cd85 to
d27a4a6
Compare
Member
Author
The auto-load modal let any amount above $0 through, sent a $0 daily limit when the field was empty (which blocks all Seer usage), and had no way to leave the daily limit unset. The modal now reads the minimum amount and daily limit from the API, disables saving below them with an inline message, and saves an empty daily limit as no limit. The "Due now" charge preview matches the backend, which loads credits at or below the threshold. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The backend loads credits once the balance is at or below the threshold, but the modal and wallet card said "below", so a wallet at exactly the threshold being charged on turn-on looked like a bug. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A $0 daily usage limit is a valid way to turn off Seer, so the modal no longer blocks it. It shows a warning instead, and saves the $0 limit. The API no longer returns a minimum daily limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
When auto-load was off, the modal replaced any amount that wasn't a preset with the $15 default, so a saved custom amount came back as $15 when turning auto-load on again. That fallback only hid the old 1,000-credit API default. The API now defaults to the 1,500-credit minimum, which is the first preset, so the modal shows the saved amount whether auto-load is on or off. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Master now calls the daily cap the daily usage limit everywhere, so the new tests and type comment use the same words. Co-Authored-By: Claude Opus 5.5 <[email protected]>
billyvg
force-pushed
the
billyvong/reveng-733-auto-reload-modal-allows-0-daily-limit
branch
from
November 13, 2026 18:08
0539c7d to
46a0878
Compare
…ows-0-daily-limit
srest2021
approved these changes
Nov 17, 2026
… payment The 3DS flow from master stores the settings to resend once the refill is paid, typed as the full auto-reload response. Saving now takes only the settings the API accepts, which leaves out the minTopUpCredits the response adds, so the stored settings use that type too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
billyvg
deleted the
billyvong/reveng-733-auto-reload-modal-allows-0-daily-limit
branch
November 17, 2026 19:44
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.







Fixes some FE defaults and validations. Reload amount now correctly selects $15 and daily limit now defaults to undefined (and can send undefined rather than send $0 which blocks seer usage).
Slop
Why?
The Seer auto-reload modal didn't enforce the agreed limits: a minimum amount of $15, and an unset daily limit meaning no cap. It let any amount above $0 through. Clearing the daily limit sent $0, which blocks all Seer usage, and there was no way to leave the limit unset.
The "Due now" preview also disagreed with the backend at exactly the threshold. The modal showed no charge, but the backend bills an auto-reload at or below the threshold. A new wallet starts at exactly the threshold, so turning auto-reload on billed without showing "Due now".
Turning auto-reload off and back on also replaced a saved custom amount with the $15 preset (review comment).
How?
The modal reads the minimum amount from the auto-reload API instead of hardcoding it. It disables saving below the minimum and shows an inline message. An empty daily limit is saved as
null, meaning no limit. A $0 daily limit is still allowed, with a warning that it turns off all Seer usage. The "Due now" preview now uses at-or-below the threshold, which matches when the backend bills the first auto-reload. The modal and wallet card now say auto-reload triggers "at or below" the threshold rather than "below".The modal now opens on the saved amount whether auto-reload is on or off. While off, it used to swap any amount that wasn't a preset for $15, to hide the API's old 1,000-credit default. That default is now the $15 minimum, which is the first preset.
This depends on getsentry/getsentry#23167, which returns
minTopUpCreditsand a nullabledailySpendCapCents, and still accepts a $0 daily limit. That change must deploy first.Fixes REVENG-751
Generated with Claude Code