Skip to content

Add newsletter data to FAPI front press#28814

Open
georgerichmond wants to merge 7 commits into
mainfrom
newsletter-signup-cards-in-highlights
Open

Add newsletter data to FAPI front press#28814
georgerichmond wants to merge 7 commits into
mainfrom
newsletter-signup-cards-in-highlights

Conversation

@georgerichmond
Copy link
Copy Markdown
Contributor

@georgerichmond georgerichmond commented May 26, 2026

What is the value of this and can you measure success?

This PR adds newsletter signup metadata into the facia-press “pressed” JSON so downstream consumers (e.g. rendering) can access PressedProperties.newsletterData when content is tagged for newsletter signup.

What does this change?

Add newsletterData: Option[NewsletterData] to PressedProperties and JSON formatting support.
Enrich pressed front content in FapiFrontPress using a new NewsletterEnrichment helper plus wiring NewsletterService into facia-press.
Add unit tests for NewsletterService.getNewsletterDataFromTags and newsletter enrichment.

Screenshots

Checklist

@georgerichmond georgerichmond force-pushed the newsletter-signup-cards-in-highlights branch from 281db4e to 6118c5f Compare May 26, 2026 16:08
@georgerichmond georgerichmond requested a review from Copilot May 26, 2026 16:10
@georgerichmond georgerichmond added the feature Departmental tracking: work on a new feature label May 26, 2026
Copy link
Copy Markdown

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 adds newsletter signup metadata into the facia-press “pressed” JSON so downstream consumers (e.g. rendering) can access PressedProperties.newsletterData when content is tagged for newsletter signup.

Changes:

  • Add newsletterData: Option[NewsletterData] to PressedProperties and JSON formatting support.
  • Enrich pressed front content in FapiFrontPress using a new NewsletterEnrichment helper plus wiring NewsletterService into facia-press.
  • Add unit tests for NewsletterService.getNewsletterDataFromTags and newsletter enrichment.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
facia-press/test/frontpress/NewsletterEnrichmentTest.scala Adds tests for enriching pressed content with newsletter data.
facia-press/app/frontpress/FapiFrontPress.scala Wires NewsletterService into front press and enriches pressed content with newsletter data.
facia-press/app/AppLoader.scala Wires newsletter API/agent/service and lifecycle into facia-press.
common/test/services/NewsletterServiceTest.scala Adds unit tests for NewsletterService.getNewsletterDataFromTags.
common/app/services/NewsletterService.scala Adds getNewsletterDataFromTags helper for tag-based lookup.
common/app/model/PressedProperties.scala Adds newsletterData field to pressed properties.
common/app/model/Formats.scala Adds JSON OFormat for NewsletterData to support serializing pressed properties.

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

Comment thread facia-press/app/frontpress/FapiFrontPress.scala Outdated
Comment thread facia-press/test/frontpress/NewsletterEnrichmentTest.scala
Comment thread common/test/services/NewsletterServiceTest.scala Outdated
georgerichmond and others added 2 commits May 26, 2026 17:20
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@georgerichmond georgerichmond force-pushed the newsletter-signup-cards-in-highlights branch from 63f764a to 9947513 Compare May 26, 2026 16:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 26, 2026

Copy link
Copy Markdown

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 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread facia-press/app/frontpress/FapiFrontPress.scala Outdated
@georgerichmond georgerichmond linked an issue May 27, 2026 that may be closed by this pull request
@georgerichmond georgerichmond marked this pull request as ready for review May 28, 2026 10:00
@georgerichmond georgerichmond requested a review from a team as a code owner May 28, 2026 10:00
@georgerichmond georgerichmond requested a review from Copilot May 28, 2026 10:11
Copy link
Copy Markdown

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

Comment thread facia-press/app/frontpress/FapiFrontPress.scala Outdated
Copy link
Copy Markdown

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Press NewsletterSignupCard into Fronts

2 participants