-
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
Allow money request deletion #17348
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] |
src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js
Outdated
Show resolved
Hide resolved
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.
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! |
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.
Looks good to me, but havent had time to test
I will review an test it shortly |
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.
Looks good , a minor bug found.
Another bug (not sure) , when you delete the request , is get displayed as settled up , this bug doesn’t looks related to the changes with this PR
Screen.Recording.2023-05-16.at.4.16.54.AM.mov
src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js
Outdated
Show resolved
Hide resolved
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 comment
Delete comment
context menu actionDelete comment
and description saysAre you sure you want to delete this comment?
Delete
and verify that the comment is deletedDeleting money requests
+ > Request money
Delete request
Delete request
context menu actionDelete request
and 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 elsewhere
Delete request
optionOffline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov