remove Onyx.connect for POLICY key in OptionsListUtils part 1#79320
remove Onyx.connect for POLICY key in OptionsListUtils part 1#79320danieldoglas merged 3 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 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] |
|
@DylanDylann Please review this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02697cd19c
ℹ️ 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".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
| * Get the option for a given report. | ||
| */ | ||
| function getReportOption(participant: Participant, reportAttributesDerived?: ReportAttributesDerivedValue['reports'], reportDrafts?: OnyxCollection<Report>): OptionData { | ||
| function getReportOption( |
There was a problem hiding this comment.
Comment to add this PR to K2s
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-01-12.at.17.39.24.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
The failed test happens on main (not relating to our changes) |
|
Product review not required. Removing myself and unsubscribing |
|
@dukenv0307 Could you merge main? |
|
@danieldoglas all yours |
|
✋ 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/danieldoglas in version: 9.3.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.3-8 🚀
|
Explanation of Change
Refactor the function
getReportOptionto accept policy from useOnyx instead of using allPolicies from Onyx.connectFixed Issues
$ #66377
PROPOSAL:
Tests
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
Screen.Recording.2026-01-12.at.10.44.44.mov
Android: mWeb Chrome
Screen.Recording.2026-01-12.at.10.35.15.mov
iOS: Native
Screen.Recording.2026-01-12.at.10.46.21.mov
iOS: mWeb Safari
Screen.Recording.2026-01-12.at.10.35.59.mov
MacOS: Chrome / Safari
Screen.Recording.2026-01-12.at.10.29.31.mov