-
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
Fix the IOU badge on newly created reports #2543
Conversation
Sorry, puller bear got a little happy. You can still review if you want @deetergp, but I've removed the review request for you. |
I ran out of time today to finish the cross-platform testing, so I've only verified it on web for now. I'll try to get to the others tomorrow. Come to think of it though... is this testable on the other platforms @Julesssss (since you can't modify the URL in any other platform other than web). |
Good point. All platforms are (internally) testable with the following diff. This adds 'Request Money' and 'Split Bill' options to the global CreateMenu:
|
getSimplifiedIOUReport(iouReportObjects[0])); | ||
} | ||
_.each(reportsData, (reportData) => { | ||
// First, the existing chat report needs updated with the details about the new IOU |
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.
NAB:
// First, the existing chat report needs updated with the details about the new IOU
// First, the existing chat report needs to be updated with the details about the new IOU
// This data needs to go from this: | ||
// {reportIDList: [1, 2], chatReportIDList: [3, 4]} | ||
// to this: | ||
// [{reportID: 1, chatReportID: 3}, {reportID: 2, chatReportID: 4}] | ||
// in order for getIOUReportsForNewTransaction to know which IOU reports are associated with which | ||
// chat reports |
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 still like the idea of providing a better data structure in Auth, but let's not block the issue. We can create this as a non-blocking IOU task here.
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.
Ignore the last comment, I've seen the same issue on other PRs. I think it is fixed on the latest |
Looks like this is working well now after a few things in Onyx have been changed. I've tested the changes locally and I'm just waiting for the Onyx PR to get merged before releasing the hold on this. |
Updated and I have removed the HOLD |
Would you mind merging main, as this issue is still occurring when I try to verify the issue with a regular chat report (IOU Reports work as expected). While I'm sure that these changes will work with chat reports, I would like to confirm just to be sure. |
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.
Tests well with IOU Reports. Nice improvements, too 👍
Yep, looks like merging in |
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.
Thanks for merging main, I can confirm that the issue is also resolved for the chat report flow.
@sketchydroide leaving the merge to you 👍
Bumping @sketchydroide :) |
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
🚀 Deployed to staging in version: 1.0.33-2🚀
|
@tgolen @Julesssss I don't think we're able to test this PR, can you confirm? |
This should be able to be tested on web only by using those links. (eg. https://staging.expensify.cash/iou/request and https://staging.expensify.cash/iou/split). Sorry I wasn't more clear in the description! I'll update it. |
@tgolen We were unable to access the iOU page, when navigating to the links provided on the steps, we're just being redirected to staging.expensify.cash/. |
Hey @isagoico! You should be able to do it like this:
|
🚀 Deployed to production in version: 1.0.39-5🚀
|
Held on:
master
changesDetails
Fixes the IOU badge when an IOU report is created for the first time
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/161189
Tests
QA (on web only)
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android