WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@akinsola-guardian
Copy link
Contributor

@akinsola-guardian akinsola-guardian commented Oct 28, 2025

What does this change?

This PR introduces a registration flow for the Print Promotion campaign, using a new appClientId printpromo.

  • Adds a new printpromo value: appClientId to be used identify users on the print-promo flow and to update registration platform.
  • Adds new route print-promo which points to the Register page.
  • Update Registration component to accommodate this new print-promo flow.
  • Creates welcome/print-promo page and email template for print promo signups
  • Sends an email upon landing on the welcome/print-promo page.
  • Implements conditional routing logic to direct print promo users to their dedicated flow

Images

Registration page on /print-promo
Screenshot 2025-11-13 at 09 48 02
/welcome/print promo for existing users
Screenshot 2025-11-13 at 09 43 08
/welcome/print promo for new users
Screenshot 2025-11-13 at 09 43 20
Email sent on landing on /welcome/print-promo
Screenshot 2025-11-13 at 09 50 01

Richard Bangay and others added 21 commits October 22, 2025 09:11
…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
…at it only redirects you to the specific route you came from or the combined /signin route. This should mitigate any user enumeration attempts
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

@akinsola-guardian akinsola-guardian changed the base branch from main to rb/combine-sign-in-and-create-account October 31, 2025 09:59
@akinsola-guardian akinsola-guardian changed the title Al/print promo Create registration flow for Print promotion Oct 31, 2025
Base automatically changed from rb/combine-sign-in-and-create-account to main November 3, 2025 15:33
@akinsola-guardian akinsola-guardian changed the base branch from main to kc/lbalarm November 4, 2025 10:14
@akinsola-guardian akinsola-guardian changed the base branch from kc/lbalarm to main November 4, 2025 10:14
Copy link

Copilot AI left a 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.

Copy link

Copilot AI left a 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.

Comment on lines +32 to +33
Send us an email with subject line “REWARD” to
[email protected] to receive your reward.
Copy link

Copilot AI Nov 10, 2025

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.

Copilot uses AI. Check for mistakes.
@akinsola-guardian akinsola-guardian marked this pull request as ready for review November 12, 2025 15:35
@akinsola-guardian akinsola-guardian requested a review from a team as a code owner November 12, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants