Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Generates a rich CIA intelligence overview section from a pre-loaded CIAContext. Returns a single TemplateSection with three panels:

      1. Coalition Stability — stability score, risk level, defection probability
      2. Party Performance — sortable table: seats, success rate, cohesion, trend
      3. Voting Alignment — CSS bar charts of coalition vs opposition alignment by issue

      All HTML is pure CSS/HTML — no runtime JavaScript required.

      Returns TemplateSection

      import { loadCIAContext } from '../news-types/weekly-review.js';
      import { generateCiaOverviewSection } from './content-generators/cia-overview-section.js';

      const cia = loadCIAContext();
      const section = generateCiaOverviewSection({ cia, lang: 'en' });
      const html = generateArticleHTML({ ..., sections: [section] });