Repository navigation
Replace the subscription summary with an interactive plan card - #103827
neerajbachani wants to merge 26 commits into
Conversation
The Your plan card now shows type, size, and annual toggles separately so pay-per-use plans no longer list annual-only settings.
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d4dc15191
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The Your plan card now shows type, size, and annual toggles separately so pay-per-use plans no longer list annual-only settings.
Invoiced plans and native-only editors were sending people to Not Found, and the review rules wanted plural copy and no manual memoization.
The hover card uses the light surface, a 360px width, 16px padding, an 8px gap, and the large radius.
Only en.ts keeps the new plan-card strings. The other locales stay as they were so the reviewer can supply them.
| wrapperStyle={[ | ||
| styles.pv4, | ||
| styles.ph4, | ||
| { |
There was a problem hiding this comment.
❌ UI-3 (docs)
An inline style object literal is passed to the wrapperStyle prop. Inline style objects create a new object on every render (breaking memoization), bypass the shared style system, and duplicate values that already live in styles/StyleUtils (e.g. borderRadius: variables.componentBorderRadiusLarge is already styles.borderRadiusComponentLarge).
Move these into shared styles/StyleUtils. For example:
wrapperStyle={[
styles.pv4,
styles.ph4,
styles.borderedContentCard, // or an appropriate shared bg/border style
styles.borderRadiusComponentLarge,
// add a StyleUtils helper for the themed shadow/border instead of an inline literal
]}Reviewed at: 5217093 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
| }; | ||
|
|
||
| const handleLinkPress = (href: string) => { | ||
| if (href.endsWith('adminsRoom')) { |
There was a problem hiding this comment.
❌ CONSISTENCY-2 (docs)
The href 'adminsRoom' is a hardcoded magic string that must stay in sync with the <a href="adminsRoom"> marker baked into the learnMore translation. If either side changes, the admins-room link silently breaks. Note the very next check already uses the CONST.PRICING constant, highlighting the inconsistency.
Define a named constant (e.g. in CONST) and reference it both here and when building the translation link:
if (href.endsWith(CONST.SUBSCRIPTION.ADMINS_ROOM_LINK)) {
openAdminsRoom();
return;
}Reviewed at: 5217093 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
| Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(adminsChatReportID)); | ||
| }; | ||
|
|
||
| const handleLinkPress = (href: string) => { |
There was a problem hiding this comment.
❌ CONSISTENCY-12 (docs)
handleLinkPress is named for the event slot it is wired to rather than the action it performs. Per STYLE.md, a callback should be named for what it does so it is searchable by intent; the on*/handle* naming belongs on the JSX prop, not the function definition.
Rename it to describe the behavior, e.g. openTooltipLink:
const openTooltipLink = (href: string) => { ... };
// ...
onLinkPress={(_event, href) => openTooltipLink(href)}Reviewed at: 5217093 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
|
Yes, thank you Shawn! Agree with all those comments 👍 |
|
@Expensify/design Do we need this information outside on info icon click popover or should it be inside the type screen?
@neerajbachani if it needs to be outside, you can use the existing pattern which is used for Screen.Recording.2026-11-18.at.19.35.53.mov |
I believe we wanted outside when the subscription type is set to
And yes, this one is based off that pattern 👍 |
|
@dannymcclain I think we need your input to show code and discount message somewhere
|
|
@neerajbachani could you plz check all details of subscription page on main and point out if something is missing in new design as I believe we need mostly all info from the existing app and just move to new layout. |
AFAIK we don't want to expose the code or discount message. If you've applied a discount code, you'd need to go back to the menu and select the
|
We can expose the discount message (e.g., "You will get a 20% discount on your next 3 billing charges"), but not the code. |
…code. The pay-per-use info icon opens a pressable popover, toggle rows and the divider follow the card spacing, and Edit Expensify code no longer prints the code.
The divider uses the existing 20px margin style, and the savings icon reads only the admins room id.
|
Hi @shawnborton
|
|
Hmm it doesn't quite look like my guidance.
This should be 12px of vertical padding, right? Please check the mock again! |
@Pujan92 Done. Pay-per-use uses the card-label info popover, and the pricing and #admins links are pressable. The type page still has the pricing intro.
|
|
Followed @flaviadefaria. The discount sentence is on the card under the badge. The code is not shown. Edit Expensify code is in the menu and does not prefill the code. |
|
@shawnborton Updated. The space under the divider is now the row's 12px padding
looks good? |
The ad row already has that padding, so the extra margin below the line was stacking.
Can you show us what that looks like, as I'm not entirely sure I'm following? We have two types of promo codes:
|
|
@neerajbachani last thing - we need slightly more padding below that bottom row:
That 32px value should change to 24px on mobile. |
Hi @shawnborton, I just checked on a phone-width screen. That bottom space is already 24px. The 32px only shows on a wide screen. No change needed there. |
@trjExpensify this is the visible-code case. The badge says a code is applied, and the discount sentence sits under it. The code itself is not printed. That matches @flaviadefaria 's this comment #103827 (comment) Edit is already in the menu in @Pujan92's screenshot. It opens a page to replace the code. It does not show the current code. A secret code is the other case. The code and the badge stay hidden. The discount sentence should still show.
|
The code and badge stay hidden. The customer still sees the discount it gives them.
|
@dannymcclain can you chime on on the badge placement? The badges definitely are not left-aligned correctly but not sure what other guidance we need to give beyond that.
|
For sure. I didn't realize we were going to expose the message here, but I think I'd do it something like this:
And in the case of exposing the actual code, let's just put it in the badge instead of
Sorry for all the confusion here. I was under the impression that we would never display the code or the message related to it up front. |
Perf, thanks. 👍 |
On this. I don't recall from Classic someone being able to change codes after one is applied (else you could kinda' cycle multiple discounts and stuff). If we don't do that today, let's not open up that possibility here. |
Align the badges with the card content, put the discount sentence under them, and stop offering Edit once a code is applied.
|
@dannymcclain the badges now line up with the card content and sit 8px apart. The discount sentence is Micro, 8px under the badges, with 12px before Subscription type. A visible code shows in the badge as "NewCust20 applied". A secret code still shows only the sentence.
@trjExpensify Edit is gone once a code is applied. Add stays when there is no code. |




















Explanation of Change
Replaces the run-on subscription summary and the Edit subscription button on Settings > Subscription with the interactive Your plan card from the design: Figma.
Platform notes:
@Expensify/design this changes the subscription plan card layout.
Fixed Issues
$ #101738
PROPOSAL: #101738 (comment)
Tests
Sign in as the billing owner. Open Settings > Subscription.
12 members, Auto-renew, Auto-increase, and Save with the Expensify Card inside the card border.0 memberswith the short helper under it. It should never readnone.Offline tests
QA Steps
Use a billing owner on staging. Open Settings > Subscription.
Desktop web (Chrome or Safari)
Phone or tablet browser
Android and iOS native
All platforms
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Record_2026-10-18-23-40-17.online-video-cutter.com.mp4
Android: mWeb Chrome
Record_2026-10-18-23-43-22.online-video-cutter.com.mp4
iOS: Native
Screen.Recording.2026-10-18.at.11.23.29.PM.online-video-cutter.com.mp4
iOS: mWeb Safari
Screen.Recording.2026-10-18.at.11.26.28.PM.online-video-cutter.com.mp4
MacOS: Chrome / Safari
Screen.Recording.2026-10-18.at.10.46.16.PM.online-video-cutter.com.mp4