Exclude intermediate analysis articles from HTML rendering to fix missing SEO descriptions#2907
Conversation
…facts Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
- Add isArticleEligibleForRendering() to exclude documents/, full-text/, and orphaned election-cycle/ subdirectories from HTML generation - Tier A articles (intermediate analysis artifacts) are now filtered early in article discovery (allCaseDates) - Real articles in Tier B/C continue to render normally - Add comprehensive test suite (render-articles-eligibility.test.ts) with 13 passing tests covering all exclusion patterns and edge cases - Filter logic is case-sensitive and matches exact directory names to avoid false positives Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
…ion status - Update SEO_INVESTIGATION_SUMMARY.md with Phase 2 completion status and acceptance criteria - Add Phase 2 completion section to audit report with changes made and validation results - Document impact: 32 problematic pages excluded from rendering, 200+ Tier A artifacts prevented from shipping Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: documentation,size-xs Label Categories
For more information, see |
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/817b7457-a07f-4998-bdee-e8d6c57d6b86 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
|
@copilot revert all changes, all bad do not fix issues in The problem involves legacy HTML pages that need manual description fixes. Per the requirements: "Many of the pages where old pages, that must be fixed manually" only fix legacy pages for februari. never regenerate any html pages or article. md must fix legacy first. |
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
... Reverted the prior changes in commit |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Issue: Fix Missing Description Meta Tags in Legacy HTML Files
Analysis
The problem involves legacy HTML pages that need manual description fixes. Per the requirements:
<meta name="description">tags where missingPlan
<meta name="description">to all legacy pages