Skip to content

[Due for payment 2026-09-24] Expensify Card - Submissions tab opens after clicking Enable approvals #98699

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.4.54-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #98004
Email or phone of affected tester (no customers): applausetester+ssndjois2jd1@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  • Log in with Expensifail account.
  • Set up workspace with Expensify Card feature.
  • Disable Approvals in Workflows settings.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Expensify Card.
  3. Click Issue card.
  4. Proceed to Choose a limit type.
  5. Click Enable approvals.

Expected Result:

App will land on Workflows > Approvals tab.

Actual Result:

App lands on Workflows > Submissions tab.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7233932_1786742107077.6.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7233932

Issue OwnerCurrent Issue Owner: @Krishna2323

Activity

  1. applause-bot commented on Aug 14, 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/8b1582ab565cb9aa211ee4f4aa40cc9385199dbce321d7e08500247fa4e01444

  2. added
    DeployBlockerCash
    Bug
    on Aug 14, 2026
  3. melvin-bot commented on Aug 14, 2026

    @melvin-bot

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

  4. melvin-bot commented on Aug 14, 2026

    @melvin-bot

    @JS00001 @situchan you have been assigned to this deploy blocker because you reviewed the offending PR: #98004

  5. melvin-bot commented on Aug 14, 2026

    @melvin-bot

    @Krishna2323 you have been assigned to this deploy blocker because you authored the offending PR: #98004

  6. github-actions commented on Aug 14, 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.
  7. melvin-bot commented on Aug 14, 2026

    @melvin-bot

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

  8. MelvinBot commented on Aug 14, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #98004 - "Convert Workflows page to a tabbed layout behind the rulesRevamp beta" by @Krishna2323 (High confidence)
    Related Issues: #95792 (the feature issue this PR implemented)

    Recommendation: ROLL FORWARD

    PR #98004 turned the Workflows page into a tabbed layout that defaults to the Submissions tab, and updated most "go to Approvals" callers to pass the new APPROVALS tab param — but it missed the two Expensify Card limit-type callers, which still link to the plain /workflows route and therefore land on Submissions. This is a trivial 2-line fix (add the APPROVALS tab arg), far safer than reverting a 322-line feature PR.

    Assigned: @Krishna2323 (PR author), @JS00001 and @situchan (approving reviewers) — already assigned by melvin-bot.
    Labels: No change. DeployBlockerCash is kept (App deploy is blocked by a frontend bug); no DeployBlocker label was present.

    📋 Detailed Analysis

    Evidence

    • The "Enable approvals" link in the Expensify Card → Issue card → limit-type step comes from the smartLimitDisabledDescription copy, which is fed a workspaceWorkflowsPageURL.
    • Both places that build that URL call ROUTES.WORKSPACE_WORKFLOWS.getRoute(policyID) without a tab argument:
    • PR Convert Workflows page to a tabbed layout behind the rulesRevamp beta #98004 introduced a tab argument to WORKSPACE_WORKFLOWS.getRoute and correctly updated the other approval-bound callers to pass CONST.TAB.WORKFLOWS.APPROVALS (DynamicReportChangeApproverPage.tsx, Search/SearchChangeApproverPage.tsx, useGettingStartedItems.ts), but did not touch either Expensify Card limit-type file — neither appears in the PR's file list.
    • Staging-only / new feature (behind the rulesRevamp beta), matching the report (Reproducible in staging: Yes; N/A in production). PR merged 2026-08-14 and is in the current Deploy Checklist #98677.

    Verification

    • Affected files (the two callers) were confirmed to build the link with getRoute(policyID) and no tab.
    • Confirmed via gh pr view 98004 --json files that neither LimitTypeStep.tsx nor DynamicExpensifyCardLimitTypePage.tsx was modified by the PR, so they still rely on the pre-revamp default behavior.
    • Confirmed the tabbed page's default-tab resolution lands on Submissions when no tab is supplied: WorkspaceWorkflowsPageRevamp.tsx#L113-L115 — routeTab = route.params?.tab (undefined here) and persistedTab falls back to WORKFLOWS_TAB.SUBMISSIONS, so requestedTab resolves to Submissions.

    Root Cause

    Before #98004, /workflows was a single stacked page where the Approvals section was always visible, so a plain link to /workflows was sufficient. #98004 converted it into tabs defaulting to Submissions and made "which tab" a route parameter (?tab=...). Every caller that intends to land the user on Approvals must now pass CONST.TAB.WORKFLOWS.APPROVALS. The two Expensify Card limit-type callers were not updated, so their "Enable approvals" link opens /workflows with no ?tab, and the page falls back to the default Submissions tab.

    Recommended fix (both files):

    const workspaceWorkflowsPageURL = `${environmentURL}/${ROUTES.WORKSPACE_WORKFLOWS.getRoute(policyID, CONST.TAB.WORKFLOWS.APPROVALS)}`;

    This mirrors exactly how #98004 already fixed the other approval-bound callers.

  9. Beamanator commented on Aug 16, 2026

    @Beamanator
    Contributor

    #98004 is on a beta, but the OP doesn't mention needing to be on a beta to experience the bug

    @Krishna2323 @situchan @JS00001 can y'all check if this is repro in staging even while not on the beta?

  10. 35 remaining items

  11. changed the title [-]Expensify Card - Submissions tab opens after clicking Enable approvals[/-] [+][Due for payment 2026-09-22] Expensify Card - Submissions tab opens after clicking Enable approvals[/+] on Sep 15, 2026
  12. melvin-bot commented on Sep 15, 2026

    @melvin-bot

    @Krishna2323 / @situchan

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.77-4 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-09-22. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

  13. added
    Reviewing
    Weekly
    Daily
    and removed
    Daily
    Reviewing
    Weekly
    on Sep 15, 2026
  14. changed the title [-][Due for payment 2026-09-22] Expensify Card - Submissions tab opens after clicking Enable approvals[/-] [+][Due for payment 2026-09-24] Expensify Card - Submissions tab opens after clicking Enable approvals[/+] on Sep 17, 2026
  15. melvin-bot commented on Sep 17, 2026

    @melvin-bot

    @Krishna2323 / @situchan

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.81-1 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-09-24. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

  16. added
    Reviewing
    Weekly
    and removed
    Daily
    on Sep 23, 2026
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