Remove Onyx.connect() key ONYXKEYS.COLLECTION.REPORT_ACTIONS in src/libs/OptionsListUtils.ts - part 5 - #92330
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@DylanDylann 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] |
grgia
left a comment
There was a problem hiding this comment.
no code blockers, building test
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Let's wait until #92308 is merged |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b618c6785
ℹ️ 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".
| participantReportDraft, | ||
| undefined, | ||
| undefined, | ||
| sortedActions, |
There was a problem hiding this comment.
Add sortedActions to memo dependencies
When the confirmation screen is already mounted and useSortedActions() later publishes updated report actions (for example after a report preview/expense action changes while the user is on this step), this memoized participant list keeps using the old sortedActions value because it is not in the dependency array below. That leaves the participant option/preview text stale until some unrelated dependency changes or the screen remounts, which defeats the new data path being passed into getReportOption.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Add sortedActions to deps
@truph01 Could you pass an undefined value and add a comment noting that we've already verified this? |
@DylanDylann I added comment via 765b731 |
|
@DylanDylann All yours! |
|
@truph01 Conflict again |
|
@DylanDylann All good now |
|
🚧 grgia 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/grgia in version: 9.4.78-0 🚀
|
|
🤖 No help site changes required. I did not create a docs PR. This PR is an internal refactor with no user-facing change, so nothing under What changed:
Why no docs update:
Help site articles describe how to submit an expense and pick a workspace or recipient. That behavior is identical before and after this PR, so the existing articles remain accurate. @truph01, no help site PR was needed here, so there is nothing for you to review or mark view run · no recording available |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.4.78-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This is the 5th PR in the migration of
Onyx.connect()forONYXKEYS.COLLECTION.REPORT_ACTIONSinOptionsListUtils. It refactors:Fixed Issues
$ #66381
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include ""[No QA].""
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari