Skip to content

[Due for payment 2026-10-28] Android & iOS - Distance - Reuse route page is blank briefly when opened #103276

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.5.4-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: #102258
Email or phone of affected tester (no customers): jsoidjndoiniodnsjojd@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: iPhone 17 Pro Max / iOS 27.0.1
App Component: Money Requests

Action Performed:

Precondition:

  • User has created a map distance expense.
  1. Launch Expensify app.
  2. Go to workspace chat.
  3. Tap + > Track distance > Map.
  4. Tap Reuse route.

Expected Result:

Reuse route page will be shown immediately.

Actual Result:

Reuse route page is blank briefly when opened.
This issue is more noticeable on iOS>

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7279498_1791330126843.ScreenRecording_10-07-2026_07-39-11_1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @Pujan92

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Oct 7, 2026
  2. melvin-bot commented on Oct 7, 2026

    @melvin-bot

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

  3. melvin-bot commented on Oct 7, 2026

    @melvin-bot

    @Gonals @Pujan92 you have been assigned to this deploy blocker because you reviewed the offending PR: #102258

  4. melvin-bot commented on Oct 7, 2026

    @melvin-bot

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

  5. melvin-bot commented on Oct 7, 2026

    @melvin-bot

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

  6. github-actions commented on Oct 7, 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. MelvinBot commented on Oct 7, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: [Payment due @Pujan92] Add Reuse route to the distance creation flow by ShridharGoel (high confidence). This PR added the Reuse route page.

    Root cause: The page renders null until the screen slide-in animation ends. During the animation, only the header shows. This hides the hint text, the search box, and even the loading skeleton. See IOURequestStepReuseRoute.tsx:184-187.

    Recommendation: Demote and fix forward. Don't revert.

    • The blank lasts at most about 1 second on a new feature. Then the page works normally.
    • Reverting would undo 42 files, including Onyx keys, API types, navigation, and 11 language files.

    Fix (small):

    1. Remove the if (!didScreenTransitionEnd) return null; block at lines 185-187.
    2. Show the skeleton during the animation. Change line 201 to shouldShowLoadingPlaceholder={!didScreenTransitionEnd || (!!isLoadingReusableDistanceRoutes && routes.length === 0)}.
    Investigation details

    Why only Android and iOS, and worse on iOS

    • didScreenTransitionEnd starts as false (ScreenWrapper/index.tsx:132).
    • It becomes true on the navigation transitionEnd event, or after a fallback timer (ScreenWrapper/index.tsx:214-229). The timer is SCREEN_TRANSITION_END_TIMEOUT: 1000 ms (CONST/index.ts:376).
    • Native apps play a real slide-in animation, so the content stays empty for its full length. iOS has a longer animation and sometimes never sends transitionEnd, so the page can stay blank until the 1000 ms timer fires.
    • StepScreenWrapper passes the flag straight through (StepScreenWrapper.tsx:79-91).

    Alternatives ruled out

    • Onyx loading: the page already has a skeleton for loading (line 201-202). It never shows during the animation because the early return null runs first.
    • InteractionManager and SelectionList first render: not involved.

    Precedent for the fix

    Deploy checklist: The PR is on Deploy Checklist: New Expensify 2026-10-06. It merged 2026-10-06 11:32 UTC.


    Next Steps: Reply with @MelvinBot implement this to create a draft PR, or @MelvinBot <your feedback> to refine this analysis.


    view run

  8. 2 remaining items

  9. added
    Daily
    and removed
    Hourly
    on Oct 7, 2026
  10. ShridharGoel commented on Oct 11, 2026

    @ShridharGoel
    Contributor

    FIx is in review

  11. melvin-bot commented on Oct 14, 2026

    @melvin-bot

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

  12. added
    Reviewing
    on Oct 15, 2026
  13. m-natarajan commented on Oct 21, 2026

    @m-natarajan

    Not repro iPhone 17 Pro Max / iOS 27.0.1 v9.5.15-1

    ScreenRecording_10-21-2026.21-37-37_1.1.MP4
  14. removed
    Reviewing
    on Oct 21, 2026
  15. changed the title [-]Android & iOS - Distance - Reuse route page is blank briefly when opened[/-] [+][Due for payment 2026-10-28] Android & iOS - Distance - Reuse route page is blank briefly when opened[/+] on Oct 21, 2026
  16. melvin-bot commented on Oct 21, 2026

    @melvin-bot

    @Pujan92

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.15-3 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-10-28. 🎊

    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]

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

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions