Refactor usages of useOnyx to use the App wrapper#64746
Refactor usages of useOnyx to use the App wrapper#64746luacmartins merged 8 commits intoExpensify:mainfrom
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@ishpaul777 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] |
|
@ishpaul777 Could you prioritise a review here? Thanks 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-07-03.at.5.20.39.PM.movAndroid: mWeb ChromeScreen.Recording.2025-07-03.at.6.46.50.PM.moviOS: HybridAppSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-07-03.at.03.23.55.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.16.Pro.-.2025-07-03.at.02.21.04.mp4MacOS: Chrome / SafariScreen.Recording.2025-07-03.at.2.06.15.AM.movMacOS: Desktop |
|
reviewing now! sorry for delay |
|
@ishpaul777 @luacmartins Updated the branch with |
|
ESLint failures are expected |
|
@luacmartins looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
See comment above |
|
✋ 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/luacmartins in version: 9.1.75-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.76-5 🚀
|
Explanation of Change
This PR refactors remaining
useOnyxs in the project to use the E/App wrapper and forbids usage of the OnyxuseOnyxfrom now on. It's a follow up of this PR.Slack: https://expensify.slack.com/archives/C05LX9D6E07/p1749519744150989
Fixed Issues
$ #63993
PROPOSAL:
Tests
General testing in the App:
Offline tests
N/A
QA Steps
Same as Tests.
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))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
Screen.Recording.2025-07-01.at.15.42.07-compressed.mov
Android: mWeb Chrome
Screen.Recording.2025-07-01.at.15.49.05-compressed.mov
iOS: Native
Screen.Recording.2025-07-01.at.15.52.57-compressed.mov
iOS: mWeb Safari
Screen.Recording.2025-07-01.at.15.57.55-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2025-07-01.at.16.01.18-compressed.mov
Screen.Recording.2025-07-01.at.16.04.01-compressed.mov
MacOS: Desktop
Screen.Recording.2025-07-01.at.16.07.59-compressed.mov