-
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
[TS migration] Migrate 'IOU.js' lib to TypeScript #34092
Conversation
# Conflicts: # src/libs/ReportUtils.ts
…pantsFromReport functions
# Conflicts: # src/libs/IOUUtils.ts # src/libs/ReportUtils.ts # src/libs/TransactionUtils.ts # src/libs/actions/IOU.ts # src/types/onyx/Transaction.ts # src/types/onyx/index.ts
…st, updateMoneyRequestAmountAndCurrency functions
# Conflicts: # src/libs/actions/IOU.ts
@roryabraham thanks for reviewing as urgency. Conflicts again! @VickyStash if you can fix conflict soon, I will do another round of review and testing during weekend so we can quickly merge before another conflict. |
# Conflicts: # src/ONYXKEYS.ts # src/components/OfflineWithFeedback.tsx # src/libs/actions/IOU.ts # src/types/onyx/Transaction.ts
@aimane-chnaif @roryabraham Conflicts are resolved! 🙂 |
payeeAccountID = userAccountID, | ||
payeeEmail = currentUserEmail, |
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.
These 2 params don't exist on main. Not sure why git diff doesn't indicate that.
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.
oh ok, so you changed order of theses params
Re-tested all possible cases of money request flow. No issues found. @roryabraham all yours for merge |
# Conflicts: # src/libs/actions/IOU.ts
@aimane-chnaif @roryabraham I've resolved comments one more time, let's try to merge it today |
@VickyStash please fix conflict again |
Hope it would be the last one. @roryabraham is ready to merge immediately once fixed |
# Conflicts: # src/libs/actions/IOU.ts
✋ 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. |
@@ -3103,7 +3073,7 @@ function getSendMoneyParams(report, amount, currency, comment, paymentMethodType | |||
paymentMethodType, | |||
transactionID: optimisticTransaction.transactionID, | |||
newIOUReportDetails, | |||
createdReportActionID: isNewChat ? optimisticCreatedAction.reportActionID : 0, | |||
createdReportActionID: isNewChat ? optimisticCreatedAction.reportActionID : '', |
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 created a warning on the server, polluting the logs. It should be '0' instead of an empty string, as the server expects an integer. Here's a PR that fixes it
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.
Got it, thank you!
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.
@VickyStash As PR already raised thanks to @cristipaval, can you please co-review #35918?
This PR is failing because of issue #35942 The issue is reproducible in: Android, mWeb, IOS Bug6369674_1707243456539.az_recorder_20240206_180530.1.mp4Bug6369674_1707243456496.az_recorder_20240206_175443.1.mp4 |
yes, it's caused by another PR #34564 and the fix is being CPed |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
Details
[TS migration] Migrate 'IOU.js' lib to TypeScript
Fixed Issues
$ #24926
PROPOSAL: N/A
Tests
Make sure the Money Request / Split bill functionality works the same way as before. You can use next flows to test it.
First flows: Using FAB button
Manual Money Request
Request
button.Replace
andDelete
works as expected.Scan Money Request
Distance Money Request
Second flows: Chat with another user:
Manual Money Request
Request
button.Scan Money Request
Third flows: Workspace chat
Split bill -> Manual
Manual
optionSplit
button.Split bill -> Scan
Scan
optionSplit
button.Split bill -> Distance
Distance
optionSplit
buttonMoney Request-> Manual
Request
button.Money Request -> Scan
Money Request -> Distance
Offline tests
N/A
QA Steps
Same as in the Tests section
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_iou1.mp4
Android: mWeb Chrome
android_web_iou1.mp4
iOS: Native
ios1.mp4
iOS: mWeb Safari
ios_web1.mp4
MacOS: Chrome / Safari
web1.mp4
MacOS: Desktop
desktop1.mp4