Skip to content
Sign upPro
FramesIssue threadMenu

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.

The agent is assigned, moves the issue to In progress, posts a comment, opens a pull request whose checks pass, and moves it to In review. Loops.

Installation

$ pnpm dlx shadcn@latest add https://chatcn.dev/r/issue-thread.json

Usage

tsx
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.

People only, an agent working, checks failing, done, a phone viewport and dark.

Props

PropTypeNotes
issue{ key, title, project, description? }The breadcrumb reads project, then key
eventsIssueEvent[]created, assigned, status, label, comment, pr, in order
statusbacklog | todo | in-progress | in-review | done | cancelledThe sidebar pill
assignee{ name, initials, kind }kind is person or agent
workingbooleanThe kit spinner beside an agent assignee
labelsstring[]Outline chips in the sidebar
priority0 | 1 | 2 | 3None, low, medium, high, drawn as three bars
composer, onCommentstatic | live | noneLive posts on Comment or Cmd+Enter
placeholderstringDefault “Leave a comment…”
chrome, addressbrowser | none, stringThe browser bar and its address
clearingbooleanFades the activity out before a loop restarts
viewport, width, bezel, radiusFrame propsDefault 1100 by 760, hairline, 12