-
Notifications
You must be signed in to change notification settings - Fork 803
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
Partner Coupon: Add a new Partner Coupon Redeem CTA #22413
Partner Coupon: Add a new Partner Coupon Redeem CTA #22413
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
3579fab
to
13f00f4
Compare
Caution: This PR has changes that must be merged to WordPress.com |
2428cb1
to
ab6551a
Compare
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.
Design
IMO the whitespace seems a bit off when a bullet breaks down to a new line
The overall "feel" looks a bit messy/chaotic and it's difficult to glance the bullets compared to the original design
I know design is supposed to give a 👍 after team approval, but it might be worth pulling them in now to specifically look at the "bullets" since the first image is what everyone is currently going to see?
It looks like the code is using the suggested spacing when nothing is breaking into new lines so maybe we need a copy change / design change? Or it's just my eyes and everything is good 😂
"Remind me later"
There's no "Remind me later" functionality which the design implies. I kinda like it since, if you do not want to claim the coupon anyway, this box would be "in the way" for about a month before auto-purge removes it from the site.
If it to limit scope, perhaps we could have an action called "Remove coupon" which would purge the coupon from the database?
Mobile experience
The mobile device usage of the Jetpack screen is (IMO) surprisingly small, so I think we generally just try and support it as well as possible without going too far out of our own way to handle it.
I'm prefacing the following comment with the above, because other components are "breaking" around the same time as our new component but 360x640 and 360x800 screen sizes are still some of the most popular mobile resolutions and 360x width is actually the most popular by far, if you combine the two
That being said: until we reach the minimum limits, it flows pretty well up until the max width 😃
projects/js-packages/partner-coupon/components/redeem-partner-coupon-post-connection/index.jsx
Show resolved
Hide resolved
projects/js-packages/partner-coupon/components/redeem-partner-coupon-post-connection/index.jsx
Outdated
Show resolved
Hide resolved
projects/js-packages/partner-coupon/components/redeem-partner-coupon-post-connection/index.jsx
Outdated
Show resolved
Hide resolved
@Luchadores any thoughts on the feature listing and line-breaking we currently have because of the verbiage? Should we drop the two column layout?
Turns out I've been looking at an outdated design in Figma. I've posted pdpAdu-7z-p2 in order to discuss the "remind me later" feature which I will be exploring soon and I've reworked the design implementation, especially on mobile. |
Hey @atanas-dev, here is what the design is looking like in Figma. Hope I understood your question correctly and that this helps. |
@Luchadores take a look at this screenshot from André's comment (my ones in the PR itself are a bit outdated): The verbiage you see is what we have in production for the product that IONOS will be providing - we have 3 features with one of them being significantly longer ("Automated daily backups (off-site)") which causes it to break into multiple lines even on desktop browser sizes. Should we drop the two-column layout for features even on desktop? |
Hey @atanas-dev, in that case, I would put all "One-click restores" under "Unlimited backup storage". That way we won't have "One-click restores" by itself, nor it will break the line for "Automated daily backups". |
@jeherve apologies, this was added at the end and I missed updating the PR description. |
Yeah, it would definitely simplify things, and would probably work just as well for such a short duration. For a longer duration (if that changes following our discussion above), however, it probably wouldn't be as good? |
…hable when there is only a site connection
…ost-connection-cta
I've updated the dismissal time to 3 days and switched the implementation to use localStorage rather than cookies. |
The new localStorage implementation tests well for me 👍 The "3 days if you're in the same browser" time also seems like a fair compromise between:
and
|
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.
The component is now disabled in Offline mode.
|
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.
Thanks, all looks good now! 🚢
Great news! One last step: head over to your WordPress.com diff, D73666-code, and commit it. Thank you! |
…22413) Add a new partner coupon redeem CTA for connected users on the "At a Glance" page when a partner coupon is detected on the site. The CTA has a "Remind me later" option which will store the current timestamp in localStorage and hide the CTA until 3 days have passed. PT: pdpAdu-1U-p2
Deployed in r240207-wpcom |
Changes proposed in this Pull Request:
Jetpack product discussion
pdpAdu-1U-p2
There were 2 design pieces left out because the scope was reduced:
Does this pull request change what data or activity we track or use?
Added a new
jetpackRedeemPartnerCouponDismissedAt
Local Storage key that holds a timestamp when the user clicks the "Remind me later" button.Testing instructions:
/wp-admin/?jetpack-partner-coupon=PARTNER_COUPON_CODE
to store a partner coupon code. Please reach out to team Avalon to get a coupon code./wp-admin/admin.php?page=jetpack&showCouponRedemption=1#/
which matches screenshot 1 below.&showCouponRedemption=1
to your URL and confirm it matches screenshot 4 below.Final results:
Screenshot 1: No connection with and without showCouponRedemption=1:
Screenshot 2: Site connection with and without showCouponRedemption=1:
Screenshot 3: User connection without showCouponRedemption=1:
Screenshot 4: User connection and showCouponRedemption=1: