Skip to content

Render newsletter sign-up cards in Highlights using newsletter field #15960

@georgerichmond

Description

@georgerichmond

Context:
Highlights containers on fronts need to display newsletter sign-up cards when the card's pressed data supplies newsletter metadata.

Tasks:

  • Add an optional newsletter field to FEFrontCard/DCRFrontCard types and schema.
  • In enhanceCards, map newsletter data from FE to DCR card shape.
  • In ScrollableHighlights, if trail.newsletter exists, render a new NewsletterHighlightsCard with supplied metadata (identityName, name, description, frequency, illustration, etc). Otherwise render a normal HighlightsCard.
  • Match the look and dimensions of other highlights cards.
  • Reference frontend issue for source data.

See: https://github.com/guardian/email-rendering/issues/948

Metadata

Metadata

Labels

NEWSLETTERSNewsletters related work.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions