App icon indicating copy to clipboard operation
App copied to clipboard

[Due for payment 2026-12-08] [CFI] [$250] Improve how subscription settings are displayed in New Expensify

Open flaviadefaria opened this issue 2 months ago • 78 comments

Problem

In New Expensify, the subscription settings are currently displayed as one long run-on line combining several data points (subscription size, billing frequency, auto-renew, auto-increase, etc.). This is hard to parse visually — the data points dilute each other, and it reads more like internal information than something surfaced clearly for users. A few people (support + design) have had trouble locating and reading a customer's billing information because of this, and customers can get aggravated when they feel billing info is hidden.

We used to display this information inline in Classic, and the current format changed when the New Collect plan was implemented.

Here's an example:

Image Image

Proposal

Display the information that is relevant to each plan in a more visual, easier-to-parse way, rather than a single run-on line. The relevant data points still need to be visible without clicking into the subscription details — notably:

  • Subscription size / number of members and billing frequency (e.g. 12 members (Annual) / 1 member (Monthly))
  • Auto-renew and Auto-increase status (important to surface clearly — auto-renew is enabled by default, and customers get upset when a subscription renews unexpectedly if this is hidden)

Paid plan types to account for:

  • Control/Old Collect
    • Subscription type: Pay-per-use; OR

    • Subscription type: Annual;
Subscription size: [X];
Auto renew: on/off;
Auto Increase annual seats: on/off
  • New Collect, Subscription type: Pay-per-use


Mocks

These mocks outline the general structure for the Your plan card and show a few different interaction patterns we want to use. These mocks do not necessarily represent every possible combination of fields that can/should be displayed. (Figma)

Image Image Image Image Image Image Image Image Image Image

Reported in Slack.

Issue OwnerCurrent Issue Owner: @Pujan92
Upwork Automation - Do Not Edit

flaviadefaria avatar Sep 21 '26 13:09 flaviadefaria

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (External)

melvin-bot[bot] avatar Sep 21 '26 13:09 melvin-bot[bot]

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

melvin-bot[bot] avatar Sep 21 '26 13:09 melvin-bot[bot]

@Pujan92 Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] avatar Sep 24 '26 21:09 melvin-bot[bot]

@Pujan92 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

melvin-bot[bot] avatar Sep 28 '26 21:09 melvin-bot[bot]

@Pujan92 should Melvin try to implement this or should I add the Need help label?

flaviadefaria avatar Sep 29 '26 13:09 flaviadefaria

@flaviadefaria I think we should add Help wanted label as changes need to be incorporated from figma designs

Pujan92 avatar Sep 29 '26 15:09 Pujan92

🚨 Edited by proposal-police: This proposal was edited at 2026-09-30 18:59:38 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

On the Subscription page, the "Your plan" card squeezes subscription type, subscription size, billing frequency, auto-renew status, and auto-increase status into a single run-on sentence (e.g. Subscription type: Annual, Subscription size: 12, Auto renew: on, Auto increase annual seats: on). This is hard to scan, reads like internal debug text rather than user-facing copy, and buries important billing information (especially auto-renew, which is on by default) that support/design/customers have had trouble finding. We need to replace it with the "Your plan" card from the mocks, showing only the fields that apply to each plan type (Control/Old Collect Pay-per-use, Control/Old Collect Annual, New Collect).

What is the root cause of that problem?

The "Your plan" card is rendered by SubscriptionPlanCard → SubscriptionPlanCardActionButton. Inside the action button, all the subscription facts are computed as separate primitives and then jammed into one translated sentence that is passed as the single title of a single MenuItemWithTopDescription:

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

The actual sentence-building happens in the translation layer itself — subscription.subscriptionSettings.summary concatenates all five values with hardcoded , separators into one long string:

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/languages/en.ts#L11041-L11042

Because this is a single string rendered as one title (with numberOfLinesTitle={3} just allowing it to wrap), there is no way to visually separate "what plan/size you have" from "auto-renew/auto-increase status" — they're all just comma-joined text in one paragraph, which is exactly the "run-on line" complaint in the issue. Note that the sibling "Edit subscription" page (SubscriptionSettings/index.tsx) already avoids this problem by rendering subscription size, auto-renew, and auto-increase as separate MenuItemWithTopDescription/ToggleSettingOptionRow rows:

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L298-L325

The card also has no plan logic. It always adds size, auto-renew and auto-increase, even for pay-per-use and New Collect, and prints none when there is no size. The settings page hides these for New Collect with shouldUseSimplifiedCollectSubscriptionUI and shows them only when the subscription is annual; the card uses neither check:

https://github.com/Expensify/App/blob/d333f7c9a8ee13d0bf9da1bc3ed65afedb9e9d72/src/libs/SubscriptionUtils.ts#L586-L588

So the summary card is the outlier that still concatenates everything into one sentence, and that's the root cause of the reported readability problem.

What changes do you think we should make in order to solve the problem?

Replace the summary row and the Edit subscription button with the "Your plan" card from the mocks. Reuse the actions the settings page already has, so there is one source of truth for each action.

1. New section component

Add SubscriptionPlanSettingsSection and render it from SubscriptionPlanCardActionButton in place of L144-L160 (only on the subscription page, not in the comparison modal; the invoicing early return stays):

https://github.com/Expensify/App/blob/d333f7c9a8ee13d0bf9da1bc3ed65afedb9e9d72/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L160

It's a separate component so its hooks (useHasTeam2025Pricing, delegate checks, etc.) run before any early return.

2. Plan rules (same as the settings page)

const isNewCollect = shouldUseSimplifiedCollectSubscriptionUI(subscriptionPlan, hasTeam2025Pricing);
const shouldShowAnnualSettings = isAnnual && !isNewCollect;
Plan What the card shows
New Collect Subscription type: Pay-per-use
Control / Old Collect – Pay-per-use Subscription type: Pay-per-use + info icon
Control / Old Collect – Annual Subscription type: Annual, Subscription size, Auto-renew switch, Auto-increase switch

