Files
textbee/api/src
isra el 95caebfdb9 feat(billing): surface custom limit overrides and usage on account card
The dashboard account card showed base plan limits and ignored the
per-user custom limits admins can set, so a user whose limits were
raised saw stale numbers. Surface the effective values and make the
overrides legible.

- api: include the effective bulkSendLimit in the current-subscription
  usage payload (the only effective limit it was missing)
- subscription card: render the effective limit with the standard plan
  value struck through, an amber "Custom" chip and tooltip, a "Custom
  limits" header badge, a new Devices tile, and daily/monthly usage
  meters (green under 80%, amber approaching, red at the limit; "0 left"
  when over the limit in grace)
- add a rolling-window info note: daily resets at 00:00 UTC, monthly is
  a rolling 30 days, separate from the subscription start/renewal dates
- compact the card and lay the four limits out as a 2x2 grid
- bulk send: cap CSV rows by the effective bulk limit so a raised
  override is honored instead of the base plan limit
- remove the unused account-settings.tsx duplicate

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-10 16:40:42 +03:00
..