feat(web): surface owned add-ons prominently on the billing page - #967
Merged
Conversation
The only sign of a purchased add-on was a small muted 'Currently 1 —
$2/mo' aside next to the update button, and the stepper's number is
ambiguous (staged edit vs owned). Two additions, both catalog-priced:
- The current-plan banner gains an ownership badge ('+ 1 inbox add-on
· $2/mo') so the count reads at the top of the page as part of
'what plan am I on'.
- The add-on card leads with an owned-state strip ('You have 1 add-on
— +1 inbox, +3,000 sends / mo · $2/mo') attributing the grants and
cost; the muted aside is removed and the stepper is purely the
editor.
Both render only when the account owns add-ons. Tests: three new cases
(plural strip + badge, singular wording, absent at qty 0); suite
15/15, full web 901/901, tsc + prod build clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ScEpytuD7GvaXEssvJ2W32
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.
Follow-up to #960 from dogfooding on staging: after buying an add-on, the only evidence of ownership was the muted "Currently 1 — $2/mo" aside, and the stepper's number can't distinguish a staged edit from what's owned.
Two additions, both priced from the catalog payload (nothing hardcoded):
Free [+ 1 inbox add-on · $2/mo]— ownership reads at the top of the page.You have 1 add-on +1 inbox, +3,000 sends / mo · $2/mo— grants and cost attributed; the stepper below is purely the editor. The muted aside is removed.Both render only when
current.addon_quantity > 0.Tests: 3 new cases (plural strip+badge, singular wording, hidden at qty 0); addon suite 15/15, full web 901/901, tsc clean, prod build clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_01ScEpytuD7GvaXEssvJ2W32