{# #418: the dashboard's body: `tkt report overview --json`, or the refusal of a report that cannot run. Every chart is CSS bars (no script) and prints its numbers too; a segment opens the view it counts. Tones are `.tone-*` in ui.css. #426: the Coverage card (declared obligations) beside the relations matrix, its unmet rows in "Needs attention". #} {% from "_when.html" import when %} {% macro bar(segs, label) -%} {%- endmacro %} {% if error %}
{{ error.slug }}
{{ error.message }}
Run it yourself: {{ cmd }}
{% if t.href %}{{ t.name }}{% else %}{{ t.name }}{% endif %}
{% if t.href %}{{ t.count }}{% else %}{{ t.count }}{% endif %}
{% if t.count and t.segs %} {{ bar(t.segs, t.segs | map(attribute='label') | join(' · ')) }}{% for s in t.segs %}{% if s.href %}{{ s.label }}{% else %}{{ s.label }}{% endif %}{{ ' · ' if not loop.last }}{% endfor %}
{% elif t.count %}{{ t.count }} in all
{% else %}None yet.
{% endif %}{{ tickets.count }} tickets. A bar's length is the count of its type; a segment opens the tree with that type and status.
{% for s in tickets.legend %}{{ s.label }} {{ s.count }}{% endfor %}
| type | {% for s in tickets.statuses %}{{ s }} | {% endfor %}
|---|---|
{{ r.type }} | {% for c in r.cells %}{{ c }} | {% endfor %}
No tickets yet. Add one: tkt ticket new
{{ a.cmd }}{% endif %}
{% for i in a['items'] %}{% if i.href %}{{ i.id }}{% else %}{{ i.id }}{% endif %}{{ ', ' if not loop.last }}{% endfor %}{% if a.more %}, +{{ a.more }} more{% endif %}
Nothing needs attention: no blocked ticket, nothing past its target date, no open review, every declared obligation met.
{% endif %}{{ report.relations.declared }} declared links, {{ report.relations.mentions }} text mentions besides.
A row links to a column (a doc's affects runs doc → decision); a darker cell has more links;
a cell names its fields on hover.
| from ↓ to → | {% for k in matrix.kinds %}{{ k }} | {% endfor %}
|---|---|
| {{ r.kind }} | {%- for c in r.cells %}{{ c.count if c.count else '·' }} | {% endfor %}
fewer{% for n in range(1, 5) %}{% endfor %}more links
Open items that meet each obligation their type declares, counted as each item's read counts it. A bar opens the view of its items.
| kind | obligation | met | of | not met |
|---|---|---|---|---|
{{ c.kind }} | {{ c.obligation }} | {{ c.met }} | {{ c.applicable }} | {% for i in c['items'] %}{% if i.href %}{{ i.id }}{% else %}{{ i.id }}{% endif %}{{ ', ' if not loop.last }}{% endfor %} |
No open item has a declared obligation yet.
{% endif %}Items no declared link reaches or leaves.
{{ i.id }}{% endif %}{{ ', ' if not loop.last }}{% endfor %}Every item has at least one declared link.
{% endif %}created {{ activity.created }} closed {{ activity.closed }}
| week | from | created | closed |
|---|---|---|---|
| {{ w.week }} | {{ w.start }} | {{ w.created }} | {{ w.closed }} |
ISO weeks in the local zone, from each ticket's createdAt and closedAt.
{{ r.id }}{% endif %} {{ r.title }}
{{ when(r.updatedAt, 'updated') }}Nothing has recorded a change time yet.
{% endif %}{{ cmd }} --json{{ report | tojson(indent=2) }}