Allow money request deletion#17348
Conversation
|
@fedirjh @arosiclair One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
arosiclair
left a comment
There was a problem hiding this comment.
Feels like this should just be a draft/held since the backend commands haven't been implemented yet
|
This should be ready for another round of reviews |
|
Updated! |
mountiny
left a comment
There was a problem hiding this comment.
Looks good to me, but havent had time to test
|
I will review an test it shortly |
Reviewer Checklist
Screenshots/VideosWebWebC.movMobile Web - ChromeMMChrome.movMobile Web - SafariScreen.Recording.2023-05-16.at.5.00.16.AM.movScreen.Recording.2023-05-16.at.5.00.42.AM.movDesktopScreen.Recording.2023-05-16.at.4.50.57.AM.moviOSScreen.Recording.2023-05-16.at.4.58.12.AM.movAndroidAndroidM.mov |
Co-authored-by: Fedi Rajhi <fedirjh@gmail.com>
|
|
|
@fedirjh Thank you very much! Yeah the bug you have found I believe is unrelated and we have been treating it in a separate PR |
Allow money request deletion (cherry picked from commit 3119b61)
|
🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.15-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
| deleteComment: 'Eliminar comentario', | ||
| deleteConfirmation: '¿Estás seguro de que quieres eliminar este comentario?', | ||
| deleteAction: ({action}) => `Eliminar ${ReportActionsUtils.isMoneyRequestAction(action) ? 'pedido' : 'comentario'}`, | ||
| deleteConfirmation: ({action}) => `¿Estás seguro de que quieres eliminar este ${ReportActionsUtils.isMoneyRequestAction(action) ? 'pedido' : 'comentario'}`, |
There was a problem hiding this comment.
This change missed a question mark and caused #50290
Details
Allows money request actions to be deleted via the context menu
cc @Julesssss @mountiny this is ready, but I think we might wanna hold on merging since it affects IOUs and doing nothing when confirming the delete is confusing for users
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270694
Tests
Pre-requisite: 2 accounts that you have access to
Deleting comments
Delete commentDelete commentcontext menu actionDelete commentand description saysAre you sure you want to delete this comment?Deleteand verify that the comment is deletedDeleting money requests
+ > Request moneyDelete requestDelete requestcontext menu actionDelete requestand description saysAre you sure you want to delete this request?Delete-- This will only dismiss the modal, but will not delete the money request action for now. This feature will be implemented in https://github.com/Expensify/Expensify/issues/270502No option to delete money request for settled reports
Pay elsewhereDelete requestoptionOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov