-
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
FIX: Implement pattern C for money reports with various currencies #35062
FIX: Implement pattern C for money reports with various currencies #35062
Conversation
@johnmlee101 Please 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] |
Adding @allroundexperts to help review this and do the checklist |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-01-31.at.3.12.06.AM.movAndroid: mWeb ChromeScreen.Recording.2024-01-31.at.3.00.57.AM.moviOS: NativeScreen.Recording.2024-01-31.at.2.58.37.AM.moviOS: mWeb SafariScreen.Recording.2024-01-31.at.2.51.03.AM.movMacOS: Chrome / Safarihttps://github.com/Expensify/App/assets/30054992/595fa564-2f9a-4d91-9a84-1018a1ad49de MacOS: DesktopScreen.Recording.2024-01-31.at.2.46.34.AM.mov |
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.
Works good!
🎯 @allroundexperts, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #35441. |
Forgot to post this previously, but I think the following is not related to this PR. @BartoszGrajdek Can you please confirm before merging? |
src/libs/ReportUtils.ts
Outdated
} | ||
|
||
const transactions = TransactionUtils.getAllReportTransactions(report.reportID); | ||
|
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.
+1
Let's confirm this before I approve 😄 |
I think that's not something related to this PR, but I'll check it today to make sure 🫡 |
Any update @BartoszGrajdek ? |
I don't get an error like the one you've sent, so maybe it got fixed after merging the main? @allroundexperts let me know if you can still see it. I would like to wait for the main to get fixed first though, because it seems like there are some problems there |
Alright, I've checked to make sure and all the errors I'm getting are the same as on the main branch. The one you've sent @allroundexperts seems to have disappeared to it most likely got fixed. cc @johnmlee101 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
Details
While working on #31345 I have noticed that when money report contains money requests with currencies different than default currency of the money report itself the app cannot handle calculations like getting a total amount while the user is offline. Because of that after a discussion on Slack with Expensify team it was decided that for now we want to implement pattern C whenever there's a money request sent with a different currency.
Fixed Issues
N/A (Details above)
Tests
Offline tests
QA Steps
Online
Offline
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.mp4
Android: mWeb Chrome
chrome.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
safari.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4