Heartbeats, Coming up and suggested checks; Operations menu tidied
Heartbeats: a cron job or script calls /api/heartbeat/<token> (and /start, /fail); the app alerts when the call is late or the job says it failed. Coming up: one agenda of everything dated (expiries, warranties, end of support, planned and recurring maintenance, restore tests, waiting updates), with a dashboard card and an iCalendar feed behind a share link. Suggested checks: web ports and certificates the app already knows about, added with a click. Menu: Incidents become Alerts -> History (old /incidents links redirect); new Monitoring group (Endpoints, Heartbeats, Uptime Kuma); osTicket under Automation, Admin Links under Infrastructure, Generator under Administration. Also makes the restore-test metrics test follow the real clock. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c05c847d17
commit
4e0c6927b2
44 files changed
+7092
-75
No files matched your search
@@ -11,7 +11,8 @@ import { confirmDialog } from "../utils/dialogs";
|
||||
import { formatDateTime } from "../utils/date";
|
||||
import { readableError } from "../utils/errors";
|
||||
import { toast } from "../utils/toast";
|
||||
import { CATEGORY_NAMES, durationWords, SEVERITY_BADGE } from "./Incidents";
|
||||
import { CATEGORY_NAMES, durationWords, incidentPath, SEVERITY_BADGE } from "../components/IncidentHistory";
|
||||
import { useBreadcrumbTail } from "../utils/breadcrumb";
|
||||
|
||||
const KIND_ICON: Record<TimelineKind, JSX.Element> = {
|
||||
alert: <IconAlertTriangle size={16} />,
|
||||
@@ -35,6 +36,8 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const [missing, setMissing] = useState(false);
|
||||
const [note, setNote] = useState("");
|
||||
// Under Alerts in the breadcrumb: "Operations › Alerts › Incident".
|
||||
useBreadcrumbTail("Incident");
|
||||
const [busy, setBusy] = useState(false);
|
||||
|
||||
const load = useCallback(() => {
|
||||
@@ -93,7 +96,7 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
|
||||
return (
|
||||
<div className="card">
|
||||
<div className="card-body text-secondary">
|
||||
There is no incident like that (it may be old enough to have been removed). <Link to="/incidents">All incidents</Link>.
|
||||
There is no incident like that (it may be old enough to have been removed). <Link to="/alerts?view=history">All incidents</Link>.
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -113,8 +116,8 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
|
||||
return (
|
||||
<>
|
||||
<div className="mb-2">
|
||||
<Link to="/incidents" className="text-secondary">
|
||||
← Incidents
|
||||
<Link to="/alerts?view=history" className="text-secondary">
|
||||
← Alerts · History
|
||||
</Link>
|
||||
</div>
|
||||
<div className="d-flex flex-wrap align-items-center gap-2 mb-1">
|
||||
@@ -203,7 +206,7 @@ export default function IncidentDetail({ user }: { user: CurrentUser }) {
|
||||
</span>
|
||||
<div className="flex-fill">
|
||||
<div className="d-flex flex-wrap gap-2 align-items-baseline">
|
||||
<strong>{e.incidentId ? <Link to={`/incidents/${e.incidentId}`}>{e.title}</Link> : e.title}</strong>
|
||||
<strong>{e.incidentId ? <Link to={incidentPath(e.incidentId)}>{e.title}</Link> : e.title}</strong>
|
||||
<span className="text-secondary small" title={formatDateTime(new Date(e.at))}>
|
||||
{formatDateTime(new Date(e.at))}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user