Artifact preview row
One artifact as a dense row: type glyph, title, provenance (source agent, time, size, confidence), lifecycle state, and the three universal actions — open, download, copy.
Included in the single kansho full pack. Components are not offered as separate installs.
Artifact types
Static preview: Open, Download, and Copy require host callbackspostmortem-draft.md
dashboard-after-fix.png
incident-summary.pdf
fix/retry-backoff.diff
timeline.json
error-rate-over-time
runbook · retry policy
Artifact states
Static preview: artifact actions require host callbackspostmortem-draft.md
postmortem-draft.md
postmortem-draft.md
postmortem-draft.md
postmortem-draft.md
postmortem-draft.md
Component documentation
Artifact Preview Row
components/tasks/artifact-preview-row.tsxPurpose
Summarises one generated artifact with type, provenance, lifecycle, metadata, and applicable actions.
Appropriate use
Use in task output lists when operators need to open, copy, download, retry, or inspect an artifact through host callbacks.
Example
components/tasks/artifact-preview-row.tsx has a representative live example in the "Artifact types" section on /components/artifact-preview-row.
States
Types are file, screenshot, report, patch, json, chart, and link; states are generating, ready, partial, stale, rejected, and replaced.
API and props
ArtifactPreviewRow accepts type, title, state, source, createdAt, size, confidence, onOpen, onDownload, onCopy, onRetry, onInspect, and className.
Dependencies
Direct imports are React, Lucide icons, Button, IconButton, StatusPill, shared task types, and cn.
Accessibility
The type, state, title, and metadata are textual; icon actions have accessible names and render only when their callback applies.
Limitations
It does not fetch, open, download, copy, retry, or inspect artifacts itself, and it has no pending action feedback.
Source
Source: components/tasks/artifact-preview-row.tsx.
Full pack
components/tasks/artifact-preview-row.tsx is documented at /components/artifact-preview-row and installs only through the single Kansho full pack; no individual component install is offered.