{% extends 'timeseer.html' %}
{% from 'flows.html' import flows_header with context %}
{% from 'macros.html' import bootstrap_icon, info_popover, menu_back, visualize_score, visualize_series, visualize_series_name, visualize_split_kpi_score %}
{% block scripts %}
{% endblock %}
{% block styles %}
{% endblock %}
{% block menu %}
{{ menu_back(url_for('flows.display_flow', flowevaluationid=block_evaluation.flow_evaluation.db_id, sourcename=source_name)) }}
{% endblock %}
{% block main %}
{% call flows_header(block_evaluation.flow_evaluation, 'Report') %}
{% if context_score %}
{% endif %}
{% endcall %}
{% if favorite_kpi_scores|count > 0 %}
{% for score in favorite_kpi_scores|sort(attribute='name') %}
{{ visualize_split_kpi_score(score.score) }}
{{ score.name|capitalize }}
{% endfor %}
{% endif %}
{% if kpi_scores|count > 0 %}
{% if kpi_scores|count > 2 %}
{% endif %}
KPI |
{{ compare_to }} |
{{ flow.name }} |
{% for kpi in kpis|sort(attribute='name') %}
{{ kpi.name }}
|
{% if kpi.name in comparison_kpi_scores %}
{{ visualize_score(comparison_kpi_scores[kpi.name]) }}
{% else %}
- |
{% endif %}
{% if kpi.name in kpi_scores %}
{{ visualize_score(kpi_scores[kpi.name]) }}
{% else %}
- |
{% endif %}
{% endfor %}
{% else %}
No results to display.
{% endif %}
{% if bad_actor_scores|count > 0 %}
|
{% for series, scores in bad_actor_scores.items()|sort(attribute='0.name', reverse=True) %}
{% if loop.first %}
{% for score in scores %}
{{ score.start_date|dateformat }} |
{% endfor %}
{% endif %}
{% endfor %}
{% for series, scores in bad_actor_scores.items()|sort(attribute='0.name', reverse=True) %}
{% for score in scores %}
{{ score.score }} |
{% endfor %}
{% endfor %}
{% endif %}
{% for kpi, scores in kpi_score_scores|dictsort %}
Name |
Score |
{% if scores|count > 0 %}
{% for score in scores|sort(attribute="metadata.score_weight", reverse=True) %}
{{ score.metadata.name|capitalize }}
{% if score.metadata.short_help_text %}
{{info_popover(score.metadata.short_help_text)}}
{% endif %}
|
{{ visualize_score(score.score) }}
{% set previous_weight = score.metadata.score_weight %}
{% endfor %}
{% endif %}
{% if scores|count == 0 %}
No results to display.
{% endif %}
{% endfor %}
{% if worst_series|count > 0 %}
{% else %}
No results to display.
{% endif %}
{% if kpi_scores|count > 0 %}
{% endif %}
{% endblock %}