refactor: isolate setPolicyTagsRequired from Onyx.connect data#72448
Conversation
Codecov Report❌ Patch coverage is
... and 1268 files with indirect coverage changes 🚀 New features to boost your workflow:
|
dariusz-biela
left a comment
There was a problem hiding this comment.
you should also apply #72437 comments here
|
@shubham1206agra 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] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-10-19.at.11.51.37.PM.mov |
|
@Skalakid it looks like there are some conflicts |
…nnect/setPolicyRequiresTag-src-libs-actions-Policy-Tag.ts
2d536c9 to
6223810
Compare
|
@tgolen fixed! |
|
It looks like ESLint is failing because of deprecated
|
|
Sorry about that. My intention in marking that as deprecated was to prevent new usages from being added, but in so doing I underestimated the disruption to other open PRs from existing usgage. So I created #73142 to suppress lint on all existing usages. You can fix lint here by merging main |
…nnect/setPolicyRequiresTag-src-libs-actions-Policy-Tag.ts
|
@tgolen I merged the latest main, so it should be fine now |
|
✋ 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/tgolen in version: 9.2.37-1 🚀
|
|
🚀 Deployed to production by https://github.com/blimpich in version: 9.2.37-8 🚀
|
Explanation of Change
This PR is part of a refactor to remove Onyx.connect from the
src/libs/actions/Policy/Tag.tsfile and replace it with useOnyx.It isolates the
setPolicyTagsRequiredfunction from the Onyx.connect data.To ensure this refactor doesn't break anything, it adds automated tests to the
setPolicyTagsRequiredfunction.Fixed Issues
$ #69022
PROPOSAL:
Tests
Learn moreand download example csv of independent multilevel tagsOffline tests
Same as Tests
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))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
web2.mov
MacOS: Desktop