PlanList

The agent's plan as a live checklist. Steps move pending, running, done, failed or skipped; unstarted steps can be dragged or skipped. AI.

Open playground
Plan1 of 5 done
  • Read the failing testinvoice.spec.ts
  • Find where tax is rounded
  • Patch the rounding
  • Run the suite142 tests
  • Open a pull request

About

PlanList is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { PlanList } from "@ashutoshswamy/smoui" and set steps, onReorder, onSkip among its 4 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { PlanList } from "@ashutoshswamy/smoui";

<PlanList steps={steps} onReorder={setSteps} onSkip={skip} />

Props 4

steps

id, title, optional detail and status.

PlanStep[]
onReorder

Enables dragging steps that have not started.

(steps) => void
onSkip

Adds a skip button to pending steps.

(id) => void
title

Heading. Defaults to Plan.

string