3. Card layout (per the mocks)

  • Plan row: the existing plan icon and name, with a ThreeDotsMenu on the right (the same component the payment card uses, CardSectionActions). Menu items:
    • Add Expensify code → ROUTES.SETTINGS_SUBSCRIPTION_EXPENSIFY_CODE.
    • Request tax exempt status → the same requestTaxExempt() + navigateToConciergeChat call the settings page uses (L355-L359).
  • Badges under the plan name, only when they apply: Expensify code applied (not for a secret code, via getPrivatePromoDiscountInfo) and Tax exempt (existing subscription.details.taxExemptEnabled) when privateTaxExempt is set.
  • Subscription type row: value Annual or Pay-per-use, with a chevron to ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS, where the annual/pay-per-use picker and its downgrade/delegate checks already live. For Control/Old Collect pay-per-use, an info icon opens the "Save with an annual subscription" tooltip using the existing pricingConfiguration and learnMore copy. New Collect gets no icon because it can't switch to annual.
  • Annual only (shouldShowAnnualSettings):
    • Subscription size row with a chevron: 12 members / 1 member. If userCount is missing, show 0 members plus the short helper line from the mock, instead of printing none.
    • Auto-renew switch, with Renews on {date} below it when there's an end date (existing renewsOn + formatSubscriptionEndDate).
    • Auto-increase annual seats switch.
  • Each row is wrapped in OfflineWithFeedback with the same pendingFields the settings page uses (type, userCount, autoRenew, addNewUsersAutomatically), so the card and the page show the same pending state offline.

4. Reuse the settings-page actions, don't copy them

Move handleAutoRenewToggle, handleAutoIncreaseToggle, onSubscriptionSizePress and onExpensifyCodePress from SubscriptionSettings/index.tsx into a small shared hook (e.g. useSubscriptionSettingsActions) and use it on both the page and the card. That keeps the delegate check, the disable-auto-renew survey (hasPurchases) and the size flow in one place:

https://github.com/Expensify/App/blob/d333f7c9a8ee13d0bf9da1bc3ed65afedb9e9d72/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L120-L138

https://github.com/Expensify/App/blob/d333f7c9a8ee13d0bf9da1bc3ed65afedb9e9d72/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L182-L204

(No useCallback/useMemo — React Compiler handles memoization.)

5. Mobile apps

On iOS/Android, subscription changes are disabled on purpose (the settings page shows mobileReducedFunctionalityMessage, and CardSectionActions/index.native.tsx returns null). So SubscriptionPlanSettingsSection gets an index.native.tsx that shows the same rows read-only: values only, On/Off text instead of switches, and no chevrons or menu.

6. Translations (en.ts, es.ts and the other locale files)

  • Remove subscriptionSettings.summary (its only caller is the row being replaced) and the none key if nothing else uses it.
  • Add a plural subscriptionSettings.memberCount key (1 member / {count} members), following the existing plural pattern at domain.groups.memberCount, plus the new strings from the mocks (subscription type label, menu items, badges, tooltip title, size helper).
  • Reuse the existing annual, autoRenew, autoIncrease, renewsOn, taxExemptEnabled and payPerUse keys.

Question for design: if a code is already applied, should the menu show Edit Expensify code? Today the code page doesn't allow replacing an applied code (onExpensifyCodePress returns early), so I'd hide the item in that case unless design wants it changed.

Tests: add a UI test for the card covering New Collect, Control/Old Collect pay-per-use, and Control/Old Collect annual (with and without a size), checking that only the right rows render, plus a check that the secret promo code never shows the badge.

What alternative solutions did you explore? (Optional)

Only splitting the summary into separate read-only text rows (my earlier version). It fixes the run-on line but doesn't match the mocks, which move the switches, chevrons and menu onto the card.

abbasifaizan70 avatar Sep 29 '26 16:09 abbasifaizan70

Proposal

What is the root cause of that problem?

The card in the screenshot is the "Subscription settings" block rendered by SubscriptionPlanCardActionButton. Every data point the issue mentions (type, size, auto-renew, auto-increase, code) is pre-joined into one string and dropped into a single non-interactive MenuItemWithTopDescription as its title:

https://github.com/Expensify/App/blob/263b6c0809aaeab80ff96daf36bd3d7bf1ce894a/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

The joining itself lives in the summary i18n combiner, which comma-concatenates all five values:

https://github.com/Expensify/App/blob/263b6c0809aaeab80ff96daf36bd3d7bf1ce894a/src/languages/en.ts#L11041-L11042

So there is nothing that "renders" the individual fields — they only exist inside one blob, and numberOfLinesTitle={3} just wraps that blob across up to three lines. That's the run-on line. Two consequences fall straight out of this shape:

  • No structure is possible (no per-field label/value, no emphasis, no dividers, no conditional hiding) because the layout unit is a single Text.
  • The combiner always appends Auto renew: … , Auto increase annual seats: … even for Pay-per-use, where those are annual-only concepts. That's why New Collect (which is Pay-per-use only) and Old Collect pay-per-use show irrelevant fields — the exact "billing info reads like internal noise" complaint.

This is a spec/design gap, not a regression: the desired per-field card was never built; the run-on string is what shipped with New Collect.

What changes do you think we should make in order to solve the problem?

Fix layer is render (the JSX in SubscriptionPlanCardActionButton) plus a small i18n change — because the problem is that a display string is standing in for a display structure.

Replace the one combined MenuItemWithTopDescription with a compact stack of labelled rows — one data point per row — and gate the annual-only rows behind the existing isAnnual check at SubscriptionPlanCardActionButton.tsx#L51:

// size + frequency always shown, e.g. "12 members (Annual)" / "1 member (Monthly)"
<Row label={translate('subscription.details.subscriptionSize')}
     value={translate('subscription.subscriptionSettings.membersWithFrequency', userCount, isAnnual)} />

{isAnnual && (
  <>
    <Row label={translate('subscription.subscriptionSettings.autoRenew')}   value={onOff(autoRenew)} />
    <Row label={translate('subscription.subscriptionSettings.autoIncrease')} value={onOff(autoIncrease)} />
  </>
)}
{!!expensifyCode && (
  <Row label={translate('subscription.expensifyCode.title')} value={expensifyCode} />
)}

Row can just be the existing MenuItemWithTopDescription (description = label, title = value, interactive={false}) so no new primitive is needed and it stays visually consistent with the rest of settings.

On i18n: most labels already exist — subscriptionSettings.autoRenew, subscriptionSettings.autoIncrease, details.subscriptionSize, details.payPerUse, subscriptionSettings.on/off/annual. So the net change is: delete the summary combiner and add one small pluralized helper, e.g. membersWithFrequency(count, isAnnual) => \${count} ${count === 1 ? 'member' : 'members'} (${isAnnual ? 'Annual' : 'Monthly'})`. This maps 1:1 to the issue's 12 members (Annual)/1 member (Monthly)` example and to the Figma node 1864-1874.

Because the annual-only rows are gated on isAnnual (subscription type === yearly2018), Pay-per-use — including all New Collect — renders just the members/frequency row and drops the auto-renew / auto-increase noise. That's the plan-type matrix in the issue satisfied by the render condition itself, no separate New-vs-Old branch needed.

Verification: I traced the render path end to end and mapped each Figma field to a row above. I want to be straight about test evidence — no unit test guards this text; the only nearby suite, tests/unit/SubscriptionVisibilityTest.ts, covers useSubscriptionPlan/shouldShowSubscription visibility, not the summary rendering, so this change doesn't touch it and won't regress it. I couldn't drive the app in this environment, so this is code + spec evidence; on implementation I'd add a small render test asserting (a) annual shows size+auto-renew+auto-increase rows and (b) pay-per-use shows only the members row, plus before/after screenshots on web.

What alternative solutions did you explore? (Optional)

Keep one string, make it multi-line. Rewrite summary as a \n-separated template and raise numberOfLinesTitle. Rejected: it's still a single Text node, so you can't render per-field labels, dividers, or conditionally hide the annual-only fields — and it leaves the Pay-per-use noise in place, which is half the complaint. It looks tidier but doesn't move the layout unit from "blob" to "fields."

Extract a dedicated SubscriptionSettingsSummary presentational component and render it from the card. Reasonable long-term, and worth doing if the mocks grow more per-plan variants, but for this issue it enlarges the diff without changing behavior — I'd keep the rows inline in SubscriptionPlanCardActionButton where the data is already assembled and split it out later only if the field matrix expands.

Abdulloh0109 avatar Sep 29 '26 16:09 Abdulloh0109

Proposal

Please re-state the problem that we are trying to solve in this issue.

On the Subscription page, the "Your plan" card displays all subscription settings as a single run-on line (for example: "Subscription type: Annual, Subscription size: 12, Auto renew: on, Auto increase annual seats: on"). This is hard to parse visually, important billing data points (subscription size, billing frequency, auto-renew, auto-increase) dilute each other, and the same sentence is shown regardless of plan type — including fields that are irrelevant to the current plan. The settings should instead be displayed in a structured, per-plan way that matches the Figma mocks in the issue.

What is the root cause of that problem?

This is a design-improvement request rather than a logic bug, but the current behavior comes from one specific place: the "Your plan" card funnels every subscription data point into the single summary translation string, which concatenates all of them into one comma-separated sentence:

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/languages/en.ts#L11041-L11042

That sentence is then rendered as the title of one non-interactive MenuItemWithTopDescription (clamped to 3 lines) inside SubscriptionPlanCardActionButton:

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

Because it is a one-size-fits-all string, it cannot be tailored per plan. Concretely, it always appends "Auto renew" and "Auto increase annual seats" even for Pay-per-use subscriptions, while the Subscription settings details page only offers those two controls when the subscription is Annual (they are rendered inside an isAnnual guard):

https://github.com/Expensify/App/blob/27ed1730bf9f29dcdf63dfb562f728d3b5087ed0/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L298-L325

It also prints "Subscription size: none" when no size is set. So the card both buries the relevant data points in one blob of text and surfaces irrelevant ones, which is exactly what the issue reports.

What changes do you think we should make in order to solve the problem?

Replace the single run-on MenuItemWithTopDescription in SubscriptionPlanCardActionButton with a structured "Subscription settings" block that renders each relevant data point on its own labeled row, tailored to the plan type, following the structure shown in the Figma mocks:

  1. Keep the "Subscription settings" section label on the card, and keep the existing "Edit subscription" button that opens the Subscription settings details page.
  2. Show the subscription size together with the billing frequency as one readable line, per the examples in the issue (for example "12 members (Annual)" or "1 member (Monthly)"), instead of the separate "Subscription type: ... , Subscription size: ..." fragments. The size portion is only shown when a subscription size exists, so "none" never appears.
  3. Show "Auto-renew" and "Auto-increase annual seats" as their own rows with a clear on/off status, and only for Annual subscriptions (Control / Old Collect with an annual commitment) — mirroring the same isAnnual condition the details page already uses for these toggles. Auto-renew is surfaced prominently since customers get upset when a renewal is unexpected.
  4. For Pay-per-use subscriptions (including New Collect, which is Pay-per-use only), show just the subscription type row, since size/auto-renew/auto-increase do not apply.
  5. Keep showing the applied Expensify code on its own row when a non-secret promo code exists, as the current summary does.
  6. Add the new translation keys to all supported language files (en.ts, es.ts, de.ts, el.ts, fr.ts, it.ts, ja.ts, nl.ts, pl.ts, pt-BR.ts, zh-hans.ts) and remove the now-unused summary key from each, since the languages are typed against the English translation shape.

The rows are plain label/value views styled with the existing card text styles, so the change is contained to the "Your plan" card component plus translations, and it works on web and native alike since the card is shared code. The exact visual treatment (spacing, status presentation) follows the Figma mocks linked in the issue, and can be fine-tuned with the design team during review since the mocks note that not every field combination is depicted.

Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/101738-subscription-settings-card?expand=1

What alternative solutions did you explore? (Optional)

  • Rendering one MenuItemWithTopDescription per data point (the pattern the details page uses). This works but makes the card tall and heavy, and the mocks show a lighter inline presentation inside the card rather than a stack of menu rows.
  • Keeping the single summary translation but reformatting it with line breaks per data point. Rejected: it would still be one text blob with no per-plan tailoring, so irrelevant fields (auto-renew on Pay-per-use, "size: none") would still appear, and styling individual rows/statuses per the mocks would not be possible.

wildan-m avatar Sep 29 '26 16:09 wildan-m

Proposal

Please re-state the problem that we are trying to solve in this issue.

The "Your plan" card shows subscription settings (type, size, Expensify code, auto-renew, auto-increase) as one run-on sentence that is hard to read. We want each relevant data point shown on its own, per plan type, as in the mocks, without having to open the subscription details.

What is the root cause of that problem?

SubscriptionPlanCardActionButton builds all five values and passes them into a single translated string, subscription.subscriptionSettings.summary. That string is rendered as the title of one non-interactive MenuItemWithTopDescription with numberOfLinesTitle={3}, so every field is joined into one comma-separated line: https://github.com/Expensify/App/blob/e436372d040cf94305ddae82c10bd406f50f933f/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L137-L152 https://github.com/Expensify/App/blob/e436372d040cf94305ddae82c10bd406f50f933f/src/languages/en.ts#L11184-L11185

