-
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: view your subscription link does not navigate to subscription page #48673
Conversation
@rayane-djouah 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-08.at.10.49.40.PM.movAndroid: mWeb ChromeScreen.Recording.2024-09-08.at.10.48.33.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-08.at.22.47.52.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-09-08.at.22.46.33.mp4MacOS: Chrome / SafariScreen.Recording.2024-09-08.at.10.38.46.PM.movMacOS: DesktopScreen.Recording.2024-09-08.at.10.39.53.PM.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 and tests well
@bondydaa all yours! |
@thienlnam all yours! |
✋ 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 production by https://github.com/luacmartins in version: 9.0.33-4 🚀
|
const goBack = useCallback(() => { | ||
if (!feature) { | ||
return; | ||
} | ||
switch (feature.id) { | ||
case CONST.UPGRADE_FEATURE_INTRO_MAPPING.reportFields.id: | ||
case CONST.UPGRADE_FEATURE_INTRO_MAPPING.rules.id: | ||
return Navigation.navigate(ROUTES.WORKSPACE_MORE_FEATURES.getRoute(policyID)); | ||
default: | ||
return route.params.backTo ? Navigation.navigate(route.params.backTo) : Navigation.goBack(); | ||
} | ||
}, [feature, policyID, route.params.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.
Coming from #50924, I was only able to track this PR to origanting this minor bug, we did not handled CONST.UPGRADE_FEATURE_INTRO_MAPPING.approvals.id: here properly which caused selected approver to resetted when going back, more details in #50924 (comment)
Details
Fixed Issues
$ #47683
PROPOSAL: #47683 (comment)
Tests
Verify that app navigates to Subscription page
Offline tests
QA Steps
Verify that app navigates to Subscription page
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
Screen.Recording.2024-09-06.at.09.50.19.mov
Android: mWeb Chrome
Screen.Recording.2024-09-06.at.09.47.08.mov
iOS: Native
Screen.Recording.2024-09-06.at.09.24.26.mov
iOS: mWeb Safari
Screen.Recording.2024-09-06.at.09.29.31.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-06.at.09.18.49.mov
MacOS: Desktop
Screen.Recording.2024-09-06.at.09.34.24.mov