{# Results fragment: live result count + the issues table. Rendered standalone when ?partial=1 (for AJAX swaps) and included by index.html for the normal full-page render. Everything that changes on a filter/sort lives here so a single swap keeps the count, sort arrows and rows consistent. #} {% set COLOR_SCORES = true %}
{{ issues|length }} {{ 'issue' if issues|length == 1 else 'issues' }}
{% set cols = [ ('title', 'Issue'), ('reach', 'Reach'), ('impact', 'Impact'), ('confidence', 'Conf.'), ('effort', 'Effort'), ('eff_rice', 'RICE'), ('last_seen', 'Last Seen'), ('user_count', 'Users'), ] %} {% set keep = '&q=' ~ search ~ '&env=' ~ env ~ ('&app=' ~ app_filter if app_filter else '') ~ ('&cat=' ~ cat_filter if cat_filter else '') ~ ('&new=1' if new_only else '') %} {% for col, label in cols %} {% set next_order = 'asc' if (sort == col and order == 'desc') else 'desc' %} {% endfor %} {% for issue in issues %} {# Effective-RICE severity colour: high = red, medium = amber, low = green #} {% if issue.eff_rice >= rice_high %}{% set rice_color = '#F55459' %} {% elif issue.eff_rice >= rice_medium %}{% set rice_color = '#F5B000' %} {% else %}{% set rice_color = '#4DC771' %}{% endif %} {% else %} {% endfor %}
{{ label }} {% if sort == col %} {{ '↓' if order == 'desc' else '↑' }} {% endif %} Actions
{{ issue.sentry_id }}
{{ issue.title }}
{% if issue.is_new %} New {% endif %} {% set cm = cat_meta.get(issue.impact_category, ['shapes', '#9AA0AA']) %} {{ issue.impact_category }} {% set is_prod = (issue.environment or '')|lower in ['production', 'prod'] %} {{ issue.environment }} {{ issue.app }}
{{ issue.eff_reach | round | int }} {% if issue.eff_reach != issue.reach %} {% endif %} {{ issue.eff_impact | round | int }} {% if issue.eff_impact != issue.impact %} {% endif %} {{ issue.eff_confidence | round | int }} {% if issue.eff_confidence != issue.confidence %} {% endif %} {{ issue.eff_effort | round | int }} {% if issue.eff_effort != issue.effort %} {% endif %} {{ issue.eff_rice | round | int }} {{ issue.last_seen | reltime }} {% if issue.user_count and issue.user_count > 0 %} {{ issue.user_count | commas }} {% else %} {{ issue.event_count | commas }}ev {% endif %}
No issues match — try widening the filters, or open Claude Code here and run /reimport.