{% extends "base.html" %} {% block content %}

Theme Quality Dashboard

Monitor theme catalog health and quality metrics

{# Summary Statistics #}

Catalog Statistics

Total Themes
{{ total_themes }}
Average Quality Score
{{ (avg_quality_score * 100)|round|int }}%
{# Quality Distribution #}

Quality Tier Distribution

Excellent (≥75%)
{{ tier_counts.Excellent }}
{{ ((tier_counts.Excellent / total_themes) * 100)|round(1) }}% of catalog
Good (60-74%)
{{ tier_counts.Good }}
{{ ((tier_counts.Good / total_themes) * 100)|round(1) }}% of catalog
Fair (40-59%)
{{ tier_counts.Fair }}
{{ ((tier_counts.Fair / total_themes) * 100)|round(1) }}% of catalog
Poor (<40%)
{{ tier_counts.Poor }}
{{ ((tier_counts.Poor / total_themes) * 100)|round(1) }}% of catalog
{# Top 10 Highest Quality Themes #}

Top 10 Highest Quality Themes

Well-curated themes with high scores
{% for theme in top_themes %} {% endfor %}
Rank Theme Tier Score Pool Size Synergies Editorial
{{ loop.index }} {{ theme.theme }} {{ theme.tier }} {{ (theme.score * 100)|round|int }}% {{ theme.pool_size }} {{ theme.synergy_count }} {{ theme.editorial_quality }}
{# Bottom 10 Lowest Quality Themes #}

Bottom 10 Lowest Quality Themes

Themes that need improvement
{% for theme in bottom_themes %} {% endfor %}
Theme Tier Score Pool Size Synergies Issues Suggestions
{{ theme.theme }} {{ theme.tier }} {{ (theme.score * 100)|round|int }}% {{ theme.pool_size }} {{ theme.synergy_count }} {% set issues = [] %} {% if theme.pool_size < 15 %}{% set _ = issues.append('Low card count') %}{% endif %} {% if theme.synergy_count < 3 %}{% set _ = issues.append('Few synergies') %}{% endif %} {% if theme.has_fallback_description %}{% set _ = issues.append('Auto-generated desc') %}{% endif %} {% if theme.editorial_quality == 'auto' %}{% set _ = issues.append('Not reviewed') %}{% endif %} {{ issues|join(', ') or 'None identified' }} {% set suggestions = [] %} {% if theme.pool_size < 15 %}{% set _ = suggestions.append('Add example cards') %}{% endif %} {% if theme.synergy_count < 3 %}{% set _ = suggestions.append('Define synergies') %}{% endif %} {% if theme.has_fallback_description %}{% set _ = suggestions.append('Write custom description') %}{% endif %} {% if theme.editorial_quality == 'auto' %}{% set _ = suggestions.append('Review & curate') %}{% endif %} {{ suggestions|join('; ') or 'N/A' }}
{# Tools and Links #}

Quality Improvement Tools

Run Linter

Analyze theme catalog for quality issues and get actionable suggestions

python code/scripts/validate_theme_catalog.py --lint

Documentation

{% endblock %}