Repository navigation
Conversation
|
@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] |
|
Reviewing... |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c34576aaa
ℹ️ 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".
| }, | ||
| [reportID, oneTransactionThreadReportID], | ||
| ); | ||
| const [visibleReportActionsData] = useOnyx(ONYXKEYS.DERIVED.VISIBLE_REPORT_ACTIONS, {selector: visibleActionsSelector}); |
There was a problem hiding this comment.
@BartekObudzinski Why are we only hoisting CONCIERGE_REPORT_ID? There seem to be other candidates likes ONYXKEYS.DERIVED.VISIBLE_REPORT_ACTIONS. The parent already has reportID and oneTransactionThreadReportID available, so it could subscribe once and pass the data down, similar to reportAttributesDerived. Are we planning to do that one by one?
There was a problem hiding this comment.
CONCIERGE_REPORT_ID is a single scalar shared identically across all rows, so hoisting it collapses ~20 duplicate subscriptions into 1. The other candidates like DERIVED.VISIBLE_REPORT_ACTIONS are collection keys where each row needs its own reportID-specific slice, so they can't be hoisted the same way. We're tackling subscriptions incrementally, prioritizing the ones with the best cost/benefit ratio.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMonosnap.screencast.2026-04-13.13-31-38.mp4 |
Krishna2323
left a comment
There was a problem hiding this comment.
LGTM!
@BartekObudzinski please add [No QA] to the title.
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.59-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. This PR is a purely internal performance optimization — it hoists an Onyx subscription ( |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.59-4 🚀
|
Explanation of Change
conciergeReportIDwas previously subscribed viauseOnyxinsideOptionRowLHNData, meaning each visible LHN row created its own independent Onyx subscription to the same key. With ~20 rows visible, that was ~20 identical subscriptions. This PR hoists the single subscription toLHNOptionsListand passes the value down as a prop, reducing it to 1 subscription.NavigationTabBarwas subscribing touseReportAttributes()(which pullsDERIVED.REPORT_ATTRIBUTES, a key with ~12 Onyx dependencies) solely to callgetChatTabBrickRoad(). This PR moves that computation into theSidebarOrderedReportsContextProvider— it already holdsreportAttributesandorderedReportIDs— and exposeschatTabBrickRoadthrough the existing context.NavigationTabBarnow reads it from context with zero new subscriptions.Reassure shows no regression. React Profiler across 5 Pusher message cycles shows -6% commits and -5.4% total render duration on branch vs main.
Fixed Issues
$ #87631
PROPOSAL:
Tests
Offline 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari