Skip to content

[Due for payment 2026-02-23] Expensify Card - Smart limit description is truncated when selected #82326

Closed

Description

@nlemma

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.3.18-2
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #81783
Email or phone of affected tester (no customers): applausetester+khcategory20@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  • Workspace is set up with Expensify Card feature.
  • Assign yourself a virtual card with single-use limit.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Expensify Card.
  3. Click on the assigned card.
  4. Select Smart limit.

Expected Result:

Smart limit description should be displayed in 2 lines (according to #50975).

Actual Result:

Smart limit description is displayed in 1 line and truncated.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7076256_1770928141164.12.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @johncschuster

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Feb 12, 2026
  2. melvin-bot commented on Feb 12, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #81783

  3. melvin-bot commented on Feb 12, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. melvin-bot commented on Feb 12, 2026

    @melvin-bot

    Triggered auto assignment to @johncschuster (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  5. github-actions commented on Feb 12, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. OSBotify commented on Feb 12, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #81783 - "[Single-use and Expire-by virtual cards]: update edit card flow" by @nkdengineer (High confidence)
    Related Issues: Originally fixed in #50975

    Recommendation: ROLL FORWARD

    A revert would be complex because this PR introduced significant new functionality (single-use and expire-by virtual cards), including new form fields, date validation, and API parameter changes. The fix is simpler: add the isAlternateTextMultilineSupported prop to ValueSelectionList component or pass it through ValuePicker.

    Labels: Keep DeployBlockerCash (frontend bug, App PR caused the issue)

    📋 Detailed Analysis

    Evidence

    PR #81783 changed the WorkspaceEditCardLimitTypePage from using SelectionList with RadioListItem directly to using ValuePicker component with shouldShowModal={false}. This makes it render through ValueSelectionList.

    The problem: ValueSelectionList does not support the isAlternateTextMultilineSupported prop that was added in PR #50975 to fix this exact issue. When ValueSelectionList creates options, it maps items to include alternateText (the description), but the SelectionList it renders does not receive isAlternateTextMultilineSupported, so descriptions default to 1 line instead of 2.

    Verification

    Root Cause

    When PR #81783 refactored the limit type selection UI to use ValuePicker instead of SelectionList directly, it inadvertently removed the multiline support for alternate text that was added in PR #50975. The ValueSelectionList component needs to be enhanced to support multiline alternate text, or ValuePicker needs to accept and pass through this prop.

    Fix Options

    1. Option A (Recommended): Enhance ValueSelectionList to accept and pass isAlternateTextMultilineSupported prop to SelectionList
    2. Option B: Enhance ValuePicker to accept and pass through isAlternateTextMultilineSupported to ValueSelectionList
    3. Option C: Revert to using SelectionList directly in WorkspaceEditCardLimitTypePage.tsx (similar to how it was before PR [Single-use and Expire-by virtual cards]: update edit card flow #81783)
  7. OSBotify commented on Feb 12, 2026

    @OSBotify
    Contributor

    Summary

    This deploy blocker is correctly labeled. The issue is caused by PR #81783 which refactored the limit type selection UI but inadvertently removed multiline support for descriptions that was previously fixed in PR #50975.

    Next Steps:

    1. Tag @nkdengineer (PR author) to implement one of the fix options outlined above
    2. The fix should be straightforward - add multiline support to the ValueSelectionList or ValuePicker component
    3. Once fixed, verify that Smart limit description displays in 2 lines as expected

    cc @johncschuster

  8. Eskalifer1 commented on Feb 12, 2026

    @Eskalifer1
    Contributor

    Proposal

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

    Expensify Card - Smart limit description is truncated when selected

    What is the root cause of that problem?

    Now we use ValuePicker:

    <InputWrapper
    InputComponent={ValuePicker}
    inputID={INPUT_IDS.LIMIT_TYPE}
    label={translate('workspace.card.issueNewCard.chooseLimitType')}
    value={typeSelected}
    defaultValue={initialLimitType}
    items={data}
    onValueChange={(value) => {
    setTypeSelected(value as CardLimitType);
    }}
    shouldShowModal={false}
    addBottomSafeAreaPadding={false}
    />

    By default, it does not accept or pass on props that show whether there can be multiple lines of text:

    <ValueSelectionList
    items={items}
    selectedItem={selectedItem}
    onItemSelected={updateInput}
    shouldShowTooltips={shouldShowTooltips}
    addBottomSafeAreaPadding={addBottomSafeAreaPadding}
    disableKeyboardShortcuts={disableKeyboardShortcuts}
    />

    <SelectionList
    data={options}
    onSelectRow={(item) => onItemSelected?.(item)}
    initiallyFocusedItemKey={selectedItem?.value}
    shouldStopPropagation
    shouldShowTooltips={shouldShowTooltips}
    shouldUpdateFocusedIndex
    ListItem={RadioListItem}
    addBottomSafeAreaPadding={addBottomSafeAreaPadding}
    disableKeyboardShortcuts={disableKeyboardShortcuts}
    />

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

    We need to pass the value for alternateNumberOfSupportedLines as 2 through the component tree. This can be done in different ways, either by passing a Boolean value or a number. This will need to be passed from the WorkspaceEditCardLimitTypePage component to the ValueSelectionList component in order to pass it on here:

    <SelectionList
    data={options}
    onSelectRow={(item) => onItemSelected?.(item)}
    initiallyFocusedItemKey={selectedItem?.value}
    shouldStopPropagation
    shouldShowTooltips={shouldShowTooltips}
    shouldUpdateFocusedIndex
    ListItem={RadioListItem}
    addBottomSafeAreaPadding={addBottomSafeAreaPadding}
    disableKeyboardShortcuts={disableKeyboardShortcuts}
    />

    alternateNumberOfSupportedLines={alternateNumberOfSupportedLines}

    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.

  9. added
    Reviewing
    on Feb 13, 2026
  10. nkdengineer commented on Feb 13, 2026

    @nkdengineer
    Contributor

    @lakchote @dukenv0307 Raised a fix.

  11. IuliiaHerets commented on Feb 13, 2026

    @IuliiaHerets

    Issue is not repro anymore on Web, Android and iOS, v9.3.18-4

    Screen.Recording.2026-02-13.at.12.13.19.1.mp4
    smart.limit.2.1.MP4
    ex.card.andro.mp4
  12. removed
    DeployBlockerCash
    on Feb 13, 2026
  13. added
    Weekly
    Awaiting Payment
    and removed
    Hourly
    on Feb 16, 2026
  14. changed the title [-]Expensify Card - Smart limit description is truncated when selected[/-] [+][Due for payment 2026-02-23] Expensify Card - Smart limit description is truncated when selected[/+] on Feb 16, 2026
  15. removed
    Reviewing
    on Feb 16, 2026
  16. melvin-bot commented on Feb 16, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Feb 16, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.19-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-02-23. 🎊

  18. melvin-bot commented on Feb 16, 2026

    @melvin-bot

    @lakchote @johncschuster The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions