{% extends "base.html" %} {% import "_side.html" as sidem with context %} {% import "_panels.html" as xpm %} {% import "_tokens.html" as tkm %} {% import "_pause.html" as pz with context %} {% import "_open.html" as om with context %} {% import "_plan.html" as plm with context %} {% import "_vscode.html" as vsm %} {#- How every board is doing, what needs you, and token use (docs/overview.md). -#} {% block title %}Overview{% endblock %} {% block head %} {% set colour = column_colour %} {% endblock %} {% block main %} {% set t = ov.tiles %} {% set fin_max = 20 %} {% set span = "today" if burn.days == 1 else "last %d days" % burn.days %}
{{ sidem.tab(side, None) }}

Overview

{{ side|sum(attribute="n") }} project{{ "s" if side|sum(attribute="n") != 1 }} on {{ side|length }} board{{ "s" if side|length != 1 }}
{% if not side|sum(attribute="n") %}

No projects are registered in {{ home }}.

New packet here, or wpk setup (a guided setup in a terminal), or wpk new <name> and then wpk doctor <name>.

{% else %} {{ xpm.show(xpanels) }} {% if side|length > 1 %}{% endif %} {% set focus = [] %}{% for col, cs in ov.cols.items() if col != "Done" %}{% for c in cs if c.plan.priority == "now" %}{% set _ = focus.append(c) %}{% endfor %}{% endfor %} {% if ov.brief %}{% set b = ov.brief %}
Today the whole brief · standup · weekly review{% if ov.shutdown %} · end of the day{% endif %}
    {% for f in b.focus %}
  1. {{ f.theme or f.project }} {{ f.why|join(", ") or "next up" }}{% if f.next %} · Next: {{ f.next }}{% endif %}
  2. {% endfor %}
{% if b.agent and (b.agent.decide or b.agent.close_out) %}
{% if b.agent.headline %}{{ b.agent.headline }} {% endif %}{{ b.agent.decide|length }} to decide · {{ b.agent.close_out|length }} to close out
{% endif %} {% if b.handoff %}
Hand off before you start: {% for h in b.handoff %}{{ h.project }}{{ ", " if not loop.last }}{% endfor %}
{% endif %}
{% elif ov.shutdown %}

End of the day: checkpoint, load the night shift, pick tomorrow's first.

{% endif %}
{% if focus %}Focus: {% for c in focus %}{{ c.name }}{% if c.due %} ({{ c.due }}){% endif %}{{ " · " if not loop.last }}{% endfor %}{% else %}Nothing in now: set a project's priority with Plan ▾, or on the Backlog.{% endif %}
{% if ov.captured %} {{ ov.captured }} in the inbox{% endif %}

Needs you{% if ov.snoozed %} ({{ ov.snoozed }} snoozed){% endif %}

{% if ov.attention %} {% set fin = ov.attention|selectattr("kind", "in", ["done", "stopped"])|list %} {% if fin %}
{% endif %}
{% if fin %}
Opening a project also takes it off.
{% endif %}
    {% set ns = namespace(fin=0) %} {% for a in ov.attention %}{% set c = a.card %} {% if a.kind in ("done", "stopped") %}{% set ns.fin = ns.fin + 1 %}{% endif %} {% if a.kind in ("done", "stopped") and ns.fin == fin_max + 1 %}
{{ fin|length - fin_max }} more finished
    {% endif %}
  • {% if a.kind == "needs" %}ASKS {% elif a.kind == "stalled" %}REQUEST {% elif a.kind == "stuck" %}ASLEEP {% elif a.kind == "blocked" %}BLOCKED {% elif a.kind == "yourturn" %}YOUR TURN {% elif a.kind == "stale" %}QUIET {% elif a.kind == "done" %}{% if c.lifecycle == "open" %}REVIEW{% else %}DONE{% endif %} {% elif a.kind == "stopped" %}STOPPED {% elif a.kind == "job" %}JOB {% elif a.kind == "atrisk" %}AT RISK {% elif a.kind == "rot" %}STALE {% elif a.kind == "closeable" %}{% if a.item.clean %}READY TO CLOSE{% else %}NOT SAVED{% endif %} {% else %}FAILED{% endif %} {{ c.name }} {% if side|length > 1 %}{{ c.board }}{% endif %} {% if a.kind == "needs" %}{{ c.root.reason or "has a question" }} · wpk answer {{ c.name }} {% elif a.kind == "failed" %}{{ (c.root.reason if c.root else "") or "failed" }} {% elif a.kind == "trouble" %}{{ c.trouble }} packet{{ "s" if c.trouble != 1 }} below the root failed {% elif a.kind == "stalled" %}{% set r = a.req %}request {{ r.id }} to {{ r.project }} is {{ r.state }} at step {{ r.step }}: {{ r.reason or "no reason" }} · nobody is working on it {% elif a.kind == "stuck" %}{% set k = a.pkt %}{{ k.name or k.short }} sleeps, but {% for ch in k.children %}{{ ch.short }} is {{ ch.state }}{{ ", " if not loop.last }}{% endfor %} {% elif a.kind in ("atrisk", "rot", "closeable") %}{{ a.item.text }} {% elif a.kind == "job" %}{{ a.item.text }} · {{ a.item.since|epoch }} {% elif a.kind in ("blocked", "yourturn", "stale") %}{{ a.item.text }} · {{ a.item.since|epoch }} {% elif a.kind in ("done", "stopped") %}{% set u = c.unread %}{{ u.outcome or ("finished" if a.kind == "done" else "stopped") }} · {{ u.ago }}{% if u.task > 1 %} · task {{ u.task }}{% endif %}{% if u.cost_usd %} · {{ u.cost_usd|money }}{% endif %} {% if u.pr %}PR #{{ u.pr.number }}{% endif %} {% endif %} {% if a.kind == "needs" %}Answer {% elif a.kind == "stalled" %}{% if a.req.state != "NEEDS_INPUT" %}{% endif %} {{ "Answer" if a.req.state == "NEEDS_INPUT" else "Open" }} {% elif a.kind == "stuck" %} {% elif a.kind in ("done", "stopped") %}Open{% if a.kind == "done" and c.lifecycle == "open" %} Close… Next… {{ om.menu(c, key="att-") }}{% endif %} {% elif a.kind == "closeable" %}Close… {% elif a.kind == "atrisk" %}Hand it off now {{ plm.menu(c.name, c.plan, "/") }} Open {% elif a.kind == "rot" %}{{ plm.menu(c.name, c.plan, "/") }} Hand off… Open {% elif a.kind == "job" %}Open {% elif a.kind in ("blocked", "yourturn", "stale") %}Open {% if a.kind == "yourturn" %}
    Reply
    {% endif %} {% else %}Open{% endif %}
    Snooze {% for u, label in (("1h", "1 hour"), ("tomorrow", "until tomorrow"), ("change", "until it changes")) %}{% endfor %}
  • {% endfor %}
{% if fin|length > fin_max %}
{% endif %}
{% for a in ov.attention %}{% if a.kind == "stalled" and a.req.state != "NEEDS_INPUT" %}
{% elif a.kind == "yourturn" %}
{% elif a.kind == "done" and a.card.lifecycle == "open" %}
{% elif a.kind == "stuck" %}
{% endif %}{% endfor %} {% else %}

Nothing needs you.

{% endif %} {% if last %}

Since you were last here ({{ since|epoch }})

{% endif %}

Boards

{% for d in windows %}{{ "1 day" if d == 1 else "%d days" % d }}{% endfor %} token use →
{% for k in columns %}{% endfor %} {% if burn.days > 1 %}{% endif %} {% for b in ov.boards %} {% for k, n, who in b.counts %}{% endfor %} {% if burn.days > 1 %}{% endif %} {% endfor %}
Board{{ k }}ProjectsPacketsCost, {{ span }}ContextPer dayLast step
{{ b.name }}{% if b.title %} {{ b.title }}{% endif %} {% if b.n %}
{% for k, n, who in b.counts %}{% if n %}{% endif %}{% endfor %}
{% endif %}
{% if n %}{{ n }}{% else %}0{% endif %}{{ b.n }}{% if b.broken %} +{{ b.broken }}?{% endif %} {{ b.packets }} {{ b.tk.cost_usd|money if b.tk else "" }} {{ b.tk.context_tokens|tok if b.tk else "" }}{% if b.tk %}{{ tkm.chart(b.tk.spark, "context per day", legend=False) }}{% endif %}{{ b.last_step }}

In progress

{% if ov.running or ov.you %}
    {% for c in ov.you %}
  • YOU {{ pz.badge(c) }}{{ c.name }} {{ c.ball.text }} {% if side|length > 1 %}{{ c.board }}{% endif %} {{ om.menu(c, key="you-") }}
  • {% endfor %} {% for c in ov.running %}
  • RUNNING {{ pz.badge(c) }}{{ c.name }} {{ c.running.name or c.running.short }} step {{ c.running.step }}{% if c.running.for %}, {{ c.running.for }}{% endif %} {% if c.running.now %}
    {{ c.running.now }}{% endif %}
    {% if side|length > 1 %}{{ c.board }}{% endif %} {{ pz.button(c, "/#running") }} {{ om.menu(c, key="run-") }}
  • {% endfor %}
{% else %}

Nobody is working on anything.

{% endif %}

Coming up

{% if ov.coming %}
    {% for c in ov.coming %}
  • {% if c.ball.kind == "queued" %}QUEUED{% else %}WAKES{% endif %}{{ pz.badge(c) }} {{ c.name }} {% if c.ball.kind == "queued" %}due now{% if not runner %}: runner off, start the dash with --run or use wpk tick{% endif %}{% else %}{{ c.root.next if c.root }}{% endif %} {% if side|length > 1 %}{{ c.board }}{% endif %} {{ pz.button(c, "/#running") }}
  • {% endfor %} {% if ov.more_coming %}
  • and {{ ov.more_coming }} more
  • {% endif %}
{% else %}

Nothing is ready or asleep.

{% endif %}
{% if vsc %}

Recent VS Code sessions

{{ vsm.table(vsc, where=True) }} {{ vsm.scribe_switch(scribe_on, "/#vscode-sessions", csrf) }} {{ vsm.hooks_switch(hooks_on, "/#vscode-sessions", csrf) }} {% endif %} {% endif %} {% if broken %}

Projects that could not be read

{% for b in broken %}{% if side|length > 1 %}{% endif %}{% endfor %}
{{ b.name }}{{ b.board }}{{ b.why }}
{% endif %}
{% endblock %}