-
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
Fix wrong button text when use QAB #53187
Fix wrong button text when use QAB #53187
Conversation
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!
Could you change the FAB component so it will clarify that the split manual is can't skip confirmation in the first place?
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx
Lines 268 to 274 in eddc533
case CONST.QUICK_ACTIONS.SPLIT_MANUAL: | |
case CONST.QUICK_ACTIONS.SPLIT_SCAN: | |
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, true), true); | |
return; | |
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE: | |
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, false), true); | |
return; |
case CONST.QUICK_ACTIONS.SPLIT_SCAN:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, true), true);
return;
case CONST.QUICK_ACTIONS.SPLIT_MANUAL:
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
selectOption(() => IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, quickActionReportID, undefined, false), true);
return;
We shouldn't do that, otherwise the QAB split expense confirmation won't be skipped in this case:
Btw, that suggestion is the same as the other proposal and a comment about this same issue here Instead, I think we should update the split distance QAB to pass skipConfirmation as true too. |
Yeah, we can update this instead. |
Done |
Reviewer Checklist
Screenshots/VideosAndroid: Native53187.Android.mp4Android: mWeb Chrome53187.mWeb-Chrome.mp4iOS: Native53187.IOS.moviOS: mWeb Safari53187.mWeb-Safari.movMacOS: Chrome / Safari53187.Web.mp4MacOS: Desktop53187.Desktop.mp4 |
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!
✋ 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/stitesExpensify in version: 9.0.70-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.70-9 🚀
|
Explanation of Change
Fixed Issues
$ #52386
PROPOSAL: #52386 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Precondition:
Create a split expense in a room or group chat
Tap fab - split expense via QAB
Enter an amount
Verify the button text is "Next" and press it
Press the amount field
Verify the button text is "Save"
PR 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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4