domain-level constraints

This commit is contained in:
2026-03-04 16:53:58 -06:00
parent 00cc8dd9ef
commit 843baa15ad
11 changed files with 188 additions and 21 deletions

View File

@@ -10,7 +10,17 @@
<div class="card">
<dl>
<dt>Domain</dt><dd>{{ domain.name }}</dd>
<dt>Status</dt><dd><span class="badge badge-{{ combo.status }}">{{ combo.status }}</span></dd>
<dt>Status</dt>
<dd>
{% if result and result.domain_block_reason %}
<span class="badge badge-p1_fail">domain_blocked</span>
{% else %}
<span class="badge badge-{{ combo.status }}">{{ combo.status }}</span>
{% endif %}
</dd>
{% if result and result.domain_block_reason %}
<dt>Domain Block Reason</dt><dd>{{ result.domain_block_reason }}</dd>
{% endif %}
{% if combo.block_reason %}
<dt>Block Reason</dt><dd>{{ combo.block_reason }}</dd>
{% endif %}

View File

@@ -62,9 +62,17 @@
<td>{{ loop.index }}</td>
<td class="score-cell">{{ "%.4f"|format(r.composite_score) if r.composite_score is not none else '—' }}</td>
<td>{{ r.combination.entities|map(attribute='name')|join(' + ') }}</td>
<td><span class="badge badge-{{ r.combination.status }}">{{ r.combination.status }}</span></td>
<td>
{%- if r.domain_block_reason -%}
<span class="badge badge-p1_fail">domain_blocked</span>
{%- else -%}
<span class="badge badge-{{ r.combination.status }}">{{ r.combination.status }}</span>
{%- endif -%}
</td>
<td class="block-reason-cell">
{%- if r.combination.status.endswith('_fail') and r.combination.block_reason -%}
{%- if r.domain_block_reason -%}
{{ r.domain_block_reason }}
{%- elif r.combination.status.endswith('_fail') and r.combination.block_reason -%}
{{ r.combination.block_reason }}
{%- elif r.novelty_flag -%}
{{ r.novelty_flag }}