fix: align sentinel run row tags with check counts

This commit is contained in:
Codex
2026-06-28 11:19:45 +00:00
parent f4d97774cf
commit 780b5e6993
2 changed files with 21 additions and 10 deletions
@@ -672,16 +672,18 @@ createApp({
:key="run.id"
class="run-row"
:class="[severityClass(run), { selected: run.id === selectedRunId }]"
:data-run-id="run.id"
:data-run-error-count="runCheckErrorCount(run)"
:data-run-warning-count="runCheckWarningCount(run)"
:data-run-alert-count="runCheckAlertCount(run)"
type="button"
@click="selectRun(run)"
>
<span class="row-line">
<span class="severity-line"><span class="severity-dot"></span><strong>{{ run.scenarioId || shortId(run.id) }}</strong></span>
<span class="run-alert-tags">
<span v-if="runCheckErrorCount(run) > 0" class="tag red" data-run-error-tag="true">错误 {{ runCheckErrorCount(run) }}</span>
<span v-if="runCheckWarningCount(run) > 0" class="tag warning" data-run-warning-tag="true">告警 {{ runCheckWarningCount(run) }}</span>
<span v-if="runCheckAlertCount(run) === 0" class="tag healthy">正常</span>
</span>
<span v-if="runCheckErrorCount(run) > 0" class="tag red" data-run-error-tag="true">错误 {{ runCheckErrorCount(run) }}</span>
<span v-if="runCheckWarningCount(run) > 0" class="tag warning" data-run-warning-tag="true">告警 {{ runCheckWarningCount(run) }}</span>
<span v-if="runCheckAlertCount(run) === 0" class="tag healthy">正常</span>
</span>
<span class="row-line muted">
<span>{{ run.status || "-" }}</span>