Skip to content

Comments

Fix Copilot review issues in PR #471: metadata schema, JSON-LD encoding, ZH translation, truncated structured data#472

Merged
pethers merged 2 commits intonews-realtime/2026-02-23-1022-835b5a8b9b85a856from
copilot/sub-pr-471
Feb 23, 2026
Merged

Fix Copilot review issues in PR #471: metadata schema, JSON-LD encoding, ZH translation, truncated structured data#472
pethers merged 2 commits intonews-realtime/2026-02-23-1022-835b5a8b9b85a856from
copilot/sub-pr-471

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

Five issues flagged by Copilot review on the breaking-news PR: malformed generation metadata, truncated/double-escaped JSON-LD fields, and untranslated Chinese content.

Changes

  • news/metadata/last-generation.json — Replaced non-schema fields (articlesGenerated, eventsDetected, mcpSyncStatus, nextExpectedCheck) with the fields required by LastGenerationMetadata: batchSize, skipExisting, generated, errors, articles, status, note. Restores backward compatibility with scripts/workflows parsing this file.

  • news/index_fr.html — Replaced HTML entity apostrophes (&#039; and double-escaped &amp;#039;) with literal ' in all three JSON-LD <script type="application/ld+json"> blocks. Also added ellipses to two mid-word truncated description fields (écosysécosystèmes, ...; la réforme desla réforme des retraites, ...).

  • news/index_sv.html — Truncated description now ends at a natural word boundary (...miljömål, ...) instead of mid-word (...samtidigt som e).

  • news/2026-02-23-climate-accountability-push-zh.html — Translated the "数字概览" and "值得关注" sections from English to Chinese; footer boilerplate (technical MCP source labels) left in English, consistent with all other language variants.

  • news/2026-02-23-climate-accountability-push-nl.html — Restored full BreadcrumbList name (Sociaaldemocraten lanceren klimaatoffensief in het Zweedse parlement) which was truncated at ...Zweedse p.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…postrophe encoding, ZH translation, NL breadcrumb

Co-authored-by: pethers <[email protected]>
Copilot AI changed the title [WIP] Add climate accountability push by Social Democrats Fix Copilot review issues in PR #471: metadata schema, JSON-LD encoding, ZH translation, truncated structured data Feb 23, 2026
@pethers pethers marked this pull request as ready for review February 23, 2026 11:43
@pethers pethers merged commit ae63fe9 into news-realtime/2026-02-23-1022-835b5a8b9b85a856 Feb 23, 2026
@pethers pethers deleted the copilot/sub-pr-471 branch February 23, 2026 11:43
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