-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[PM-29608] [PM-29609] Premium subscription redesign cards #18145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
amorask-bitwarden
wants to merge
18
commits into
main
Choose a base branch
from
billing/PM-29608-PM-29609/premium-subscription-redesign-cards
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[PM-29608] [PM-29609] Premium subscription redesign cards #18145
amorask-bitwarden
wants to merge
18
commits into
main
from
billing/PM-29608-PM-29609/premium-subscription-redesign-cards
+4,447
−604
Conversation
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
- Remove unused test file
- Introduce new Discount union type - Introduce Maybe type helper for T | null | undefined - Use Discount type in the discount-badge.component - Update the user-subscription.component to pass Discount type into the discount-badge.component - Update spec, stories and mdx
- Support changeDetection: ChangeDetectionStrategy.OnPush - Update spec and mdx files
- Introduce new Cart type - Use Cart type as main input in cart-summary.component - Support optional custom header template in cart-summary.component - Support optional cart-level Discount type in cart-summary.component - Update upgrade-payment.component to pass in new Cart type to cart-summary.component - Update spec file, stories and mdx file
- Remove unused test file - Update jest.config.js - Add test.setup.ts
- Add BitwardenSubscription type - Add subscription-card.component - Add translations - Add spec file, stories and MDX file
- Add standalone Storage type - Add storage-card.component - Add spec file, stories and MDX file
- Add additional-options-card.component - Add spec file, stories and MDX file
…on-redesign-cards
Contributor
|
Great job! No new security vulnerabilities introduced in this pull request |
…on-redesign-cards
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18145 +/- ##
==========================================
+ Coverage 42.26% 42.29% +0.02%
==========================================
Files 3599 3606 +7
Lines 104516 104669 +153
Branches 15776 15797 +21
==========================================
+ Hits 44171 44265 +94
- Misses 58465 58523 +58
- Partials 1880 1881 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…on-redesign-cards
…on-redesign-cards
…on-redesign-cards
sukhleenb
approved these changes
Dec 30, 2025
…on-redesign-cards
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.

🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-29609
https://bitwarden.atlassian.net/browse/PM-29608
📔 Objective
This PR does some refactoring of existing @bitwarden/pricing components as well as introduces 3 new components in the @bitwarden/subscription library.
@bitwarden/pricing
cart-summary.componentCarttype rather than separate inputs for each portion of the cart. This prepares us for this component's usage on the redesigned premium subscription page where we'll fetch an entire cart from the backend.upgrade-payment.componentby changing input to theCarttype with the same data passed in.headertemplate that can be passed into the component in the case we're rendering the subscription page.Discountdisplaydiscount-badge.componentDiscountinput, which is a union type of "amount-off" and "percent-off" discounts.user-subscription.componentby changing the input to theDiscounttype with the same data passed in.pricing-card.component@bitwarden/subscription
subscription-card.componentBitwardenSubscriptiontype which will be fetched from the backend and used to render this card.BitwardenSubscriptioninput and includes a spec file, stories and MDX file.storage-card.componentStoragetype which will be fetched from the backend and used to render this card.Storageinput and includes a spec file, stories and MDX file.additional-options-card.component📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes