Skip to content

In article privacy notice bring privacy notice into blue box for signed in users - #16160

Merged
georgerichmond merged 9 commits into
mainfrom
16146-in-article-privacy-notice-bring-privacy-notice-into-blue-box-for-signed-in-users
Jun 17, 2026
Merged

georgerichmond merged 9 commits into
mainfrom
16146-in-article-privacy-notice-bring-privacy-notice-into-blue-box-for-signed-in-users

Conversation

@georgerichmond

@georgerichmond georgerichmond commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Moves the privacy message for signed-in users for the in-article signup card inside the card rather than outside, with a grey line.

Why?

Based on feedback from colleagues

Screenshots

Before After
before after

@georgerichmond georgerichmond changed the title 16146-in-article-privacy-notice-bring-privacy-notice-into-blue-box-for-signed-in-users In article privacy notice bring privacy notice into blue box for signed in users Jun 15, 2026
@georgerichmond
georgerichmond changed the base branch from main to 16124-in-article-privacy-notice-shorter-privacy-notice-for-signed-in-users June 15, 2026 12:48
@github-actions

github-actions Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

@georgerichmond georgerichmond added Do not merge ⚠️ feature Departmental tracking: work on a new feature labels Jun 15, 2026
@georgerichmond
georgerichmond requested a review from Copilot June 15, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Moves the signed-in privacy notice for the in-article newsletter signup card from outside the card container to within the card layout, updating related props/usages and aligning tests/stories with the new behaviour.

Changes:

  • Render the privacy notice from NewsletterSignupForm (with signed-in-specific container styling) instead of NewsletterSignupCardContainer.
  • Remove the hidePrivacyMessage prop and clean up callers, tests, and Storybook stories accordingly.
  • Simplify conditional rendering around the marketing toggle and privacy message placement.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
dotcom-rendering/src/components/NewsletterSignupForm.island.tsx Moves privacy notice rendering outside the <form> and adds signed-in styling (border/top padding) for the card.
dotcom-rendering/src/components/NewsletterSignupForm.island.test.tsx Removes hidePrivacyMessage plumbing and updates affected tests.
dotcom-rendering/src/components/NewsletterSignupForm.island.stories.tsx Removes the HidePrivacyMessage story that depended on the removed prop.
dotcom-rendering/src/components/NewsletterSignupCardContainer.tsx Removes the signed-in privacy notice previously rendered outside the card.
dotcom-rendering/src/components/EmailSignUpWrapper.stories.tsx Removes hidePrivacyMessage args; story set updated (one story now redundant).
dotcom-rendering/src/components/EmailSignUpWrapper.island.tsx Removes hidePrivacyMessage prop usage and always renders NewsletterPrivacyMessage in the control (EmailSignup) branch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dotcom-rendering/src/components/NewsletterSignupForm.island.tsx
Comment thread dotcom-rendering/src/components/EmailSignUpWrapper.stories.tsx Outdated
@georgerichmond
georgerichmond requested a review from Copilot June 15, 2026 13:53
@georgerichmond georgerichmond added the run_chromatic Runs chromatic when label is applied label Jun 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 6 out of 6 changed files in this pull request and generated no new comments.

@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 15, 2026
@georgerichmond
georgerichmond marked this pull request as ready for review June 15, 2026 14:01
@github-actions

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Base automatically changed from 16124-in-article-privacy-notice-shorter-privacy-notice-for-signed-in-users to main June 16, 2026 12:24
…y-notice-into-blue-box-for-signed-in-users

# Conflicts:
#	dotcom-rendering/src/components/NewsletterSignupCardContainer.tsx
#	dotcom-rendering/src/components/NewsletterSignupForm.island.tsx
@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

@georgerichmond georgerichmond added the run_chromatic Runs chromatic when label is applied label Jun 16, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 16, 2026
@georgerichmond
georgerichmond merged commit a963103 into main Jun 17, 2026
37 checks passed
@georgerichmond
georgerichmond deleted the 16146-in-article-privacy-notice-bring-privacy-notice-into-blue-box-for-signed-in-users branch June 17, 2026 09:00
@gu-prout

gu-prout Bot commented Jun 17, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @georgerichmond 8 minutes and 8 seconds ago) Please check your changes!

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

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In-article privacy notice: bring privacy notice into blue box for signed-in users

3 participants