{% extends "base.html" %} {% from "_sidebar.html" import toggle, rail, worst %} {% from "_when.html" import when, changed, sort_field %} {% from "_where.html" import live_line, where, server_live_note with context %} {% block title %}Focus · tkt ui{% endblock %} {% macro focus_ref(f) %}{{ f.id if f.kind == 'epic' else f.kind ~ '://' ~ f.id }}{% endmacro %} {% block main %} {{ server_live_note() }} {% set f = data.focus %} {% if not f %}

Focus

No focus. The project works through the whole store; tkt next ranks every ticket.

Set one: tkt focus set <milestone|epic> or tkt focus release <id> (AITODO_FOCUS for yourself only).

{% else %} {% set p = data.progress %} {% set pr = data.project %} {% set overrides = f.source != 'project' and pr and (pr.kind != f.kind or pr.id != f.id) %}

Focus · everything below is inside the focus

{{ f.kind }} {{ link(ref) }} {{ data.title or '' }} {% if data.status %}{{ data.status | replace('_', ' ') }}{% endif %}

{% if f.source == 'project' %}Project focus: set for everyone (.aitodo/config.yaml). {% elif f.source == 'env' %}Personal focus (AITODO_FOCUS of this tkt ui){% if overrides %}, overriding the project focus {{ link(focus_ref(pr)) }}{% endif %}. {% else %}{{ f.source }}{% endif %}

{% if p %}

{{ p.done }}/{{ p.total }} done{% if p.canceled %} ({{ p.canceled }} canceled not counted){% endif %}

{% endif %}

Change it: tkt focus set <milestone|epic> · tkt focus release <id> · tkt focus clear {%- if f.source == 'env' %} · for yourself: AITODO_FOCUS, then restart tkt ui{% endif %}

{% if data.hint %}

{{ link(data.hint) }}

{% endif %}
{% if view == 'board' or view == 'tree' %}
$ {{ view_cmd }}
{% endif %} {% if view == 'board' %} {% if view_error %} {% else %} {% set s = view_data.scope %} {% set live_total = view_data.liveStatus.values() | sum %}

{{ s.status | replace('_', ' ') }} · {{ s.progress.done }}/{{ s.progress.total }} done {%- if s.targetDate %} · target {{ s.targetDate }}{% endif %} {%- if s.points and s.points.total %} · {{ s.points.done }}/{{ s.points.total }} pts{% endif %} {%- if s.value and s.value.total %} · value {{ s.value.done }}/{{ s.value.total }}{% endif %}

{% if live_total %}

{{ live_total }} card{{ '' if live_total == 1 else 's' }} live in other worktrees: {% for st, n in view_data.liveStatus.items() %}{{ n }} {{ st | replace('_', ' ') }}{{ ', ' if not loop.last }}{% endfor %}

{% endif %} {% with data = view_data %}{% include "_board_view.html" %}{% endwith %} {% endif %} {% elif view == 'tree' %} {% with data = view_data, error = view_error, tree_action = base ~ '/focus', in_focus = true %}{% include "_tree_view.html" %}{% endwith %} {% else %}

Tickets {{ data.tickets | length }}

{{ sort_field(sort) }} {% if sort %}Clear filters{% endif %}
{% if data.tickets %} {% for t in data.tickets %} {% endfor %}
idstatustitlepriority
{{ type_icon(t.type) }} {{ link(t.id) }} {{ t.status | replace('_', ' ') }} {{ t.title }} {% if t.updatedAt %}
updated {{ when(t.updatedAt, 'updated') }}
{% endif %} {% if t.live %}
{{ live_line(t.live) }}
{% endif %} {{ where(t.id) }}
{% if t.priority and t.priority != 'none' %}{{ t.priority }}{% endif %}
{% else %}

No tickets in it.

{% endif %}
{% endif %} {% endif %} {% endblock %}