diff --git a/CHANGELOG.md b/CHANGELOG.md index f6ce06d..432acde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow SemVer. +## [1.5.1] - 2026-11-15 + +### Fixed + +- Incidents: the list accepts `?status=` in the link (alias of `?s=`), so `#/incidents?status=benign` opens filtered. +- Incidents: the ticket creation entry in the history reads "urutau opened the ticket (severity: …)" instead of "changed created". + ## [1.5.0] - 2026-11-15 ### Added diff --git a/CHANGELOG.pt-BR.md b/CHANGELOG.pt-BR.md index eec5586..67164de 100644 --- a/CHANGELOG.pt-BR.md +++ b/CHANGELOG.pt-BR.md @@ -4,6 +4,13 @@ Formato baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.1.0/); versionamento segue SemVer. +## [1.5.1] - 2026-11-15 + +### Corrigido + +- Incidentes: a lista aceita `?status=` no link (sinônimo de `?s=`), então `#/incidents?status=benign` abre filtrado. +- Incidentes: a criação do chamado no histórico aparece como "urutau abriu o chamado (severidade: …)" em vez de "alterou created". + ## [1.5.0] - 2026-11-15 ### Adicionado diff --git a/internal/app/version.go b/internal/app/version.go index 15e6dec..c9b01d7 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.0" +var Version = "1.5.1" diff --git a/internal/server/web/incidents.js b/internal/server/web/incidents.js index e3a2813..f2f0f2c 100644 --- a/internal/server/web/incidents.js +++ b/internal/server/web/incidents.js @@ -34,6 +34,7 @@ 'inc.sev.critical': 'Critical', 'inc.sev.high': 'High', 'inc.sev.medium': 'Medium', 'inc.sev.low': 'Low', 'inc.sev.info': 'Info', 'inc.sort': 'Sort by', 'inc.sort.updated': 'Recently updated', 'inc.sort.severity': 'Severity', 'inc.sort.last_seen': 'Last seen', + 'inc.h.created': '{who} opened the ticket (severity: {sev})', 'inc.h.flood': 'flood grouping', 'inc.status.open': 'Open', 'inc.status.investigating': 'Investigating', 'inc.status.true_positive': 'True positive', 'inc.status.false_positive': 'False positive', 'inc.status.benign': 'Benign', 'inc.status.resolved': 'Resolved', 'inc.tab.active': 'Active', 'inc.tab.all': 'All', @@ -100,6 +101,7 @@ 'inc.sev.critical': 'Crítica', 'inc.sev.high': 'Alta', 'inc.sev.medium': 'Média', 'inc.sev.low': 'Baixa', 'inc.sev.info': 'Informativa', 'inc.sort': 'Ordenar por', 'inc.sort.updated': 'Atualizados recentemente', 'inc.sort.severity': 'Severidade', 'inc.sort.last_seen': 'Última ocorrência', + 'inc.h.created': '{who} abriu o chamado (severidade: {sev})', 'inc.h.flood': 'agrupamento de flood', 'inc.status.open': 'Aberto', 'inc.status.investigating': 'Em investigação', 'inc.status.true_positive': 'Verdadeiro positivo', 'inc.status.false_positive': 'Falso positivo', 'inc.status.benign': 'Benigno', 'inc.status.resolved': 'Resolvido', 'inc.tab.active': 'Ativos', 'inc.tab.all': 'Todos', @@ -216,7 +218,7 @@ var counts = null; function cur() { - var s = U.param('s') || 'active'; + var s = U.param('s') || U.param('status') || 'active'; return { s: s === 'active' || s === 'all' || STATUSES.indexOf(s) >= 0 ? s : 'active', sev: pick(SEVS, U.param('sev'), ''), q: (U.param('q') || '').slice(0, 200), sort: pick(SORTS, U.param('sort'), 'updated'), p: U.pageParam() }; } function query(f) { @@ -432,6 +434,12 @@ hist.forEach(function (h) { var f = String(h.field || ''); var fl = tr('inc.h.field.' + f, f); + if (f === 'created') { + ol.appendChild(el('li', null, + el('span', { class: 'inc-tl-when' }, U.fmt.date(h.at)), + el('span', { class: 'inc-tl-what' }, t('inc.h.created', { who: String(h.author || '-'), sev: f === 'created' && h.to === 'flood' ? t('inc.h.flood') : histValue('severity', h.to) })))); + return; + } ol.appendChild(el('li', null, el('span', { class: 'inc-tl-when' }, U.fmt.date(h.at)), el('span', { class: 'inc-tl-what' }, t('inc.h.line', { who: String(h.author || '-'), field: fl })),