-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Navigate to the clicked expense in a multi-expense report preview #92546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wildan-m
wants to merge
50
commits into
Expensify:main
Choose a base branch
from
wildan-m:wildan/91042-multi-expense-preview-per-item-nav
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
866d0b6
Navigate to clicked expense in multi-expense report preview and alway…
wildan-m 92f1af9
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 9f55fd6
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m d3d086e
Add unit tests for multi-expense preview transaction navigation
wildan-m cab5457
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 89b62ed
Merge remote-tracking branch 'upstream/main' into HEAD
wildan-m 5eaa24e
Show the primary action before the View button in the report preview
wildan-m 0ead53d
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m e46b769
Open the report below the pressed expense; single-expense reports ope…
wildan-m e408854
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 8dd5a27
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 73d3719
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m f04f96a
Open the pressed expense over the report in the wide RHP, not via the…
wildan-m f3b1226
Merge remote-tracking branch 'upstream/main' into HEAD
wildan-m 22a0f66
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m cfff64b
Open the pressed expense over the report's wide RHP after a short delay
wildan-m 16793ef
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m e383b44
Open the pressed expense with a single forward push on narrow layouts
wildan-m 30f3b95
Let the View button hug its content so a long primary label is not tr…
wildan-m fd46c13
Re-trigger CI (flaky TrackExpenseTest from main merge, unrelated to t…
wildan-m bfce6ee
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m d5d88d0
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m e2de5c0
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 2e04534
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m de10193
Keep the report in the stack on narrow and open the pressed expense a…
wildan-m 08dc97d
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m bfa7e91
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 37f1625
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 670a3fe
Fix iOS backward animation, offline dead tap, and blank uncached expense
wildan-m a71c3d3
Merge remote-tracking branch 'upstream/main' into HEAD
wildan-m 84dfff2
Open narrow expense as a single forward slide with the parent report …
wildan-m 5ab3727
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m f55f88a
Skip the parent-report splice on web to fix the mobile-web double-back
wildan-m 5bdf3b0
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m d7a2caf
Push the report then the expense on web so hard back and header back …
wildan-m e4cb936
Open the expense in an RHP over the report on mobile web
wildan-m e3f4901
Open the mobile-web expense RHP in the same tick as the report (no ca…
wildan-m 9ad3fff
Defer the mobile-web expense RHP by one frame so back stops on the re…
wildan-m eef7176
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 9ddff97
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 9ca40b5
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m c62bfc3
Drop the inert wide RHP width hint on the mobile-web expense open
wildan-m 3c5ad11
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 68444dd
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 764bbfe
Update ReportPreviewActionButton test for the View-alongside layout
wildan-m 13e582f
Guard the wide-layout delayed expense navigation against dismissal
wildan-m c90aef2
Defer the mobile-web expense RHP until the report settles (fix iOS Sa…
wildan-m ebbf494
Open the mobile-web expense directly over the chat (fix iOS Safari fr…
wildan-m ed5c45d
Merge remote-tracking branch 'upstream/main' into wildan/91042-multi-…
wildan-m 950904b
mWeb: keep report alive under the expense RHP so back returns to it
wildan-m File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a user taps an expense on a wide layout and then quickly closes the just-opened report RHP or navigates elsewhere before this 180 ms timer fires, the delayed callback still runs with the stale
reportRouteand opens the expense over whatever screen is active. This can unexpectedly reopen an expense after the user backed out; guard that the active route is still the report route (or cancel the timeout when the flow is dismissed) before navigating.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch — fixed in
13e582f4666. The wide-branch cascade now guards the delayed navigate onNavigation.isActiveRoute(reportRoute), so if the report's wide RHP is closed (or the user navigates away) during the 180ms delay, the pressed expense no longer reopens over the active screen. Added a regression test for the dismissal case.