Defer SearchAutocompleteList render in SearchRouter on native mobile until navigation triggers#83607
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
fb9ace7 to
26f8714
Compare
|
Codecov is wrong. The only change in the skeleton is the |
SearchAutocompleteList after navigation triggersSearchAutocompleteList after navigation triggers
SearchAutocompleteList after navigation triggersSearchAutocompleteList render in SearchRouter until navigation triggers
SearchAutocompleteList render in SearchRouter until navigation triggersSearchAutocompleteList render in SearchRouter on native mobile until navigation triggers
|
@aimane-chnaif 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: Didn't find any major issues. Already looking forward to the next diff. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppbefore: Screen.Recording.2026-02-28.at.8.59.24.am.movafter: Screen.Recording.2026-02-28.at.8.54.59.am.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-02-28.at.8.56.00.am.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
Can we have performance measurement on native?
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d36992f19
ℹ️ 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".
JmillsExpensify
left a comment
There was a problem hiding this comment.
Testing steps look good and in line with intended product behavior.
Will add one tomorrow! |
|
I added a new telemetry span ( The gain based on this metric is ~218.20 ms This branch: ~531.00 ms A few example runsDuration (ms)
Main: ~749.20 ms A few example runsDuration (ms)
|
|
@aimane-chnaif can you please complete the review |
|
@JakubKorytko please fix conflict |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
Conflicts fixed! @aimane-chnaif |
aimane-chnaif
left a comment
There was a problem hiding this comment.
#83607 (comment)
Otherwise looks good.
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
|
🚧 @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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.3.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.33-5 🚀
|
Explanation of Change
The main problem with
SearchAutocompleteListis that it only loads the data on the initial render. This seems OK at first, but it disables the skeleton in subsequent renders. Furthermore, the skeleton is positioned too low in the tree, meaning that all the logic is fired at once, before RHP has even begun to render.Changed that in this PR and it leads to a persistent smooth navigation.
Fixed Issues
$ #79353
PROPOSAL: N/A
Tests
[Native mobile]
tag:,category:,from:,currency:,type:,status:) and verify suggestions appearOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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.mp4
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari