← All proposals

Context: AgentInbox

Net-new componentOpen in Storybook

proposals/AgentInbox/custom.md26 lines · View on GitHub

Custom and net-new: AgentInbox

Everything in this proposal that is not plain PDS v2. npm run check:tokens reads this file: each net-new class, custom CSS variable and raw value found in the code must appear here in backticks.

Net-new components

  • .pds-agent-inbox — a board of agent tasks grouped into lanes (Needs you, Running, Done), with cards that open in place; Board and List layouts
    • Parts and modifiers: .pds-agent-inbox__actions, .pds-agent-inbox__agent, .pds-agent-inbox__bar, .pds-agent-inbox__body, .pds-agent-inbox__card--done, .pds-agent-inbox__card--failed, .pds-agent-inbox__card--running, .pds-agent-inbox__card--waiting, .pds-agent-inbox__cards, .pds-agent-inbox__chevron, .pds-agent-inbox__counts, .pds-agent-inbox__description, .pds-agent-inbox__empty, .pds-agent-inbox__entry, .pds-agent-inbox__foot, .pds-agent-inbox__heading, .pds-agent-inbox__lane, .pds-agent-inbox__lane-head, .pds-agent-inbox__lanes, .pds-agent-inbox__state, .pds-agent-inbox__status, .pds-agent-inbox__subtitle, .pds-agent-inbox__steps, .pds-agent-inbox__time, .pds-agent-inbox__title, .pds-agent-inbox__title-row, .pds-agent-inbox__toggle

Additions to existing PDS components

None.

Net-new props

All, it is a net-new component: tasks (each task has subtitle and sites), defaultView, lanes, labelStrings, onApprove, onReject, onRetry, onOpen, onViewChange.

Custom CSS variables

  • --agent-inbox-status-color — set on .pds-agent-inbox and on each .pds-agent-inbox__card--<status>; the color of the status icon (info running, warning waiting, success done, critical failed)

Raw values kept on purpose

  • 640px in @container (max-width: 640px) — no container-width token; below it the board always becomes a list and the Board/List switch is hidden. Needs a decision on the breakpoint.
  • 26rem in agent-inbox-story.css — story-only wrapper that shows the drawer width; not ported.