An agent's to do list that ticks itself off as it works. The step it is on shimmers, finished ones fold away, and a thin bar keeps the count, so a long task never feels like a wait.
On it. Here is how I will find out why people get logged out.
- Read the auth flow
Marker
Fold finished steps
Progress bar
NeedsReactFramer MotionTheme
Sourcenpm install framer-motion && curl --create-dirs -o src/components/plan.tsx https://fragms.simonveprek.cz/source/plan -o src/components/theme.tsx https://fragms.simonveprek.cz/source/themeSaves src/components/plan.tsx and theme.tsx beside it after installing what it needs. No setup, works in any React project.
import { Plan, type PlanStep } from "@/components/plan";const steps: PlanStep[] = [ { title: "Read the auth flow", status: "done" }, { title: "Find why sessions expire", status: "active", detail: "Comparing token and server time" }, { title: "Patch the refresh" },];<Plan title="Fixing the logouts" steps={steps}/>
stepsEach step's title, an optional detail line, and its status.
{ title, detail?, status? }[]Default requiredstatusWhere a step is. Done and skipped count towards progress.
pendingactivedonefailedskippedtitleWhat the plan is for, over the list.
stringDefault nonefoldFolds finished steps into one line once this many are done. 0 never folds.
numberDefault 3markerHow a waiting step is marked. Done steps always get a tick.
checknumberdotprogressA thin bar under the title showing how far along it is.
truefalsecolorProgress and the step being worked on.
stringDefault the theme's accentWhat's new
- 2.1
- First release. An agent's to do list that ticks itself off
- Finished steps fold into one line