Skip to content

Workspace chat - Add shipping detail shows wallet background instead of Inbox page #95720

Closed

Description

@applause-bot

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.4.32-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/63957131/folder/13176890/41237380/1554724302
Email or phone of affected tester (no customers): biruknew45+gjkgh5@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Web, android
App Component: Other

Action Performed:

Preconditions:
Admin issues physical card for himself

  1. Go to staging.new.expensify.com
  2. Go to Workspace chat
  3. Click on add shipping detail

Expected Result:

Clicking add shipping detail should not change the background to the wallet page and should remain the Inbox page.

Actual Result:

Clicking add shipping detail makes the background the wallet page instead of the Inbox page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7203875_1783608653399.bandicam_2026-07-09_17-45-27-388.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7203875

Issue OwnerCurrent Issue Owner: @suneox
Issue OwnerCurrent Issue Owner: @suneox

Activity

  1. added
    DeployBlockerCash
    Bug
    on Jul 9, 2026
  2. applause-bot commented on Jul 9, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/118ffbfb2768621f273cc65927ff1a445a6afe1977da962375cb686d6b4682e1

  3. melvin-bot commented on Jul 9, 2026

    @melvin-bot

    Triggered auto assignment to @mjasikowski (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Jul 9, 2026

    @melvin-bot

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

  5. github-actions commented on Jul 9, 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. MelvinBot commented on Jul 9, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    The Report_Card_Activate RHP (opened by Add shipping details in a report chat) has no valid central-pane mapping, so the RHP renders over whatever full-screen was already mounted (the Wallet/Settings page) instead of the report.

    When you tap the button, IssueCardMessage.tsx:76 navigates to ROUTES.REPORT_CARD_ACTIVATE. To decide which screen sits under an RHP, navigation calls getMatchingFullScreenRoute(). That function resolves the background either from an RHP_TO_* relation or by stripping a dynamic route suffix back to the report. REPORT_CARD_ACTIVATE is registered as a plain static route in config.ts:1511-1515 and appears in none of the RHP_TO_* relations — unlike its working sibling report RHPs (REPORT_DETAILS, REPORT_CHANGE_WORKSPACE, REPORT_SETTINGS), which are all dynamic routes. So getMatchingFullScreenRoute() returns undefined, linkTo skips the background swap, and the previous full-screen (Wallet) stays visible behind the panel.

    Why now (regression, staging-only): the report-scoped card-activate flow has existed since Oct 2025, but the sibling report RHPs were converted to dynamic routes in the recent dynamic-routes navigation migration (Expensify/App#94172, merged 2026-07-02, in this staging deploy). REPORT_CARD_ACTIVATE was left behind as a static route, which is why the background regressed on staging but not production.

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

    Give REPORT_CARD_ACTIVATE a valid background mapping, consistent with the dynamic-routes migration:

    • Preferred: convert REPORT_CARD_ACTIVATE to a dynamic route like its sibling report RHPs (REPORT_DETAILS / REPORT_CHANGE_WORKSPACE), so the underlying r/:reportID report central pane is resolved automatically. It was simply missed in Expensify/App#94172.
    • Alternative (smaller): add REPORT_CARD_ACTIVATE to the report/home RHP relation so getMatchingFullScreenRoute() maps it to the report central pane.
    Secondary bug found while investigating (should be fixed too)

    ActivatePhysicalCardPage.tsx:21 calls ROUTES.REPORT_WITH_ID.getRoute(cardID, reportID, reportActionID), but the signature is getRoute(reportID, reportActionID?, referrer?, backTo?). cardID is passed where reportID is expected, so navigateBackTo becomes a garbage URL (r/<cardID>/<reportID>...) pointing at a non-existent report. This is a long-standing bug (since Expensify/App#60290, Oct 2025), not the cause of the wallet background, but it breaks the RHP's back/return-to-report and should be corrected to getRoute(reportID, reportActionID) in the same fix.

    Also note ActivatePhysicalCardPageBase.tsx:61-70: the shared base auto-goBacks to SETTINGS_WALLET_DOMAIN_CARD (a Wallet route) once the card state is OPEN, ignoring navigateBackTo. For the report caller this can also pull navigation into the Wallet tab and is worth verifying alongside the primary fix.

    Investigation details & evidence chain
    1. Button → IssueCardMessage.tsx:76 Navigation.navigate(ROUTES.REPORT_CARD_ACTIVATE.getRoute(...)).
    2. linkTo calls getMatchingFullScreenRoute(REPORT_CARD_ACTIVATE) in getAdaptedStateFromPath.ts: no backTo, absent from every RHP_TO_* relation, and static (no dynamic suffix) → returns undefined.
    3. With no match, linkTo/index.ts skips the full-screen swap, so the current Wallet full-screen remains under the RHP.
    4. Sibling report RHPs are dynamic (config.ts:1504-1520); REPORT_CARD_ACTIVATE is not.

    Confidence: High — code-verified end to end. Not disproven by an alternative (a deep-link/refresh would recover via getDefaultFullScreenRoute since reportID is in params, which matches this being an in-app linkTo-only, staging-only regression). A quick repro from a report chat would confirm which path (missing mapping vs. base-page auto-goBack) the tester hit.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/95720) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  7. mjasikowski commented on Jul 9, 2026

    @mjasikowski
    Contributor
  8. huult commented on Jul 9, 2026

    @huult
    Contributor

    @mjasikowski I’ll check it tomorrow as soon as I can

  9. huult commented on Jul 10, 2026

    @huult
    Contributor

    Checking...

  10. huult commented on Jul 10, 2026

    @huult
    Contributor

    Since this issue is related to the dynamic routes PR, I'd like to get @collectioneur's input on the best approach. @collectioneur, could you please review Melvin's proposal? Do you think we should update the navigation utils, or would it be better to migrate REPORT_CARD_ACTIVATE to a dynamic route instead?

  11. 7 remaining items

  12. huult commented on Jul 10, 2026

    @huult
    Contributor

    I've opened a draft PR to discuss the approach with @collectioneur: https://github.com/Expensify/App/compare/main...huult:App:95720-test?expand=1.

    I'll do some more testing and let you know when it's ready for review.

  13. huult commented on Jul 13, 2026

    @huult
  14. MelvinBot commented on Jul 13, 2026

    @MelvinBot
    Contributor

    ⚠️ Something went wrong. This may be a transient issue — try again. If it persists, check status.anthropic.com.

    Run details

  15. added
    Reviewing
    Weekly
    and removed
    Daily
    on Jul 13, 2026
  16. huult commented on Jul 13, 2026

    @huult
    Contributor

    The PR is up

  17. melvin-bot commented on Jul 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  18. huult commented on Jul 23, 2026

    @huult
    Contributor
    Screen.Recording.2026-07-23.at.09.35.42.mov

    This issue has been fixed, and we can close it. cc @mjasikowski @suneox

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

Metadata

Metadata

Labels

BugEngineeringReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions