-
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
fix routes for tax rate and amount page #34094
fix routes for tax rate and amount page #34094
Conversation
@NikkiWines 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] |
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.
Could you please also add screenshots for mobile platform
@@ -82,7 +82,7 @@ function IOURequestStepTaxAmountPage({ | |||
); | |||
|
|||
const navigateBack = () => { | |||
Navigation.goBack(isEditing ? ROUTES.MONEY_REQUEST_CONFIRMATION.getRoute(iouType, reportID) : ROUTES.HOME); | |||
Navigation.goBack(backTo || ROUTES.HOME); |
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.
You need to define backTo?
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.
O yea backTo is defined and comes from route params.
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.
Right, but don't we need something like -
const backTo = lodashGet(route, 'params.backTo', ROUTES.HOME);
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.
no, we don't, issues with fallback is already handled here
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.
again, we have other scenarios were backTo is refactored to be used this way.. we could maintain that and avoid one more variable. what do you think?
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.
params: {iouType, reportID, transactionID, backTo, currency: selectedCurrency}, |
I think everything looks good here
@alitoshmatov could you please take a look since this is a regression from a main PR. Thank you! |
Working on it |
Reviewer Checklist
Screenshots/VideosAndroid: NativeN/aAndroid: mWeb Chrometax-route-mweb.moviOS: NativeN/aiOS: mWeb Safaritax-route-safari.mp4MacOS: Chrome / Safaritax-route-web.movMacOS: DesktopN/a |
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!
🎯 @alitoshmatov, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #34097. |
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.
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/MonilBhavsar in version: 1.4.23-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.23-4 🚀
|
Details
Fix issue with user being redirected to money request page once tax rate is selected after tax rate page is refreshed.
Fixed Issues
$: 34058
PROPOSAL: 34058
Tests
**Expectation: ** The tax is selected and User is not redirected to request money page
Offline tests
QA Steps
**Expectation: ** The tax is selected and User is not redirected to request money page
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
Web
Screen.Recording.2024-01-08.at.11.34.11.mov
Mobile Web - Chrome
Mobile Web - Safari
Screen.Recording.2024-01-08.at.13.11.45.mov
Desktop
Screen.Recording.2024-01-08.at.14.37.55.mov
iOS
Screen.Recording.2024-01-08.at.13.14.16.mov
Android