Skip to content

Normalize 2026-04-21 government-proposition articles to restore HTML consistency marker#1923

Merged
pethers merged 1 commit intomainfrom
copilot/add-missing-content-to-html
Apr 21, 2026
Merged

Normalize 2026-04-21 government-proposition articles to restore HTML consistency marker#1923
pethers merged 1 commit intomainfrom
copilot/add-missing-content-to-html

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

Two newly-added articles bypassed the normalization pipeline, leaving their <body> without the data-rm-normalized attribute and breaking tests/html-consistency.test.ts.

Changes

  • Ran scripts/cleanup-html-consistency.py on the offending files, which:
    • Adds data-rm-normalized="v9" on <body>
    • Repositions the language-switcher ahead of <article> (standard chrome layout)

Files touched

  • news/2026-04-21-government-propositions-en.html
  • news/2026-04-21-government-propositions-sv.html

No script, template, or test logic was modified — only content was reconciled with the existing normalizer contract.

@pethers pethers marked this pull request as ready for review April 21, 2026 21:24
Copilot AI review requested due to automatic review settings April 21, 2026 21:24
@pethers pethers merged commit d5d2af5 into main Apr 21, 2026
11 checks passed
@github-actions github-actions Bot added html-css HTML/CSS changes translation Translation updates news News articles and content generation size-s Small change (10-50 lines) labels Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: html-css,translation,size-s,news

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores repository-wide HTML normalization consistency for the 2026-04-21 government-propositions news articles so they satisfy the tests/html-consistency.test.ts contract (notably the <body data-rm-normalized="v9"> marker).

Changes:

  • Added data-rm-normalized="v9" to the <body> element in both affected articles.
  • Normalized the language switcher block to only include the available EN/SV variants for this date/type.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
news/2026-04-21-government-propositions-en.html Adds normalization marker on <body> and aligns language switcher to EN/SV-only output for this page.
news/2026-04-21-government-propositions-sv.html Adds normalization marker on <body> and aligns language switcher to EN/SV-only output for this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

html-css HTML/CSS changes news News articles and content generation size-s Small change (10-50 lines) translation Translation updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants