-
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
Create DeleteMoneyRequest command #17583
Conversation
…cline and cancel optimistic message
This is failing, the greyed out deleted message shows up but the preview is also still shown, maybe this is related to currency difference? (I will upload the videos asap) Edit: I think it's indeed related to the diff in currency but I expected the preview to be at least greyed if currency is diff. Edit2: I have added videos
|
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromemweb.mp4Mobile Web - Safarimweb.mp4Desktopdesktop.mp4iOSAndroid |
I was not able to test this reliably on Native. Sometimes it works, sometimes it does not. I think this is not related to this PR but to the staging switch, it seems buggy. getting native-buggy.mp4 |
Conflicts 😬 |
Conflicts resolved! |
@s77rt it's possible that there's something weird going on with the staging switch. Hopefully we'll get these changed in production today and we can test it in prod soon. |
@luacmartins Please address the buggy preview #17583 (comment) |
@luacmartins Okay cool, so what's the next step here? We are basically done but I can't test on Native for the buggy staging switch. Should we wait till the PRs hit prod? |
IMO we should just merge this given the urgency and address any issues as polish. |
I agree. The change is platform-independent anyway. |
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! 🚀
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.
Approving latest changes.
✋ 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/Julesssss in version: 1.3.11-0 🚀
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.12-0 🚀
|
errors: { | ||
[DateUtils.getMicroseconds()]: Localize.translateLocal('iou.error.genericCancelFailureMessage', {type}), | ||
[DateUtils.getMicroseconds()]: Localize.translateLocal('iou.error.genericDeleteFailureMessage'), |
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 we forgot to put the error report preview action, which created the issue #33535
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 is not a regression from this PR. We already added the report action in the optimistic data so we didn't need to add it in the failure data.
Lines 580 to 590 in 14ef884
const optimisticData = [ | |
{ | |
onyxMethod: CONST.ONYX.METHOD.MERGE, | |
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${chatReportID}`, | |
value: { | |
[optimisticReportAction.reportActionID]: { | |
...optimisticReportAction, | |
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, | |
}, | |
}, | |
}, |
Details
Removes
Cancel
andDecline
money request functionality in favor ofDelete
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270502
Tests
Pre-requisites: 2 accounts you have access to
Should be tested with the Web-E and Auth PRs
+ > Request money
Delete
optionDelete
optionDelete
deleted the $X request for comment
message in chat and LHNOffline tests
+ > Request money
Delete
deleted the $X request for comment
message in chat and LHN, but the message is greyed outQA Steps
Same as steps above
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