-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: Provide education/confirmation before creating workspaces in New Workspace flows #52164
base: main
Are you sure you want to change the base?
Conversation
… Workspace flows. Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@dubielzyk-expensify @allgandalf One of you needs to 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] |
Signed-off-by: krishna2323 <[email protected]>
Let me know when this is ready to review from a design standpoint? |
@dubielzyk-expensify waiting on some BE changes, I will ping you once we get them through, also @Krishna2323 please update the title to mention this one is on hold for BE |
@Krishna2323 can you fix the failing tests in the meantime ? |
bump @Krishna2323 |
Signed-off-by: krishna2323 <[email protected]>
@grgia, the response from backend does not return correct values for currency and avatar both. @allgandalf can you also test this out? Note for BE: file parameter should be treated as optional. Monosnap.screencast.2024-11-24.17-28-00.mp4 |
Hmm. That's strange- I wrote automated tests and the currency/file should be updated as part of the policy object. When you trigger OpenPolicy do you see the same data in the onyx response? |
Pulling locally to test the flow |
Hey @Krishna2323 when I pull your branch, I cant trigger the education create workspace flow, would you please send me testing steps 🙏 |
created a 🧵 on slack for better communication: https://expensify.slack.com/archives/C01GTK53T8Q/p1732533526435019 Lets get this one going 💪 |
Signed-off-by: krishna2323 <[email protected]>
@grgia, sorry about that, I hadn't pushed the local changes to the remote at the time. It's updated now. You could easily test by pressing |
Signed-off-by: krishna2323 <[email protected]>
🚧 @grgia has triggered a test build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
@grgia, it's working now🫠, one last backend change is needed. The currency for default distance rate is not updated in the backend. Monosnap.screencast.2024-11-26.04-21-30.mp4 |
@Krishna2323 please resolve conflicts and when can you open up this PR for review ? |
You can start the code review, I'm on adding the tests steps. |
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Will upload the screenshots tomorrow. For now I have uploaded the video for "MacOS: Chrome / Safari". Monosnap.screencast.2024-11-27.01-30-53.mp4 |
@Krishna2323 can you update the videos please |
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
@allgandalf, recordings added. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
@Krishna2323 overall LGTM, minor comments. Also please do the following:
- Merge main
- There is also a way to create workspace from track expense have you tested if that works expected ?
@@ -91,6 +91,7 @@ function RightModalNavigator({navigation, route}: RightModalNavigatorProps) { | |||
name={SCREENS.RIGHT_MODAL.REPORT_DETAILS} | |||
component={ModalStackNavigators.ReportDetailsModalStackNavigator} | |||
/> | |||
|
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.
@@ -11,6 +11,8 @@ type CreateWorkspaceParams = { | |||
customUnitID: string; | |||
customUnitRateID: string; | |||
engagementChoice?: string; | |||
currency: string; |
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.
Please make this one optional, you have made this param as optional in the util function or vice versa
This branch has conflicts, please resolve them |
Explanation of Change
Fixed Issues
$ #51504
PROPOSAL: #51504 (comment)
Tests
Create workspace
Create workspace
> Enter any custom nameNew workspace
> Verify RHP is opened with avatar selector, name input and currency selector.New Workspace
buttonOffline tests
Create workspace
Create workspace
> Enter any custom nameNew workspace
> Verify RHP is opened with avatar selector, name input and currency selector.New Workspace
buttonQA Steps
Create workspace
Create workspace
> Enter any custom nameNew workspace
> Verify RHP is opened with avatar selector, name input and currency selector.New Workspace
buttonPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4