[CP Staging] Fix workspace change logic#61667
Conversation
|
@mananjadhav 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/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@luacmartins we shouldn't be seeing change workspace when a report is
|
|
Yea, admins can see it until the report is exported |
Should we edit step 7 in the tests to reflect this? Or maybe I'm misinterpreting something? |
|
Admins should only see the option if the submitter is also a member of the other workspace you wanna change the report to. So step 7 is still correct, since the submitter shouldn't be a member of the other workspace at that point |
|
@arosiclair 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] |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ogic [CP Staging] Fix workspace change logic (cherry picked from commit 3db7396) (cherry-picked to staging by yuwenmemon)
|
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 9.1.43-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
Hello @luacmartins @srikarparsi based on step 7, as Admin are we shouldn't be seeing
Screen.Recording.2025-05-09.at.11.44.24.AM.mp4 |
|
🚀 Cherry-picked to staging by https://github.com/yuwenmemon in version: 9.1.43-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.44-8 🚀
|










Explanation of Change
Adds a condition to prevent showing the
Change workspaceoption to non-admins if the report is not open or processing. Mirroring this check in the API.Fixed Issues
$ #61649
Tests
Pre-conditions:
Change workspaceoptionChange workspaceoptionChange workspaceoptionChange workspaceoptionOffline 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
Screen.Recording.2025-05-08.at.8.21.25.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop