diff --git a/CHANGELOG.md b/CHANGELOG.md index b562476..8220b19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer. +## [1.5.4] - 2026-11-15 + +### Fixed + +- Incidents list: egress tickets show the pattern on the first line and the workload below, instead of a long auto title cut in the middle; the status tabs are compact and fit in one line at 1280 px. + ## [1.5.3] - 2026-11-15 ### Fixed diff --git a/CHANGELOG.pt-BR.md b/CHANGELOG.pt-BR.md index d5003bb..42a6b60 100644 --- a/CHANGELOG.pt-BR.md +++ b/CHANGELOG.pt-BR.md @@ -4,6 +4,12 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer. +## [1.5.4] - 2026-11-15 + +### Corrigido + +- Lista de incidentes: chamados de egress mostram o padrão na primeira linha e a carga de trabalho embaixo, em vez de um título automático longo cortado no meio; as abas de status ficaram compactas e cabem numa linha em 1280 px. + ## [1.5.3] - 2026-11-15 ### Corrigido diff --git a/internal/app/version.go b/internal/app/version.go index 0dfb93e..de65611 100644 --- a/internal/app/version.go +++ b/internal/app/version.go @@ -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" diff --git a/internal/server/web/incidents.css b/internal/server/web/incidents.css index be81a48..7913ae4 100644 --- a/internal/server/web/incidents.css +++ b/internal/server/web/incidents.css @@ -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; } diff --git a/internal/server/web/incidents.js b/internal/server/web/incidents.js index 044d837..8cc1e8e 100644 --- a/internal/server/web/incidents.js +++ b/internal/server/web/incidents.js @@ -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)),