{% extends "base.html" %} {% block title %}Runs · lake-sift{% endblock %} {% set running = runs | selectattr('status', 'equalto', 'running') | list | length %} {% block head %} {# Auto-refresh the list while a run is in flight, so it lands on the badge without a manual reload. #} {% if running %}{% endif %} {% endblock %} {% block body %}

{% if kind %}{{ kind_label(kind) }} runs{% else %}All runs{% endif %}

New diff
{{ counts.values() | sum }}
Runs
{{ counts.get('running', 0) }}
Running
{{ counts.get('identical', 0) }}
Identical
{{ counts.get('differences', 0) + counts.get('schema', 0) }}
Differences
{{ counts.get('error', 0) }}
Errors
All Diff Schema Preview
{% if not runs %}
{% if kind %}No {{ kind_label(kind) | lower }} runs yet.{% else %}No runs yet.{% endif %} Start a diff to compare two datasets.
{% else %}
{% for r in runs %} {% endfor %}
# Status Kind Left → Right Key Changes Source Time When
#{{ r.id }} {{ status_label(r.status) }} {{ kind_label(r.kind) }}
{{ r.left }} {{ r.right }}
{{ r.key or '—' }} {{ changes_cell(r) }} {{ r.source_kind }} {{ r.duration_ms | dur }} {{ r.created_at | ago }}
{% endif %} {% endblock %} {% macro changes_cell(r) %} {%- set s = r.summary or {} -%} {%- if r.status in ('running', 'error') -%} {%- elif r.kind == 'diff' -%} {%- if r.status == 'identical' -%} no change {%- else -%} {{ s.get('added', 0) }}+ {{ s.get('removed', 0) }}- {{ s.get('changed_cells', 0) }}~ {%- endif -%} {%- elif r.kind == 'schema' -%} {%- set n = s.get('schema_changes', 0) -%} {%- if n -%}{{ n }} column change{{ 's' if n != 1 else '' }} {%- else -%}no change{%- endif -%} {%- elif r.kind == 'preview' -%} {%- if r.status == 'identical' -%}identical {%- else -%}{{ s.get('files_differing', 0) }} files · {{ '{:,}'.format(s.get('rows_to_scan', 0)) }} rows{%- endif -%} {%- else -%}{%- endif -%} {% endmacro %}