-
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
fix: "Default" label changes to "Workspace currency default" after changing tax code #48105
Conversation
@etCoderDysto is this ready for review? |
@rushatgabhane 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] |
@puneetlath I am having a build issue for android and ios. Except that it is ready for review. Should we go on with a review while I am try to fix a build issue I am having? |
Yes, let's go ahead and start that. A lot of people seem to be having those build issues since the upgrade. |
Alright! Thanks @puneetlath! @rushatgabhane PR is ready for review to fix this regression. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid won't build after latest RN upgrade - https://expensify.slack.com/archives/C01GTK53T8Q/p1724842994690509 Android: mWeb ChromeiOS: NativeScreen.Recording.2024-08-28.at.15.39.13.moviOS: mWeb SafariScreen.Recording.2024-08-27.at.23.00.54.movMacOS: Chrome / SafariScreen.Recording.2024-08-27.at.22.53.34.movMacOS: Desktop |
@@ -514,7 +517,6 @@ function setPolicyTaxCode(policyID: string, oldTaxCode: string, newTaxCode: stri | |||
key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`, | |||
value: { | |||
taxRates: { | |||
defaultExternalID: oldTaxCode === policy?.taxRates?.defaultExternalID ? newTaxCode : policy?.taxRates?.defaultExternalID, |
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.
@etCoderDysto why don't we need to set successData
?
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.
For offline pattern B, we should set successData - https://github.com/Expensify/App/blob/main/contributingGuides/OFFLINE_UX.md#b---optimistic-with-feedback-pattern
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 am checking if removing it causes any issue.
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.
@rushatgabhane When we updated tax code of default tax rate, BE will update the defaultExternalID
and foreignTaxDefault
with the new tax code we have updated the default tax code, and merges the data to onyx.
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.
Just to make sure I understand, you're saying that setting the successData does cause a problem?
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.
@rushatgabhane I can defaultExternalID
and foreignTaxDefault
to abide by the docs
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.
Let's do that then.
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.
Done!
@etCoderDysto could you respond to @rushatgabhane's question? |
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.
BUG: for default rate, the lock button is unlocked and delete button is showed briefly
Screen.Recording.2024-08-27.at.23.06.42.mov
Checking.. |
Lines 462 to 463 in b2cd099
|
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
thanks for the quick fix @etCoderDysto
fix: "Default" label changes to "Workspace currency default" after changing tax code (cherry picked from commit 920edc8) (CP triggered by puneetlath)
✋ 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/puneetlath in version: 9.0.25-11 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
Fixed Issues
$ #48088
PROPOSAL: #48088 (comment)
Tests
Offline tests
Same as test steps
QA Steps
Same as test 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
mweb.mp4
iOS: Native
iOS: mWeb Safari
safari.mp4
MacOS: Chrome / Safari
Web.mp4
MacOS: Desktop
desktop.mp4