Say who was told in an alert's timeline
Notifications are written down with the alerts they were about, and the incident timeline lists each one: which channels took it, which refused and what they said, or why it was held or not sent. New alerts, recovery notices, reminders and escalations are all covered. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f546971000
commit
461219844b
13 files changed
+9443
-18
No files matched your search
@@ -2793,7 +2793,7 @@ export interface AckInput {
|
||||
hours: number | null;
|
||||
}
|
||||
|
||||
export type TimelineKind = "alert" | "ack" | "maintenance" | "change" | "health" | "run" | "related" | "note";
|
||||
export type TimelineKind = "alert" | "ack" | "maintenance" | "change" | "health" | "run" | "related" | "note" | "notify";
|
||||
|
||||
export interface TimelineEvent {
|
||||
at: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { Link, useParams } from "react-router-dom";
|
||||
import { IconAlertTriangle, IconBell, IconCheck, IconClockPause, IconHandStop, IconLink, IconNote, IconPlayerPlay, IconSettings } from "@tabler/icons-react";
|
||||
import { IconAlertTriangle, IconBell, IconCheck, IconClockPause, IconHandStop, IconLink, IconNote, IconPlayerPlay, IconSend, IconSettings } from "@tabler/icons-react";
|
||||
import { api, type CurrentUser, type IncidentDetail as Detail, type TimelineEvent, type TimelineKind } from "../api/client";
|
||||
import { ackWords } from "../components/AckDrawer";
|
||||
import RunbookEntry from "../components/RunbookEntry";
|
||||
@@ -24,6 +24,7 @@ const KIND_ICON: Record<TimelineKind, JSX.Element> = {
|
||||
run: <IconPlayerPlay size={16} />,
|
||||
related: <IconLink size={16} />,
|
||||
note: <IconNote size={16} />,
|
||||
notify: <IconSend size={16} />,
|
||||
};
|
||||
|
||||
const TONE_COLOR: Record<TimelineEvent["tone"], string> = { good: "bg-green-lt text-green", bad: "bg-red-lt text-red", neutral: "bg-secondary-lt text-secondary", info: "bg-blue-lt text-blue" };
|
||||
|
||||
Reference in new issue
Block a user