-
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
[CP Staging] Fix undefined inside backTo parameter for export accounts #55472
[CP Staging] Fix undefined inside backTo parameter for export accounts #55472
Conversation
@dukenv0307 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] |
should we remove backTo in the url if it's undefined? @narefyev91 |
i think it's not exist in the url |
@dukenv0307 we can as well pass one more prop to
And usage will be like this:
|
Howdy y'all - can we please get this moving so we can unblock deploy? 🙏 @dukenv0307 got any concerns with the current implementation? |
@Beamanator I'm reviewing |
The current implementation looks good to me |
I'll finish the checklist soon |
Ok great thanks so much 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-01-20.at.21.37.43.moviOS: NativeScreen.Recording.2025-01-20.at.21.38.49.moviOS: mWeb SafariScreen.Recording.2025-01-20.at.21.37.09.movMacOS: Chrome / SafariScreen.Recording.2025-01-20.at.21.34.48.movMacOS: DesktopScreen.Recording.2025-01-20.at.21.43.22.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.
LGTM!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ck-to [CP Staging] Fix undefined inside backTo parameter for export accounts (cherry picked from commit 791217f) (CP triggered by Beamanator)
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.87-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/Beamanator in version: 9.0.87-3 🚀
|
Explanation of Change
We could not use backTo with getUrlWithBackToParam for company cards logic - it will encodeURIComponent each time we pass backTo to the route - which will lead to %252025202520 - inside the route and we would never get the correct value like %20.
Problem is coming from backTo = 'undefined' - now if param is not passing - it will have type string. We just need to add check logic to prevent using backTo if it's not a valid string.
Fixed Issues
$ #54371, #55417
PROPOSAL:
Tests
Offline tests
No changes
QA Steps
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
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov