feat: skip participant step in create flow#56090
Conversation
6676596 to
805d38c
Compare
|
👋 @mollfpr are you going to be able to review this (your) today!? |
|
🚧 @trjExpensify has triggered a test build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
@trjExpensify Yup! |
|
@nkdengineer you're missing the right caret:
|
mollfpr
left a comment
There was a problem hiding this comment.
The test looks good, except the missing caret icon on the participant select. Also, I leave comments for clarification.
|
@mollfpr Updated with right icon. Please help to check again. |
|
@mollfpr I updated, please help to check again. |
|
Will run a test build on this one too. |
|
🚧 @shawnborton has triggered a test build. You can view the workflow run here. |
mollfpr
left a comment
There was a problem hiding this comment.
The changes look good! @nkdengineer Could you resolve the issue on lint and test unit? Thanks!
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
|
Other than what Shawn is mentioning it's feeling pretty great to me too 👍 |
Agreed, this was only intended for the |
I fixed this bug. |
@mollfpr Fixed. |
Reviewer Checklist
Screenshots/VideosAndroid: Native56090.Android.mp4Android: mWeb Chrome56090.mWeb-Chrome.mp4iOS: Native56090.iOS.moviOS: mWeb Safari56090.mWeb-Safari.movMacOS: Chrome / Safari56090.Web.mp4MacOS: Desktop56090.Desktop.mp4 |
mollfpr
left a comment
There was a problem hiding this comment.
LGTM 👍
Suggestion for the test case, we should add a step where the participant can be click or not.
|
|
LGTM! - Thanks for updating the test cases |
|
✋ 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/yuwenmemon in version: 9.0.96-0 🚀
|
|
@nkdengineer PR is failing with #56630 on Android and iOS only |
|
Created a follow up PR. |
|
Hi @nkdengineer it looks like these changes caused multiple regressions blocking deploy, did you list these fixed issues yourself? I don't see any triage from the assigned engineers pointing to this PR, so wanted to check what happened here. |
|
Follow-up PR was CP'd here and QA is underway on staging for the related issues. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.96-1 🚀
|
| // If there was no reportID, then that means the user started this flow from the global + menu | ||
| // and an optimistic reportID was generated. In that case, the next step is to select the participants for this expense. | ||
| navigateToParticipantPage(); | ||
| if (iouType === CONST.IOU.TYPE.CREATE && isPaidGroupPolicy(activePolicy) && activePolicy?.isPolicyExpenseChatEnabled) { |
There was a problem hiding this comment.
You forgot to block users when they have expired WS. See #56829
|
This PR introduced a race condition that caused a critical bug |
| // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
| if ((transaction?.isFromGlobalCreate && iouType !== CONST.IOU.TYPE.TRACK && !report?.reportID) || iouType === CONST.IOU.TYPE.CREATE) { | ||
| navigateToParticipantPage(); | ||
| if (isPaidGroupPolicy(activePolicy)) { |
There was a problem hiding this comment.
You forgot to check for isPolicyExpenseChatEnabled here, which caused #57115


Explanation of Change
feat: skip participant step in create flow
Fixed Issues
$ #55717
PROPOSAL: #55717 (comment)
Tests
Precondition: The account has the default workspace is a group workspace
Tosection verify that we go to the participant pageTosectionOffline tests
Same as above
QA Steps
Precondition: The account has the default workspace is a group workspace
Tosection verify that we go to the participant pageTosectionPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Android: Native
Screen.Recording.2025-01-30.at.23.07.08.mov
Android: mWeb Chrome
Screen.Recording.2025-01-30.at.23.01.16.mov
iOS: Native
Screen.Recording.2025-01-30.at.23.20.26.mov
iOS: mWeb Safari
Screen.Recording.2025-01-30.at.23.03.06.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-30.at.22.59.37.mov
MacOS: Desktop
Screen.Recording.2025-01-30.at.23.23.07.mov