refactor shareTrackedExpense function#54650
Conversation
|
@eVoloshchak 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] |
|
@eVoloshchak could you review this PR.. or maybe provide an expected day id you are running busy. ps. I will be OOO on 5-6 Jan. |
|
@ChavdaSachin, I'm also OOO on the 6th (today), will be able to review this tomorrow if that works |
|
Works.... |
|
@eVoloshchak let me know if you need any help here.. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-08.at.14.57.24.movAndroid: mWeb ChromeScreen.Recording.2025-01-08.at.15.00.31.moviOS: NativeScreen.Recording.2025-01-08.at.14.48.07.moviOS: mWeb SafariScreen.Recording.2025-01-08.at.14.50.22.movMacOS: Chrome / SafariScreen.Recording.2025-01-08.at.14.05.26.movMacOS: DesktopScreen.Recording.2025-01-08.at.15.05.13.mov |
|
There is a bug that happens during testing this: |
neil-marcellini
left a comment
There was a problem hiding this comment.
One request. Also there are merge conflicts.
| const transactionParams = { | ||
| transactionID: transaction?.transactionID ?? '-1', | ||
| amount, | ||
| currency, | ||
| comment, | ||
| merchant, | ||
| created, | ||
| taxCode: taxCode ?? '', | ||
| taxAmount: taxAmount ?? 0, |
There was a problem hiding this comment.
Can we please remove the default IDs and follow the TS guidelines regarding defaulting IDs? Or does that create way too many unrelated changes. If so, let's make sure we have an issue tracking that.
There was a problem hiding this comment.
I would remove those default IDs and then verify the BE response.
Would go through the GH convo when these IDs were added.
There was a problem hiding this comment.
Ok, I assume you're saying that you will do those things? Here are the guidelines to follow. I don't think you really need to look at the BE response.
There was a problem hiding this comment.
oh, I was unaware this new guidelines. I sort of miss interpreted your suggestion here.
But now it is super clear, Thank you.
There was a problem hiding this comment.
When trying to implement those default IDs, one thing leads to another and it keeps going and those will be too many changes unrelated to this PR. So I think it's better to have separate GH for implementing those default IDs throughout the file - might take a few PRs.
Merge conflict is resolved, Ready for merge.
…' into refactor/IOU.shareTrackedExpense
|
✋ 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/neil-marcellini in version: 9.0.89-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Explanation of Change
Fixed Issues
#54466
PROPOSAL: #54466 (comment)
Tests
Same as QA
Offline tests
Same as QA
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Prerequisite : have a tracked expense.
Share it with my accountantfrom actionable whisper.steps to track an expense.
option 1.
option 2.
Just Track it(don't submit it)option from contact selector.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-12-30.at.3.32.00.AM.mov
Android: mWeb Chrome
Screen.Recording.2024-12-30.at.3.35.31.AM.mov
iOS: Native
Screen.Recording.2024-12-30.at.3.44.41.AM.mov
iOS: mWeb Safari
Screen.Recording.2024-12-30.at.3.42.27.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-12-30.at.3.25.35.AM.mov
MacOS: Desktop
Screen.Recording.2024-12-30.at.3.54.19.AM.mov