{# The Work list, for one project or all of them (show_project): one toolbar row (sort, the Filter menu, the overdue / due soon / stuck counts that filter), the filters in use as chips, then the groups. Done this week shows its latest five. #} {% from "_macros.html" import due_buckets, icon %} {% from "_project_macros.html" import work_row, filter_bar %} {% set groups = [("ready", "Ready for an agent", "neutral"), ("in_progress", "In progress", "info"), ("waiting", "Waiting", "neutral"), ("done", "Done this week", "success")] %}
{% if filter_chips %}{% for c in filter_chips %}{{ c.text }} {{ icon("x") }}{% endfor %}
{% endif %} {% if work.needs_you %} {% set now_href = "/?project=" ~ (p.name | urlencode) if p else "/" %}{{ icon("zap") }}{{ work.needs_you | length }} waiting on you{% if show_project %} across projects{% endif %}. Answer them on Now {{ icon("arrow-right") }}
{% endif %} {% if not (work.needs_you or work.ready or work.in_progress or work.waiting or work.done) %}{% if filters.active %}Nothing matches this filter.{% elif show_project %}Nothing open in any project.{% else %}Nothing open. Add work, a bug or something for yourself with New work, or start a goal on the Overview.{% endif %}
{% endif %} {% for key, label, tone in groups %}{% if work[key] %} {% set ranking = not show_project and sort != "due" and key != "done" %} {% set rows = work[key] %}