Fix truncated metadata, broken back-to-news nav, and metadata schema regression in AI strategy news package#410
Merged
pethers merged 2 commits intonews-realtime/2026-02-21-120917-d2827232e9310969from Feb 21, 2026
Conversation
…pts, metadata schema Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Add Sweden's first national AI strategy announcement
Fix truncated metadata, broken back-to-news nav, and metadata schema regression in AI strategy news package
Feb 21, 2026
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.
Three classes of defects in the 2026-02-21 AI strategy news package across 25 files:
Back-to-news navigation (13 localized article files)
All non-English article files (
-sv,-da,-no,-fi,-de,-fr,-es,-nl,-ko,-ja,-zh,-ar,-he) pointed back toindex.htmlinstead of their language-specific index. Users would land on the English listing after reading a localized article.Truncated JSON-LD descriptions and excerpts (11 + 9 index files)
The
"description"fields in the JSON-LDItemListblocks and"excerpt"fields in the article entry objects were hard-truncated mid-word/mid-sentence across all non-English indexes — e.g."...Vice","...Ebba Bu","...præs". All values replaced with complete sentences.Metadata schema regression (
last-generation.json)schemaVersionandtypekeys were dropped in the previous commit. Restored to maintain compatibility with any consumers expecting the prior shape:{ "schemaVersion": 1, "type": "last-generation", "timestamp": "2026-02-21T12:09:17.839Z", ... }✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.