Skip to content

[Due for payment 2026-09-03] Tags-Android-Click "Switch Tag Levels" Import spreadsheet modal is not displayed #90463

Closed

Description

@mitarachim

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.73-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/TR-28526/folder/13176676/41236544/1410970339?sort=%2Bidentifier
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: Google Pixel 7a - Android 16
App Component: Workspace Settings

Action Performed:

Preconditions:

*Execute in Web:

  • Create a new account
  • Create 2 collect workspace
  • Go to OD and make Individual Workspace as default

*Execute in Android

  • Go back ND
  1. Open https://staging.new.expensify.com/
  2. Go to 1 of workspace
  3. Enable Tags
  4. Add 1 tag
  5. Tap on 'More'
  6. Tap on 'Import spreadsheet'
  7. Tap on the "Multi-level of tags"
  8. Tap on the "Upgrade" button
  9. Tap on the "Got it Thanks" button
  10. Tap on the "Switch Tag Levels" button

Expected Result:

the Import spreadsheet modal displayed with a "Choose file" button

Actual Result:

the Import spreadsheet modal is not displayed

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7152636_1778666537682.Android.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on May 13, 2026
  2. melvin-bot commented on May 13, 2026

    @melvin-bot

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

  3. melvin-bot commented on May 13, 2026

    @melvin-bot

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

  4. github-actions commented on May 13, 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.
  5. MelvinBot commented on May 13, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    After tapping "Switch Tag Levels", the confirm modal sets isVisible=false and waits for onModalHide to fire before resolving the promise and navigating to the import spreadsheet page. On Android, onModalHide is called exclusively from onCloseCallBack — which fires only after the Container's Reanimated exit animation completes via scheduleOnRN(onCloseCallBack).

    PR #90358 (merged May 13) refactored ReanimatedModal and introduced two changes that affect this callback chain on Android:

    1. onCloseCallBack lost its useCallback wrapper — it is now recreated every render. The Container's Exiting animation is memoized with onCloseCallBack as a dependency, so it also recreates every render. The worklet closure that calls scheduleOnRN(onCloseCallBack) now captures a potentially stale or unstable function reference on the UI thread.

    2. The Container now unmounts one render earlier — the old code used an intermediate isVisibleState that lagged the isVisible prop by one render, giving Reanimated an extra render cycle to prepare the exit animation. The new code renders the Container directly with {isVisible && containerView}, so the Container is removed from the tree in the same render where isVisible flips to false. On Android (where LayoutAnimationConfig skipExiting is true), this can prevent the exit animation callback from firing entirely.

    When onCloseCallBack doesn't fire on Android, onModalHide is never called → handleModalHide never runs → closeModal never resolves the promise → the startMultiLevelTagImportFlow code after await showConfirmModal(...) never executes → Navigation.navigate to the import spreadsheet page is never called.

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

    Revert the two behavioral changes from PR #90358 that affect the Android exit animation callback:

    1. Restore useCallback on onCloseCallBack (and onOpenCallBack) in ReanimatedModal/index.tsx so the Container's Exiting animation has a stable function reference for the worklet.

    2. Restore the one-render lag for Container unmount on Android — either bring back isVisibleState or add an equivalent mechanism so the Container isn't removed from the render tree in the same render where isVisible flips to false. This gives Reanimated time to register and play the exit animation before the component unmounts.

    The rest of the React Compiler compliance changes from PR #90358 (derived isTransitioning, useEffectEvent for lifecycle callbacks, etc.) can remain.

    What alternative solutions did you explore? (Optional)

    • Add a fallback onModalHide call on Android when the exit animation doesn't fire: e.g., in a useEffect cleanup that detects when isTransitioning changes but onCloseCallBack was never invoked. This is more fragile and adds complexity.
    • The react-native-screens upgrade (PR [No QA] chore: upgrade react-native-screens to 4.25.0 #89199, 4.15.4 → 4.25.0) was also investigated as a potential contributor, but the code trace points squarely at the modal callback chain rather than screen transition behavior.

    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.

  6. IuliiaHerets commented on May 13, 2026

    @IuliiaHerets

    Issue is not reproducible on Samsung S23FE/ Android 16 in v9.3.73-4

    90463.mp4
  7. 51 remaining items

  8. changed the title [-]Tags-Android-Click "Switch Tag Levels" Import spreadsheet modal is not displayed[/-] [+][Due for payment 2026-09-03] Tags-Android-Click "Switch Tag Levels" Import spreadsheet modal is not displayed[/+] on Sep 3, 2026
  9. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  10. mallenexpensify commented on Sep 3, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @dmkt9 due $125 via Upwork

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022095621056770199053

  11. dmkt9 commented on Sep 4, 2026

    @dmkt9
    Contributor

    @dmkt9 can you please accept the job below? Please reply here and tag me once you have.

    @mallenexpensify Thanks! I noticed that the job amount is $250, so I've submitted a $125 payment request

  12. mallenexpensify commented on Sep 4, 2026

    @mallenexpensify
    Contributor

    Thx @dmkt9 , I updated the price in Upwork but once I clicked outside the box to scroll down, it reset to $250 :rafefist: so I overpaid. I requested a refund for half, please accept it and confirm here once you have. Thx

  13. dmkt9 commented on Sep 7, 2026

    @dmkt9
    Contributor

    Thx @dmkt9 , I updated the price in Upwork but once I clicked outside the box to scroll down, it reset to $250 :rafefist: so I overpaid. I requested a refund for half, please accept it and confirm here once you have. Thx

    @mallenexpensify Sure. Can you resend it? I don't see it in my list anymore.

  14. mallenexpensify commented on Sep 7, 2026

    @mallenexpensify
    Contributor

    @dmkt9 I tried again with a regund request for $125, let me know if it doesn't work. Thx
    https://www.upwork.com/jobs/~022095621056770199053

  15. dmkt9 commented on Sep 8, 2026

    @dmkt9
    Contributor

    @dmkt9 I tried again with a regund request for $125, let me know if it doesn't work. Thx

    @mallenexpensify I've accepted the refund request

  16. mallenexpensify commented on Sep 8, 2026

    @mallenexpensify
    Contributor

    Thanks @dmkt9 confirming refund was received.

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringNot a priority

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions