-
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 Cancel Payment command (again) #33836
Conversation
OFF HOLD! |
Bump @Ollyws! |
Apologies for the delay, will review this now. |
Hmm. This does seem to be missing something. I'll take a look
This seems wrong too, but it might need a backend fix. Checking it out |
@rlinoz, seems like someone had messed up the money request action messages. Should be fixed now! |
The messages are correct now, but still flip when you change the status, checking the onyx responses it doesn't seem like backend, but I am not 100% sure, can't find what would flip them in your PR either. Screen.Recording.2024-01-12.at.14.22.28.mov |
Ah, that message (paid/owes) should flip. We are good 👍 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
stateNum: isFree ? CONST.REPORT.STATE_NUM.PROCESSING : CONST.REPORT.STATE.OPEN, | ||
statusNum: isFree ? CONST.REPORT.STATUS.SUBMITTED : CONST.REPORT.STATE.OPEN, |
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.
@Gonals @rlinoz I'm working on the IOU
file TS migration, and after merging the latest main I think I've found an issue in this new part.
I guess it should be
stateNum: isFree ? CONST.REPORT.STATE_NUM.PROCESSING : CONST.REPORT.STATE_NUM.OPEN,
statusNum: isFree ? CONST.REPORT.STATUS.SUBMITTED : CONST.REPORT.STATUS.OPEN,
So using CONST.REPORT.STATE_NUM.OPEN
instead of CONST.REPORT.STATE.OPEN
for stateNum
.
And using CONST.REPORT.STATUS.OPEN
instead of CONST.REPORT.STATE.OPEN
for statusNum
What do you think?
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 you are right, yeah. Thanks for catching that! I'll create a PR
@@ -57,7 +57,7 @@ function ReportActionItemMessage({action, displayAsGroup, reportID, style, isHid | |||
const originalMessage = action.actionName === CONST.REPORT.ACTIONS.TYPE.IOU ? action.originalMessage : null; | |||
const iouReportID = originalMessage?.IOUReportID; | |||
if (iouReportID) { | |||
iouMessage = ReportUtils.getReportPreviewMessage(ReportUtils.getReport(iouReportID), action); | |||
iouMessage = ReportUtils.getIOUReportActionDisplayMessage(action); |
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.
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.
Because this was changed at some point and I think is wrong. We are not displaying the report preview here (and it causes weird issues with the message)
[CP Staging] Revert "Merge pull request #33836 from Expensify/alberto-unpay2"
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.26-2 🚀
|
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.4.27-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.27-1 🚀
|
This unreverts #32674 with a couple of changes to fix the issues found during QA
Details
Fixed Issues
$ #32426
$ #32427
$ #33517
$ #33509
$ #33507
PROPOSAL:
Tests
Pay elsewhere
Pay with expensify
Make sure your admin has a valid withdrawal bank account, and your user a valid deposit one
Repeat the previous flow, but using "Pay with Expensify" instead of "Pay elsewhere"
Confirm it basically behaves the same way
Verify that no errors appear in the JS console
Offline tests
Same as tests, but offline
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop