{% set grade_color = {'A': '#2ec27e', 'B': '#0770E3', 'C': '#f59e0b', 'D': '#fb923c', 'F': '#ef4444'} %} {% if not evaluation or evaluation.session_count == 0 %}

No scored sessions in this window.

{{ evaluation.period_description if evaluation else 'Adjust the time range to score more sessions.' }}

{% else %}
{% set avg = evaluation.average_score %} {% set avg_color = '#2ec27e' if avg >= 80 else ('#f59e0b' if avg >= 60 else '#ef4444') %} {% set med = evaluation.median_score %} {% set med_color = '#2ec27e' if med >= 80 else ('#f59e0b' if med >= 60 else '#ef4444') %}
Est. wasted spend
${{ "%.2f"|format(evaluation.total_wasted_cost|default(0.0)) }}
{% if evaluation.total_session_cost %}
{{ evaluation.waste_pct }}% of ${{ "%.2f"|format(evaluation.total_session_cost) }} scored
{% endif %}
Average score
{{ avg }}
Median score
{{ med }}
Sessions scored
{{ evaluation.session_count }}
Best
{{ evaluation.best_score }}
Worst
{{ evaluation.worst_score }}
{% set total = evaluation.session_count %} {% if total > 0 %}
Grade distribution
{% for g in ['A', 'B', 'C', 'D', 'F'] %} {% set n = evaluation.grade_distribution.get(g, 0) %} {% if n > 0 %} {% set pct = (n / total * 100) | round(1) %}
{% if pct > 8 %}{{ g }}{{ n }}{% endif %}
{% endif %} {% endfor %}
{% for g in ['A', 'B', 'C', 'D', 'F'] %} {% set n = evaluation.grade_distribution.get(g, 0) %} {{ g }} {{ n }} {% endfor %}
{% endif %} {% set ic = evaluation.issue_counts %} {# issue_counts values are the number of SESSIONS exhibiting each issue, not the number of occurrences — label them accordingly. #} {% set issue_labels = [ ('tool_errors', 'tool errors'), ('user_rejections', 'rejections'), ('duplicate_commands', 'duplicate commands'), ('repeated_reads', 'repeated reads'), ('scriptability', 'scriptability issues'), ] %}
{% for key, label in issue_labels %} {% if ic[key] %} {{ ic[key] }} session{{ 's' if ic[key] != 1 else '' }} with {{ label }} {% endif %} {% endfor %}
{% set first_id = evaluation.sessions[0].session_id if evaluation.sessions else '' %}
Sessions worth fixing most $ wasted first
    {% for s in evaluation.sessions %} {% set gc = grade_color.get(s.grade, '#6b7280') %}
  • {% endfor %}
{% endif %}