Conversation
- Extra budget amendment (Prop 2025/26:143) for Ukraine air defense & vaccine preparedness - New emergency food supply chain reserves law - Context: Week of unprecedented legislative intensity (AI strategy, criminal justice, immigration reform) - 14 language versions (en, sv, da, no, fi, de, fr, es, nl, ar, he, ja, ko, zh) - Updated news indexes, metadata, and sitemap Sources: riksdag-regering-mcp (data.riksdagen.se, g0v.se) Co-authored-by: Copilot <[email protected]>
|
✅ Pull request created: #436 |
There was a problem hiding this comment.
Pull request overview
This PR adds a weekend analysis article covering Swedish security and preparedness developments from February 19-22, 2026. The article discusses the supplementary budget for Ukraine air defense and vaccine preparedness, new emergency food reserve legislation, and contextualizes these within the week's legislative activity.
Changes:
- Generated 14 localized weekend analysis article files covering security preparedness theme
- Updated all 14 news index files to include the new article at the top of the listing
- Updated news-articles.json metadata and last-generation.json tracking file
- Regenerated sitemap.xml with new article URLs
Reviewed changes
Copilot reviewed 30 out of 31 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| news/metadata/last-generation.json | Restructured metadata with improved naming (eventsDetected, articlesGenerated, camelCase) |
| news/index*.html (×14) | Added new article entry to top of each language index, incremented article counts |
| news/2026-02-22-weekend-security-preparedness-*.html (×14) | New weekend analysis articles in all 14 languages with proper structure, RTL support for ar/he |
| { | ||
| "title": "Sweden Bolsters Security on Three Fronts: Ukraine Aid, Food Reserves, and Vaccine Preparedness in Extra Budget", | ||
| "date": "2026-02-22", | ||
| "type": "analysis", |
There was a problem hiding this comment.
The article type is classified as "analysis" in the English index (line 535), but as "prospective" in Swedish (index_sv.html:535), Norwegian (index_no.html:535), Danish (index_da.html:535), Japanese (index_ja.html:535), Hebrew (index_he.html:551), Arabic (index_ar.html:551), and German (index_de.html:535). This inconsistency will cause issues with article filtering and categorization. According to the index classification memory, weekend-analysis articles should be classified based on content, not filename patterns. All language versions should use the same classification.
| "type": "analysis", | |
| "type": "prospective", |
|
@copilot open a new pull request to apply changes based on the comments in this thread |
…s all 14 language indexes Co-authored-by: pethers <[email protected]>
Fix inconsistent article type classification for weekend articles across all 14 language indexes
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← 返回新闻</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html (English) instead of the Chinese news index (index_zh.html). This breaks navigation for readers and is inconsistent with other localized articles.
| <p class="back-to-news"><a href="index.html">← 返回新闻</a></p> | |
| <p class="back-to-news"><a href="index_zh.html">← 返回新闻</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← Terug naar nieuws</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Dutch news index (index_nl.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← Terug naar nieuws</a></p> | |
| <p class="back-to-news"><a href="index_nl.html">← Terug naar nieuws</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← 뉴스로 돌아가기</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Korean news index (index_ko.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← 뉴스로 돌아가기</a></p> | |
| <p class="back-to-news"><a href="index_ko.html">← 뉴스로 돌아가기</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← ニュースに戻る</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Japanese news index (index_ja.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← ニュースに戻る</a></p> | |
| <p class="back-to-news"><a href="index_ja.html">← ニュースに戻る</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← חזרה לחדשות</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Hebrew news index (index_he.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← חזרה לחדשות</a></p> | |
| <p class="back-to-news"><a href="index_he.html">← חזרה לחדשות</a></p> |
| ], | ||
| "excerpt": "The government's supplementary budget amendment for 2026 channels new funds to Ukraine air defence, emergency food stockpiles, and pandemic vaccine readiness — signalling an accelerating shift toward ", | ||
| "topics": [], |
There was a problem hiding this comment.
The generated excerpt for this new article is cut off mid-sentence (ends with “signalling an accelerating shift toward”). This looks like a truncation bug in excerpt generation and will degrade the index display/SEO. Ensure excerpts are trimmed at a word boundary and always end cleanly (or add an ellipsis).
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← Retour aux actualités</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the French news index (index_fr.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← Retour aux actualités</a></p> | |
| <p class="back-to-news"><a href="index_fr.html">← Retour aux actualités</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← Volver a noticias</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Spanish news index (index_es.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← Volver a noticias</a></p> | |
| <p class="back-to-news"><a href="index_es.html">← Volver a noticias</a></p> |
| <li>Proposition 2025/26:143 — Extra ändringsbudget för 2026: Stöd till Ukraina och vaccinberedskap (Finance Ministry, 19 Feb 2026)</li><li>Press release: 'Luftförsvar i fokus för nytt stort stödpaket till Ukraina' (Government Offices, 19 Feb 2026)</li><li>Press release: 'Regeringen föreslår ny lag om beredskapslager i livsmedelskedjan' (Government Offices, 20 Feb 2026)</li><li>Press release: 'Sveriges första heltäckande AI-strategi ska ge en topp tio-placering' (Government Offices, 20 Feb 2026)</li><li>Committee Report MJU17 — Anpassning av svensk rätt (Agriculture Committee, 19 Feb 2026)</li><li>Data: riksdag-regering-mcp (data.riksdagen.se, g0v.se) as of 22 Feb 2026</li> | ||
| </ul> | ||
| </div> | ||
| <p class="back-to-news"><a href="index.html">← العودة إلى الأخبار</a></p> |
There was a problem hiding this comment.
The “back to news” link points to index.html instead of the Arabic news index (index_ar.html), which breaks localized navigation.
| <p class="back-to-news"><a href="index.html">← العودة إلى الأخبار</a></p> | |
| <p class="back-to-news"><a href="index_ar.html">← العودة إلى الأخبار</a></p> |
scripts/generate-news-indexes.ts
Outdated
| ]; | ||
|
|
||
| if (fileName.includes('week-ahead') || prospectiveKeywords.some((kw) => lowerContent.includes(kw.toLowerCase()))) { | ||
| if (fileName.includes('week-ahead') || fileName.includes('weekend') || prospectiveKeywords.some((kw) => lowerContent.includes(kw.toLowerCase()))) { |
There was a problem hiding this comment.
classifyArticleType treats any filename containing "weekend" as prospective, but the comment above defines prospective as week-ahead/upcoming previews. This will misclassify weekend analysis articles (which also contain "analysis" keywords) and propagate the wrong type into generated indexes. Consider introducing a dedicated classification for weekend-analysis or mapping weekend to analysis/retrospective instead.
|
@copilot open a new pull request to apply changes based on the comments in this thread |
…nd-security-preparedness Co-authored-by: pethers <[email protected]>
Fix weekend-analysis article type, localized back-to-news links, and excerpt truncation
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
📰 Weekend Analysis: Sweden Bolsters Security on Three Fronts
Summary
Weekend analysis covering significant security and preparedness developments from the Swedish government (Feb 19-22, 2026).
Key Events Covered
Articles Generated
14 language versions: EN, SV, DA, NO, FI, DE, FR, ES, NL, AR, HE, JA, KO, ZH
Data Sources
Files Changed
news/2026-02-22-weekend-security-preparedness-{lang}.html× 14 articlesnews/index*.html× 14 updated news indexesdata/news-articles.json— Updated metadatanews/metadata/last-generation.json— Generation recordsitemap.xml— Updated sitemapQuality Checks