fix: 1.5.4 incidents list two-line rows and compact tabs
Release / Publish tags (push) Successful in 14s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m43s
Release / Build image (amd64) (push) Successful in 22s
Release / Build image (arm64) (push) Successful in 1m15s
CI / Format and vet (push) Successful in 1m2s
CI / Tests (Linux, race detector) (push) Successful in 53s
CI / Dependency audit (push) Successful in 40s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 5s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 10:07:37 -03:00
1 parent 804d2c6e8d
commit a689dd8824
5 files changed
+26 -3

No files matched your search

+7 -2
View File
@@ -298,8 +298,13 @@
function row(it) {
var where = [it.host ? String(it.host) : '', it.dst ? it.dst + (it.dport ? ':' + it.dport : '') : ''].filter(Boolean).join(' · ');
var full = [(it.workload || ''), it.dst ? '→ ' + it.dst + (it.dport ? ':' + it.dport : '') : ''].filter(Boolean).join(' ');
var titleLine = el('span', { class: 'inc-main' }, el('strong', { class: 'inc-title', title: String(it.title || it.id) }, String(it.title || it.id)),
(it.tags && it.tags.length) ? el('span', { class: 'inc-rtags' }, tagChips(it.tags.slice(0, 1))) : null);
// egress tickets: pattern on top, workload below (the auto title repeats both and gets cut)
var auto = it.source === 'egress' && it.kind && it.workload;
var head = auto ? tr('eg.kind.' + it.kind, String(it.kind)) : String(it.title || it.id);
var titleLine = el('span', { class: 'inc-main' + (auto ? ' two' : '') },
el('span', { class: 'inc-mrow' }, el('strong', { class: 'inc-title', title: String(it.title || it.id) }, head),
(it.tags && it.tags.length) ? el('span', { class: 'inc-rtags' }, tagChips(it.tags.slice(0, 1))) : null),
auto ? el('span', { class: 'inc-sub mono', title: String(it.workload) }, String(it.workload)) : null);
return el('a', { class: 'inc-row', href: U.href('incidents', [String(it.id)]), title: full },
dot(it.severity),
el('span', { class: 'inc-id mono' }, String(it.id)),