Issue thread
An issue tracker page where the assignee is an agent: it picks up the ticket, posts progress, links a pull request whose checks run and pass, and moves the status.
On this page
Installation
Usage
import { IssueThread } from "@/components/ui/chatcn/issue-thread"
const ines = { name: "Ines Duarte", initials: "ID", kind: "person" }
const tern = { name: "Tern", initials: "T", kind: "agent" }
<IssueThread
issue={{ key: "ENG-412", project: "Web", title: "Dates show a day early for users west of UTC" }}
status="in-review"
assignee={tern}
labels={["Bug"]}
priority={3}
events={[
{ type: "created", actor: ines, at: "2 hours ago" },
{ type: "assigned", actor: ines, to: tern, at: "48 min ago" },
{ type: "status", actor: tern, to: "in-progress", at: "47 min ago" },
{ type: "comment", actor: tern, body: "Found it: the parser drops the time zone.", at: "45 min ago" },
{
type: "pr",
actor: tern,
number: 128,
title: "Fix timezone in date parser",
branch: "tern/eng-412-parser-timezone",
checks: [{ name: "ci / build", state: "passed" }, { name: "ci / test", state: "passed" }],
},
{ type: "status", actor: tern, to: "in-review", at: "38 min ago" },
]}
/>The page lays out at a true 1100 by 760 viewport and scales to fit, with a browser bar (chrome="none" hides it). Agents get square avatars with 6 px corners and people round ones, so the shape says who is a person without a robot icon; every agent element carries data-actor="agent". Under a 760 px viewport the sidebar moves under the title as a two column fact list.
Each status has its own 14 px glyph: a dashed ring for backlog, a ring for todo, a half and a three quarter disc for in progress and in review, a filled disc with a check for done and with a cross for cancelled. A new status sweeps the disc clockwise, the pill's fill reshapes to the new word with clip-path, and the word crosses over. Nothing around it moves.
A comment whose body is a string streams with streaming: words append at 40 ms each with no effect on them, and the card is its final height from the first frame because the words still to come are laid out but invisible. New events enter from 6 px below as the rail grows into them. Checks swap glyphs in place when they finish and the summary is a polite status, so screen readers hear "All 2 checks passed" once. Under reduced motion the swaps are cuts and events fade in without moving.
Examples
States
People only, an agent working, checks failing, done, a phone viewport and dark.
Props
| Prop | Type | Notes |
|---|---|---|
issue | { key, title, project, description? } | The breadcrumb reads project, then key |
events | IssueEvent[] | created, assigned, status, label, comment, pr, in order |
status | backlog | todo | in-progress | in-review | done | cancelled | The sidebar pill |
assignee | { name, initials, kind } | kind is person or agent |
working | boolean | The kit spinner beside an agent assignee |
labels | string[] | Outline chips in the sidebar |
priority | 0 | 1 | 2 | 3 | None, low, medium, high, drawn as three bars |
composer, onComment | static | live | none | Live posts on Comment or Cmd+Enter |
placeholder | string | Default “Leave a comment…” |
chrome, address | browser | none, string | The browser bar and its address |
clearing | boolean | Fades the activity out before a loop restarts |
viewport, width, bezel, radius | Frame props | Default 1100 by 760, hairline, 12 |