{% extends "workflow_kit/dashboard/base.html" %} {% load i18n %} {% block title %}{% trans "Analytics" %} · {% trans "Workflow Dashboard" %}{% endblock %} {% block content %}

{% trans "Workflow Analytics" %}

{% trans "Started" %}

{{ metrics.started }}

{% trans "Active" %}

{{ metrics.active }}

{% trans "Completed" %}

{{ metrics.completed }}

{% trans "Rejected" %}

{{ metrics.rejected }}

{% trans "Failed" %}

{{ metrics.failed }}

{% trans "Cancelled" %}

{{ metrics.cancelled }}

{% trans "Escalated" %}

{{ metrics.escalated }}

{% trans "SLA Breached" %}

{{ metrics.sla_breached }}

{% trans "Completion" %}

{% trans "Completed" %}: {{ completion.completed }} / {{ completion.total }} ({% trans "avg" %} {{ completion.duration.average|floatformat:1|default:"—" }}s)

{% trans "Approvals" %}

{% trans "Approved" %}: {{ approvals.approved }} · {% trans "Rejected" %}: {{ approvals.rejected }} · {% trans "Pending" %}: {{ approvals.pending }} · {% trans "SLA breached" %}: {{ approvals.sla_breached }}

{% trans "State Durations" %}

{% if not state_durations %}

{% trans "Not enough data yet." %}

{% else %} {% for row in state_durations %} {% endfor %}
{% trans "State" %}{% trans "Count" %}{% trans "Avg (s)" %}
{{ row.state }}{{ row.count }}{{ row.average|floatformat:1|default:"—" }}
{% endif %}

{% trans "Bottlenecks" %}

{% if not bottlenecks %}

{% trans "No bottlenecks identified." %}

{% else %} {% for row in bottlenecks %} {% endfor %}
{% trans "State" %}{% trans "Count" %}{% trans "Avg (s)" %}
{{ row.state }}{{ row.count }}{{ row.average|floatformat:1|default:"—" }}
{% endif %}

{% trans "SLA Compliance" %}

{% trans "Breached" %}: {{ sla.breached }} · {% trans "Compliance" %}: {{ sla.compliance_rate|floatformat:1|default:"—" }}%

{% trans "Escalations" %}

{% trans "Total" %}: {{ escalations.total }} {% if escalations.average_delay_seconds %} · {% trans "Avg delay" %}: {{ escalations.average_delay_seconds|floatformat:1 }}s {% endif %}

{% trans "Version Analytics" %}

{% if not versions %}

{% trans "No version data." %}

{% else %} {% for row in versions %} {% endfor %}
{% trans "Workflow" %}{% trans "Version" %}{% trans "Started" %}{% trans "Active" %}{% trans "Completed" %}
{{ row.workflow }}v{{ row.version }} {{ row.started }}{{ row.active }}{{ row.completed }}
{% endif %}
{% endblock %}