-
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
refactor shareTrackedExpense function #54650
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: |
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!
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 accountant
from 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
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