-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
Size Change: -74.7 kB (-3.41%) Total Size: 2.12 MB
ℹ️ View Unchanged
|
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, |
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.
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, |
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.
Could this come out of the corresponding reducer.ts
file?
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.
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, |
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.
Can ths come out the reducer too?
@@ -60,6 +61,8 @@ export function ThankYou({ geoId, appConfig }: ThankYouProps) { | |||
originalAmount: finalAmount, | |||
finalAmount: finalAmount, | |||
}; | |||
|
|||
setHideSupportMessagingCookie(); |
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 part of this PR specifically? If not, maybe a comment might be good here?
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.
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` |
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.
Great idea to move this across
@@ -78,16 +75,6 @@ const router = () => { | |||
) | |||
} | |||
/> | |||
<Route |
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.
Nice removal 👌
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.
Looks spot on, so satisfying to remove those routes. smoke and cron tests pass too.
Seen on PROD (merged by @andrewHEguardian 11 minutes and 4 seconds ago)
Sentry Release: support-client-side, support |
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 nowHow to test
gu_hide_support_messaging
is set on the one time thank you page