You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-01-05] [$250] Reports - After going to Reports > Expenses offline, app auto opens Approve when online #76622
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 9.2.71-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#75704 Email or phone of affected tester (no customers):sjdoisjdonisjdsoij@gmail.com Issue reported by: Applause Internal Team Device used: Mac 26.1 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Log in with a new account.
Do not create workspace. Do not go to Reports tab.
Go offline.
Go to Workspaces tab and create a workspace.
Go to Reports.
Go to a different tab on Reports (eg, Expenses or Reports).
Please re-state the problem that we are trying to solve in this issue.
Reports - After going to Reports > Expenses offline, app auto opens Approve when online
What is the root cause of that problem?
The useSuggestedSearchDefaultNavigation hook auto-navigates to the default actionable search tab (Approve or Submit) whenever the skeleton loading state transitions from showing to hidden. However, the current condition only checks if the user is already on the default tab, but doesn't account for when the user has intentionally navigated to a different tab
The condition similarSearchHash === defaultMenuItem.similarSearchHash evaluates to false because the user is on Expenses (not Approve), so the hook navigates to Approve, overriding the user selection
What changes do you think we should make in order to solve the problem?
We should skip the auto-navigation if the user is already viewing any search tab
So when user going online from offline, the displayed skeleton will be displayed and will reset the search default menu item,
What changes do you think we should make in order to solve the problem?
We could disable displaying the skeleton when the user is already in search page and when sidebar already displayed. We could add hasBeenDisplayed useRef and use it on shouldShowSuggestedSearchSkeleton:
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
changed the title [-]Reports - After going to Reports > Expenses offline, app auto opens Approve when online[/-][+][Due for payment 2026-01-05] [$250] Reports - After going to Reports > Expenses offline, app auto opens Approve when online[/+]on Jan 5, 2026
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
melvin-bot commentedon Dec 3, 2025
Triggered auto assignment to @lydiabarclay (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.nyomanjyotisa commentedon Dec 3, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - After going to Reports > Expenses offline, app auto opens Approve when online
What is the root cause of that problem?
The
useSuggestedSearchDefaultNavigationhook auto-navigates to the default actionable search tab (Approve or Submit) whenever the skeleton loading state transitions from showing to hidden. However, the current condition only checks if the user is already on the default tab, but doesn't account for when the user has intentionally navigated to a different tabApp/src/hooks/useSuggestedSearchDefaultNavigation.ts
Lines 41 to 49 in 3767fe2
The condition
similarSearchHash === defaultMenuItem.similarSearchHashevaluates tofalsebecause the user is on Expenses (not Approve), so the hook navigates to Approve, overriding the user selectionWhat changes do you think we should make in order to solve the problem?
We should skip the auto-navigation if the user is already viewing any search tab
App/src/hooks/useSuggestedSearchDefaultNavigation.ts
Lines 43 to 45 in 3767fe2
What alternative solutions did you explore? (Optional)
None
melvin-bot commentedon Dec 4, 2025
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.
melvin-bot commentedon Dec 4, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk (
External)tsa321 commentedon Dec 8, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-12-08 02:31:32 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
On report after going online from offline, sidebar tab changes to
approveWhat is the root cause of that problem?
In this PR we add loading skeleton on the sidebar when workspace BE data is not ready yet:
App/src/hooks/useSearchTypeMenuSections.ts
Line 119 in 41ad0a9
even optimistic workspace data is not enough. The workspace data must be from BE based on:
App/src/hooks/useSearchTypeMenuSections.ts
Lines 80 to 84 in 41ad0a9
So when user going online from offline, the displayed skeleton will be displayed and will reset the search default menu item,
What changes do you think we should make in order to solve the problem?
We could disable displaying the skeleton when the user is already in search page and when sidebar already displayed. We could add
hasBeenDisplayeduseRef and use it onshouldShowSuggestedSearchSkeleton:What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
brunovjk commentedon Dec 8, 2025
It's on my list, I'll review it in a moment.
10 remaining items
melvin-bot commentedon Jan 3, 2026
This issue has not been updated in over 15 days. @blimpich, @nyomanjyotisa, @brunovjk, @lydiabarclay eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
[-]Reports - After going to Reports > Expenses offline, app auto opens Approve when online[/-][+][Due for payment 2026-01-05] [$250] Reports - After going to Reports > Expenses offline, app auto opens Approve when online[/+]melvin-bot commentedon Jan 5, 2026
lydiabarclay commentedon Jan 5, 2026
Payment Summary
Contributor: @nyomanjyotisa paid $250 via Upwork
Contributor+: @brunovjk due $250 via NewDot
✅ Regression test filed
nyomanjyotisa commentedon Jan 6, 2026
Thanks! Offer accepted
brunovjk commentedon Jan 6, 2026
Requested :D
twisterdotcom commentedon Jan 6, 2026
@brunovjk has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-3ed1-a964-91e8-ff68a6f657c4