{% extends "base.html" %} {% block title %}AADC Analytics{% endblock %} {% block content %}
← Designs

📈 Portfolio Analytics

Cross-design intelligence · {{ data.total_designs }} designs · generated {{ data.generated_at[:19] }} UTC
{{ data.total_designs }}
Total Designs
{{ data.avg_score }}%
Avg Score
{{ data.p90_score }}%
P90 Score
{{ data.ato_ready_rate }}%
ATO Ready Rate
{{ data.improved_count }}
Improved (30d)
{{ data.degraded_count }}
Degraded (30d)
Score Trend (8 Weeks)
{% if data.score_trend %} {% for t in data.score_trend %} {% if t.count > 0 %} {% endif %} {% endfor %}
WeekAvg ScoreAssessments
{{ t.week }}
{{ t.avg_score }}%
{{ t.count }}
{% else %}

No assessment history yet.

{% endif %}
Dominant Pattern Distribution
{% if data.pattern_distribution %} {% set max_count = data.pattern_distribution[0].count %} {% for p in data.pattern_distribution %}
{{ p.pattern }} {{ p.count }}
{% endfor %} {% else %}

No pattern analysis data yet. Run pattern detection on your designs.

{% endif %}
Red Team Risk Distribution
{% set rt = data.rt_distribution %} {% for level, color in [('CRITICAL','danger'),('HIGH','warning'),('MEDIUM','info'),('LOW','success')] %} {% set cnt = rt.get(level, 0) %}
{{ level }}
{{ cnt }}
{% endfor %}
Lint Score Distribution
{% set ld = data.lint_distribution %} {% for bucket, label, color in [('excellent','Excellent (90-100)','success'),('good','Good (70-89)','info'),('fair','Fair (50-69)','warning'),('poor','Poor (<50)','danger')] %} {% set cnt = ld.get(bucket, 0) %}
{{ bucket|capitalize }}
{{ cnt }}
{% endfor %}
Risk Density by Domain
{% if data.risk_density %} {% for r in data.risk_density[:6] %} {% endfor %}
DomainRisksCriticalDensity
{{ r.domain }} {{ r.total_risks }} {{ r.critical_risks }} {{ r.density }}/design
{% else %}

No risk data yet.

{% endif %}
{% if data.top_risk_designs %}
Top Designs by Open Critical Risks
{% for d in data.top_risk_designs %} {% endfor %}
#DesignCritical Open Risks
{{ loop.index }} {{ d.name }} {{ d.critical_open }}
{% endif %} {% if data.compliance_drift %}
Compliance Drift (Last 30 Days)
{% for d in data.compliance_drift %} {% endfor %}
DesignCurrent Score30-Day Delta
{{ d.design_id[:12] }} {{ d.current_score }}% {{ '+' if d.delta > 0 else '' }}{{ d.delta }}%
{% endif %}
{% endblock %}