-
Notifications
You must be signed in to change notification settings - Fork 3.5k
refactor: isolates setWorkspaceTagEnabled from Onyx.connect data #70551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…x-connect/setWorkspaceTagEnabled-src-libs-actions-Policy-Tag.ts
|
@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-01.at.7.46.08.PM.mov |
|
✋ 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.23-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.23-3 🚀
|
Explanation of Change
This PR is part of a refactor to remove
Onyx.connectfrom thesrc/libs/actions/Policy/Tag.tsfile and replace it withuseOnyx.It isolates the
setWorkspaceTagEnabledfunction from theOnyx.connectdata.To ensure this refactor doesn't break anything, it adds automated tests to the
setWorkspaceTagEnabledfunction.Fixed Issues
This PR partially addresses these issues:
$ #69022
PROPOSAL:
Tests
Prerequisites:
Check if the tag has changed its status
Verify that no errors appear in the JS console
Offline tests
N/A Same as in the Tests section
QA Steps
Same as in the Tests section
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
Nagranie.z.ekranu.2025-09-15.o.14.20.34.mov