-
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
[GL] Tax - Add tax code #43156
[GL] Tax - Add tax code #43156
Conversation
@rushatgabhane, is it possible to test with this one yet? |
@mollfpr looking forward to your review |
Review and test it 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.
Looks good!
Just an issue left. We can randomly change the taxID
and submit the form but it return the not found page.
We can check the tax rate if it's available then return not found page in WorkspaceTaxCodePage
. Similar to WorkspaceEditTaxPage
.
Screen.Recording.2024-07-15.at.19.16.41.mp4
That seems unnecessary to me. It's not going to happen for any user, right? @Gonals should we fix 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.
I didn't look fully through this yet but noticed this issue with the Onyx data and wanted to call that out first!
I think the current behavior is fine 🤷 |
Reviewer Checklist
Screenshots/VideosAndroid: Native43156.Android.mp443156.Android.-.Offline.mp4Android: mWeb Chrome43156.mWeb-Chrome.mp443156.mWeb-Chrome.-.Offline.mp4iOS: Native43156.iOS.mov43156.iOS.-.Offline.moviOS: mWeb Safari43156.mWeb-Safari.mov43156.mWeb-Safari.-.Offline.movMacOS: Chrome / Safari43156.Web.mp443156.Web.-.Offline.mp4MacOS: Desktop43156.Desktop.mp443156.Desktop.-.Offline.mp4 |
@mollfpr can we please prioritize this 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.
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.
A couple NABs but looks good to me! Will wait for @Gonals for final merge
pendingFields: {code: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}, | ||
pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, | ||
errorFields: {code: null}, | ||
previousTaxCode: oldTaxCode, |
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.
NAB - are we using this anywhere? not sure we need 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.
yes, if the action fails then we need to reset the taxCode. The previousTaxCode will be used for it
[oldTaxCode]: null, | ||
[newTaxCode]: { | ||
...originalTaxRate, | ||
code: newTaxCode, |
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.
Same here - do we need 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.
im using it for pending fields and showing errors. we need a key inside the object for which an error or pending action can be associated
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.
ah right, 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/dangrous in version: 9.0.9-1 🚀
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.9-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.9-5 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
Navigation.dismissModal(); | ||
Navigation.navigate(ROUTES.WORKSPACE_TAX_EDIT.getRoute(policyID, newTaxCode)); |
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.
Dismissing the modal has caused a blinking bug in #45684, we should have used Navigation.goBack
to fix that bug.
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.
Thank you!
Details
Fixed Issues
$ #44258
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-07-13.at.01.11.42.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-07-10.at.00.00.23.mov
MacOS: Desktop
Screen.Recording.2024-07-13.at.01.33.27.mov