Skip to content

Commit b3928ed

Browse files
committed
Add emoji to result column for skimmability
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent e6079e9 commit b3928ed

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

compliance-monitor/templates/details.md.j2

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@ The columns labeled _(rec)_ contain recommended testcases for the scope version
2929

3030
| testcase id | result |{% for version in scope_result.relevant %} {{ version }}{{ scope_result.versions[version].validity | validity_symbol }} | (rec) |{% endfor %} description |
3131
|---|---|{% for version in scope_result.relevant %}---|---|{% endfor %}---|
32-
{% for cat, val in (('FAILED', -1), ('MISSING', None), ('inconclusive', 0), ('passed', 1)) -%}
32+
{% for cat, sym0, val in (('FAILED', '🛑🟧', -1), ('MISSING', '❓', None), ('inconclusive', '❔', 0), ('passed', '✅', 1)) -%}
3333
{% set bucket = scope_result.buckets[val] -%}
3434
{% for testcase_id in bucket -%}
3535
{% set testcase = scope_result.testcases[testcase_id] -%}
3636
{% set res = scope_result.results[testcase_id] if testcase_id in scope_result.results else dict(result=0) -%}
3737
| [{{ testcase_id }}]({{ testcase.url }}) {# -#}
38-
| {{cat}}{% if res.report %} ([{{ res.checked_at | short_isodate }}]({{ report_url(res.report, version, testcase_id) }})) { title="{{ res.report }} {{ res.checked_at }}" }{% endif %} {# -#}
38+
{% if val == -1 -%}
39+
{% if testcase.attn %}{% set sym = sym0[0:1] %}{% else %}{% set sym = sym0[1:2] %}{% endif -%}
40+
{% else -%}
41+
{% set sym = sym0 -%}
42+
{% endif -%}
43+
| {{sym}} {{cat}}{% if res.report %} ([{{ res.checked_at | short_isodate }}]({{ report_url(res.report, version, testcase_id) }})) { title="{{ res.report }} {{ res.checked_at }}" }{% endif %} {# -#}
3944
{% for version in scope_result.relevant %}| {%
4045
set tgt = scope_result.versions[version].tc_target[testcase_id]
4146
%}{% if tgt == 'main' %}X { title="main" }{% endif %} | {% if tgt and tgt != 'main' %}x { title="{{ tgt }}" }{% endif %} {% endfor -%}

0 commit comments

Comments
 (0)