Skip to content
Eskais UI

Agent tasks

Task Card

A compact agent task card: id, two-line title, profile, active agent, liveness, acceptance bar, attempts and cost, dependency chips, blocker with its retry time, decision and analysis-mode markers, and proposal actions in live mode. A stretched UI SDK Button selects it without nesting other controls.

Example

T-011
A person reviews it before agents runreasoningpricingperformanceDecision needed
Updated
T-012
bounded
  • T-009 Design the schema
Updated

Installation

npx shadcn@latest add @eskais/task-card

Usage

Import
import { TaskCard, proposalError } from "@/components/ui/task-card"import { AnalysisModeIcon, TaskBlocker } from "@/components/ui/task-card-parts"import { agentTaskBoardLabels, agentTaskBoardLabelsEs, resolveLabels } from "@/components/ui/agent-task-labels"import { TaskCardChips } from "@/components/ui/task-card-chips"import {  PullRequestLink,  TaskLinkIcon,  TaskLinks,  taskLinkLabels,  taskLinkStateTones,} from "@/components/ui/task-links"import { TaskLocationTrack, stageOf } from "@/components/ui/task-location"import { useCardTabStops } from "@/components/ui/use-card-tab-stops"

API reference

AnalysisModeIcon

PropTypeDefault
moderequiredNonNullable<TaskView["analysisMode"]>–
labelrequiredstring–

TaskBlocker

PropTypeDefault
blockerrequiredNonNullable<AttemptView["blocker"]>–
retryLabelrequiredstring–
nowInstant–
localestring–
timeZonestring–

TaskCardChips

PropTypeDefault
taskrequiredTaskView–
labelsrequiredAgentTaskBoardLabels–

Also takes Pick< TaskDisplayOptions, "now" | "locale" | "timeZone" | "formatCurrency" | "onSelectTask" | "canSelect" | "stages" >.

TaskLinkIcon

PropTypeDefault
kindrequiredLinkKind–

Also takes LucideProps.

PropTypeDefault
linksrequiredreadonly TaskLink[]–
labelsPartial<TaskLinkLabels>–
renderLink(link: TaskLink) => ReactNode–
onOpenLink(link: TaskLink) => void–

Also takes <ul> attributes except children.

PropTypeDefault
linkrequiredTaskLink–
labelrequiredstring–
onOpenLink(link: TaskLink) => void–
classNamestring–

TaskLocationTrack

PropTypeDefault
locationrequiredTaskLocation–
stagesreadonly Stage[]–
aria-labelrequiredstring–

Other exports

TaskCardproposalErroragentTaskBoardLabelsagentTaskBoardLabelsEsresolveLabelstaskLinkLabelstaskLinkStateTonesstageOfuseCardTabStopstype TaskCardPropstype TaskDisplayOptionstype AgentTaskBoardLabelstype AgentTaskBoardLabelsInputtype AgentTaskComponentLabelstype PullRequestLinkPropstype TaskLinkLabelstype TaskLinksProps

Accessibility

  • An article named by the task title; dependency chips and links stay separate targets.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.