{# 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 = [("needs_you", "Needs you", "warning"), ("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 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] %}