-
Notifications
You must be signed in to change notification settings - Fork 1
Create registration flow for Print promotion #3280
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
base: main
Are you sure you want to change the base?
Conversation
…oller. For /signin/password, /reauthenticate, /reauthenticate/password use the sign in only controller
…d cookie state is not available update a couple of e2e test assertions to work with the new passcode page
update some more of the register e2e test assertions to work with the new signin or register passcode route
amend signin controller encrypted cookie signinOrRegister state based on where the journey started
…r flow for people going through the registration journey in order for them to set consents and newsletter consents
…statements, refactor large if else block to be a series of ifs with returns to hopefully make the code more readable
…nal/immutable-data eslint rule
…at it only redirects you to the specific route you came from or the combined /signin route. This should mitigate any user enumeration attempts
30f1f40 to
3e529ae
Compare
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.
Pull Request Overview
This PR creates a registration flow specifically for print promotion campaigns, introducing a new client ID 'printpromo' that directs users through a specialized welcome flow.
- Adds a new 'printpromo' client ID and associated routing paths
- Creates specialized welcome page and email template for print promo signups
- Implements conditional routing logic to direct print promo users to their dedicated flow
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/shared/model/Routes.ts | Adds new route paths for print promo registration and welcome flows |
| src/shared/lib/clientId.ts | Registers 'printpromo' as a valid client ID |
| src/server/routes/welcome.ts | Implements welcome/print-promo endpoint with email sending logic |
| src/server/routes/register.ts | Adds /print-promo registration endpoint and conditional routing logic |
| src/server/routes/passcode.ts | Updates passcode flow to redirect print promo users to specialized welcome page |
| src/server/lib/registrationPlatform.ts | Maps printpromo client ID to platform identification |
| src/email/templates/renderedTemplates.ts | Registers new print promo email templates |
| src/email/templates/PrintPromoSignUp/* | Creates email templates for print promo welcome emails |
| src/client/routes.tsx | Adds client-side routing for print promo pages |
| src/client/pages/WelcomePrintPromo* | Creates React components for print promo welcome page |
| src/client/pages/PasscodeUsed.tsx | Updates redirect logic for print promo users |
| cypress/integration/ete/registration_3.8.cy.ts | Adds end-to-end test for print promo registration flow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Send us an email with subject line “REWARD” to | ||
| [email protected] to receive your reward. |
Copilot
AI
Nov 10, 2025
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.
The email address '[email protected]' is hardcoded. Consider extracting this to a configuration constant similar to how SUPPORT_EMAIL is used elsewhere in the codebase, making it easier to update and maintain.
80d09cf to
a5ef871
Compare
…into al/print-promo
9674b94 to
d139012
Compare
What does this change?
This PR introduces a registration flow for the Print Promotion campaign, using a new
appClientIdprintpromo.printpromovalue:appClientIdto be used identify users on the print-promo flow and to update registration platform.print-promowhich points to the Register page.welcome/print-promopage and email template for print promo signupsImages
Registration page on /print-promo/welcome/print promo for existing users/welcome/print promo for new usersEmail sent on landing on /welcome/print-promo