Update error flow for prevent splitting bill with workspace and additional participants#30302
Update error flow for prevent splitting bill with workspace and additional participants#30302thienlnam merged 11 commits intoExpensify:mainfrom
Conversation
| genericSmartscanFailureMessage: 'Transaction is missing fields', | ||
| duplicateWaypointsErrorMessage: 'Please remove duplicate waypoints', | ||
| emptyWaypointsErrorMessage: 'Please enter at least two waypoints', | ||
| splitBillMultipleParticipantsIncludingWorkspace: 'Split bill is only allowed between a single workspace or individual users. Please update your selection.', |
There was a problem hiding this comment.
splitBillMultipleParticipantsErrorMessage is better name
| shouldShowOptions={isOptionsDataReady} | ||
| shouldPreventDefaultFocusOnSelectRow={!Browser.isMobile()} | ||
| shouldDelayFocus | ||
| footerContent={isAllowedToSplit && footerContent} |
There was a problem hiding this comment.
Won't this cause console error?
| footerContent={isAllowedToSplit && footerContent} | |
| footerContent={isAllowedToSplit ? footerContent : undefined} |
There was a problem hiding this comment.
I think it won't cause console error.
- footerContent props accept a PropTypes.node
App/src/components/OptionsSelector/optionsSelectorPropTypes.js
Lines 106 to 107 in 342a2c4
- And boolean is one of
ReactNodeLiketype
|
@hoangzinh let's not allow going to next page on Cmd+Enter key press, which is your issue - #29628 haha Screen.Recording.2023-11-02.at.12.01.13.AM.mov |
|
@thienlnam Hmm, actually do you want #30302 (comment) to be fixed here or separately in #29628? |
|
Hmm yeah that bug looks to be the same issue we're trying to prevent here - so if we can handle it here as well that would be great |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
✋ 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/thienlnam in version: 1.3.96-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.96-15 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.97-7 🚀
|
Details
Fixed Issues
$ #27508
PROPOSAL: #27508 (comment)
Tests
Test case 1:
Test case 2:
On Web/Desktop
Offline tests
PR changes are not affected by network status
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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.2023-11-01.at.00.25.45.-.android.mov
Android: mWeb Chrome
Screen.Recording.2023-10-31.at.23.57.30.-.android.chrome.mov
iOS: Native
Screen.Recording.2023-11-01.at.00.01.04.-.ios.mov
iOS: mWeb Safari
Screen.Recording.2023-10-31.at.23.59.31.-.ios.safari.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-31.at.23.43.10.-.web.mov
Screen.Recording.2023-11-02.at.16.10.12.-.web.cmd.+.enter.mov
MacOS: Desktop
Screen.Recording.2023-10-31.at.23.47.19.-.desktop.mov
Screen.Recording.2023-11-02.at.16.11.01.-.desktop.cmd.+.enter.mov