What changed before this? on every incident, ranked

- A card on the incident page, and GET /api/incidents/:id/before and /api/v1/incidents/:id/before: what the app knows happened in the 30 min to 24 h before an alert began (audit log, maintenance windows, update runs and patch plans, other alerts, a step in the server's own figures), scored by how related, what kind and how close
- A host going down is shown once; Likely, Possible and Background; at most ten
- Docs and roles updated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-21 20:25:45 +02:00
1 parent c2e76262ca
commit 0277126add
12 files changed
+887

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ import { readableError } from "../utils/errors";
import { toast } from "../utils/toast";
import { CATEGORY_NAMES, durationWords, incidentPath, SEVERITY_BADGE } from "../components/IncidentHistory";
import { useBreadcrumbTail } from "../utils/breadcrumb";
import WhatChangedBefore from "../components/WhatChangedBefore";
const KIND_ICON: Record<TimelineKind, JSX.Element> = {
alert: <IconAlertTriangle size={16} />,
@@ -193,6 +194,7 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
<div className="row g-3">
<div className="col-lg-8">
<WhatChangedBefore incidentId={incident.id} openedAt={incident.openedAt} />
<div className="card mb-3">
<div className="card-header">
<h3 className="card-title">What happened</h3>