Skip to content

Fix news article quality issues: type classification, breadcrumb truncation, and untranslated JSON-LD#278

Merged
pethers merged 2 commits intonews-generation/automated-20260218-040600-e7e3065380c1f0a4from
copilot/sub-pr-276
Feb 18, 2026
Merged

Fix news article quality issues: type classification, breadcrumb truncation, and untranslated JSON-LD#278
pethers merged 2 commits intonews-generation/automated-20260218-040600-e7e3065380c1f0a4from
copilot/sub-pr-276

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

Addresses 11 review comments from PR #276 where generated news articles had type misclassification, truncated structured data, and untranslated Swedish content in JSON-LD fields.

Changes

Type Classification (8 index files)

  • Changed "type": "prospective""analysis" for 2026-02-17 evening analysis entries
  • Affects filtering/grouping in news indexes

Breadcrumb Truncation (8 government propositions)

  • Fixed truncated BreadcrumbList names at line 154
  • Example: "Government Propositions: Policy Priorities This We""Government Propositions: Policy Priorities This Week"
  • Now matches page <title> exactly for SEO

Untranslated JSON-LD Content (42 articles)

  • Replaced articleBody with translated content extracted from rendered HTML
  • Removed Swedish <span data-translate="true" lang="sv"> markers from non-Swedish versions

Before (EN article):

"articleBody": "&lt;h3&gt;&lt;span data-translate=&quot;true&quot; lang=&quot;sv&quot;&gt;Uppgiftsskyldighet för vissa e-legitimationsföretag&lt;/span&gt;&lt;/h3&gt;"

After (EN article):

"articleBody": "&lt;h3&gt;Reporting obligations for certain e-identification companies&lt;/h3&gt;"

Files Modified

  • 8 news index files (type classification)
  • 42 article files (breadcrumbs + articleBody)

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

- Fixed type classification: Changed "prospective" to "analysis" for 2026-02-17 evening analysis in 8 index files (ar, da, de, he, ja, nl, no, sv)
- Fixed truncated breadcrumb titles in 8 government propositions files (da, de, en, es, fi, fr, nl, no)
- Fixed JSON-LD articleBody: Replaced untranslated Swedish text with proper translated content from HTML body for all 42 articles
- Removed data-translate markers from JSON-LD articleBody in non-Swedish versions

Addresses all 11 review comments from PR #276

Co-authored-by: pethers <[email protected]>
@pethers pethers marked this pull request as ready for review February 18, 2026 05:05
@pethers pethers merged commit 142949a into news-generation/automated-20260218-040600-e7e3065380c1f0a4 Feb 18, 2026
10 checks passed
Copilot AI changed the title [WIP] Add automated news generation for parliamentary activity Fix news article quality issues: type classification, breadcrumb truncation, and untranslated JSON-LD Feb 18, 2026
Copilot AI requested a review from pethers February 18, 2026 05:05
Copilot stopped work on behalf of pethers due to an error February 18, 2026 05:05
@pethers pethers deleted the copilot/sub-pr-276 branch February 25, 2026 23:59
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