Fix wrong button text when use QAB#53187
Conversation
mollfpr
left a comment
There was a problem hiding this comment.
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_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 |
|
✋ 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 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
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