-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add new read commands for the workspace profile and initial settings pages - v2 #44902
Conversation
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@dukenv0307 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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-07-05.at.23.29.51.movAndroid: mWeb ChromeScreen.Recording.2024-07-05.at.22.55.52.moviOS: NativeScreen.Recording.2024-07-05.at.22.44.27.moviOS: mWeb SafariScreen.Recording.2024-07-05.at.22.46.29.movMacOS: Chrome / Safarichrome.mp4Screen.Recording.2024-07-05.at.22.33.27.movMacOS: DesktopScreen.Recording.2024-07-05.at.22.27.11.mov |
@mountiny This is not related to this PR but we're having duplicate API call on workspace pages: Screen.Recording.2024-07-05.at.22.20.18.mov |
@hungvu193 The issue is connected to react strict mode, not limited only to workspace pages; all requests in dev are duplicated. |
Oh dang! I forgot we enabled strict mode so component will re-render few more times. Thanks for the information! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
// When we create a new workspaces, the policy prop will not be set on the first render. Therefore, we have to delay rendering until it has been set in Onyx. | ||
if (policy === undefined) { | ||
return null; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one!
This fixes issue where we have a little delay after creating workspace 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick work
@mountiny can you please assign me to the issue to handle the payment? Thank you 😄 |
✋ 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/mountiny in version: 9.0.5-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.5-2 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
Details
This is a revised version of PR #42901 :
OpenPolicyProfilePage
and its aliasOpenPolicyInitialPage
. These are two endpoints for the1:1:1
but in both, we are loading the policy data to make sure the policy settings/ feature options are shown correctly.OpenPolicyInitialPage
is called in narrow view only when the workspace settings options (features) are shown. If you then select the Profile option, we also call theOpenPolicyProfilePage
.OpenPolicyInitialPage
is never called and only theOpenPolicyProfilePage
is going to be triggered as that is the default main page the user is navigated to when they open the workspace settingsFixed Issues
$ #41914
$ #44601
#41914 (comment)
Tests
Test 1 :
OpenPolicyProfilePage
API read call was doneOpenWorkspaceMembersPage
API call was doneOpenPolicyInitialPage
API call was madeTest 2 :
Offline tests
N/A
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
CleanShot.2024-07-05.at.15.31.02.mp4
Android: mWeb Chrome
CleanShot.2024-07-05.at.15.34.33.mp4
iOS: Native
CleanShot.2024-07-05.at.15.21.26.mp4
iOS: mWeb Safari
CleanShot.2024-07-05.at.15.26.11.mp4
MacOS: Chrome / Safari
CleanShot.2024-07-05.at.14.43.32.mp4
MacOS: Desktop
CleanShot.2024-07-05.at.15.13.59.mp4