Skip to content

Enable thank-you onboarding for Digital+ - #8013

Open
andrade0 wants to merge 2 commits into
mainfrom
oa/digital-plus-thankyou-onboarding
Open

andrade0 wants to merge 2 commits into
mainfrom
oa/digital-plus-thankyou-onboarding

Conversation

@andrade0

@andrade0 andrade0 commented Jun 2, 2026

Copy link
Copy Markdown

What are you doing in this PR?

Enabling the thank-you onboarding experience for Digital+. Until now only Supporter Plus reached the onboarding flow after checkout — Digital+ purchasers dropped through to the legacy thank-you cards.

Why are you doing this?

Digital+ should get the same post-purchase onboarding as Supporter Plus. The gate that decides whether to show onboarding compared the support-workers product name (DigitalPack) against a list of frontend catalog keys, so Digital+ never matched. This PR translates the workers product name to its catalog key (DigitalSubscription) server-side before the comparison, and adds the key to the onboarding list so the product is recognised.

How to test

On this branch, buy a Digital+ subscription on /uk and land on the thank-you page: the onboarding experience now shows instead of the legacy cards. The product-key translation is covered by a new unit test (CreateSubscriptionControllerTest). Note the onboarding content comes from the landing-page settings (RRCP/DynamoDB); locally it can be previewed with force-landing-page=AB_DIGITAL_PLUS_TEST:DP_TEST.

Have we considered potential risks?

Low risk. The behaviour stays gated behind the existing enableThankYouOnboarding switch. The only change is that Digital+ now matches the onboarding list — other products are unaffected, as the translation falls back to the simple class name for everything else.

@andrade0 andrade0 added the feature Departmental tracking: work on a new feature label Jun 2, 2026
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Size Change: +39 B (0%)

Total Size: 1.87 MB

ℹ️ View Unchanged
Filename Size Change
./support-frontend/public/compiled-assets/javascripts/[countryGroupId]/events/router.js 119 kB 0 B
./support-frontend/public/compiled-assets/javascripts/[countryGroupId]/router.js 156 kB +14 B (+0.01%)
./support-frontend/public/compiled-assets/javascripts/ausMomentMap.js 111 kB 0 B
./support-frontend/public/compiled-assets/javascripts/downForMaintenancePage.js 97.9 kB 0 B
./support-frontend/public/compiled-assets/javascripts/error404Page.js 97.8 kB 0 B
./support-frontend/public/compiled-assets/javascripts/error500Page.js 97.7 kB 0 B
./support-frontend/public/compiled-assets/javascripts/favicons.js 43 B 0 B
./support-frontend/public/compiled-assets/javascripts/paperSubscriptionLandingPage.js 121 kB 0 B
./support-frontend/public/compiled-assets/javascripts/payPalErrorPage.js 95.8 kB 0 B
./support-frontend/public/compiled-assets/javascripts/promotionTerms.js 102 kB 0 B
./support-frontend/public/compiled-assets/javascripts/subscriptionsLandingPage.js 130 kB 0 B
./support-frontend/public/compiled-assets/javascripts/switchesPage.js 28.4 kB 0 B
./support-frontend/public/compiled-assets/javascripts/unsupportedBrowserPage.js 88.7 kB 0 B
./support-frontend/public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js 127 kB 0 B
./support-frontend/public/compiled-assets/webpack/146.js 3.46 kB 0 B
./support-frontend/public/compiled-assets/webpack/241.js 4.19 kB 0 B
./support-frontend/public/compiled-assets/webpack/252.js 35.5 kB 0 B
./support-frontend/public/compiled-assets/webpack/277.js 9.71 kB 0 B
./support-frontend/public/compiled-assets/webpack/347.js 5.59 kB 0 B
./support-frontend/public/compiled-assets/webpack/77.js 11.1 kB 0 B
./support-frontend/public/compiled-assets/webpack/805.js 22.3 kB 0 B
./support-frontend/public/compiled-assets/webpack/832.js 6.46 kB 0 B
./support-frontend/public/compiled-assets/webpack/846.js 4.51 kB 0 B
./support-frontend/public/compiled-assets/webpack/857.js 5.69 kB 0 B
./support-frontend/public/compiled-assets/webpack/955.js 5.81 kB 0 B
./support-frontend/public/compiled-assets/webpack/993.js 15.2 kB 0 B
./support-frontend/public/compiled-assets/webpack/checkout.js 30.2 kB 0 B
./support-frontend/public/compiled-assets/webpack/errorPage.js 20.5 kB 0 B
./support-frontend/public/compiled-assets/webpack/GuardianAdLiteLanding.js 7.95 kB 0 B
./support-frontend/public/compiled-assets/webpack/LandingPage.js 14.6 kB 0 B
./support-frontend/public/compiled-assets/webpack/oneTimeCheckout.js 7.42 kB 0 B
./support-frontend/public/compiled-assets/webpack/sentry.js 109 kB 0 B
./support-frontend/public/compiled-assets/webpack/StudentLandingPageGlobalContainer.js 1.74 kB 0 B
./support-frontend/public/compiled-assets/webpack/StudentLandingPageInstitutionContainer.js 694 B 0 B
./support-frontend/public/compiled-assets/webpack/ThankYou.js 170 kB +25 B (+0.01%)

compressed-size-action

@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@graham228221 graham228221 added the Do Not Merge May still be WIP or unstable label Jun 5, 2026
@graham228221

Copy link
Copy Markdown
Member

Adding "Do not merge" label as this would be part of the Multiple Accounts project phase 2 (enabling the feature for new acquisitions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Do Not Merge May still be WIP or unstable feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants