Repository navigation
Conversation
…coped subscriptions
|
@codex review |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ 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". |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ 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". |
dylanexpensify
left a comment
There was a problem hiding this comment.
Performance related, but from a product aspect, looks good 👍
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 Gonals 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/Gonals in version: 9.4.77-0 🚀
|
|
🤖 No help site changes are required for this PR. I did not create a draft docs PR. This is an internal Onyx subscription refactor with no user-facing change. Nothing in Why I reached that conclusionWhat the PR changes: it deletes
The rest of the diff is test coverage. Docs criteria it fails:
Docs search: I searched The existing categories and tags articles — for example Because there is no docs change to make, there is no help site PR to link, label view run · no recording available |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.4.77-4 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
OnyxListItemProvidermounts atsrc/App.tsx:103and never unmounts, so every context it composeskeeps an Onyx subscription open for the whole session. Two of them subscribed to a collection root with
no selector:
POLICY_CATEGORIESandPOLICY_TAGS. A collection-root subscription runsmultiGetoverevery member on subscribe and rebuilds the whole collection object on every write to any member.
Only three call sites used them, and all three immediately indexed down to one policy. They now read
that one member key directly:
MoneyRequestView.tsx:273readsPOLICY_CATEGORIES${policyID}MoneyRequestView.tsx:275readsPOLICY_TAGS${targetPolicyID}IOURequestStepConfirmation.tsx:221readsPOLICY_CATEGORIES${policyID}, which let theuseMemoaround it collapse into a ternary
With the last consumers gone, both providers and their exported hooks are deleted.
No behaviour change. Same data, read from one key instead of all of them.
Fixed Issues
$ #100808
PROPOSAL:
Tests
Test 1: Moving an expense picks up the target workspace's tags
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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.mov
Android: mWeb Chrome
android.web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios.web.mov
MacOS: Chrome / Safari
web.mov