{# One Now item with its moves. Context: item, lane, glyph; item_next (where every form returns to, default "/"); item_open_answer (open the answer box, for the lightning round). #} {% from "_macros.html" import icon, ref, due_badge, stuck_badge %} {% from "_project_macros.html" import note_count_badge, close_menu %} {% set item_next = item_next or "/" %}
{% if item.project_name %}{{ item.project_name }}{% endif %} {% if item.decision %} {{ ref(item.decision.id) }}{{ item.title }} {% elif item.session %} {{ item.title }} {% elif item.outcome %} {{ item.title }} {% elif item.href %} {{ item.title }} {% else %} {{ item.title }} {% endif %}
{%- if item.decision and item.decision.note_count %}{{ note_count_badge(item.decision.note_count) }}{% endif %} {%- if item.due_bucket %}{{ due_badge(item.decision.due_on) }}{% endif %} {%- if item.stuck %}Stuck {{ item.stuck.days }}d{% endif %} {%- if item.since %}{% endif %} {%- if item.effort %} · ~{{ "30s" if item.effort < 1 else (item.effort | int) ~ "m" }}{% endif -%}

{{ item.reason }}

{#- In a lane with moves, the Accept button itself carries the suggestion. -#} {% set suggestion_on_button = item.kind == "decision" and item.decision.recommendation and lane in ("your_move", "asks") and not item_open_answer %} {% if item.kind == "decision" and item.decision.recommendation and not suggestion_on_button %}

{{ icon("bulb") }}Suggested: {{ item.decision.recommendation }} {%- if item.decision.confidence %} · {{ item.decision.confidence }}% sure{% endif %}

{% endif %} {% if item.kind in ("decision", "action") and lane in ("your_move", "asks") %}
{% if item_open_answer %} {% elif item.kind == "decision" and item.decision.recommendation %}
{% elif item.kind == "action" %}
{% endif %}
{{ icon("clock") }}Snooze
{% if item.decision.origin_session_id %} {% endif %}
{{ icon("chevron-right", cls="chev") }}{{ "Answer…" if item.kind == "decision" else "Note or other answer…" }} {% set composer_decision_id = item.decision.id %} {% set composer_attachments = [] %} {% set composer_editable = true %} {% set composer_show_headings = false %} {% set composer_thumb_compact = true %} {% set composer_id_suffix = "-now-" ~ item.decision.id %} {% set composer_placeholder = "Note for a quick answer, or your own answer…" %} {% set composer_submit_label = "Confirm done" if item.kind == "action" else "Send answer" %} {% set composer_decision = item.decision %} {% set composer_next = item_next %} {# The row already has Accept / Done; the round has no row button, so its box keeps them. #} {% set composer_skip_primary = not item_open_answer %} {% include "_attachment_composer.html" %}
{% elif item.kind == "limited" and lane == "in_transit" %}
{% elif item.kind == "limited" %}
{% elif item.kind == "outcome" %}
Open
{% elif item.kind == "wait" %}
{% elif item.kind == "land" %} {% if item.blocked %}

{{ item.blocked }}

{% else %}
{% endif %} {% elif item.kind == "review" %}
{% if item.session.project_id %}{{ icon("plus") }}Follow up{% endif %}
{% if item.reply_plan and item.reply_plan.allowed %} {% with reply_session = item.session, reply_plan = item.reply_plan, reply_next = item_next %}{% include "_reply_form.html" %}{% endwith %} {% endif %} {% elif item.kind in ("permission", "input") %}

It's waiting in its terminal{% if item.session.cwd %} ({{ item.session.cwd }}){% endif %}.

{% elif item.kind == "sync" %} {{ icon("plug") }}Check the connection {% elif item.kind == "folder" %}

Run apo projects for the merge command.

{% elif item.kind == "missing_folder" %} {{ icon("folder") }}Set its new path {% endif %} {% if item.kind == "transit" and not item.decision.live_session and not item.decision.dispatched and item.decision.repository_id is not none %}
{% if item.decision.needs_approval %}{% endif %}
{% endif %} {% if item.decision and item.decision.status in ("open", "in_progress") and not (item.kind in ("decision", "action") and lane in ("your_move", "asks")) %}
{{ close_menu(item.decision.id, item_next) }}
{% endif %} {% if item.resume_command %}
{% if item.session and item.reply_plan and item.reply_plan.allowed %}
{% endif %}
{% endif %}