{% extends "base.html" %} {% from "_macros.html" import icon, empty_state %} {% from "_project_macros.html" import filter_bar, label_chips, close_menu %} {% block title %}{% if q %}{{ q }} โ€” {% endif %}Search โ€” apo{% endblock %} {% block body_class %}page-search{% endblock %} {% set group_labels = {"item": "Items", "session": "Sessions", "outcome": "Outcomes", "transcript": "In transcripts"} %} {% block content %}
{% if filter_chips %}

{% for c in filter_chips %}{{ c.text }} {{ icon("x") }}{% endfor %}

{% endif %} {% if error %}{% endif %} {% if q or filtered %} {% if groups %}
{% for kind, hits in groups.items() %}

{{ group_labels[kind] }} {{ hits | length }}

    {% for h in hits %}
  • {{ h.title | highlight(terms) }} {% if h.project_name %}{{ h.project_name }}{% endif %} {{ h.subkind if h.kind == "item" else h.status }}{% if h.kind == "item" %} ยท {{ h.status }}{% endif %} {% if h.kind == "item" %}{{ label_chips(h.labels, "/search") }}{% endif %} {% if h.kind == "item" and h.status in ("open", "in_progress") %}{{ close_menu(h.ref, request.url.path ~ ("?" ~ request.url.query if request.url.query else "")) }}{% endif %}
    {% if h.snippet %}

    {{ h.snippet | highlight(terms) }}

    {% endif %} {% if h.resume_command and h.status == "ended" %}
    {{ h.resume_command }}
    {% endif %}
  • {% endfor %}
{% endfor %}
{% else %} {% call empty_state("search", "Nothing matches") %}

{% if not deep and not filtered %}Try searching transcripts too.{% else %}Not in any item, recap, outcome or transcript.{% endif %}

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