Skip to content

[DO NOT MERGE] Replace published dates with metadata - #5661

Draft
andysellick wants to merge 1 commit into
mainfrom
remove-published-dates
Draft

[DO NOT MERGE] Replace published dates with metadata#5661
andysellick wants to merge 1 commit into
mainfrom
remove-published-dates

Conversation

@andysellick

@andysellick andysellick commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What / why

This PR depends on this change in the gem

  • the published dates component is being retired, as it duplicates functionality of the metadata component
  • replace all published dates components with metadata components, and update options (names of options differ between the two components)

See related PR: alphagov/govuk_publishing_components#5572

Notes for switching from the published dates to the metadata component:

  • the history option needs to change to page_history
  • the published option needs to change to first_published

It's worth noting the behaviour of this component on certain pages like this call to action page. There's a link at the top (in the metadata component) to See all updates, when clicked jumps to the published dates component at the bottom, and then auto-expands the Show all updates link. This is handled by some JS in the metadata component. The change now will be that the published dates component at the bottom of the page will be replaced with the metadata component, but it should all still function as before.

Examples:

Visual changes

The metadata component has a slightly larger gap between rows of text, but otherwise the appearance should be identical.

- the published dates component is being retired, as it duplicates functionality of the metadata component
- replace all published dates components with metadata components, and update options (names of options differ between the two components)
@andysellick
andysellick force-pushed the remove-published-dates branch from f6a9064 to 979aa65 Compare August 3, 2026 16:23
@govuk-ci
govuk-ci temporarily deployed to govuk-frontend-app-pr-5661 August 3, 2026 16:24 Inactive
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