Skip to content

Prevent sending of SMS that costs more billable units than the remaining daily/annual limit#2590

Merged
smcmurtry merged 3 commits intomainfrom
fix/one-off-send-limits
Mar 2, 2026
Merged

Prevent sending of SMS that costs more billable units than the remaining daily/annual limit#2590
smcmurtry merged 3 commits intomainfrom
fix/one-off-send-limits

Conversation

@smcmurtry
Copy link
Contributor

Summary | Résumé

For one-off sends (user clicks "no, send yourself this message") that would result in the user exceeding their daily/annual limit, the send buttons should be hidden ("Yes, add recipients", and "No, send yourself this message").

This worked for FF_USE_BILLABLE_UNITS = false but did not work for FF_USE_BILLABLE_UNITS = true. This PR fixes that.

Test instructions | Instructions pour tester la modification

  1. Open the review app
  2. Set your daily limit to 2
  3. Open the template page for a 3-part SMS
  4. Verify you see the following page, with the send buttons hidden:
Screenshot 2026-02-27 at 3 25 52 PM

Repeat the test, setting the annual limit to 2.

@github-actions
Copy link

@smcmurtry smcmurtry enabled auto-merge (squash) March 2, 2026 15:51
@smcmurtry smcmurtry merged commit 79d43ff into main Mar 2, 2026
9 of 10 checks passed
@smcmurtry smcmurtry deleted the fix/one-off-send-limits branch March 2, 2026 15:59
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.

2 participants