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
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:
1 parent
804d2c6e8d
commit
a689dd8824
5 files changed
+26
-3
No files matched your search
@@ -2,4 +2,4 @@ package app
|
||||
|
||||
// Version is the release version (SemVer). Release builds may override it with
|
||||
// -ldflags "-X .../internal/app.Version=...".
|
||||
var Version = "1.5.3"
|
||||
var Version = "1.5.4"
|
||||
@@ -171,3 +171,9 @@
|
||||
.inc-row:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
|
||||
.inc-keyrow > :not(.inc-key) { flex: none; white-space: nowrap; }
|
||||
.inc-dl dd { min-width: 0; }
|
||||
.inc-main { flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; }
|
||||
.inc-mrow { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
|
||||
.inc-sub { font-size: .75rem; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
|
||||
.inc-tabs { gap: 0; }
|
||||
.inc-tab { padding: 0 10px; font-size: .8125rem; }
|
||||
.inc-tab-sep { margin: 8px 4px; }
|
||||
@@ -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)),
|
||||
|
||||
Reference in new issue
Block a user