Skip to content

[Due for payment 2026-09-16] Android - Report-Skeleton loader briefly visible on expense created offline opened via card #100673

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.74-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: #97308
Email or phone of affected tester (no customers): ibellicotest+2766@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Motorola MotoG60 / Android 12 (Hybrid app)
App Component: Money Requests

Action Performed:

Prerequisite: Account has a workspace.

  1. Open the Expensify app.
  2. Open any workspace chat.
  3. Create a manual expense.
  4. Turn off internet connection.
  5. Create another manual expense.
  6. Tap on the card of the expense created offline on report preview.
  7. Note that before landing on the opened expense, skeleton loader and glitches are briefly experienced.

Expected Result:

After creating an expense while offline and navigating to it via card on report preview, user should automatically land on the expense RHP.

Actual Result:

Skeleton loader and glitches are briefly experienced after navigating to an expense created while offline via card on report preview.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7254633_1788910736909.Glitch.mp4

View all open jobs on GitHub

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

Issue OwnerCurrent Issue Owner: @huult

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 9, 2026
  2. applause-bot commented on Sep 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/d3f050c321b4a4b6e735cfce11e9f5f6c17331d923b1a60a19d9e6a78d9b45e3

  3. melvin-bot commented on Sep 9, 2026

    @melvin-bot

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

  4. melvin-bot commented on Sep 9, 2026

    @melvin-bot

    @MonilBhavsar @huult you have been assigned to this deploy blocker because you reviewed the offending PR: #97308

  5. melvin-bot commented on Sep 9, 2026

    @melvin-bot

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

  6. github-actions commented on Sep 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.
  7. huult commented on Sep 9, 2026

    @huult
    Contributor

    @wildan-m could you check this issue?

  8. MelvinBot commented on Sep 9, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #97308 - "Navigate to the clicked expense in a multi-expense report preview (v2)" by @wildan-m (High confidence)
    Related Issues: #100669 (same PR, same offline preview-press path, "It's not here" RHP), #91042 (issue the PR fixes), #97149 / #97158 / #97183 / #97184 (the v1 blockers that led to the revert in #97198)

    Recommendation: REVERT

    Two deploy blockers in 9.4.74-0 (this one and #100669) both land on the new offline preview-press path added by #97308, which is itself a re-land of #92546 after that version was reverted in #97198 following five blockers — the offline branch of this flow is not stable enough to ship, and reverting restores the previous single-navigation behavior with no other dependencies. If product prefers to keep the feature, the surgical alternative is described in the Root Cause section below, but it should land as a v3 with the offline path covered rather than as a hotfix on top of a second blocker.

    Assigned: @wildan-m (PR author), @MonilBhavsar and @huult (approving reviewers) from the causing PR
    Labels: No changes. DeployBlockerCash is correct and stays (App-side regression, and the issue is not reproducible in production). DeployBlocker was never applied, so there is nothing to remove.

    📋 Detailed Analysis

    Evidence

    Verification

    Affected files (all touched by #97308):

    • src/components/ReportActionItem/MoneyRequestReportPreview/index.tsx — +305 / -27 in the PR; owns the card press handler and the cascade.
    • src/hooks/useNavigateToTransactionThread.ts, src/libs/actions/TransactionThreadNavigation.ts, src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx — also modified by the PR.

    Confirmed the PR modifies these files (gh pr view 97308 --json files) and that the cascade code above is present on staging at ab2d498 but absent from the pre-PR version of the same function (visible in the PR diff, where the small-screen branch was a single Navigation.navigate(ROUTES.REPORT_WITH_ID...)).

    Screens the cascade passes through, and where they render loading states — these are pre-existing components that the new flow now walks through:

    The navigation cascade is the necessary cause either way; which of these two skeleton branches is on screen in the recording is medium confidence, since offline Android was not run as part of this investigation.

    Root Cause

    For an offline-created manual expense there is no transaction thread to open, so the press has to mint one and then walk two screens to get to it:

    1. Manual expense creation deliberately builds no optimistic transaction thread — useExpenseSubmission.ts#L212 hardcodes shouldGenerateTransactionThreadReport = false. So the optimistic IOU action carries no childReportID, and transaction.transactionThreadReportID is undefined.
    2. On press, resolveChildReportID therefore falls through to createTransactionThreadReport(...), which mints a client-side thread report and calls openReport with it. openReport's optimistic data sets isLoadingInitialReportActions: true for that report and only the success/failure updates clear it — neither can arrive while offline, because the request just sits in the queue.
    3. openTransactionFromPreview has an offline bail-out, but it is guarded by !isIOUActionLoaded. For an expense created in this session the optimistic IOU action is loaded, so the offline branch is skipped and navigateToExpense runs.
    4. navigateToExpense then pushes r/{iouReportID}, waits 180ms, and pushes the expense RHP. Both of those screens are in a "still loading" state that offline can never resolve, so their skeletons are visible for the whole cascade instead of being replaced by content the way they are online.

    Contrast with the row-press path inside the report, which is unaffected: useNavigateToTransactionThread.ts#L94-L102 navigates straight to SEARCH_REPORT with no intermediate report push and no timer, and shows no flash.

    If the feature is kept instead of reverted, the surgical fix is to stop entering the cascade when the thread has to be minted offline — i.e. in openTransactionFromPreview, when isOffline and resolveChildReportID had no pre-existing childReportID (no iouAction.childReportID and no transaction.transactionThreadReportID), fall back to openReportFromPreview(), the same way the pending-DELETE case already does a few lines above. That both removes the flash and avoids minting a client-side thread ID that the server will replace with its own once the queued RequestMoney flushes. Widening the skeleton gates instead (e.g. adding !isOffline to showReportActionsLoadingState) would touch loading logic shared by every report and is the riskier change to make under deploy pressure.

  9. wildan-m commented on Sep 9, 2026

    @wildan-m
    Contributor

    Same PR: #100688. On narrow layouts the press opened the parent report and pushed the expense 180ms later, so the report showed loading first. Both are pushed in the same tick now. Back still goes expense → report → chat.

    iOS simulator, expense created offline, then its card:

    100673-ios-fix-offline-expense-card-tap.mp4
  10. m-natarajan commented on Sep 9, 2026

    @m-natarajan

    Xiaomi Redmi Note 10 / Android 12
    App 9.4.74-2
    Passed

    Screenrecorder-2026-09-09-21-07-26-153.mp4
  11. MonilBhavsar commented on Sep 9, 2026

    @MonilBhavsar
    Contributor

    Amazing, thanks!

  12. added and removed
    ReviewingHas a PR in review
    on Sep 9, 2026
  13. changed the title [-]Android - Report-Skeleton loader briefly visible on expense created offline opened via card[/-] [+][Due for payment 2026-09-16] Android - Report-Skeleton loader briefly visible on expense created offline opened via card[/+] on Sep 9, 2026
  14. melvin-bot commented on Sep 9, 2026

    @melvin-bot

    @huult

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.74-2 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-16. 🎊

    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

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions