-
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
Update error flow for prevent splitting bill with workspace and additional participants #30302
Conversation
src/languages/en.ts
Outdated
@@ -594,6 +594,7 @@ export default { | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitBillMultipleParticipantsErrorMessage
is better name
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.
Updated in 06879a6
onConfirmSelection={navigateToSplit} | ||
textInputLabel={translate('optionsSelector.nameEmailOrPhoneNumber')} | ||
textInputAlert={isOffline ? `${translate('common.youAppearToBeOffline')} ${translate('search.resultsAreLimited')}` : ''} | ||
safeAreaPaddingBottomStyle={safeAreaPaddingBottomStyle} | ||
shouldShowOptions={isOptionsDataReady} | ||
shouldPreventDefaultFocusOnSelectRow={!Browser.isMobile()} | ||
shouldDelayFocus | ||
footerContent={isAllowedToSplit && footerContent} |
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.
Won't this cause console error?
footerContent={isAllowedToSplit && footerContent} | |
footerContent={isAllowedToSplit ? footerContent : undefined} |
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.
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
/** Custom content to display in the footer instead of the default button. */ footerContent: PropTypes.oneOfType([PropTypes.func, PropTypes.node]), - And boolean is one of
ReactNodeLike
type
@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 |
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.
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.
Great, 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/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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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