From d10f14ebf96bb4ddacc41de08bc0176b2cd1fac6 Mon Sep 17 00:00:00 2001 From: Paul Dempsey <76729591+paul-daniel-dempsey@users.noreply.github.com> Date: Fri, 7 Feb 2025 17:05:41 +0000 Subject: [PATCH 1/4] feat: TsCs Footer proceeds copy update --- .../components/paymentTsAndCs.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx index 354aa0d641..9a9254251d 100644 --- a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx +++ b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx @@ -109,10 +109,13 @@ function TsAndCsRenewal({ export function TsAndCsFooterLinks({ countryGroupId, amountIsAboveThreshold, + productKey, }: { countryGroupId: CountryGroupId; amountIsAboveThreshold?: boolean; + productKey?: ActiveProductKey; }) { + const inAdLite = productKey === 'GuardianAdLite'; const privacy = Privacy Policy; const termsContributions = ( @@ -121,11 +124,15 @@ export function TsAndCsFooterLinks({ const terms = amountIsAboveThreshold ? termsSupporterPlus('Terms and Conditions') + : inAdLite + ? termsGuardianAdLite('Terms') : termsContributions; + const productNameSummary = inAdLite ? ' the Guardian Ad-Lite ' : ' our '; return (
- By proceeding, you are agreeing to our {terms}.{' '} + By proceeding, you are agreeing to{productNameSummary} + {terms}.{' '}

To find out what personal data we collect and how we use it, please visit our {privacy}. @@ -214,11 +221,15 @@ export function PaymentTsAndCs({ ); } - const copyBelowThreshold = (countryGroupId: CountryGroupId) => { + const copyBelowThreshold = ( + countryGroupId: CountryGroupId, + productKey: ActiveProductKey, + ) => { return ( ); }; @@ -258,7 +269,8 @@ export function PaymentTsAndCs({ {inAllAccessDigital && copyAboveThreshold(contributionType, productKey, promotion)} {inAdLite && copyAdLite(contributionType, productKey)} - {(inSupport || inAdLite) && copyBelowThreshold(countryGroupId)} + {(inSupport || inAdLite) && + copyBelowThreshold(countryGroupId, productKey)}

); From 693bcb51779be2791c0a56ef2768b3e54f5e0379 Mon Sep 17 00:00:00 2001 From: Paul Dempsey <76729591+paul-daniel-dempsey@users.noreply.github.com> Date: Fri, 7 Feb 2025 17:06:48 +0000 Subject: [PATCH 2/4] feat: stripe TsCs link capitalisation --- .../assets/components/stripe/stripeDisclaimer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support-frontend/assets/components/stripe/stripeDisclaimer.tsx b/support-frontend/assets/components/stripe/stripeDisclaimer.tsx index 1b01f25751..108dd1f3d4 100644 --- a/support-frontend/assets/components/stripe/stripeDisclaimer.tsx +++ b/support-frontend/assets/components/stripe/stripeDisclaimer.tsx @@ -14,11 +14,11 @@ export function StripeDisclaimer() { <> All card payments are powered by Stripe. Read the Stripe{' '} - privacy policy + Privacy Policy {' '} and{' '} - terms and conditions + Terms and conditions . From e7040ad5941f83435146d29275998fc41fba0b79 Mon Sep 17 00:00:00 2001 From: Paul Dempsey <76729591+paul-daniel-dempsey@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:44:35 +0000 Subject: [PATCH 3/4] review: removed spaces in string const --- .../supporter-plus-landing/components/paymentTsAndCs.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx index 9a9254251d..06bd6eae4a 100644 --- a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx +++ b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx @@ -127,12 +127,11 @@ export function TsAndCsFooterLinks({ : inAdLite ? termsGuardianAdLite('Terms') : termsContributions; - const productNameSummary = inAdLite ? ' the Guardian Ad-Lite ' : ' our '; + const productNameSummary = inAdLite ? 'the Guardian Ad-Lite' : 'our'; return (
- By proceeding, you are agreeing to{productNameSummary} - {terms}.{' '} + By proceeding, you are agreeing to {productNameSummary} {terms}.{' '}

To find out what personal data we collect and how we use it, please visit our {privacy}. From 2aae9fe84e92dad956665c9cc3a1b1242dc52d21 Mon Sep 17 00:00:00 2001 From: Paul Dempsey <76729591+paul-daniel-dempsey@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:53:55 +0000 Subject: [PATCH 4/4] merge correction --- .../pages/supporter-plus-landing/components/paymentTsAndCs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx index 389f4bb472..677c2d22b5 100644 --- a/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx +++ b/support-frontend/assets/pages/supporter-plus-landing/components/paymentTsAndCs.tsx @@ -294,7 +294,8 @@ export function PaymentTsAndCs({ {inAllAccessDigital && copyAboveThreshold(contributionType, productKey, promotion)} {inAdLite && copyAdLite(contributionType, productKey)} - {(inSupport || inAdLite) && copyBelowThreshold(countryGroupId)} + {(inSupport || inAdLite) && + copyBelowThreshold(countryGroupId, productKey)} {inDigitalEdition && copyDigitalEdition()}