What changes do you think we should make in order to solve the problem?

Replace the single summary item with one row per data point. Show only the rows that apply to the plan:

  • Subscription: 12 members (Annual) for annual, or Pay-per-use (the only row for New Collect and pay-per-use Control/Old Collect). This needs a new plural en.ts key.
  • Auto-renew and Auto-increase annual seats: shown only when isAnnual, each as its own MenuItemWithTopDescription (or a label with an On/Off badge, as in the mocks), reusing the existing subscriptionSettings.autoRenew/autoIncrease/on/off keys.
  • Expensify code: its own row, only when a non-secret code exists.
{isAnnual && (
    <MenuItemWithTopDescription description={translate('subscription.subscriptionSettings.autoRenew')} title={autoRenew} interactive={false} style={style} />
)}

Keep the "Edit subscription" button. Remove the now-unused summary key from en.ts and regenerate the other locales. The invoicing early return stays the same, so invoiced subscriptions are unaffected.

ahmdshrif avatar Sep 29 '26 16:09 ahmdshrif

Proposal

What is the root cause of that problem?

The "Your plan" card has no per-field layout. SubscriptionPlanCardActionButton flattens the subscription type, subscription size, Expensify code, auto-renew and auto-increase into one comma-separated string and passes that string as the title of a single read-only MenuItemWithTopDescription row capped at three lines:

https://github.com/Expensify/App/blob/d9e09a12003b23bcac4ee824c64d5eb58a335460/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

The producer of the run-on line is the subscription.subscriptionSettings.summary template itself, which joins five independent data points into one sentence, and it has exactly one consumer - the row above:

https://github.com/Expensify/App/blob/d9e09a12003b23bcac4ee824c64d5eb58a335460/src/languages/en.ts#L11041-L11042 https://github.com/Expensify/App/blob/d9e09a12003b23bcac4ee824c64d5eb58a335460/src/languages/es.ts#L11078-L11079

Because the whole summary is one wrapped text node, every value is unlabelled and the tail of the string is what truncates first on narrow layouts, so subscription size, auto-renew and auto-increase dilute each other and can disappear - exactly the support/design complaint in the issue.

This format is a regression introduced by the new subscription settings UI: commit 27778854f88 ("Add settings summary text", merged as PR #59077, merge commit fe09a3aeaf5) added subscriptionSettings.summary and set it as this row's title, replacing the previous empty title whose only job was to link to the subscription details page. The culprit diff changes title="" with shouldShowRightIcon/onPress on the details route into numberOfLinesTitle={3} with the concatenated summary title.

What changes do you think we should make in order to solve the problem?

Replace the single run-on row with one read-only row per data point, reusing MenuItemWithTopDescription (already imported and already the primitive in use) so styling, spacing and accessibility stay consistent.

In src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx, delete the flattening block at L138-L142 and the summary row at L146-L152, and render instead:

  • Subscription size - value built by a new subscription.subscriptionSettings.subscriptionSizeValue(size, frequency) entry that pluralizes members and appends the billing frequency, giving 12 members (Annual) / 1 member (Monthly). Derive the frequency from the subscription type (Annual when isAnnual, otherwise Monthly, since pay-per-use is billed monthly) so the value matches the issue's examples; fall back to the existing none label when no member count is known.
  • Subscription type - Annual (subscription.subscriptionSettings.annual) or Pay-per-use (subscription.details.payPerUse).
  • Auto-renew - On / Off, using the existing subscription.subscriptionSettings.autoRenew, on, off entries, rendered only for annual subscriptions.
  • Auto-increase annual seats - On / Off, using the existing subscription.subscriptionSettings.autoIncrease, rendered only for annual subscriptions.
  • Expensify code - rendered only when a code is applied (expensifyCode), keeping the existing isSecretPromoCode suppression.

All rows stay interactive={false} so the values are visible without clicking into the subscription details, and the existing Edit subscription button still navigates to ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS. This mirrors the per-field labelled rows the details page already renders for subscription size, auto-renew and auto-increase:

https://github.com/Expensify/App/blob/d9e09a12003b23bcac4ee824c64d5eb58a335460/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L154-L167 https://github.com/Expensify/App/blob/d9e09a12003b23bcac4ee824c64d5eb58a335460/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L298-L320

In src/languages/en.ts and src/languages/es.ts, remove the now-unused summary template (its only caller is the row being replaced) and add monthly (Monthly) plus the subscriptionSizeValue helper; keep none, on, off, annual, autoRenew and autoIncrease.

Test coverage:

  • Extend tests/unit/SubscriptionUtilsTest.ts (or add a small tests/unit test for the extracted value builder) to cover the new builder: 1 member vs many members, annual vs pay-per-use frequency, auto-renew on/off, and Expensify code applied vs secret code suppressed.
  • Add a component assertion that each labelled row renders its value in the "Your plan" card (annual and pay-per-use cases), so the fields cannot silently collapse back into one string.

What alternative solutions did you explore? (Optional)

The strongest rival fix is to keep the single row and just let it breathe: raise numberOfLinesTitle or insert line breaks inside subscription.subscriptionSettings.summary. That loses because the template still concatenates unrelated fields into one sentence with no labels, so the values remain hard to scan and the longest field still truncates first on narrow layouts - it hides the run-on output instead of fixing the producer.

A second rival is to build the structured breakdown only on the subscription details page (SubscriptionSettings/index.tsx), which already lists subscription size, auto-renew and auto-increase as separate rows. That loses because the issue requires these data points to be readable without clicking into the subscription details; the card is the surface being complained about.

A third rival is to inject the billing data into the plan card's subtitle/note. That loses because that copy comes from getSubscriptionPlanInfo and is shared with the comparison modal, so customer billing state would leak into the plan-comparison view.

KJ21-ENG avatar Sep 29 '26 16:09 KJ21-ENG

Job added to Upwork: https://www.upwork.com/jobs/~022104965036223135805

melvin-bot[bot] avatar Sep 29 '26 16:09 melvin-bot[bot]

Proposal

What is the root cause of that problem?

On a Control account the Your plan card rendered one line: Subscription type: Annual, Subscription size: none, Auto renew: on, Auto increase annual seats: off. SubscriptionPlanCardActionButton turns every subscription property into a string and passes all five to one translation. The result goes into a single non-interactive MenuItemWithTopDescription title:

https://github.com/Expensify/App/blob/6675a50a9af9629bff682d366716db7699b7ac0c/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L151

The translation joins them with commas. It also leaks the raw none fallback whenever an annual subscription has no userCount yet, which is where the "reads like internal information" feeling comes from:

https://github.com/Expensify/App/blob/6675a50a9af9629bff682d366716db7699b7ac0c/src/languages/en.ts#L11236-L11237

There's a second problem. The card shows auto-renew and auto-increase for every plan. The details screen only shows them when the subscription is annual, and it switches New Collect to a pay-per-use-only UI through shouldUseSimplifiedCollectSubscriptionUI:

https://github.com/Expensify/App/blob/6675a50a9af9629bff682d366716db7699b7ac0c/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L104

https://github.com/Expensify/App/blob/6675a50a9af9629bff682d366716db7699b7ac0c/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L301

The card has no such condition, so a New Collect subscription whose stored type is still annual gets "Annual, Auto renew: on". The details screen for that same account only offers pay-per-use.

What changes do you think we should make in order to solve the problem?

Replace the summary title with one field per data point, built from the MenuItemField.Row preset the details screen already uses for its Expensify code row. No new components.

  • The first row keeps the "Subscription settings" label. Its value is the size and frequency: 12 members (Annual) / 1 member (Annual) through a new plural key, Annual when no size is set yet, and Pay-per-use otherwise.
  • Auto-renew and Auto-increase annual seats become their own rows with On/Off values (common.on/common.off). They only render when the subscription is annual and shouldUseSimplifiedCollectSubscriptionUI(subscriptionPlan, hasTeam2025Pricing) is false, which is the same condition the details screen uses.
  • Expensify code gets its own row when a non-secret code exists.
  • The Edit subscription button and the early return for invoiced subscriptions stay as they are.
- title={translate('subscription.subscriptionSettings.summary', subscriptionType, subscriptionSize, expensifyCode, autoRenew, autoIncrease)}
+ const shouldShowAnnualSettings = isAnnual && !shouldUseSimplifiedCollectSubscriptionUI(subscriptionPlan, hasTeam2025Pricing);
+ <MenuItem.Root style={style}>
+     <MenuItemField.Row name={translate('subscription.subscriptionSettings.title')} value={subscriptionSizeAndType} />
+ </MenuItem.Root>
+ {shouldShowAnnualSettings && (
+     <MenuItem.Root style={style}>
+         <MenuItemField.Row name={translate('subscription.subscriptionSettings.autoRenew')} value={autoRenew ? translate('common.on') : translate('common.off')} />
+     </MenuItem.Root>
+ )}

The unused summary, none, on and off keys get replaced by the one plural annualMemberCount key in every language file.

With this change the same account renders the settings as separate fields:

- Subscription settings: Subscription type: Annual, Subscription size: none, Auto renew: on, Auto increase annual seats: off
+ Subscription settings: Annual
+ Auto-renew: On
+ Auto-increase annual seats: Off

A browser replay that asserted the run-on string now passes against the fixed build. I added a UI test covering an annual Control subscription, New Collect with a stored annual type, old Collect on pay-per-use, and a public vs secret Expensify code. It passes with the change. Since the old code only renders the joined sentence, the separate 12 members (Annual) and Pay-per-use fields it checks can't be found there.

What alternative solutions did you explore? (Optional)

Inserting line breaks into the summary translation. Every plan would still show auto-renew and auto-increase, including New Collect where the details screen hides them. Translators would also end up encoding the layout inside one sentence.

mukhrr avatar Sep 29 '26 16:09 mukhrr

🤖 ProposalPolice™ is tracking duplicate proposals for this issue using an OpenAI Conversation. This comment stores that Conversation's ID and can be safely ignored.

github-actions[bot] avatar Sep 29 '26 16:09 github-actions[bot]

Proposal

What is the root cause of that problem?

When a billing admin opens Settings > Subscription, the Your plan card shows size, frequency, auto-renew, and auto-increase as one dense line. Support and customers cannot scan those facts without opening subscription details.

SubscriptionPlanCardActionButton already loads privateSubscription and computes isAnnual. That flag is only used for promo discount info and to block some downgrades in handlePlanPress. The visible plan chrome is currentPlanLabel, which does not lay out those billing facts per plan:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L42-L121

Plan-aware copy already exists for price, not for those facts. subscriptionPricingInfo in PaymentCard/index.tsx branches New Collect (hasTeam2025Pricing && isCollect) vs Collect/Control annual vs pay-per-use:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/PaymentCard/index.tsx#L72-L76

priceDetails in SubscriptionSettings/index.tsx uses the same collect vs control and annual vs pay-per-use split:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L96-L99

The card never applies that matrix to size, frequency, auto-renew, or auto-increase, so every plan is flattened into one line. New Collect (pay-per-use only) is not given its own layout, and annual Control/Old Collect buries auto-renew next to size.

What changes do you think we should make in order to solve the problem?

  1. In SubscriptionPlanCardActionButton, extend the currentPlanLabel block so billing facts sit on the Your plan card as labeled values, not one combined line.

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L42-L121

Today isAnnual only affects promo/downgrade behavior. Reuse it (and the New Collect check already used for subscriptionPricingInfo) to choose which facts render. Keep handlePlanPress and currentPlanLabel as they are.

const isNewCollect = hasTeam2025Pricing && isCollect;
const showAnnualBillingFacts = isAnnual && !isNewCollect;
  1. Map that flag to the issue matrix, still on this card so the values are visible without opening details:
  • New Collect, and Control/Old Collect pay-per-use: subscription type Pay-per-use only.
  • Control/Old Collect annual: size plus frequency as 12 members (Annual) / 1 member (Monthly), then Auto-renew on/off, then Auto-increase on/off.

Reuse the collect vs control split already used in priceDetails (subscriptionPlan === CONST.POLICY.TYPE.CORPORATE vs collect). Do not put these rows in PaymentCard/index.tsx; that block is price copy only. Leave the Explore all plans CTA in SubscriptionPlan/index.tsx unchanged.

This fixes the root cause because the same plan split that already drives price now drives the billing facts on the card, so annual-only fields never appear on New Collect or pay-per-use, and auto-renew is readable without opening details.

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

samranahm avatar Sep 29 '26 16:09 samranahm

Proposal

What is the root cause of that problem?

The Your plan card renders subscription settings from SubscriptionPlanCardActionButton. In the non-comparison, non-invoicing path, it computes subscriptionType, subscriptionSize, expensifyCode, autoRenew, and autoIncrease, then passes all five values into one subscription.subscriptionSettings.summary string rendered as the single title of one read-only MenuItemWithTopDescription with numberOfLinesTitle={3}: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

That translation is itself one comma-joined sentence: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/languages/en.ts#L11233-L11243

Because the display structure is a single text blob, the card cannot visually separate size/frequency from auto-renew and auto-increase. It also cannot apply the existing plan-specific rules. privateSubscription.type distinguishes annual vs pay-per-use, and userCount is the subscription size field: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/types/onyx/PrivateSubscription.ts#L22-L26

The details screen already treats these fields as plan-specific: subscription size is annual-only, and auto-renew/auto-increase are also behind isAnnual: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L154-L178 and https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L301-L328

The summary card is the outlier because it forces every plan through the same five fixed summary fields, so pay-per-use plans can show irrelevant none/off values while annual plans bury important renewal settings in the same sentence.

What changes do you think we should make in order to solve the problem?

Replace the single subscriptionSettings.summary row in SubscriptionPlanCardActionButton with a small structured list of read-only billing facts, using the same annual/pay-per-use rules as the subscription details page.

Keep the existing comparison-modal buttons, invoicing early return, and Edit subscription button unchanged. Only replace the summary area rendered after the invoicing guard.

For annual subscriptions, render separate visible rows/fields for:

  • Subscription size and frequency, e.g. 12 members (Annual) / 1 member (Annual).
  • Auto-renew: on / off.
  • Auto-increase annual seats: on / off.
  • Expensify code, only when the current non-secret promo code exists, preserving the current secret-code suppression.

For pay-per-use subscriptions, including New Collect, render only the pay-per-use subscription fact and do not render annual-only size, auto-renew, or auto-increase rows. New Collect is already identified as simplified Collect subscription UI elsewhere via shouldUseSimplifiedCollectSubscriptionUI: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/libs/SubscriptionUtils.ts#L586-L588 and the details page shows it as pay-per-use: https://github.com/Expensify/App/blob/0272dd4e8eddbd73a1395f2b0104ac22754131f8/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L248-L268

Remove the subscriptionSettings.summary translation from all locale files and add only the small formatter(s) needed for the new member/frequency value. Reuse the existing autoRenew, autoIncrease, on, off, annual, details.payPerUse, and expensifyCode.title labels.

I would also add focused render coverage for the card: annual should show size/frequency plus auto-renew and auto-increase as separate fields; pay-per-use/New Collect should not show annual-only fields or Subscription size: none.

What alternative solutions did you explore? (Optional)

Keeping summary and adding line breaks would make the text less dense, but it would still be one text node and would still force every plan through the same fields.

Moving users to the details page is also insufficient because the issue specifically asks for these billing facts to be readable on the Your plan card without opening subscription details.

Test branch

Fixed Demo

https://github.com/user-attachments/assets/9c9fb07b-3504-461f-b526-9af5311e9cae

nabi-ebrahimi avatar Sep 29 '26 16:09 nabi-ebrahimi

Withdrawn. Checked against the mocks in the issue, the layout below is wrong. The mocks show separate Subscription type and Subscription size rows with chevrons, Auto-renew and Auto-increase switches right on the card, a ⋮ menu on the plan row, and no Edit subscription button; this proposal renders read-only rows, merges type and size into one row and keeps the Edit button. The snippet also calls a hook after the component's early returns, which the rules-of-hooks lint rejects, and it drops "Annual" when an annual plan has no member count. The original is left below for reference.


Proposal

What is the root cause of that problem?

The settings row on the "Your plan" card is not a layout, and — the part that makes this more than cosmetic — its field set is not derived from the subscription: it names fields the account does not have, and values the account no longer has.

SubscriptionPlanCardActionButton builds all five values — subscriptionSize falling back to the none string when userCount is unset — and hands them to the summary template, as the title of one non-interactive MenuItemWithTopDescription clamped to 3 lines:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

Compare the page the card's Edit subscription button links to. SubscriptionSettings picks its fields in a strict order — shouldUseSimplifiedCollectUI first, which renders pay-per-use alone, with no size row and no toggles:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L248-L268

then type === ANNUAL, separately for the size row and the two toggles:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L154-L178

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L301-L328

The card applies neither gate, and breaks in two independent ways:

  • New Collect. shouldUseSimplifiedCollectSubscriptionUI is plan === TEAM && hasTeam2025Pricing, and useHasTeam2025Pricing returns true whenever nvp_private_firstPolicyCreatedDate is falsy — both a genuinely new account and the window before that NVP loads. So it is the default branch for a Collect owner, and why the mismatch can look intermittent on a cold load. The card still advertises Subscription size, Auto renew and Auto increase annual seats, none of which the linked page exposes.

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/hooks/useHasTeam2025Pricing.tsx#L8-L21

  • After annual → pay-per-use. updateSubscriptionType merges only type in optimistic, success and failure data; userCount, autoRenew and addNewUsersAutomatically stay in Onyx untouched, so a pay-per-use account keeps rendering Subscription size: 12, Auto renew: on from a commitment it no longer has:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/libs/actions/Subscription.ts#L92-L105

Gating on isAnnual alone therefore does not fix New Collect, and gating on the plan alone does not suppress the stale values — the card needs both guards, in the page's order.

Two more costs of the single Text: every control the page owns sits inside OfflineWithFeedback keyed on privateSubscription.pendingFields.* (L301-L328 above) and the card row has none, so a toggle flipped offline reads as pending on the page and as applied on the card; and since the clamp eats the tail, auto-renew and auto-increase truncate first.

What changes do you think we should make in order to solve the problem?

Render one field row per data point in SubscriptionPlanCardActionButton, from the same components and predicates the settings page uses, and delete the summary template — it greps to one call site, the row above. Replace lines 138-152 with:

const hasTeam2025Pricing = useHasTeam2025Pricing();
// Mirrors SubscriptionSettings: New Collect exposes no annual settings, and the annual
// values are left stale in Onyx after a switch to pay-per-use, so both guards are needed.
const hasAnnualSettings = isAnnual && !shouldUseSimplifiedCollectSubscriptionUI(subscriptionPlan, hasTeam2025Pricing);
const membersAnnual = privateSubscription?.userCount ? translate('subscription.subscriptionSettings.membersAnnual', privateSubscription.userCount) : undefined;
const expensifyCode = isSecretPromoCode ? undefined : privatePromoCode;

// in the existing <View style={style}>, above the unchanged Edit subscription button:
<OfflineWithFeedback pendingAction={privateSubscription?.pendingFields?.type}>
    <MenuItemField
        name={translate('subscription.subscriptionSettings.subscription')}
        value={hasAnnualSettings ? membersAnnual : translate('subscription.details.payPerUse')}
    />
</OfflineWithFeedback>
{hasAnnualSettings && (
    <>
        <OfflineWithFeedback pendingAction={privateSubscription?.pendingFields?.autoRenew}>
            <MenuItemField name={translate('subscription.subscriptionSettings.autoRenew')} value={autoRenew} />
        </OfflineWithFeedback>
        <OfflineWithFeedback pendingAction={privateSubscription?.pendingFields?.addNewUsersAutomatically}>
            <MenuItemField name={translate('subscription.subscriptionSettings.autoIncrease')} value={autoIncrease} />
        </OfflineWithFeedback>
    </>
)}
{!!expensifyCode && <MenuItemField name={translate('subscription.expensifyCode.title')} value={expensifyCode} />}

MenuItemField with no onPress is the non-interactive name-over-value row, and an omitted value makes the name take over the row — the same "size not set yet" state the page renders via userCount ? String(userCount) : undefined, instead of today's Subscription size: none:

https://github.com/Expensify/App/blob/1fafb353402a9bb6c76977000e77e0f8c6fbcb1d/src/components/MenuItem/presets/MenuItemField.tsx#L71-L95

For the renewal date the mocks put under auto-renew, wrap the row as MenuItem.Root > MenuItemField.Row + MenuItem.HelpText fed by formatSubscriptionEndDate(privateSubscription?.endDate, dateFnsLocale) from @pages/settings/Subscription/utils — the composition the page uses for the Expensify-code hint at index.tsx L331-L345.

In en.ts and es.ts, drop summary and none (its only consumer is the deleted line 140) and add, matching the plural idiom at en.ts L1321:

subscription: 'Subscription',
membersAnnual: (memberCount: number) => `${memberCount} ${memberCount === 1 ? 'member' : 'members'} (Annual)`,

What alternative solutions did you explore? (Optional)

Inserting newlines into summary. Rejected: still one Text, so no per-field offline feedback, no unset-size placeholder, and no way to drop the annual rows for New Collect or a downgraded account.

trasnake87 avatar Sep 29 '26 16:09 trasnake87

Proposal

Please re-state the problem that we are trying to solve in this issue.

On Settings > Subscription, the Your plan card prints subscription type, size, Expensify code, auto-renew, and auto-increase as one comma-separated sentence under a non-interactive "Subscription settings" row, then an Edit subscription button. The facts dilute each other, pay-per-use plans (including New Collect) still show annual-only fields, and a missing size prints "none". The mocks replace that block with a per-plan card: a plan row with a menu, status badges, a Subscription type row, and, only for an annual Control or old Collect subscription, a Subscription size row plus inline Auto-renew and Auto-increase toggles. Those values stay visible without opening subscription details. Tapping Subscription type or Subscription size still opens the existing settings screens.

What is the root cause of that problem?

This is a layout gap, not a bad subscription value. The card already loads each fact, then joins them into one string and renders that string as the title of a single read-only row.

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L138-L152

The joiner always appends auto-renew and auto-increase, and it has no plan-type branch:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/languages/en.ts#L11238-L11239

The rest of the bordered card is the plan icon, price, description, and benefits. There is no subscription-type row, no size row, no toggle, no badge, and no menu. The action button is only that summary plus Edit subscription:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCard.tsx#L141-L160

The interactive behavior the mocks show already exists on the subscription settings page. It is just not on the card. Auto-renew and auto-increase are toggles, and they render only when the subscription is annual:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L182-L204

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L301-L310

Subscription size already navigates to its own screen, and tax-exempt status already requests the exemption and opens Concierge:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L120-L126

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionSettings/index.tsx#L355-L359

New Collect is the same helper the details page uses to hide the annual controls and lock the plan to pay-per-use. The card never calls it:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/libs/SubscriptionUtils.ts#L586-L588

The comparison modal returns before the summary, so the run-on line is only on the subscription page. An invoiced subscription returns nothing just above the summary. Both of those stay.

What changes do you think we should make in order to solve the problem?

Replace the summary row and the Edit subscription button with the card in the mocks. Reuse the settings-page handlers and screens. Do not add a second copy of the annual/pay-per-use picker or the size editor on the card.

On the subscription page (isFromComparisonModal is false), the bordered card body becomes:

  • Plan row: existing plan icon and name (Control or Collect), with a ThreeDotsMenu on the right. The payment card already uses that menu:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/CardSection/CardSectionActions/index.tsx#L39-L45

Menu items:

  • Add Expensify code when no code is applied, or Edit Expensify code when a non-secret code is applied. Both open ROUTES.SETTINGS_SUBSCRIPTION_EXPENSIFY_CODE, with the same delegate check as onExpensifyCodePress. A secret code shows neither the badge nor this item. Secret vs visible is already getPrivatePromoDiscountInfo:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/utils.ts#L30-L33

  • Request tax exempt status, calling the same requestTaxExempt() + navigateToConciergeChat pair the details page uses. This item stays when the account is already tax exempt.

  • Badges under the plan name, only when they apply: Expensify code applied for a non-secret code, and Tax exempt from the existing subscription.details.taxExemptEnabled string when privateTaxExempt is set.

  • Subscription type row: muted label, value Annual or Pay-per-use, chevron. Press navigates to ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS, where the Annual / Pay-per-use picker and onOptionSelected already live (including the downgrade-blocked and delegate checks). For Control or old Collect pay-per-use, an info icon opens a tooltip titled Save with an annual subscription, with the existing pricingConfiguration sentence and learnMore links. New Collect does not show that icon, because that plan cannot switch to annual.

  • Annual rows, only when isAnnual && !shouldUseSimplifiedCollectSubscriptionUI(...):

    • Subscription size row, chevron, value from a pluralized N members / 1 member string. A missing or zero userCount shows 0 members plus the short helper from the mock ("If you don't set your subscription size now, we'll set it automatically based on your first month's active member count. Learn more"). Do not print none. Press uses onSubscriptionSizePress (SETTINGS_SUBSCRIPTION_SIZE). The full subscription.details.headsUp paragraph stays on the size screen.
    • Auto-renew as ToggleSettingOptionRow, isActive={privateSubscription?.autoRenew}, onToggle={handleAutoRenewToggle}. Subtitle is renewsOn whenever endDate formats, including when the toggle is off, matching the mock.
    • Auto-increase annual seats as ToggleSettingOptionRow, isActive={privateSubscription?.addNewUsersAutomatically ?? false}, onToggle={handleAutoIncreaseToggle}. Subtitle leads with saveUpTo and then the shorter extra-seats sentence from the mock.
  • A divider, then the existing Save with the Expensify Card row inside the bordered card. Today that row sits outside the card:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionPlan/index.tsx#L54-L66

Pay-per-use, including New Collect, renders the plan row, badges, kebab, and the Subscription type row only. No size row and no toggles.

The comparison modal keeps today's card: price, description, benefits, and the upgrade / downgrade / "This is your current plan" actions. Those early returns stay:

https://github.com/Expensify/App/blob/58d43ca51e562e6ea8ac78fcea66b0102f25267f/src/pages/settings/Subscription/SubscriptionPlan/SubscriptionPlanCardActionButton.tsx#L101-L105

Invoiced subscriptions still render no settings block (isSubscriptionTypeOfInvoicing returns before the summary today, and the same return stays). The Payment card is unchanged: its title is already Payment, and cardNextPayment is already the next-payment sentence. View payment history and Cancel subscription stay in that upper card.

Sketch of the subscription-page branch:

const showAnnualDetails = isAnnual && !isNewCollect;

// Plan name + icon, ThreeDotsMenu (Add/Edit Expensify code, Request tax exempt status)
// Badges: non-secret code, tax exempt

<PressableRow
    label={translate('subscription.subscriptionSettings.subscriptionType')}
    value={isAnnual ? translate('subscription.subscriptionSettings.annual') : translate('subscription.details.payPerUse')}
    onPress={() => Navigation.navigate(ROUTES.SETTINGS_SUBSCRIPTION_SETTINGS_DETAILS)}
    info={!isAnnual && !isNewCollect ? saveWithAnnualTooltip : undefined}
/>

{showAnnualDetails && (
    <>
        <PressableRow
            label={translate('subscription.details.subscriptionSize')}
            value={translate('subscription.subscriptionSettings.memberCount', userCount ?? 0)}
            onPress={onSubscriptionSizePress}
            helper={userCount ? undefined : translate('subscription.subscriptionSettings.sizeNotSet')}
        />
        <ToggleSettingOptionRow title={autoRenewLabel} subtitle={renewsOn} isActive={!!autoRenew} onToggle={handleAutoRenewToggle} />
        <ToggleSettingOptionRow title={autoIncreaseLabel} subtitle={autoIncreaseSubtitle} isActive={!!addNewUsersAutomatically} onToggle={handleAutoIncreaseToggle} />
    </>
)}

memberCount is 0 members / 1 member / N members. Frequency is the Subscription type row, not a parenthesis on the size. That is why the card does not use 12 members (Annual).

Remove subscription.subscriptionSettings.summary from every locale. Add subscriptionType, memberCount, sizeNotSet, expensifyCodeApplied, addExpensifyCode, editExpensifyCode, and saveWithAnnualSubscription. Reuse annual, payPerUse, autoRenew, autoIncrease, renewsOn, saveUpTo, taxExempt, taxExemptEnabled, pricingConfiguration, and learnMore.

Offline pending states stay on the same fields the details page already wraps (type, userCount, autoRenew, addNewUsersAutomatically) via OfflineWithFeedback.

What alternative solutions did you explore? (Optional)

Putting line breaks inside summary still leaves one text node. Pay-per-use would keep auto-renew and auto-increase, the size would still say "none", and there would be no toggles, chevrons, badges, or menu.

Rendering one MenuItemWithTopDescription per fact on the card gets the labels, but the mocks are toggles and navigation rows, not a stack of read-only menu items. The details page is already that stack.

Leaving the facts only on the details page misses the request. Size, frequency, and auto-renew have to be readable on the Your plan card.

Putting the rows into the plan subtitle would show customer billing inside Compare plans, because that copy comes from getSubscriptionPlanInfo and the modal renders the same card. The new rows are gated on !isFromComparisonModal so the modal keeps the benefits list.

Building a second annual/pay-per-use picker and size editor on the card would duplicate onOptionSelected and the size flow, including the downgrade-blocked screen. The rows navigate to those screens instead.

What specific scenarios should we cover in automated tests?

  • An annual Control subscription with userCount 12, auto-renew on, and auto-increase off shows Subscription type Annual, Subscription size 12 members, both toggles, and Renews on when endDate is set. It does not show the run-on summary or Edit subscription.
  • userCount 1 renders 1 member. A missing or zero userCount renders 0 members and the size-not-set helper, never none.
  • Auto-renew off still shows the renew date, and turning the toggle off with hasPurchases opens the disable-auto-renew survey. Turning it on calls updateSubscriptionAutoRenew(true). Auto-increase calls updateSubscriptionAddNewUsersAutomatically.
  • Control or old Collect pay-per-use shows only the plan row and Subscription type Pay-per-use, with the annual-savings info tooltip, and no size row or toggles, even if a leftover userCount is still on the subscription.
  • New Collect (shouldUseSimplifiedCollectSubscriptionUI) shows only Subscription type Pay-per-use, with no info tooltip, no size row, and no toggles, even if type is still annual.
  • A non-secret promo code shows the Expensify code applied badge and a kebab item Edit Expensify code. No code shows Add Expensify code and no badge. A secret code shows neither the badge nor the code menu item.
  • privateTaxExempt shows the Tax exempt badge. The kebab still includes Request tax exempt status, and selecting it calls requestTaxExempt.
  • The comparison modal still shows benefits and the upgrade, downgrade, or current-plan action, and does not show the settings rows. An invoiced subscription still shows no settings block.

neerajbachani avatar Sep 29 '26 16:09 neerajbachani

They work for me!

flaviadefaria avatar Sep 29 '26 16:09 flaviadefaria

@flaviadefaria It seems like the image links are probably from a private channel. Could you please re-upload them, or ask someone who has access to help us proceed from here?

Image

cc: @dannymcclain @Pujan92

neerajbachani avatar Sep 29 '26 16:09 neerajbachani