Kanshō/Run summary card

Run summary card

Post-run outcome card: status, duration, cost, and follow-up actions.

Included in the single kansho full pack. Components are not offered as separate installs.

Outcomes

Static preview: failed-run actions require host callbacks

run_01hwf4m8kj2nqp7r

2026-05-21 at 14:02 UTC

All passed
Duration1m 42s
Spend$0.28
Tests6/6
Receiptrcpt_9f3kzq

run_01hwf3x9an5mrk2c

2026-05-21 at 13:44 UTC

Failed
Duration0m 58s
Spend$0.14
Tests5/6(1 failed)
Receiptrcpt_7a1mwp

run_01hwf2t6be8mzj1a

2026-05-21 at 13:21 UTC

Warning
Duration2m 11s
Spend$0.41
Tests6/6

run_01hwf5p0dl3nqs8v

Running
Duration0m 34s
Spend$0.09
Tests3/6

Error & recovery

Static preview: Re-run and View logs require host callbacks; a passed run shows neither

run_01hwf3x9an5mrk2c

Failed
Duration0m 58s
Spend$0.14
Tests5/6(1 failed)
Receiptrcpt_7a1mwp

run_01hwf4m8kj2nqp7r

All passed
Duration1m 42s
Spend$0.28
Tests6/6

With receipt jump handler

run_01hwf4m8kj2nqp7r

All passed
Duration1m 42s
Spend$0.28
Tests6/6
Receipt

Component documentation

Run Summary Card

components/sandbox/run-summary-card.tsx

Purpose

Summarises a run outcome with duration, spend, test totals, receipt, and failure actions.

Appropriate use

Use at the end of a test or build run when the host can open evidence or start recovery.

Example

components/sandbox/run-summary-card.tsx has a representative live example in the "With receipt jump handler" section on /components/run-summary-card.

States

Outcomes are passed, failed, warning, and running; test counts, spend, receipt, completion time, rerun, and logs are optional.

API and props

RunSummaryCard accepts runId, outcome, duration, spend, totalTests, passedTests, failedTests, receiptId, onViewReceipt, onRerun, onViewLogs, completedAt, and className.

Dependencies

Direct imports are React, Lucide icons, StatusPill, and cn.

Accessibility

Outcome, run id, duration, spend, and test counts are textual; receipt and failure actions are native buttons rendered only with callbacks.

Limitations

It does not execute runs, calculate totals, fetch receipts or logs, confirm reruns, or report asynchronous action results.

Source

Source: components/sandbox/run-summary-card.tsx.

Full pack

components/sandbox/run-summary-card.tsx is documented at /components/run-summary-card and installs only through the single Kansho full pack; no individual component install is offered.