# Plan list (Notchset): prompt.md (v2.0.0)

- id: `plan-list` · version 2.0.0 · component · pro (Pro)
- category: AI
- build: one set of files for every shadcn style
- install: `npx shadcn@latest add @notchset-pro/plan-list`
- npm dependencies: lucide-react@^1
- registry dependencies: utils, https://notchset.dev/r/notchset-foundation.json, @notchset/button, @notchset/live-label, @notchset/reorderable-list, @notchset/status-glyph-run, @notchset/stream-adapters
- docs: https://notchset.dev/components/plan-list
- The install command carries everything this item needs (files, CSS, tokens, npm and registry dependencies). Prefer it to copying source by hand.

The plan an agent proposes, edited as a draft (reorder, add a step, ask for one more, each row with the host's owner and estimate cells), then approved into a live checklist: the grips become status glyphs, the step at work sweeps, the head counts and clocks. A failed step says why and retries or skips in place..

## Build it
- Stack: React 18.3 or 19, TypeScript, Tailwind CSS v4 utility classes on the foundation's roles, a components.json (imports use its aliases).
- Packages: `lucide-react@^1` beyond `react` and `react-dom`.
- Files: `components/ui/notchset/plan-list.tsx`; shared code: `lib/notchset/feedback.ts`, `lib/notchset/icons.ts`, `lib/notchset/words.ts`.
- Registry dependencies, installed with it automatically: shadcn `utils` (cn), `notchset-foundation`, `button`, `live-label`, `reorderable-list`, `status-glyph-run`, `stream-adapters`.
- Builds: one set of files, the same for every shadcn style.
- Exports to keep: `PLAN_LIST_LABELS`, `PlanList`, and every exported type.
- CSS: the install adds the notchset foundation (its roles, keyframes and motion switch, reading your shadcn tokens for colour) to your global stylesheet once. Nothing to import by hand.
- Re-running `add` (or `--overwrite`) re-applies those rules: put overrides in your own CSS, never in the installed rules.
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- This item reads `--ns-bad`, `--ns-bad-ink`, `--ns-control-sm`, `--ns-ease-move`, `--ns-ease-pop`, `--ns-icon`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-line`, `--ns-line-soft`, `--ns-ok`, `--ns-radius-control`, `--ns-radius-full`, `--ns-signal`, `--ns-stagger-item`, `--ns-text-body`, `--ns-text-control`, `--ns-text-input`, `--ns-text-meta`, `--ns-text-small`, `--ns-time-color`, `--ns-time-panel`, `--ns-weight-medium`, `--ns-well`.
- Retune it (on any ancestor) with the foundation's roles and hooks: `--ns-agent-b`, `--ns-agent-c`, `--ns-agent-d`, `--ns-agent-drift`, `--ns-agent-fill`, `--ns-agent-h1`, `--ns-agent-h2`, `--ns-agent-h3`, `--ns-agent-shift`, `--ns-avatar-card`, `--ns-avatar-lg`, `--ns-avatar-md`, `--ns-avatar-sm`, `--ns-avatar-xs`, `--ns-bad`, `--ns-bad-ink`, `--ns-band`, `--ns-band-edge`, `--ns-band-grade`, `--ns-band-optimal`, `--ns-banner-beat`, `--ns-banner-radius`, `--ns-beat`, `--ns-beat-ease`, `--ns-bezel`, `--ns-bloom-close`, `--ns-bloom-open`, `--ns-bloom-rise`, `--ns-btn-bad`, `--ns-btn-bad-hover`, `--ns-btn-bad-line`, `--ns-btn-bezel`, `--ns-btn-chosen`, `--ns-btn-gone`, `--ns-btn-morph`, `--ns-btn-ok`, `--ns-btn-press`, `--ns-btn-release`, `--ns-btn-result`, `--ns-btn-roll`, `--ns-btn-stagger`, `--ns-btn-stagger-step`, `--ns-btn-tick`, `--ns-btn-tonal`, `--ns-btn-tonal-edge`, `--ns-btn-tonal-hover`, `--ns-bulk-clear`, `--ns-button`, `--ns-button-field-inset`, `--ns-button-lg`, `--ns-button-sm`, `--ns-canvas`, `--ns-card-tilt`, `--ns-cat-1`, `--ns-cat-2`, `--ns-cat-3`, `--ns-cat-4`, `--ns-cat-5`, `--ns-cat-6`, `--ns-check`, `--ns-check-round`, `--ns-cheer-1`, `--ns-cheer-2`, `--ns-cheer-3`, `--ns-cheer-edge`, `--ns-cheer-fold`, `--ns-cheer-glow`, `--ns-cheer-lift`, `--ns-chip`, `--ns-chip-pick`, `--ns-control`, `--ns-control-lg`, `--ns-control-pad`, `--ns-control-sm`, `--ns-corner`, `--ns-danger`, `--ns-deep`, `--ns-deep-ink`, `--ns-deep-ink-2`, `--ns-deep-line`, `--ns-depth-card`, `--ns-depth-lift`, `--ns-depth-surface`, `--ns-dialog`, `--ns-dialog-grow`, `--ns-dialog-lg`, `--ns-dialog-max`, `--ns-dialog-shrink`, `--ns-dialog-sm`, `--ns-dialog-top`, `--ns-dock-bottom`, `--ns-drop`, `--ns-ease`, `--ns-ease-arrive`, `--ns-ease-breathe`, `--ns-ease-drum`, `--ns-ease-exit`, `--ns-ease-fling`, `--ns-ease-glide`, `--ns-ease-grow`, `--ns-ease-move`, `--ns-ease-panel`, `--ns-ease-pop`, `--ns-ease-press`, `--ns-ease-spring`, `--ns-ebg-arm`, `--ns-ebg-lit`, `--ns-emoji`, `--ns-emoji-md`, `--ns-emoji-sm`, `--ns-field`, `--ns-field-edge`, `--ns-field-h`, `--ns-fill`, `--ns-fill-time`, `--ns-flood-arc`, `--ns-flood-aurora`, `--ns-flood-behind-1`, `--ns-flood-behind-2`, `--ns-flood-bloom`, `--ns-flood-deep`, `--ns-flood-dial-bloom`, `--ns-flood-glass`, `--ns-flood-grain`, `--ns-flood-image`, `--ns-flood-ink`, `--ns-flood-ink-low`, `--ns-flood-light`, `--ns-flood-mid`, `--ns-flood-pale`, `--ns-flood-pane`, `--ns-flood-pane-edge`, `--ns-flood-pill-ink`, `--ns-flood-ribbon`, `--ns-flood-ribbon-core`, `--ns-flood-shadow`, `--ns-flood-sheen`, `--ns-flood-wash`, `--ns-font-body`, `--ns-font-display`, `--ns-font-mono`, `--ns-font-script`, `--ns-glass`, `--ns-glass-blur`, `--ns-glass-shadow`, `--ns-glow`, `--ns-glyph-pad`, `--ns-grain`, `--ns-gutter`, `--ns-header`, `--ns-help-max`, `--ns-hit`, `--ns-hover`, `--ns-icon`, `--ns-icon-lg`, `--ns-icon-sm`, `--ns-icon-stroke`, `--ns-info`, `--ns-info-ink`, `--ns-ink`, `--ns-ink-2`, `--ns-ink-3`, `--ns-ink-4`, `--ns-layer-bar`, `--ns-layer-modal`, `--ns-layer-panel`, `--ns-layer-popup`, `--ns-layer-sticky`, `--ns-layer-tip`, `--ns-layer-toast`, `--ns-layer-zoom`, `--ns-lead-body`, `--ns-lead-figure`, `--ns-lead-large`, `--ns-lead-meta`, `--ns-lead-small`, `--ns-lead-sub`, `--ns-lead-title`, `--ns-leading`, `--ns-leading-prose`, `--ns-leading-title`, `--ns-lift`, `--ns-light-1`, `--ns-light-2`, `--ns-light-3`, `--ns-light-spread`, `--ns-light-strength`, `--ns-line`, `--ns-line-soft`, `--ns-lit-edge`, `--ns-map-grass`, `--ns-map-water`, `--ns-mark-edge`, `--ns-mark-lifted`, `--ns-mark-rest`, `--ns-mark-swap`, `--ns-marker`, `--ns-marker-ink`, `--ns-mc-place`, `--ns-mc-roll`, `--ns-measure`, `--ns-menu-dy`, `--ns-menu-lit`, `--ns-menu-pad`, `--ns-menu-row`, `--ns-menu-rule`, `--ns-mesh`, `--ns-mesh-frost`, `--ns-nest-inset`, `--ns-nest-outer`, `--ns-nest-r`, `--ns-notch-ease`, `--ns-ok`, `--ns-ok-ink`, `--ns-on-fill`, `--ns-orb-body`, `--ns-orb-cool`, `--ns-orb-core`, `--ns-orb-dawn`, `--ns-orb-deep`, `--ns-orb-edge`, `--ns-orb-grain`, `--ns-orb-ground`, `--ns-orb-halo`, `--ns-orb-inner`, `--ns-orb-key`, `--ns-orb-lift`, `--ns-orb-limb`, `--ns-orb-limb-from`, `--ns-orb-rim`, `--ns-orb-skin-hi`, `--ns-orb-skin-lo`, `--ns-orb-skin-mid`, `--ns-orb-warm`, `--ns-palette-min`, `--ns-panel`, `--ns-panel-room`, `--ns-panel-w`, `--ns-panel-w-lg`, `--ns-pick-slot`, `--ns-pill-prop`, `--ns-play-fill`, `--ns-play-fill-color`, `--ns-play-lift`, `--ns-play-lift-y`, `--ns-play-open`, `--ns-play-open-content`, `--ns-play-press`, `--ns-play-press-box`, `--ns-play-reduced`, `--ns-play-ring`, `--ns-play-roll`, `--ns-play-shake`, `--ns-play-spring`, `--ns-play-swap`, `--ns-play-swap-blur`, `--ns-press-min`, `--ns-press-scale`, `--ns-press-x`, `--ns-press-y`, `--ns-primary-hover`, `--ns-primary-press`, `--ns-prism-edge`, `--ns-prism-glint`, `--ns-prism-sheen`, `--ns-prism-tint`, `--ns-pulse`, `--ns-radius`, `--ns-radius-2xl`, `--ns-radius-button`, `--ns-radius-button-lg`, `--ns-radius-button-sm`, `--ns-radius-card`, `--ns-radius-check`, `--ns-radius-control`, `--ns-radius-control-sm`, `--ns-radius-float`, `--ns-radius-full`, `--ns-radius-lg`, `--ns-radius-mark`, `--ns-radius-menu-row`, `--ns-radius-modal`, `--ns-radius-pill`, `--ns-radius-sm`, `--ns-radius-xl`, `--ns-radius-xs`, `--ns-raised`, `--ns-ramp-1`, `--ns-ramp-2`, `--ns-ramp-3`, `--ns-ramp-4`, `--ns-ramp-5`, `--ns-ramp-shine`, `--ns-range`, `--ns-rest-1`, `--ns-rest-2`, `--ns-rest-3`, `--ns-rise`, `--ns-row`, `--ns-row-compact`, `--ns-row-hue`, `--ns-scrim`, `--ns-search-h`, `--ns-segment`, `--ns-segment-inset`, `--ns-segment-lift`, `--ns-segment-sm`, `--ns-selected`, `--ns-series`, `--ns-series-core`, `--ns-series-glint`, `--ns-series-tint`, `--ns-shadow-dialog`, `--ns-shadow-float`, `--ns-shadow-lift`, `--ns-shadow-panel`, `--ns-sheet`, `--ns-sheet-back`, `--ns-sheet-bottom`, `--ns-sheet-drop`, `--ns-sheet-rise`, `--ns-shift`, `--ns-side`, `--ns-signal`, `--ns-signal-ink`, `--ns-signal-wash`, `--ns-sk-figure`, `--ns-sk-land`, `--ns-sk-p`, `--ns-sk-p0`, `--ns-sk-p1`, `--ns-sk-p2`, `--ns-sk-p3`, `--ns-sk-p4`, `--ns-sk-p5`, `--ns-sk-p6`, `--ns-sk-p7`, `--ns-sk-read`, `--ns-sk-sweep`, `--ns-skeleton`, `--ns-skeleton-bone`, `--ns-skeleton-bone-light`, `--ns-skeleton-light`, `--ns-slab`, `--ns-slab-edge`, `--ns-slab-ink`, `--ns-sleep-awake`, `--ns-sleep-deep`, `--ns-sleep-light`, `--ns-sleep-rem`, `--ns-space-1`, `--ns-space-2`, `--ns-space-3`, `--ns-space-4`, `--ns-space-5`, `--ns-space-6`, `--ns-space-8`, `--ns-space-section`, `--ns-stack-fan`, `--ns-stack-fan-gap`, `--ns-stack-fan-lag`, `--ns-stack-on`, `--ns-stagger-item`, `--ns-stagger-mark`, `--ns-stagger-max`, `--ns-standing-critical`, `--ns-standing-in`, `--ns-standing-out`, `--ns-state-doing`, `--ns-state-done`, `--ns-state-review`, `--ns-state-todo`, `--ns-step`, `--ns-step-from`, `--ns-step-sign`, `--ns-swipe-surface`, `--ns-switch-h`, `--ns-switch-w`, `--ns-text-body`, `--ns-text-control`, `--ns-text-control-lg`, `--ns-text-display`, `--ns-text-editorial`, `--ns-text-empty`, `--ns-text-figure`, `--ns-text-giant`, `--ns-text-heading`, `--ns-text-headline`, `--ns-text-input`, `--ns-text-large`, `--ns-text-lede`, `--ns-text-meta`, `--ns-text-record`, `--ns-text-sentence`, `--ns-text-small`, `--ns-text-sub`, `--ns-text-title`, `--ns-theme-fade`, `--ns-tile-shadow`, `--ns-time-born`, `--ns-time-color`, `--ns-time-confirm`, `--ns-time-dialog`, `--ns-time-fling`, `--ns-time-flip`, `--ns-time-glide`, `--ns-time-grow`, `--ns-time-hold`, `--ns-time-menu`, `--ns-time-page`, `--ns-time-panel`, `--ns-time-quick`, `--ns-time-roll`, `--ns-time-settle`, `--ns-time-snap`, `--ns-time-spin`, `--ns-time-spring`, `--ns-time-sweep`, `--ns-time-toast`, `--ns-tint`, `--ns-tint-c`, `--ns-tint-ease`, `--ns-tint-fill`, `--ns-tint-gap`, `--ns-tint-h1`, `--ns-tint-h2`, `--ns-tint-h3`, `--ns-tint-ink`, `--ns-tint-row`, `--ns-tip-fold`, `--ns-tip-grow`, `--ns-toast-bottom`, `--ns-toast-gap`, `--ns-toast-left`, `--ns-toast-lift`, `--ns-toast-peek`, `--ns-toast-scale`, `--ns-toast-w`, `--ns-touch`, `--ns-tracking-body`, `--ns-tracking-caps`, `--ns-tracking-control`, `--ns-tracking-display`, `--ns-tracking-headline`, `--ns-tracking-sub`, `--ns-tracking-title`, `--ns-warn`, `--ns-warn-ink`, `--ns-wash-clay`, `--ns-wash-dusk`, `--ns-wash-graphite`, `--ns-wash-ink`, `--ns-wash-sage`, `--ns-wash-sand`, `--ns-weight-light`, `--ns-weight-medium`, `--ns-weight-regular`, `--ns-weight-strong`, `--ns-well`, `--ns-width-lg`, `--ns-width-md`, `--ns-width-sm`, `--ns-width-xl`.
- Never add Tailwind colour classes inside the component.

```tsx
import { PlanList } from "@/components/ui/notchset/plan-list";
```

## Parts
- A single export that takes props.

## Match the original
- Read `components/ui/notchset/plan-list.tsx` as the reference implementation before changing or recreating anything, and match it: sizes, colours per theme, motion timings, copy and behaviour.
- If you deviate (a prop you can't honour, a style you changed, a dependency you swapped), say so in your reply, part by part.
- Keep the accessibility contract, the keyboard map and the motion levels listed below.

## Use it when
- When an agent proposes several steps before it acts, and the person should shape and approve them.

### Not when
- One step's approval is the gate in that step's row; a person's own to-do list is a checklist.

## Built from
- button (`button`), installed with it: reuse it, don't rebuild it
- live-label (`live-label`), installed with it: reuse it, don't rebuild it
- reorderable-list (`reorderable-list`), installed with it: reuse it, don't rebuild it
- status-glyph-run (`status-glyph-run`), installed with it: reuse it, don't rebuild it
- stream-adapters (`stream-adapters`), installed with it: reuse it, don't rebuild it
- Feedback (shared helper, ships with it)
- Icons (shared helper, ships with it)
- Words (shared helper, ships with it)

## Mistakes
- Starting before Approve: nothing runs until the press
- A spinner beside the sweeping step: three signs of work only
- Dropping a failed step from the list: it stays, with Retry and Skip

## Usage

```tsx
"use client";
import * as React from "react";
import { useLessMotion } from "@/lib/notchset/motion";
import { PlanList } from "@/components/ui/notchset/plan-list";
import { RunAnnouncer, type Plan, type PlanStep } from "@/components/ui/notchset/stream-adapters";
import { PlayOnce, useSelfPlay } from "./self-play";

/*
 * One plan alone. On view the agent drafts it once: the steps arrive one by one, each washed as it lands, and
 * the plan rests as a draft with its grips showing. Reorder it (drag a grip, or Alt+↑↓), type a step in, ask for one
 * more. Approve is the visitor's alone: the plan never approves or reorders itself. Approved, the steps run one after
 * another and the head counts. With "Next step fails" on, a step fails with Retry and Skip in place.
 */
const DRAFT: PlanStep[] = [
  { id: "s1", title: "Draft the headline and the three lines under it", status: "pending" },
  { id: "s2", title: "Pick four screenshots from the Figma file", status: "pending" },
  { id: "s3", title: "Check every link on the page", status: "pending" },
  { id: "s4", title: "Write the changelog entry", status: "pending" },
  { id: "s5", title: "Publish the page", status: "pending" },
];
const MORE: PlanStep = { id: "more", title: "Share the page in #launch", status: "pending" };
const MIN: Record<string, number> = { s1: 4, s2: 6, s3: 2, s4: 3, s5: 1, more: 1 };
const DRAFT_BEAT = 380;
const STEP_BEAT = 900;
const clock = () => Date.now();
const minutes = (id: string) => MIN[id] ?? 2;
const cellsOf = (steps: readonly PlanStep[]) => Object.fromEntries(steps.map((s) => [s.id, { estimate: <span className="w-12 text-end tabular-nums">{minutes(s.id)} min</span> }]));

export default function PlanListDemo() {
  const draft = DRAFT;
  const fails = false as boolean;
  const root = React.useRef<HTMLDivElement>(null);
  const less = useLessMotion();
  const settle = Boolean(React.useContext(PlayOnce)?.settle);
  /* the draft: one step a beat, then a last beat that lets the wash fade */
  const play = useSelfPlay(root, { beats: [0, ...draft.slice(1).map(() => DRAFT_BEAT), 600], off: less });
  const [plan, setPlan] = React.useState<Plan>({ id: "p", state: "draft", steps: draft });
  const [fresh, setFresh] = React.useState<string[]>([]);
  const [began, setBegan] = React.useState<number | null>(null);
  const [now, setNow] = React.useState(0);
  const added = React.useRef(0);
  const timers = React.useRef<number[]>([]);
  React.useEffect(() => () => timers.current.forEach(clearTimeout), []);
  const at = (ms: number, f: () => void) => timers.current.push(window.setTimeout(f, ms));

  /* the arrival: the agent drafts the steps one by one, then waits for the visitor (at once with less motion) */
  const step = play.step;
  React.useEffect(() => {
    if (step < 0 || play.mine) return;
    const t = window.setTimeout(() => {
      if (less || settle || step >= draft.length) {
        setPlan({ id: "p", state: "draft", steps: draft });
        return setFresh([]);
      }
      setPlan({ id: "p", state: "draft", steps: draft.slice(0, step + 1) });
      setFresh([draft[step]!.id]);
    });
    return () => window.clearTimeout(t);
  }, [step, less, settle, draft, play.mine]);

  /* the head's clock while it runs */
  React.useEffect(() => {
    if (began === null || plan.state !== "running") return;
    const t = window.setInterval(() => setNow(clock()), 500);
    return () => window.clearInterval(t);
  }, [began, plan.state]);

  const status = (id: string, s: PlanStep["status"], detail?: string) => setPlan((p) => ({ ...p, steps: p.steps.map((x) => (x.id === id ? { ...x, status: s, detail } : x)) }));
  /* works from a step on; a failure holds the run there */
  const work = (steps: readonly PlanStep[], from: number, fail: boolean) => {
    let t = 0;
    for (let i = from; i < steps.length; i++) {
      const id = steps[i]!.id;
      at(t, () => status(id, "active"));
      t += less ? 0 : STEP_BEAT;
      if (fail && i === Math.min(2, steps.length - 1)) {
        at(t, () => status(id, "failed", "Two links answer 404"));
        return;
      }
      at(t, () => status(id, "done"));
    }
    at(t + 50, () => setPlan((p) => ({ ...p, state: "done" })));
  };
  const approve = () => {
    const t = clock();
    setBegan(t);
    setNow(t);
    setPlan((p) => ({ ...p, state: "running" }));
    work(plan.steps, 0, fails);
  };
  const from = (id: string) => plan.steps.findIndex((s) => s.id === id);
  const total = plan.steps.reduce((n, s) => n + minutes(s.id), 0);
  const live = plan.state === "running";

  return (
    <div ref={root} onPointerDownCapture={play.handOver} onKeyDownCapture={play.handOver} className="grid w-[min(100%,600px)] grid-cols-[minmax(0,1fr)]">
      <span className="sr-only">Simulated, nothing was sent.</span>
      <RunAnnouncer status={plan.state === "draft" ? "queued" : plan.state === "done" ? "done" : plan.steps.some((s) => s.status === "failed") ? "failed" : "running"} label="Spring launch page" />
      {/* the drafted plan, unseen, holds the stage's height while the steps arrive */}
      <div aria-hidden="true" ref={(el) => void (el && (el.inert = true))} className="invisible col-start-1 row-start-1 min-w-0">
        <PlanList title="Spring launch page" plan={{ id: "g", state: "draft", steps: draft }} estimate="~16 min" cells={cellsOf(draft)} onAdd={() => {}} onAskMore={() => {}} onApprove={() => {}} onReorder={() => {}} />
      </div>
      <div className="col-start-1 row-start-1 min-w-0">
        <PlanList
          title="Spring launch page"
          plan={plan}
          estimate={`~${total} min`}
          elapsed={began !== null && plan.state !== "draft" ? Math.max(0, Math.round((now - began) / 1000)) : undefined}
          cells={cellsOf(plan.steps)}
          fresh={fresh}
          onReorder={(steps) => setPlan((p) => ({ ...p, steps }))}
          onAdd={(title) => {
            added.current += 1;
            const id = `t${added.current}`;
            setPlan((p) => ({ ...p, steps: [...p.steps, { id, title, status: "pending" }] }));
            setFresh([id]);
          }}
          onAskMore={() => {
            if (plan.steps.some((s) => s.id === MORE.id)) return;
            setPlan((p) => ({ ...p, steps: [...p.steps, MORE] }));
            setFresh([MORE.id]);
          }}
          onApprove={plan.steps.length && !live ? approve : undefined}
          onRetry={(id) => {
            setPlan((p) => ({ ...p, state: "running" }));
            work(plan.steps, from(id), false);
          }}
          onSkip={(id) => {
            status(id, "skipped");
            work(plan.steps, from(id) + 1, false);
          }}
        />
      </div>
    </div>
  );
}
```

## Props

| Prop | Type | Default | What it does |
|---|---|---|---|
| `onFeedback` | `(e: FeedbackEvent) => void` |  | called once per move, for your sound or haptics |
| `title` | `string` |  | what the plan is for: "Notion launch page" |
| `mark` | `React.ReactNode` |  | the app or tool it works in, before the title |
| `plan` | `Plan` |  | the plan as the stream sends it: a draft, then approved and worked step by step |
| `cells` | `Readonly<Record<string, PlanCells>>` |  | each step's cells, by id: an owner, an estimate ("4 min"), what it waits for |
| `lead` | `React.ReactNode` |  | between the head and the steps: a host's figure (a ship date) |
| `estimate` | `string` |  | the draft's whole estimate, in the head: "~14 min" |
| `elapsed` | `number` |  | seconds since the plan started, while live |
| `onReorder` | `(steps: PlanStep[]) => void` |  | the draft's new order |
| `onAdd` | `(title: string) => void` |  | a step typed into the draft |
| `onAskMore` | `() => void` |  | ask the agent for one more step |
| `onApprove` | `() => void` |  | approve the draft: the plan goes live |
| `onRetry` | `(id: string) => void` |  |  |
| `onSkip` | `(id: string) => void` |  |  |
| `fresh` | `readonly string[]` | `[]` | steps that just arrived, by id: washed once |
| `pace` | `number` | `60000` | milliseconds an estimated minute takes to fill a working step's bar (default a real minute) |
| `labels` | `Partial<PlanListLabels>` |  | its words, over the English defaults |

Full docs: https://notchset.dev/components/plan-list

## Customising
- Colours: every part reads the foundation's roles (`--ns-canvas`, `--ns-ink`, `--ns-line`, `--ns-signal` …), which read your shadcn tokens (`--background`, `--foreground`, `--border`, `--destructive` …), plus the optional `--success` and `--warning`. Retheme on `:root` or any container; never add Tailwind colour classes inside the component.
- Dark mode follows the `.dark` class or `data-theme="dark"` on an ancestor (the shadcn and next-themes conventions).
- Update later: Commit or stash local changes first (or copy the files), so the update can be undone. Read https://notchset.dev/r/changelog.json for the new versions: a major version, an entry marked breaking or a merge says what to change. Then re-run the install with `--overwrite`, on a branch. It replaces the component's files, the shared helper files they import, and the item's CSS rules in the global stylesheet, so review the whole diff (components, shared files, CSS), re-apply your own edits, and run the app's typecheck, tests and build.

## Keyboard

| Keys | Action |
|---|---|
| Alt+↑ / Alt+↓ | move a draft step |
| Enter | adds the typed step; Escape gives it up |

## Performance

- One list at a time; the clock is the host's.

## Responsive

- phone and desktop
- dark (tokens)
- reduced motion: no sweep or stagger; rows move at once

## Motion inventory

| Interaction | What moves |
|---|---|
| Approve: the grips become status glyphs one after another | ns-chip-in on --ns-time-panel, --ns-ease-pop, --ns-stagger-item apart. Reduced motion: the glyphs are there. |
| a dragged step lifts and lands without overshoot | ReorderableList: --ns-ease-move. Reduced motion: rows move at once. |
| a new step is washed once | data-ns-landed: ns-born on --ns-time-born. Reduced motion: a fade. |

## Accessibility contract (preserve when editing)
- The draft is the reorderable list (grip, menu, Alt+arrows, each move said); live, an ordered list whose glyphs name each step's state in words; a failure is words in the danger ink; Retry and Skip sit by their step.
- Phases are said by the host's RunAnnouncer.

## Install

```bash
# npm
npx shadcn@latest add @notchset-pro/plan-list
# pnpm
pnpm dlx shadcn@latest add @notchset-pro/plan-list
# yarn
yarn dlx shadcn@latest add @notchset-pro/plan-list
# bun
bunx --bun shadcn@latest add @notchset-pro/plan-list
```

Pro item: needs the `@notchset-pro` registry in `components.json` and `NOTCHSET_TOKEN` in `.env.local` (https://notchset.dev/account). Setup: https://notchset.dev/docs/pro. Every components.json `style` gets the same files.

### Manual

1. Install the packages: `npm install lucide-react@^1`.
2. Copy `components/ui/notchset/plan-list.tsx`, `lib/notchset/feedback.ts`, `lib/notchset/icons.ts`, `lib/notchset/words.ts` from https://notchset.dev/r/pro/plan-list.json, sent with the header `Authorization: Bearer ${NOTCHSET_TOKEN}` (each file's `content`, at its `target`), keeping the `@/` path alias of your tsconfig.
3. Add what it builds on: shadcn `utils` (cn), `notchset-foundation`, `button`, `live-label`, `reorderable-list`, `status-glyph-run`, `stream-adapters`.

## Continue the workflow

- [Change set](https://notchset.dev/components/change-set)
- [Checkpoint rail](https://notchset.dev/components/checkpoint-rail)
- [Message](https://notchset.dev/components/message)

The foundation (the tokens listed above, keyframes and motion levels) installs once with the first component; its CSS is public at https://notchset.dev/r/notchset-foundation.json.
