-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 TrackExpense function #55261
Conversation
@abdulrahuman5196 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] |
@mkzie2 Link checks are failing. Kindly fix those. |
@abdulrahuman5196 I fixed. |
@abdulrahuman5196 Friendly bump. |
Checking now |
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.
@mkzie2 Other changes looks fine. Could you kindly respond to the above questions?
const { | ||
amount, | ||
currency, | ||
created = '', |
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.
why is created having default value? While the previous didn't have default one?
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.
The reason is other places we're passing the created like this then that will cause the lint to fail and the code isn't cleaner. So I updated the created
with the default value ''
then we can remove ?? ''
.
transaction?.created ?? '',
@abdulrahuman5196 Any update here? |
@mkzie2 Code looks good. Could you fix the merge conflicts and then I can work on platform testing videos? |
@abdulrahuman5196 I fixed, please help to check again. |
@abdulrahuman5196 Friendly bump. |
Hi, @neil-marcellini I would be unavailable for couple of days. Could you kindly add the appropriate labels for another random C+ to take over? Unassigning myself to avoid delays. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-04.at.14.48.12.movAndroid: mWeb ChromeScreen.Recording.2025-02-04.at.14.46.47.moviOS: NativeScreen.Recording.2025-02-04.at.14.48.47.moviOS: mWeb SafariScreen.Recording.2025-02-04.at.14.43.03.movMacOS: Chrome / SafariScreen.Recording.2025-02-04.at.14.41.21.movMacOS: DesktopScreen.Recording.2025-02-04.at.14.52.38.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.
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.
Overall looks great, just one small request.
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.
Cool thanks
✋ 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.95-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
Explanation of Change
Refactor TrackExpense function
Fixed Issues
$ #55230
PROPOSAL: #55230 (comment)
Tests
Offline tests
Same
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.2025-01-15.at.16.51.52.mov
Android: mWeb Chrome
Screen.Recording.2025-01-15.at.16.44.27.mov
iOS: Native
Screen.Recording.2025-01-15.at.17.12.01.mov
iOS: mWeb Safari
Screen.Recording.2025-01-15.at.16.42.51.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-15.at.16.41.00.mov
MacOS: Desktop
Screen.Recording.2025-01-15.at.17.12.47.mov