Skip to content
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

Delete Old Supporter Plus Checkout #6682

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

andrewHEguardian
Copy link
Contributor

@andrewHEguardian andrewHEguardian commented Jan 9, 2025

What are you doing in this PR?

Deleting the supporter plus checkout and thank you page (the old redux version) and the files and functions used only by them.

Trello Card

Why are you doing this?

No acqusitions have been made via twoStepPages/secondStepCheckout.tsx since #6596 should be sending any traffic that previously went to the “/contribute/checkout” route to the new generic / one-time checkouts now

How to test

  • Run through our playwright tests
  • Also need to test the hide messaging cookie that was missed during development of the one time checkout: gu_hide_support_messaging is set on the one time thank you page

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Size Change: -74.7 kB (-3.41%)

Total Size: 2.12 MB

Filename Size Change
./public/compiled-assets/javascripts/supporterPlusLandingPage.js 225 kB -74.6 kB (-24.91%) 🎉
ℹ️ View Unchanged
Filename Size Change
./public/compiled-assets/javascripts/[countryGroupId]/events/router.js 90.4 kB 0 B
./public/compiled-assets/javascripts/[countryGroupId]/router.js 259 kB -6 B (0%)
./public/compiled-assets/javascripts/ausMomentMap.js 108 kB -1 B (0%)
./public/compiled-assets/javascripts/contributionsRedirectStyles.js 20 B 0 B
./public/compiled-assets/javascripts/digitalSubscriptionLandingPage.js 228 kB -40 B (-0.02%)
./public/compiled-assets/javascripts/downForMaintenancePage.js 70.9 kB +1 B (0%)
./public/compiled-assets/javascripts/error404Page.js 70.9 kB +1 B (0%)
./public/compiled-assets/javascripts/error500Page.js 70.8 kB 0 B
./public/compiled-assets/javascripts/favicons.js 617 B 0 B
./public/compiled-assets/javascripts/paperSubscriptionCheckoutPage.js 166 kB -45 B (-0.03%)
./public/compiled-assets/javascripts/paperSubscriptionLandingPage.js 87.8 kB 0 B
./public/compiled-assets/javascripts/payPalErrorPage.js 69.2 kB 0 B
./public/compiled-assets/javascripts/payPalErrorPageStyles.js 20 B 0 B
./public/compiled-assets/javascripts/promotionTerms.js 73.8 kB 0 B
./public/compiled-assets/javascripts/subscriptionsLandingPage.js 73.2 kB 0 B
./public/compiled-assets/javascripts/subscriptionsRedemptionPage.js 118 kB -8 B (-0.01%)
./public/compiled-assets/javascripts/unsupportedBrowserStyles.js 20 B 0 B
./public/compiled-assets/javascripts/weeklySubscriptionCheckoutPage.js 163 kB -37 B (-0.02%)
./public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js 88 kB 0 B
./public/compiled-assets/webpack/136.js 2.17 kB 0 B
./public/compiled-assets/webpack/187.js 21.7 kB 0 B
./public/compiled-assets/webpack/344.js 2.01 kB 0 B
./public/compiled-assets/webpack/643.js 22.4 kB 0 B
./public/compiled-assets/webpack/706.js 107 kB 0 B

compressed-size-action

@andrewHEguardian
Copy link
Contributor Author

We should be aware that we no longer have any Storybook coverage of thank you pages

@@ -349,7 +349,7 @@ class Application(
id = s"contributions-landing-page-$countryCode",
mainElement = mainElement,
js = RefPath("supporterPlusLandingPage.js"),
css = Some(RefPath("supporterPlusLandingPage.css")),
css = None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the file deletion has removed any sass being created on this page, so the asset is missing when the controller tries to find it

@@ -9,7 +9,6 @@ export const {
setProductPrices,
setAllAmounts,
setSelectedAmount,
setCoverTransactionCost,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this come out of the corresponding reducer.ts file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could, but I figured it was a marginal gain to remove it and it will come out when we delete most of the redux

export const {
setIsReturningContributor,
setIsSignedIn,
setStorybookUser,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can ths come out the reducer too?

@@ -60,6 +61,8 @@ export function ThankYou({ geoId, appConfig }: ThankYouProps) {
originalAmount: finalAmount,
finalAmount: finalAmount,
};

setHideSupportMessagingCookie();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of this PR specifically? If not, maybe a comment might be good here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's part of this PR because the deletion of the old thank you page highlighted we didn't port this across

import ThankYouHeader from './components/thankYouHeader';

const checkoutContainer = css`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea to move this across

@@ -78,16 +75,6 @@ const router = () => {
)
}
/>
<Route
Copy link
Contributor

@paul-daniel-dempsey paul-daniel-dempsey Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice removal 👌

Copy link
Contributor

@paul-daniel-dempsey paul-daniel-dempsey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks spot on, so satisfying to remove those routes. smoke and cron tests pass too.

@andrewHEguardian andrewHEguardian merged commit 07758a3 into main Jan 9, 2025
19 checks passed
@andrewHEguardian andrewHEguardian deleted the ahe/delete-old-splus-thank-you branch January 9, 2025 14:38
@prout-bot
Copy link

Seen on PROD (merged by @andrewHEguardian 11 minutes and 4 seconds ago)

Sentry Release: support-client-side, support

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

Successfully merging this pull request may close these issues.

3 participants