Elements

Components / Application

Task

Manager task queue and work item primitives for Instant Strata. Work items represent operational tasks across automatable, semi-automated (R-A-S), and manual workflows. Layout prioritises scanability: title first, scheme context second, status and due badges third.

Layout rationale

Manager inboxes are scanned in under two seconds. The list layout uses a priority colour bar on the left, a single-line title, a metadata row (scheme · domain · assignee), and right-aligned status badges. Overdue statutory dates use danger-soft badges so they pop without shouting.

Sectioned queues group by urgency: Escalated, Awaiting review, then Active. Review items with missing prerequisites show a warning hint on the list row and expand into a full missing-items block on the detail layout.

R-A-S itemsuse the amber "R-A-S" automation badge (Review, amend, send). Failed AI steps surface as failed or manual_required, never as silent blanks.

Workflow badges

Work item badges and TaskQueueHeader summary counts compose the shared Badge primitive. The Badge documentation lists every workflow, automation, domain, and due state.

Inbox row badges (representative)
Awaiting reviewR-A-SStatutory 30 May

TaskQueue (sectioned inbox)

Primary manager inbox pattern: header counts, urgency sections, list rows.

tsx
import {
  TaskQueue,
  TaskQueueHeader,
  TaskQueueSection,
  WorkItem,
} from "@/components/ui/task"

<TaskQueue
  variant="sectioned"
  header={
    <TaskQueueHeader
      openCount={12}
      reviewCount={3}
      overdueCount={2}
      escalatedCount={1}
    />
  }
>
  <TaskQueueSection title="Escalated" count={1} tone="danger">
    <WorkItem item={escalatedTask} showChevron href="#" />
  </TaskQueueSection>
  <TaskQueueSection title="Awaiting review" count={3} tone="warning">
    {reviewTasks.map((item) => (
      <WorkItem key={item.id} item={item} showChevron href={`/tasks/${item.id}`} />
    ))}
  </TaskQueueSection>
</TaskQueue>

TaskQueue (flat list)

Single-scheme task list without section grouping.

WorkItem (detail)

Expanded panel for R-A-S review with missing items and AI advisory.

AGM notice pack review

Generate AGM notice pack

Harbour View Towers · SP 1042 · Meetings · Jane Smith · FR-AIS-002

JSJane Smith
Awaiting reviewR-A-SStatutory 10 June

AI draft ready for review, amend, and send to owners.

Missing items

  • Audited financial statements for FY25

Advisory

Motion 4 may require special resolution wording. Advisory only: confirm with legal counsel before issuing.
tsx
import { WorkItem } from "@/components/ui/task"

<WorkItem
  item={task}
  layout="detail"
  actions={
    <>
      <Button size="sm">Review draft</Button>
      <Button size="sm" variant="outline">Snooze</Button>
    </>
  }
/>

Card and compact layouts

Prerequisites block

WorkItemMissingItems

Missing items

  • Audited financial statements for FY25
  • Committee-approved budget motion

Empty state

TaskQueueEmptyState

All caught up

No open tasks need your attention right now.

Install

tsx
npx shadcn add https://raw.githubusercontent.com/levi-putna/elements/main/registry/task/registry.json

Requires the avatar and badge components.

Reference

WorkItemSummary

PropTypeDefaultDescription
idstring-Stable task identifier.
titlestring-Primary action label for inbox scanning.
descriptionstring-Longer context shown on card and detail layouts.
statusWorkItemStatus-pending | in_progress | awaiting_review | approved | sent | completed | failed | manual_required | escalated | snoozed.
domainWorkItemDomain-meetings | accounting | maintenance | insurance | admin | disputes | communication | contractors.
automationWorkItemAutomation-automatable | semi_automated (R-A-S) | manual.
priorityWorkItemPriority-urgent | high | medium | low. Drives the left priority bar.
dueAtstring | Date-Due, statutory, or follow-up date.
dueKindWorkItemDueKind-due | statutory | follow_up.
missingItemsstring[]-Unmet prerequisites (detail layout and list hint).
advisorystring-Non-blocking AI advisory note.
requirementIdstring-Linked FR ID for traceability.

WorkItem

PropTypeDefaultDescription
itemWorkItemSummary-Work item data object.
layout"list" | "compact" | "card" | "detail""list"list = inbox row. compact = sidebar. card = tile. detail = expanded panel.
showStatusbooleantrueShows workflow status badge.
showAutomationbooleantrueShows automatable / R-A-S / manual badge.
showDuebooleantrueShows due or statutory date badge.
showAssigneebooleantrueShows assignee avatar on list layout.
showChevronbooleanfalseTrailing chevron for navigable rows.