ZAO造

Plan

A named run of steps drawn on a rail, with each step’s current state visible.

Preview

Su uses the Quiet instrument direction. Use the mode switcher above to see light and dark.

Remove inactive seats2 of 7 done
  1. Read seat assignments
    North workspace · 412 assigned seats
    Done
  2. Prepare the removal list
    38 seats · 6 owners
    Running

    38 seats have no sign-in since Jul 15.

  3. Review the decision
    Return unused licenses to the pool
    Needs you
  4. Notify workspace owners
    6 owners receive an email
    Planned
  5. Record the declined request
    Declined
  6. Check the export
    Failed
  7. Close the run
    Skipped

Inside a Conversation

  1. Assistant
    Remove inactive seats1 of 3 done
    1. Read seat assignments
      North workspace · 412 assigned seats
      Done
    2. Prepare the removal list
      38 seats · 6 owners
      Running
    3. Wait for approval
      No changes until approved
      Needs you

This component inherits Quiet instrument’s shared Su values. Its own styling is still open for study.

Usage

  • Use Plan to show a host-owned sequence of work. The component renders statuses; the host runs, retries, and changes steps.
  • Give the section a visible label. Keep each step title concrete and use detail for its scope or output.
  • Nest the product that a step produced under that step. A waiting step needs the person; a declined step counts as resolved.
  • Use entering for newly proposed plans. Pass entering={false} when restoring a plan from history.

API

PropValuesDefault
Root labelvisible stringrequired
Root entering / announceboolean / booleanconversation arrival / true
Step title / statusstring / planned | running | waiting | done | declined | failed | skippedrequired
Step detail / childrenReactNode—

Example

import { Plan } from '@zao/react';

<Plan.Root label="Remove inactive seats">
  <Plan.Step status="done" title="Read seat assignments" detail="412 assigned seats" />
  <Plan.Step status="waiting" title="Review the removal list">
    {/* The host-provided ApprovalGate */}
  </Plan.Step>
</Plan.Root>

Accessibility

Plan is a named section containing an ordered list. Every status word is visible; running and waiting steps expose aria-current="step". Status changes announce inside Conversation only when announce is enabled. Reduced motion removes arrival and rail travel; RTL places the rail at inline start.