Skip to content
GitHub (opens in a new tab)

SetupGuide

A first-run checklist with overall progress and one action per task.

stableOrganismcontracts/setupguide.json

Preview

SetupGuide

A first-run checklist with overall progress, a status word on every task and one action per task.

Master

Connect a provider under Connect payments: the tile shows Connecting…, the task turns Done and Send your first invoice unlocks. Undo skip brings a skipped task back.

Set up billing

Northwind can send its first invoice once payments are connected.

0 of 4 done · 1 skipped0%
  1. Add company detailsCurrent
  2. Connect paymentsTo do
  3. Add tax infoTo do
  4. Send your first invoiceTo do
  5. Invite your accountantSkipped

Skipped tasks don’t count toward progress; undo any time.

Usage

Use SetupGuide for onboarding tasks people can do in any order. Every row has an icon and a word: Done, Current, To do, Blocked or Skipped. The current task's action is the one solid primary; give the task integrations and its suggested provider's Connect takes that role instead. A blocked task has no button and says what unlocks it. Use ProgressSteps for a linear wizard.

Do's

  • onboard a new workspace with a short list of setup tasks
  • show how far setup is and what to do next
  • let people skip optional tasks and undo the skip
  • connect a provider straight from the task that needs it

Don'ts

  • a linear multi-page wizard — ProgressSteps
  • one value against a goal — Progress
  • an agent's plan of steps — AgentPlan
<SetupGuide
  title="Set up billing"
  tasks={tasks}            // { status: "blocked", dependsOn: ["payments"] }, { integrations: providers }
  connectingId={connecting}
  onTaskAction={openTask}
  onIntegrationConnect={(providerId, taskId) => connect(providerId)}
  onUndoSkip={undoSkip}
  onComplete={goToDashboard}
  onDismiss={dismiss}
/>

A first-run checklist with overall progress, each task's status as an icon and a word (Done, Current, To do, Blocked, Skipped) and at most one action per task. The current task's action, or its suggested provider's Connect, is the one solid primary. Built on kit Progress, Badge, Button and Empty, with IntegrationPicker's compact tile. Not a wizard stepper and not a bare Progress bar.

When to use

  • onboard a new workspace with a short list of setup tasks
  • show how far setup is and what to do next
  • let people skip optional tasks and undo the skip
  • connect a provider straight from the task that needs it

When not to use

  • a linear multi-page wizard — ProgressSteps
  • one value against a goal — Progress
  • an agent's plan of steps — AgentPlan

What an agent reads

import { SetupGuide } from "agentic-ds-kit";
must
  • section aria-labelledby the h3 title
  • tasks are an ordered list; the current task has aria-current=step
  • each row reads its name and a status word (Done, Current, To do, Blocked, Skipped); icons are aria-hidden, never colour alone
  • a blocked row has no button, so nothing disabled sits in the tab order; its reason is the row's description
  • each action button is described by its task label; provider tiles' Connect is described by the provider name
  • overall progress is a kit Progress with a text label ("1 of 4 done · 1 skipped")
  • Connecting is announced in a status region
  • the check scales and fades in (transform and opacity) and its stroke draws in when a task is ticked off live (a first load stays still), off under prefers-reduced-motion
  • aria-busy while loading; the error is role=alert
defaults
  • completeLabel Go to dashboard
  • emptyTitle Nothing to set up
  • loading false
stops if
  • Do not invent a local Checklist, OnboardingCard or SetupSteps
  • Do not use ProgressSteps for a checklist people can do in any order
  • Do not show more than one solid primary: the current task's action, or its suggested provider's Connect when tiles show
  • Do not put a disabled Start on a blocked task; say what unlocks it
  • Do not use raw hex

From contracts/setupguide.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
titlestringYes——
descriptionstringNo——
tasksarrayYes—{ id, label, description?, status: 'todo'|'current'|'done'|'skipped'|'blocked', actionLabel?, dependsOn?: id[], blockedReason?, integrations?: IntegrationItem[] }[]. A blocked task whose dependsOn tasks are all done shows as To do. integrations show as compact tiles under the row while it is current, and the row then has no button.
onTaskActionfunctionNo—(id) => void. The current task's action is the solid primary (default Continue); todo tasks get an outline Start. Blocked rows have no button.
onIntegrationConnectfunctionNo—(integrationId, taskId) => void. Connect on a provider tile under the current task. The first available tile is the solid primary; the rest are outline.
connectingIdstringNo—That provider tile reads Connecting…, with no button, and is announced.
onUndoSkipfunctionNo—(id) => void. A ghost "Undo skip" Button on the skipped row.
onCompletefunctionNo—Go to dashboard, the one solid primary once every task is done or skipped.
completeLabelstringNoGo to dashboard—
onDismissfunctionNo——
skippedNotestringNo——
emptyTitlestringNoNothing to set up—
emptyDescriptionstringNo——
emptyActionLabelstringNo——
onEmptyActionfunctionNo——
loadingbooleanNofalse—
errorstringNo——
onRetryfunctionNo——
  • Component
    →

    ProgressSteps

    Ordered wizard steps as numbered circles with a connecting line and a status word under each label: Done, Current, Upcoming, Error, or Optional.

  • Component
    →

    Progress

    Task completion as a bar or circle from 0 to 100, or an indeterminate bar when the percent is not known.

  • Component
    →

    AgentPlan

    What an agent intends to do, before or during a run.

  • Component
    →

    Empty

    Placeholder when a list, page, or region has nothing to show.