Fix distance rate auto-selection and tax sync on date change#93237
Fix distance rate auto-selection and tax sync on date change#93237Krishna2323 wants to merge 15 commits into
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
…ckers. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@thelullabyy 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] |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-06-28.at.20.03.03.movScreen.Recording.2026-06-28.at.20.04.50.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-06-24.at.20.45.06.mov |
|
@Krishna2323 Conflicts |
| const rateChanged = rateID !== currentRateID; | ||
| setCustomUnitRateID(transactionID, rateID, transaction, effectivePolicy, rateChanged); | ||
|
|
||
| if (rateChanged && rateID && isTaxTrackingEnabled(isPolicyExpenseChat || isTrackExpense, effectivePolicy, true)) { |
There was a problem hiding this comment.
Should we match the condition with IOURequestStepDistanceRate?
const shouldShowTax = isTaxTrackingEnabled(isPolicyExpenseChat || isTrackExpense || isExpenseUnreported(currentTransaction), policy, isDistanceRequest);…date change Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@thelullabyy friendly bump |
|
Overall code looks good. Doing final review round... Hope it can be merged today |
|
Test 3 is failed when It looks like we didn't handle for that case @Krishna2323 We are going to remove the flag shortly, we need to cover this case as well Screen.Recording.2026-06-24.at.20.50.15.mov |
|
Others look good to me |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
fixed |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 991aa3410f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@Krishna2323 Please check ^ comments |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@thelullabyy comments addressed. |
|
@Krishna2323 Test 1 is failed now Screen.Recording.2026-06-28.at.19.55.42.mov |
|
@Krishna2323 Could you please test again all three 3 cases with new manual expense flow beta enabled? |
|
Test 2 tile is wrong, it should be for #93389 |
Explanation of Change
Fixed Issues
$ #93142
$ #93389
$ #93603
PROPOSAL:
Tests
Test 1 (#93142):
Precondition:
Steps
→ Verify tax field shows Rate A with Tax rate 0%.
Test 2 (#93142):
Test 3 (#93603):
Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
android_hybrid_scroll_issue.mp4
Android: mWeb Chrome
iOS: Native
ios_hybrid_save_button_jump.mp4
ios_hybrid.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web_chrome_tax_rate_update.mp4