Repository navigation
[Flat Nav R5.1b] Native bottom bar with Expenses, Reports and More - #106500
Conversation
|
|
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
80dc282 to
167ca23
Compare
167ca23 to
2511b69
Compare
… tab host crash and Search scroll-to-top
…fix two flat nav JSDoc comments
…enses or Reports shows Search before JS focuses it
d6dc1c6 to
bf5d331
Compare
… and regenerate bottom-tabs patch 007
# Conflicts: # src/libs/Navigation/AppNavigator/Navigators/TabNavigator.native.tsx
83ab37b to
33ec5e9
Compare
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🚧 JmillsExpensify has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33ec5e9a56
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| onClose={onClose} | ||
| onItemSelected={onClose} | ||
| onModalHide={onModalHide} | ||
| menuItems={menuItems} |
There was a problem hiding this comment.
Build the More menu with the compositional popover API
AGENTS.md requires CLEAN-REACT-PATTERNS-1, which explicitly covers new consumers of configuration-heavy components. This new menu encodes the fixed Accounting, Saved, Insights and Workspaces actions as PopoverMenuItem configurations and feeds the legacy menuItems API, adding another dependency on the monolithic menu schema instead of independently composable rows. Use the existing @components/PopoverMenu/v2 primitives with each fixed action declared in JSX rather than introducing another legacy configuration-driven consumer.
AGENTS.md reference: AGENTS.md:L7-L9
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
The v2 menu can only be opened by its Trigger: Content renders nothing until a trigger publishes the anchor, and that is internal to Trigger and SecondaryInteractionTrigger, which need a PressableWithFeedback. More is a native tab bar item with no RN pressable, so the menu opens from the tabPress event, which needs the controlled API. v2's Item also has no selected state, which this menu uses to highlight the current section.
| if (pendingSearchNavigation.current.isPending) { | ||
| pendingSearchNavigation.current.queuedSearchKey = searchKey; | ||
| return; | ||
| } |
There was a problem hiding this comment.
Honor a fresh tab press after leaving a pending Search
With flatNav enabled, starting on Home and tapping Reports → Home → Expenses before Search's next state event drops the final tap. This branch queues Expenses while the first navigation is still pending, but the state listener only replays queued requests when Search is focused. Since Home is now focused and the router deliberately swallows navigation to placeholder tabs, the queued request is discarded and the app stays on Home instead of opening Expenses. Restart navigation for a fresh press from another tab rather than discarding it with the earlier pending request.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed: a press made after leaving the pending Search for another tab now navigates right away instead of being queued. Added a test for Reports, Home, Expenses.
|
Wow this is looking pretty great! cc @Expensify/design the adhoc is below. |
|
@shawnborton Agreed on moving the Workspaces dot to the left icon, we'll fix this in R5.2 with the rest of the menu polish. |
|
@sumo-slonik, could you please fix the failing TS check? I'm working on the checklist in the meantime. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_native.mp4Android: mWeb ChromeiOS: HybridAppios_native.mp4iOS: mWeb SafariMacOS: Chrome / Safariweb_chrome.mp4 |
Krishna2323
left a comment
There was a problem hiding this comment.
LGTM!
NAB: On Android, the More sheet sometimes opens with a gap between its bottom and the screen edge, then jumps down.
Steps: open More and pick Workspaces, tap Inbox, then tap More again.
android_bug.mp4
|
@MelvinBot is the failing TS coming from this PR? |
|
Yes—the previous TS failure came from this PR’s new test fixture. The failed run reported TS2741 because That’s already corrected by commit The latest TS check is still running, so a green result isn’t confirmed yet. |
mountiny
left a comment
There was a problem hiding this comment.
Complex but did not find anything to call out for now, lets move it ahead
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.42-0 🚀
|
|
No help site update needed — the navigation changes remain behind the |
|
Deploy Blocker #107337 was identified to be related to this PR. |
|
Deploy Blocker #107339 was identified to be related to this PR. |
|
Could you please double check if this Deploy Blocker issue #107373 is not introduced by #106500. Unable to check as app crashes with these builds on mobile apps. |
|
Could you please double check if this Deploy Blocker issue #107431 is not introduced by #106500. Unable to check as app crashes with #106500 (comment) on mobile apps. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.5.42-2 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Flat Nav R5.1b, behind the
flatNavbeta, iOS and Android in a narrow layout.Also applies without the beta:
Not in this PR, added in #107108 (R5.1c), which is stacked on this one:
Known limitation: switching the beta at runtime remounts the tabs and can log a dev-only
SET_PARAMS ... was not handlederror from the existing first-visit effect of the Spend tab.Fixed Issues
$ #105631
PROPOSAL: N/A
Tests
Offline tests
Go offline with the beta on, repeat steps 3 and 4, and verify each screen opens from cached data.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari