-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] Subscription plan card UI changes #55117
[CP Staging] Subscription plan card UI changes #55117
Conversation
@DylanDylann Please help review this PR |
Reviewer Checklist
Screenshots/VideosAndroid: NativeUploading Screen Recording 2025-01-13 at 14.58.28.mov… iOS: NativeScreen.Recording.2025-01-13.at.15.08.47.movMacOS: Chrome / SafariScreen.Recording.2025-01-13.at.14.54.45.movMacOS: DesktopScreen.Recording.2025-01-13.at.15.06.00.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.
Code looks good overall but @jayeshmangwani could you outline the changes you've made in the Explanation of Change
section of the PR description?
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.
Agreed looking great! Will wait for @MariaHCD to merge 👍
Also FYI @jayeshmangwani I added |
@MariaHCD @Beamanator updated the App/src/pages/workspace/upgrade/UpgradeIntro.tsx Lines 49 to 58 in 84bc92c
|
Thanks for doing this! I'll make sure to add |
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.
All you @MariaHCD !
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ui_changes [CP Staging] Subscription plan card UI changes (cherry picked from commit b545bcf) (CP triggered by Beamanator)
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.84-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀
|
Explanation of Change
In this PR, we implemented two main changes:
UpgradeIntro Component Update
Previously, the
GenericFeaturesView
was shown if thefeature
wasnull
or there was nopolicyID
. However, this approach failed for users accessing the "Categorize" option. When a user selects "Categorize" from the Self-DM whisper, theisCategorizing
flag is set to true. In such scenarios, a separate Categories upgrade UI needs to be displayed. To address this, we added a condition to ensure thatisCategorizing
is false before checking thepolicyID
.SubscriptionPlanCard PressableWithFeedback Refactoring
We removed the parent
View
around thePressableWithFeedback
for SubscriptionPlanCard component. This ensures that the PressableWithFeedback child has no untouchable area, allowing the entire card to act as a PressableWithFeedback.Fixed Issues
$ #55110
$ #55111
$ #55112
$ #55113
PROPOSAL:
Tests
Test 1
Test 2
Test 3
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests
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.mov
Android: mWeb Chrome
mweb-chrome.mov
iOS: Native
iOS.mov
iOS: mWeb Safari
mweb-safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov