feat: Payment card subscription size screen UI#42683
feat: Payment card subscription size screen UI#42683amyevans merged 11 commits intoExpensify:mainfrom
Conversation
src/pages/settings/Subscription/SubscriptionSize/SubscriptionSizePage.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Subscription/SubscriptionSize/SubscriptionSizePage.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Subscription/SubscriptionSize/substeps/Confirmation.tsx
Outdated
Show resolved
Hide resolved
src/pages/settings/Subscription/SubscriptionSize/substeps/Size.tsx
Outdated
Show resolved
Hide resolved
rezkiy37
left a comment
There was a problem hiding this comment.
Left minor comments, besides LGTM.
|
@ikevin127 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: Nativeandroid.movAndroid: mWeb Chromeandroid-mweb.moviOS: Nativeios.moviOS: mWeb Safariios-mweb.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
ikevin127
left a comment
There was a problem hiding this comment.
UI looks good to me! Currently only accessible via route URL.
Approved with the mention of #42683 (comment) where I noticed spanish translation empty space at the beginning of a string.
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #38632 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Nice one, Kevin and Melvin! @amyevans will you review this one? |
|
Ah yep! Will get to it tonight although I have to step away for a few hours at the moment |
amyevans
left a comment
There was a problem hiding this comment.
Two quick comments otherwise LGTM!
Also please update the base branch to main
| return errors; | ||
| }; | ||
|
|
||
| const getNewSubscriptionRenewalDate = (): string => format(startOfMonth(addMonths(new Date(), 11)), CONST.DATE.MONTH_DAY_YEAR_ABBR_FORMAT); |
There was a problem hiding this comment.
| const getNewSubscriptionRenewalDate = (): string => format(startOfMonth(addMonths(new Date(), 11)), CONST.DATE.MONTH_DAY_YEAR_ABBR_FORMAT); | |
| const getNewSubscriptionRenewalDate = (): string => format(startOfMonth(addMonths(new Date(), 12)), CONST.DATE.MONTH_DAY_YEAR_ABBR_FORMAT); |
12 months matches the backend logic
…ment-card-subscription-size-screen
|
@shawnborton Would you like me to update styles of these texts now or should I wait for thoughts from design team you've CCed? |
|
I have a feeling they will likely agree with me :) so I think it's probably okay to start updating them. |
|
That looks great to me! |
amyevans
left a comment
There was a problem hiding this comment.
LGTM!
@ikevin127 can you give the latest changes a quick review once you're online?
|
Thanks Shawn! I took care of the mocks in the doc, but glad it's gotten sorted here! And as you expected, I 100% agree with all your suggested updates 🤝 |
ikevin127
left a comment
There was a problem hiding this comment.
Matches the latest design requirements, let's go! 🚀
|
✋ 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/Julesssss in version: 1.4.79-11 🚀
|
| <InputWrapper | ||
| InputComponent={TextInput} | ||
| inputID={INPUT_IDS.SUBSCRIPTION_SIZE} | ||
| label={translate('subscription.subscriptionSize.subscriptionSize')} | ||
| aria-label={translate('subscription.subscriptionSize.subscriptionSize')} | ||
| role={CONST.ROLE.PRESENTATION} | ||
| defaultValue={defaultValues[INPUT_IDS.SUBSCRIPTION_SIZE]} | ||
| shouldSaveDraft | ||
| /> |
There was a problem hiding this comment.
coming from #69011, for better UX, we add inputMode={CONST.INPUT_MODE.NUMERIC} to this input to open the correct keyboard type.






Details
Implemented UI for subcription size screens
Fixed Issues
$ #38632
PROPOSAL:
Tests
/settings/subscription/subscription-sizeOffline tests
QA Steps
/settings/subscription/subscription-sizePR 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