# Incident console

Coordinate one active incident with supplied impact, responders, service states and response updates.

Access: pro. Category: Blocks. Kind: composite.

## When to use

- Use it when a page needs coordinate one active incident with supplied impact, responders, service states and response updates.
- Choose it inside an authenticated product surface when the host application owns routing, persistence, and service calls.

## Alternatives

- Choose empty-state instead when empty collections, search results and errors with a clear next action is the actual interface need, rather than incident console.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Incident console

```sh
npx shadcn@latest add @tidal-pro/incident-console
```

Stylesheets: `components/ui/tidal.css`, `components/ui/incident-console.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/incident-console.css";
import{TidalIncidentConsole}from"./components/ui/incident-console";
export default(p:Parameters<typeof TidalIncidentConsole>[0])=><div className="tidal-scope"><TidalIncidentConsole {...p}/></div>;
```

## Structured props

- `TidalIncidentConsole.affectedServices: ReadonlyArray<TidalIncidentService>`: Required affected services value accepted by this exported component.
- `TidalIncidentConsole.draft: string`: Required draft value accepted by this exported component.
- `TidalIncidentConsole.elapsed: ReactNode`: Required elapsed value accepted by this exported component.
- `TidalIncidentConsole.impact: ReactNode`: Required impact value accepted by this exported component.
- `TidalIncidentConsole.incidentId: string`: Required incident id value accepted by this exported component.
- `TidalIncidentConsole.phase: TidalIncidentPhase`: Required phase value accepted by this exported component.
- `TidalIncidentConsole.phaseLabel: string`: Required phase label value accepted by this exported component.
- `TidalIncidentConsole.responders: ReadonlyArray<TidalIncidentResponder>`: Required responders value accepted by this exported component.
- `TidalIncidentConsole.severity: TidalIncidentSeverity`: Required severity value accepted by this exported component.
- `TidalIncidentConsole.severityLabel: string`: Required severity label value accepted by this exported component.
- `TidalIncidentConsole.started: ReactNode`: Required started value accepted by this exported component.
- `TidalIncidentConsole.title: ReactNode`: Required title value accepted by this exported component.
- `TidalIncidentConsole.updates: ReadonlyArray<TidalIncidentUpdate>`: Required updates value accepted by this exported component.
- `TidalIncidentConsole.announcePhase?: boolean | undefined` (default false): Optional announce phase value accepted by this exported component.
- `TidalIncidentConsole.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalIncidentConsole.disabled?: boolean | undefined` (default false): Optional disabled value accepted by this exported component.
- `TidalIncidentConsole.formProps?: IncidentFormProps | undefined`: Optional form props value accepted by this exported component.
- `TidalIncidentConsole.formRef?: Ref<HTMLFormElement> | undefined`: Optional form ref value accepted by this exported component.
- `TidalIncidentConsole.headingLevel?: TidalIncidentHeadingLevel | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalIncidentConsole.labels?: TidalIncidentConsoleLabels | undefined`: Optional labels value accepted by this exported component.
- `TidalIncidentConsole.links?: ReadonlyArray<TidalIncidentLink> | undefined` (default []): Optional links value accepted by this exported component.
- `TidalIncidentConsole.onDraftChange?: ((value: string, event: ChangeEvent<HTMLTextAreaElement>) => void) | undefined`: Callback invoked when the draft change interaction is proposed.
- `TidalIncidentConsole.onReopenRequest?: ((incidentId: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the reopen request interaction is proposed.
- `TidalIncidentConsole.onResolveRequest?: ((incidentId: string, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the resolve request interaction is proposed.
- `TidalIncidentConsole.onUpdateRequest?: ((incidentId: string, value: string, event: SubmitEvent<HTMLFormElement>) => void) | undefined`: Callback invoked when the update request interaction is proposed.
- `TidalIncidentConsole.pendingAction?: "resolve" | "reopen" | "update" | null | undefined` (default null): The action whose consumer-owned request is currently pending.
- `TidalIncidentConsole.reopenButtonProps?: ActionButtonProps | undefined`: Optional reopen button props value accepted by this exported component.
- `TidalIncidentConsole.reopenButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional reopen button ref value accepted by this exported component.
- `TidalIncidentConsole.resolveButtonProps?: ActionButtonProps | undefined`: Optional resolve button props value accepted by this exported component.
- `TidalIncidentConsole.resolveButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional resolve button ref value accepted by this exported component.
- `TidalIncidentConsole.updateButtonProps?: SubmitButtonProps | undefined`: Optional update button props value accepted by this exported component.
- `TidalIncidentConsole.updateButtonRef?: Ref<HTMLButtonElement> | undefined`: Optional update button ref value accepted by this exported component.
- `TidalIncidentConsole.updateInputProps?: UpdateInputProps | undefined`: Optional update input props value accepted by this exported component.
- `TidalIncidentConsole.updateInputRef?: Ref<HTMLTextAreaElement> | undefined`: Optional update input ref value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/incident-console.tsx) | [Manifest](https://tidalui.com/examples/incident-console.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useId, useRef, useState, type MouseEvent } from "react";

import { TidalIncidentConsole, type TidalIncidentPhase, type TidalIncidentUpdate } from "./components/ui/incident-console";

import "./components/ui/incident-console.css";

import "./components/ui/status-badge.css";



const tidalExampleStyles = ".tidal-scope .incident-console-demo {\n  display: grid;\n  gap: 14px;\n  width: 100%;\n  min-width: 0;\n  max-width: 940px;\n  margin-inline: auto;\n}\n\n.tidal-scope .incident-console-demo-note {\n  display: grid;\n  gap: 4px;\n  min-width: 0;\n  padding: 14px 16px;\n  border: 1px solid var(--t-border);\n  border-radius: var(--t-radius-control);\n  background: var(--t-subtle);\n  scroll-margin: 12px;\n}\n\n.tidal-scope .incident-console-demo-note strong,\n.tidal-scope .incident-console-demo-note span,\n.tidal-scope .incident-console-demo-status {\n  overflow-wrap: anywhere;\n}\n\n.tidal-scope .incident-console-demo-note strong {\n  font-size: 12px;\n  line-height: 1.5;\n}\n\n.tidal-scope .incident-console-demo-note span,\n.tidal-scope .incident-console-demo-status {\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.55;\n}\n\n.tidal-scope .incident-console-demo-status {\n  margin: 0;\n  padding-inline: 2px;\n}";

const initialUpdates: TidalIncidentUpdate[] = [
  {
    id: "update-identified",
    phase: "identified",
    phaseLabel: "Identified",
    title: "Queue pressure isolated",
    detail:
      "The sample response team isolated delayed workspace notifications to one delivery queue.",
    time: { label: "12 minutes ago", dateTime: "2026-10-14T22:48:00-05:00" },
    author: "Mira Chen · Incident lead",
  },
  {
    id: "update-investigating",
    phase: "investigating",
    phaseLabel: "Investigating",
    title: "Response started",
    detail:
      "Workspace data remains available while some notification deliveries arrive late.",
    time: { label: "24 minutes ago", dateTime: "2026-10-14T22:36:00-05:00" },
    author: "Sample operations",
  },
];

function isUnmodifiedPrimary(event: MouseEvent<HTMLAnchorElement>) {
  return (
    event.button === 0 &&
    !event.metaKey &&
    !event.ctrlKey &&
    !event.shiftKey &&
    !event.altKey
  );
}

export function IncidentConsoleDemo({ theme }: { theme?: "light" | "dark" }) {
  const generatedId = useId().replace(/:/g, "");
  const runbookId = `incident-runbook-${generatedId}`;
  const [phase, setPhase] = useState<TidalIncidentPhase>("identified");
  const [draft, setDraft] = useState("");
  const [updates, setUpdates] =
    useState<readonly TidalIncidentUpdate[]>(initialUpdates);
  const [message, setMessage] = useState(
    "Local sample incident. No service or paging system is connected.",
  );
  const updateSequence = useRef(0);
  const updateInput = useRef<HTMLTextAreaElement>(null);

  const resolved = phase === "resolved";
  const phaseLabel = resolved ? "Resolved" : "Identified";

  return (
    <div className="incident-console-demo" data-theme={theme}>
      <TidalIncidentConsole
        incidentId="sample-delivery-delay"
        title="Workspace notification delays"
        description="Delayed workspace notifications. Investigation began at 10:36 PM."
        phase={phase}
        phaseLabel={phaseLabel}
        severity="major"
        severityLabel="Major impact"
        impact={
          resolved
            ? "Delivery has recovered in the local sample."
            : "Some workspace notifications are delayed."
        }
        started="10:36 PM"
        elapsed={resolved ? "Resolved locally" : "24 minutes"}
        affectedServices={[
          {
            id: "notification-delivery",
            name: "Notification delivery",
            state: resolved ? "operational" : "degraded",
            stateLabel: resolved ? "Operational" : "Degraded",
            detail: resolved
              ? "Sample recovery recorded"
              : "Messages may arrive late",
          },
          {
            id: "workspace-api",
            name: "Workspace API",
            state: "operational",
            stateLabel: "Operational",
            detail: "Available in the sample",
          },
        ]}
        responders={[
          {
            id: "mira",
            name: "Mira Chen",
            role: "Incident lead",
            marker: "MC",
          },
          {
            id: "jon",
            name: "Jon Bell",
            role: "Delivery systems",
            marker: "JB",
          },
        ]}
        updates={updates}
        links={[
          {
            id: "runbook",
            label: "Open response checklist",
            href: `#${runbookId}`,
            linkProps: {
              onClick: (event: import("react").MouseEvent<HTMLAnchorElement>) => {
                if (!isUnmodifiedPrimary(event)) return;
                event.preventDefault();
                document
                  .getElementById(runbookId)
                  ?.focus({ preventScroll: true });
                setMessage("The local response checklist is open below.");
              },
            },
          },
        ]}
        draft={draft}
        onDraftChange={setDraft}
        onUpdateRequest={(_incidentId, value, event) => {
          event.preventDefault();
          updateSequence.current += 1;
          setUpdates((current) => [
            {
              id: `local-update-${updateSequence.current}`,
              phase,
              phaseLabel,
              title: value,
              time: { label: "Just now" },
              author: "Local sample responder",
            },
            ...current,
          ]);
          setDraft("");
          setMessage("A fictional update was added to this local sample.");
          queueMicrotask(() =>
            updateInput.current?.focus({ preventScroll: true }),
          );
        }}
        onResolveRequest={() => {
          setPhase("resolved");
          setMessage(
            "The sample incident is resolved locally. Reopen is available.",
          );
        }}
        onReopenRequest={() => {
          setPhase("identified");
          setMessage(
            "The sample incident is reopened locally. Resolve is available.",
          );
        }}
        updateInputRef={updateInput}
        updateInputProps={{ maxLength: 180 }}
      />

      <section
        id={runbookId}
        className="incident-console-demo-note"
        aria-label="Response checklist"
        tabIndex={-1}
      >
        <strong>Response checklist</strong>
        <span>
          Confirm impact, publish an update, then record the supplied outcome.
        </span>
      </section>
      <p className="incident-console-demo-status" role="status">
        {message}
      </p>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <IncidentConsoleDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

One controlled, consumer-owned incident with a unique non-empty ID, title, investigating/identified/monitoring/resolved phase and exact phase label, critical/major/minor severity and label, impact, started and elapsed content, unique-ID affected service states, responders, timeline updates and optional native resource links. The stable transition action requests resolve or reopen according to the supplied phase; an accepted one-way transition recovers body focus to the programmatic root while the ordinary two-way action keeps its button node. The optional controlled update composer requires both onDraftChange and onUpdateRequest; whitespace-only drafts, read-only inputs, pending actions and disabled states cannot submit. Native section, form, textarea, submitter/button and link attrs/refs are supported with caller-first prevention. Available update forms retain their native action/method/submitter behavior unless a supplied handler or onUpdateRequest prevents the submit event. Disabled and aria-disabled links remove href, leave the tab sequence and suppress caller handlers. Optional pending action, labels, heading level and quiet or announced phase changes are supported. Consumers own incident truth, access control, transition acceptance, responder coordination, update persistence, paging, routing and every operational side effect. The component performs no monitoring, timing, network request, storage, service mutation or notification delivery. Sample actions change fictional local React state only.
