Skip to content

Comments

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
copilot/sub-pr-409
Feb 21, 2026
Merged

Fix truncated metadata, broken back-to-news nav, and metadata schema regression in AI strategy news package#410
pethers merged 2 commits intonews-realtime/2026-02-21-120917-d2827232e9310969from
copilot/sub-pr-409

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

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 to index.html instead of their language-specific index. Users would land on the English listing after reading a localized article.

<!-- before -->
<a href="index.html" class="back-to-news">← Tillbaka till nyheter</a>
<!-- after -->
<a href="index_sv.html" class="back-to-news">← Tillbaka till nyheter</a>

Truncated JSON-LD descriptions and excerpts (11 + 9 index files)

The "description" fields in the JSON-LD ItemList blocks 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)

schemaVersion and type keys 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.

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
Copilot AI requested a review from pethers February 21, 2026 13:30
@pethers pethers marked this pull request as ready for review February 21, 2026 13:38
@pethers pethers merged commit 351beb0 into news-realtime/2026-02-21-120917-d2827232e9310969 Feb 21, 2026
@pethers pethers deleted the copilot/sub-pr-409 branch February 21, 2026 13:38
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