-
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
feat: Payment card subscription size screen UI #42683
feat: Payment card subscription size screen UI #42683
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
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.
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 |
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.
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 |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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.
…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! |
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!
@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 🤝 |
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.
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 🚀
|
Details
Implemented UI for subcription size screens
Fixed Issues
$ #38632
PROPOSAL:
Tests
/settings/subscription/subscription-size
Offline tests
QA Steps
/settings/subscription/subscription-size
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