{% extends "base.html" %} {% set active = "approvals" %} {% block title %}Approvals{% endblock %} {% block content %}
{{ stats.total_approved }}
Total approved
{{ stats.total_denied }}
Total denied
{{ stats.auto_promoted_count }}
Auto-promoted
{{ stats.threshold }}
Promotion threshold
{% if approvals %} {# ── Filter tabs ── #}
{# ── Auto-promoted section ── #}
Auto-promoted Commands
{{ stats.threshold }}+ approvals, 0 denials
{% set ns = namespace(has_promoted=false) %} {% for tool_name, commands in approvals.items() %} {% for input_key, counts in commands.items() %} {% set a = counts.get("approved", 0) %} {% set d = counts.get("denied", 0) %} {% if a >= stats.threshold and d == 0 %} {% set ns.has_promoted = true %} {% endif %} {% endfor %} {% endfor %} {% if ns.has_promoted %} {% for tool_name, commands in approvals.items() %} {% for input_key, counts in commands.items() %} {% set a = counts.get("approved", 0) %} {% set d = counts.get("denied", 0) %} {% if a >= stats.threshold and d == 0 %} {% endif %} {% endfor %} {% endfor %}
ToolCommand / InputTimes approvedStatus
{{ tool_name }} {{ input_key }} {{ a }} auto-executes
{% else %}
No commands have been auto-promoted yet
{% endif %}
{# ── Denied section ── #} {# ── Pending section ── #} {# ── All section ── #} {% else %}
No approval data yet. Approval tracking starts when tools with human review are executed.
{% endif %} {% endblock %}