Add new read commands for the workspace profile and initial settings pages#42901
Add new read commands for the workspace profile and initial settings pages#42901MonilBhavsar merged 10 commits intomainfrom
Conversation
|
@fedirjh this is still on hold |
|
Still on hold |
|
@fedirjh this should be ready for your review now! Thanks |
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-06-21.at.15.57.46.mp4Android: mWeb ChromeCleanShot.2024-06-21.at.16.05.25.mp4iOS: NativeCleanShot.2024-06-21.at.15.39.10.mp4iOS: mWeb SafariCleanShot.2024-06-21.at.15.42.16.mp4MacOS: Chrome / SafariCleanShot.2024-06-21.at.13.59.08.mp4MacOS: DesktopCleanShot.2024-06-21.at.15.06.26.mp4 |
|
@mountiny Is it expected that when we open the policy profile page, 2 API calls will be made :
|
For testing steps, is it |
|
@fedirjh updated, it should be For now its expected there is also the OpenWorkspaceView, that will be handled in different PR |
|
@MonilBhavsar 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. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.2-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|

Details
In this PR, we are simply adding a new API call to
OpenPolicyProfilePageand its aliasOpenPolicyInitialPage. These are two endpoints for the 1:1:1 but in both, we are loading the policy data to make sure the policy settings/ feature options are shown correctly.The
OpenPolicyInitialPageis called in narrow view only, when the workspace settings options (features) are shown. If you then select theProfileoption, we also call theOpenPolicyProfilePage.In wide view, the
OpenPolicyInitialPageis never called and only theOpenPolicyProfilePageis going to be triggered as that is the default main page the user is navigated to when they open the workspace settingsFixed Issues
$ #41914
PROPOSAL:
Tests
To be tested with Auth and Web PR.
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
Screen.Recording.2024-06-02.at.22.27.19.mp4
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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
Tested in web as this is simple change
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop