[DO NOT MERGE] Replace published dates with metadata - #5661
Draft
andysellick wants to merge 1 commit into
Draft
Conversation
andysellick
force-pushed
the
remove-published-dates
branch
from
July 15, 2026 14:08
4e030e2 to
b2784ec
Compare
andysellick
force-pushed
the
remove-published-dates
branch
from
July 16, 2026 10:49
b2784ec to
f6a9064
Compare
- 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
force-pushed
the
remove-published-dates
branch
from
August 3, 2026 16:23
f6a9064 to
979aa65
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / why
This PR depends on this change in the gem
See related PR: alphagov/govuk_publishing_components#5572
Notes for switching from the published dates to the metadata component:
historyoption needs to change topage_historypublishedoption needs to change tofirst_publishedIt'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 theShow all updateslink. 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.