---
type: "Source File"
title: "<section class=\"dashboard-hero\">"
description: "{% extends \"base.html\" %} {% block title %}Dashboard{% endblock %} {% block content %} <section class=\"dashboard-hero\"> <h1 class=\"section-title\">Economic Data Dashboard</h1> <p class=\"section-subtitle\">Official."
resource: "https://data.copecheck.com"
tags: ["copecheck", "data", "source-file", "html"]
timestamp: "2026-08-24T09:46:04Z"
site: "data"
source_path: "copecheck-data/templates/index.html"
---

# <section class="dashboard-hero">

Source path: `copecheck-data/templates/index.html`  
Index snapshot generated: `2026-11-24T13:27:52Z`  
File modified: `2026-08-24T09:46:04Z`

```html
{% extends "base.html" %}
{% block title %}Dashboard{% endblock %}

{% block content %}
<section class="dashboard-hero">
    <h1 class="section-title">Economic Data Dashboard</h1>
    <p class="section-subtitle">Official API-backed labour-market indicators across 10 economies, alongside a separately labelled historical labour-share snapshot whose provenance is under review.</p>

    <div class="stat-cards">
        <div class="stat-card">
            <div class="stat-num">{{ stats.total_data_points | default(0) }}</div>
            <div class="stat-label">Data Points</div>
        </div>
        <div class="stat-card">
            <div class="stat-num">{{ stats.total_series | default(0) }}</div>
            <div class="stat-label">Series Tracked</div>
        </div>
        <div class="stat-card">
            <div class="stat-num">{{ stats.countries | default(0) }}</div>
            <div class="stat-label">Countries</div>
        </div>
        <div class="stat-card">
            <div class="stat-num">{{ stats.total_commentary | default(0) }}</div>
            <div class="stat-label">Oracle Analyses</div>
        </div>
    </div>
</section>

<section class="chart-section">
    <h2 class="chart-title">Youth Unemployment (15-24) — Latest by Country</h2>
    <div class="chart-container">
        <canvas id="youthChart"></canvas>
    </div>
    <p class="chart-source-label">Source: {{ freshness.youth_unemployment.source | default("World Bank / Eurostat") }} · Updated: {{ freshness.youth_unemployment.latest_date | default("—") }}</p>
    <a href="/youth" class="chart-link">Deep dive &rarr;</a>
</section>

<section class="chart-section">
    <h2 class="chart-title">Labour Share of GDP — Latest Available in Historical Snapshot</h2>
    <div class="chart-container">
        <canvas id="labourChart"></canvas>
    </div>
    <p class="chart-source-label">Source: Legacy historical snapshot (manual; provenance under review; through 2024) · Latest observation: {{ freshness.labour_share_gdp.latest_date | default("—") }}</p>
    <a href="/labour-share" class="chart-link">Deep dive &rarr;</a>
</section>

<section class="chart-section">
    <h2 class="chart-title">GDP Growth Rate — Latest by Country</h2>
    <div class="chart-container">
        <canvas id="gdpChart"></canvas>
    </div>
    <p class="chart-source-label">Source: {{ freshness.gdp_growth.source | default("World Bank") }} · Updated: {{ freshness.gdp_growth.latest_date | default("—") }}</p>
</section>

{% if latest_comments %}
<section class="commentary-section">
    <h2 class="section-title">Latest Oracle Commentary</h2>
    <div class="comment-grid">
        {% for c in latest_comments %}
        <div class="comment-card expandable" onclick="toggleExpand(this)">
            <div class="comment-header">
                <span class="cope-badge {{ c.cope_type or 'unscored' }}">{{ c.cope_score | default('—') }}</span>
                <span class="comment-series">{{ c.series_id | replace('_', ' ') | title }}</span>
                <span class="comment-country">{{ country_flags.get(c.country, '') }} {{ country_names.get(c.country, c.country) }}</span>
                <span class="expand-icon">&#x25BC;</span>
            </div>
            <h3 class="comment-headline">{{ c.headline }}</h3>
            <p class="comment-excerpt">{{ c.commentary_md[:200] | strip_md }}{% if c.commentary_md|length > 200 %}...{% endif %}</p>
            <div class="comment-full" style="display:none;">{{ c.commentary_md | md }}</div>
            <div class="comment-meta">{{ c.model or 'Oracle' }} &middot; {{ c.created_at[:10] if c.created_at else '' }}</div>
        </div>
        {% endfor %}
    </div>
    <a href="/feed" class="chart-link">All commentary &rarr;</a>
</section>
{% endif %}


<section class="method-notes">
    <button class="method-notes-toggle" onclick="toggleMethodNotes(this)" aria-expanded="false">
        <span>Data Quality &amp; Method Notes</span>
        <span class="chevron">&#x25BC;</span>
    </button>
    <div class="method-notes-body" id="methodNotesBody">
        <h3>Data Sources</h3>
        <p>The automated series are sourced from official statistical agencies through their public APIs. The labour-share chart is a clearly labelled historical snapshot:</p>
        <ul>
            <li><strong>World Bank Open Data</strong> — Youth unemployment, employment ratios, NEET rates, GDP growth, Gini index, labour force participation, sectoral employment shares.</li>
            <li><strong>Eurostat</strong> — EU/EEA youth unemployment cross-checks and supplementary breakdowns.</li>
            <li><strong>Legacy historical snapshot</strong> — Labour-share estimates through 2024, imported manually and not currently refreshed by the daily collector. Its original source ledger is not yet reproducible, so provenance remains under review.</li>
            <li><strong>U.S. Bureau of Labor Statistics (BLS)</strong> — A separate US-specific 16–24 youth-unemployment series, annualised from complete calendar years of monthly observations. It is not mixed into the 15–24 cross-country series.</li>
        </ul>

        <h3>Update Frequency</h3>
        <p>The data fetcher checks World Bank, Eurostat, and BLS daily. Most underlying series are annual (released with a 6–18 month lag), so new observations typically appear once per year. Chart labels show the latest observation period, not the last fetch time. Labour share is excluded from the automated collector until a directly reproducible source import is added.</p>

        <h3>Oracle Commentary &amp; Scoring</h3>
        <p>Oracle commentary applies the <strong>Discontinuity Thesis v3.3</strong> framework. Each country+indicator pair is scored on four axes: Unit-Cost Collision (30%), Interface Collapse (25%), Propagation Blindness (25%), and Coordination Feasibility (20%). The weighted average produces a Cope Score (0-100) mapped to a verdict from "Reality" to "Pure Cope."</p>
        <p>Commentary is generated by LLM (MiniMax M2.7 primary, Gemini Gemma-4 fallback) and represents an analytical lens, not a prediction. The framework deliberately foregrounds structural displacement risk — it is a stress-test, not a balanced forecast.</p>

        <h3>Known Limitations</h3>
        <ul>
            <li>Annual data granularity means short-term shocks (pandemics, recessions) appear smoothed rather than spiked.</li>
            <li>The labour-share series is a manual historical snapshot through 2024 with provenance under review. It should not be read as current or as evidence that the daily collector reached an official labour-share API.</li>
            <li>Gini index coverage is patchy for some countries/years; missing years are not interpolated.</li>
            <li>Oracle scores are LLM-generated and should be treated as structured opinion, not ground truth.</li>
            <li>The DT 3.3 framework has an intentional bearish bias on human labour — it is designed to detect displacement signals, not to provide balanced forecasts.</li>
        </ul>
    </div>
</section>

<script>
function toggleMethodNotes(btn) {
    var body = document.getElementById('methodNotesBody');
    var expanded = btn.getAttribute('aria-expanded') === 'true';
    btn.setAttribute('aria-expanded', !expanded);
    body.classList.toggle('open');
}
</script>

<section class="countries-grid-section">
    <h2 class="section-title">Browse by Country</h2>
    <div class="country-grid">
        {% for code, name in country_names.items() %}
        <a href="/country/{{ code | lower }}" class="country-card">
            <span class="country-flag">{{ country_flags.get(code, '') }}</span>
            <span class="country-name">{{ name }}</span>
        </a>
        {% endfor %}
    </div>
</section>

<script>
function toggleExpand(card) {
    const excerpt = card.querySelector('.comment-excerpt');
    const full = card.querySelector('.comment-full');
    const icon = card.querySelector('.expand-icon');
    if (!full) return;
    const isOpen = full.style.display !== 'none';
    if (isOpen) {
        full.style.display = 'none';
        excerpt.style.display = '';
        icon.textContent = '▼';
        card.classList.remove('expanded');
    } else {
        full.style.display = 'block';
        excerpt.style.display = 'none';
        icon.textContent = '▲';
        card.classList.add('expanded');
    }
}
</script>

{% endblock %}

{% block scripts %}
<script>
const CHART_COLORS = ['#2a9d8f','#e63946','#f4a261','#4ade80','#9b59b6','#3b82f6','#e76f51','#06b6d4','#fbbf24','#a78bfa'];
const COUNTRY_FLAGS = {{ country_flags | tojson }};

function makeBarChart(canvasId, apiUrl, label, color) {
    fetch(apiUrl).then(r => r.json()).then(data => {
        const pts = data.data_points || data.data || [];
        if (!pts.length) return;
        const labels = pts.map(p => (COUNTRY_FLAGS[p.country]||'') + ' ' + p.country);
        const values = pts.map(p => p.value);
        new Chart(document.getElementById(canvasId), {
            type: 'bar',
            data: {
                labels: labels,
                datasets: [{
                    label: label,
                    data: values,
                    backgroundColor: values.map((_, i) => CHART_COLORS[i % CHART_COLORS.length] + 'cc'),
                    borderColor: values.map((_, i) => CHART_COLORS[i % CHART_COLORS.length]),
                    borderWidth: 1, borderRadius: 4
                }]
            },
            options: {
                responsive: true, maintainAspectRatio: false,
                plugins: { legend: { display: false } },
                scales: {
                    y: { grid: { color: 'rgba(255,255,255,0.06)' }, ticks: { color: '#8a8d96' } },
                    x: { grid: { display: false }, ticks: { color: '#c8cad0', font: { size: 11 } } }
                }
            }
        });
    });
}

makeBarChart('youthChart', '/api/series/youth_unemployment', 'Youth Unemployment %', '#e63946');
makeBarChart('labourChart', '/api/series/labour_share_gdp', 'Labour Share %', '#2a9d8f');
makeBarChart('gdpChart', '/api/series/gdp_growth', 'GDP Growth %', '#4ade80');
</script>
{% endblock %}
```
