-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Early discount countdown banner #54901
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
Early discount countdown banner #54901
Conversation
30b7483
to
e857669
Compare
e857669
to
498fc03
Compare
@eVoloshchak 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] |
Let us know when this is ready for design review! |
Can we get some screenshots for the design team please? |
🚧 @youssef-lr has triggered a test build. You can view the workflow run here. |
Added web. Adding more in sometime. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
A couple things from the screenshots/videos so far:
Would love clarification about the offers and which should be dismissible, but the banner color in the chat needs to be updated regardless. |
That's correct, I believe I had it coded this way. @parasharrajat can you check? |
src/pages/settings/Subscription/CardSection/BillingBanner/EarlyDiscountBanner.tsx
Show resolved
Hide resolved
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-22.at.13.08.44.movAndroid: mWeb ChromeScreen.Recording.2025-01-22.at.12.29.37.moviOS: NativeScreen.Recording.2025-01-22.at.12.23.09.moviOS: mWeb SafariScreen.Recording.2025-01-22.at.12.25.01.movMacOS: Chrome / SafariScreen.Recording.2025-01-22.at.11.25.23.movScreen.Recording.2025-01-22.at.11.35.06.movMacOS: DesktopScreen.Recording.2025-01-22.at.12.06.59.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!
All yours @youssef-lr |
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! Not merging yet until we deploy some backend code that updates the length of the trial to 30 days.
@youssef-lr I did notice that when we cancel the banner on the onboarding chat, it pops again on reopening that chat. Do we want to cancel that permanently? |
It's intentional. |
🚀 Deployed to staging by https://github.com/youssef-lr in version: 9.0.90-0 🚀
|
@youssef-lr @parasharrajat How can we set the NVP? Could this be verified internally? |
Please use QA steps for testing. You can Do the 24-hour testing and skip the 8-day one. What do you think @youssef-lr? |
@kavimuru it's working well, feel free to skip that part, I tested it myself. Screen.Recording.2025-01-28.at.16.19.59.mov |
If you're asking about the promo code NVP, can you give me the email you used for testing? I can check if it has the NVP. |
@youssef-lr QA steps are updated now. Should we wait 24 hours to verify the following?
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.90-6 🚀
|
This PR introduced a style bug, detailed here #58974 |
@shubham1206agra How when we didn't even have that button on this PR? |
@parasharrajat This PR kind of started the bad layout, which caused the bug. Though, I will replace the offending PR to #57092. |
I don't understand what you mean by bad layout. It was tested and was working great for the UI at that time. The PR which added the button should change the layout as they want. |
Explanation of Change
Fixed Issues
$ #54817
PROPOSAL: #54817 (comment)
Tests
Claiming the first discount
Claiming the second discount
Period past 8 days
Offline tests
Same as QA steps.
QA Steps
Prerequisites:
Claiming the first discount
Go to your onboarding chat or concierge.
Verify you can see a countdown timer starting from 24h.
Verify the banner is not dismissable.
Verify that clicking on “Claim offer” takes you to the subscription page.
Verify the subscription page shows the same timer.
[Depends if backend has implemented the changes] Verify that after you add a card, a promoCode of 50% has been applied to your account.
Claiming the second discount
Period past 8 days
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
17.01.2025_15.26.54_REC.mp4
Android: mWeb Chrome
17.01.2025_15.29.45_REC.mp4
iOS: Native
17.01.2025_15.51.53_REC.mp4
iOS: mWeb Safari
17.01.2025_15.52.46_REC.mp4
MacOS: Chrome / Safari
17.01.2025_15.27.39_REC.mp4
MacOS: Desktop
17.01.2025_15.34.37_REC.mp4