-
Notifications
You must be signed in to change notification settings - Fork 31
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
Changes for Epic choice cards v2 - single contributions test #12042
Conversation
Size Change: +788 B (+0.09%) Total Size: 899 kB
ℹ️ View Unchanged
|
}: ThreeTierChoiceCardsProps) => { | ||
const currencySymbol = getLocalCurrencySymbol(countryCode); | ||
const countryGroupId = countryCodeToCountryGroupId(countryCode); | ||
|
||
const Choices = getChoiceCardData(variantOfChoiceCard) as ChoiceInfo[]; |
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.
You can remove the as
here and add the types to the getChoiceCardData
function as its return type
@@ -186,6 +188,7 @@ export const ContributionsEpicButtons = ({ | |||
const getChoiceCardCta = (cta: Cta): Cta => { | |||
if ( | |||
showThreeTierChoiceCards && | |||
!variantOfChoiceCard && |
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.
is this if statement not redundant now? We pass the prop variantOfChoiceCard
in Live blog and normal Epic so both cases will fall into the next if statement
@@ -95,6 +100,7 @@ type ChoiceInfo = { | |||
benefitsLabel?: string; | |||
benefits: string[]; | |||
recommended: boolean; | |||
url: string; |
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.
I can't see the URL being used?
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.
This looks good! 👍 Just a comment on keeping the types strict
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Seen on PROD (merged by @LAKSHMIRPILLAI 8 minutes and 40 seconds ago) Please check your changes! |
return { | ||
text: cta.text, | ||
baseUrl: addChoiceCardsParams( | ||
cta.baseUrl, | ||
'MONTHLY', // only doing monthly in the first test | ||
'https://support.theguardian.com/uk/contribute/checkout', |
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.
should be https://support.theguardian.com/contribute/checkout
- without the region
What does this change?
Epic choice cards v2 - single contributions test
Why?
The first choice card redesign test provided a fantastic result for non-US regions. However, we need to optimise this functionality for the US as well and will re-try the design but with an emphasis on single contributions too.
V1: By anchoring a SC at the lowest price point and directing the user to the second step of the checkout, we can capture better S+ acquisitions without a drop off in SC.
V2: By removing the recommended pill, we can empower our users to select a flexible offering that best suits their needs, thus driving extra revenue per impression.
Trello card
Figma file
Screenshots
V1 of New Choice cards
V2 of New Choice cards
Clicking on Support just once from £1 , takes user to
Clicking on Support £4/month, takes user to
Clicking on Support £12/month, takes user to