Add empty subscription settings screen to navigation#42514
Conversation
| return ( | ||
| <ScreenWrapper testID={SubscriptionSettingsPage.displayName}> | ||
| <HeaderWithBackButton | ||
| title="Subscription" |
There was a problem hiding this comment.
Shouldn't we add this to translations?
|
@jayeshmangwani 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] |
amyevans
left a comment
There was a problem hiding this comment.
One question, otherwise LGTM!
| <ScreenWrapper testID={SubscriptionSettingsPage.displayName}> | ||
| <HeaderWithBackButton | ||
| title={translate('workspace.common.subscription')} | ||
| onBackButtonPress={() => Navigation.goBack()} |
There was a problem hiding this comment.
should this specifically go to ROUTES.SETTINGS?
There was a problem hiding this comment.
Looking at some other setting screens, it's Navigation.goBack(navigateBackTo) for ProfilePage.tsx (navigateBackTo is an optional route param) and Navigation.goBack() for PreferencesPage.tsx, that's what I based my solution upon. Do you think we should specify which screen it should go back to?
There was a problem hiding this comment.
I don't feel super strongly, let's merge as-is and we can adjust later if we want
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.77-11 🚀
|
|
🚀 Deployed to staging by https://github.com/amyevans in version: 1.4.77-11 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.78-5 🚀
|
Details
To access this newly created screen, paste the following link into the browser
https://dev.new.expensify.com:8082/settings/subscription
or add this effect to
InitialSettingsPage.tsxFixed Issues
$ #38615
PROPOSAL: N/A
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop