{% extends 'timeseer.html' %} {% from 'flows.html' import flows_breadcrumb, 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 %} {% macro compare(a, b) %} {% if a == b %} = {% elif a > b %} {{ b - a }}% {% else %} +{{ b - a }}% {% endif %} {% endmacro %} {% block csp_style %} 'self' 'unsafe-inline' {% endblock %} {% 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 %} {% set title = 'Dashboard' %} {% block breadcrumb %} {{ flows_breadcrumb(block_evaluation, [ (block_evaluation.name, url_for('flow_univariate.display_dashboard', sourcename=source_name, blockevaluationid=block_evaluation.db_id)), title, ]) }} {% endblock %} {% block main %} {% call flows_header(block_evaluation, title) %}
Import in data service
{% endcall %} {% if is_calculating %}
Results are being calculated. Refresh page
{% else %}

Quality KPI scores

{% if kpi_scores|count > 0 and block_evaluations|count > 2 %} {% endif %}
{% if kpi_scores|count > 0 %}
{% if kpi_scores|count > 2 %}
{% endif %}
{% for entry in kpi_set_entries|sort(attribute='kpi.name') %} {% set kpi = entry.kpi %} {% if kpi.name in kpi_scores %} {{ visualize_score(kpi_scores[kpi.name]) }} {% else %} {% endif %} {% if kpi.name in kpi_scores and kpi.name in comparison_kpi_scores %} {{ compare(comparison_kpi_scores[kpi.name], kpi_scores[kpi.name]) }} {% else %} {% endif %} {% endfor %}
{{ kpi_set.name }} {{ bootstrap_icon('box-arrow-up-right') }} Score Evolution
{% if entry.favorite %} {{ bootstrap_icon('star-fill', 'text-primary icon') }} {% endif %} {{ kpi.name }} --
{% else %}
No results to display.
{% endif %}
{% if block_evaluation.flow_evaluation.group.time_range.has_no_time_range() is false %}

Bad actor visualization

Loading chart...
{% endif %}
{% for kpi, scores in kpi_score_scores|dictsort %}

{{ kpi|capitalize }}

{% if scores|count > 0 %} {% for score in scores|sort(attribute="weight", reverse=True) %} {{ visualize_score(score.score) }} {% endfor %} {% endif %}
Name Score
{{ score.metadata.name|capitalize }} {{ info_popover(score.metadata.short_help_text) }}
{% if scores|count == 0 %}
No results to display.
{% endif %}
{% endfor %}

Worst scoring series

{% if worst_series|count > 0 %}
{% if source_name %} {% endif %}
{% endif %}
{% if worst_series|count > 0 %} {% for series, score in worst_series.items() %} {{ visualize_score(score) }} {% endfor %}
Series name Score
{{ visualize_series_name(series.name) }}
{% else %}
No results to display.
{% endif %}
{% endif %} {% endblock %}