-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Simplify failure data for request/send money and make it more consistent with SplitBill #18328
Conversation
… a new report for failure data
@mananjadhav @alex-mechler 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] |
@yuwenmemon I am currently testing the flow. While everything as per the steps in the flow works. I can't help but notice, the amount is blank when I move from offline to online on the main testing device. When I am offline the amount shows up just fine and then when I switch it changes to a green tick. Is that expected here? Attaching the video of the flow: web-duplicate-chats-after-offline-request-flow.mov |
Oh curious, I wasn't seeing that in my tests let me take a look. |
Hmmm... Yeah, I can't seem to be able to reproduce. What steps are you using to get to that? Kapture.2023-05-03.at.16.24.46.mp4 |
Reviewer Checklist
Screenshots/VideosWebweb-offline-dup-chat-iou-error.movMobile Web - Chromemweb-chrome-offline-dup-chat-iou-error.movMobile Web - Safarimweb-safari-offline-dup-chat-iou-error.movDesktopdesktop-offline-dup-chat-iou-error.moviOSios-offline-dup-chat-iou-error.movAndroidandroid-offline-dup-chat-iou-error.mov@yuwenmemon Now since today I am no longer able to reproduce the issue I reported. Hence, I've tested and completed the checklist. @luacmartins @youssef-lr All yours. |
@yuwenmemon I just saw we've got merge conflicts. Can you please resolve it? I'll do one final round of testing then. |
@yuwenmemon some tests are failing |
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, failing tests are known https://expensify.slack.com/archives/C01GTK53T8Q/p1683567674183729
Actually, only some of the tests are known failures. Looks like the IOU test failures are related to this |
Updated! Tests are passing now! |
Merging since Alex and Manan had previously approved and we only fixed the failing tests on the last commit. |
✋ 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/luacmartins in version: 1.3.13-0 🚀
|
Hey there! Is this a regression of this PR? #18852 |
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.13-5 🚀
|
@youssef-lr please review
cc @luacmartins
Details
We shouldn't need to use a generic error message for failure data for the request money / send money flow when creating a New Chat, just like split bill. Otherwise, it will just be redundant with the error sent by the API. Thus, make the failure data match what we do with Split Bill.
Fixed Issues
$ #15933
Tests/QA
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android
(This is not a UI flow so I didn't include screenshots on the other platforms)