Kanshō/Artifact preview row

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 callbacks

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB· 92% conf.
Ready

dashboard-after-fix.png

Audit writer· 2m ago· 248 KB· 92% conf.
Ready

incident-summary.pdf

Audit writer· 2m ago· 88 KB· 92% conf.
Ready

fix/retry-backoff.diff

Audit writer· 2m ago· 3.1 KB· 92% conf.
Ready

timeline.json

Audit writer· 2m ago· 6.0 KB· 92% conf.
Ready

error-rate-over-time

Audit writer· 2m ago· · 92% conf.
Ready

runbook · retry policy

Audit writer· 2m ago· 92% conf.
Ready

Artifact states

Static preview: artifact actions require host callbacks

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Generating

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Ready

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Partial

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Stale

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Rejected

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Replaced

Component documentation

Artifact Preview Row

components/tasks/artifact-preview-row.tsx

Purpose

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.