Files
Bingxi Zhao (Frank) 3f706e9844 refactor(chat): one disclosure vocabulary for the folded working-out
The two-layer turn gave the activity header a second job — it is now the
control that puts a whole turn's working-out away — but the header had been
written for a line that is read, not clicked, and deliberately showed no
affordance at all. Once a settled turn folds everything behind it, that
leaves nothing saying the reasoning still exists: it reads as discarded.

So the header ends in a caret whenever it is expandable, at the weight of
the metadata beside it, and the run-level fold below a card echoes the same
shape (label first, caret after) instead of leading with its own chevron.

Both folds now share one primitive rather than repeating the grid-rows
trick, and move on the sidebar disclosure's curve, so a header and the
content hanging from it settle on the same beat.
2026-09-11 17:56:08 +08:00

36 lines
1.6 KiB
TypeScript

/**
* The activity vocabulary: how DeepTutor shows work in progress.
*
* Every surface that reports ongoing work — chat's reasoning trace, a book
* compile, a co-writer run, deep research, the sidebar's live sessions —
* composes these four pieces rather than growing its own spinner:
*
* ActivityHeader an orb + what is happening + how long
* ActivityStack the rows under it, aligned to the orb's column
* ActivityDivider a labelled break between groups of rows
* ActivityRow one action, with its specifics folded away
* ActivityFold the content a header folds away, on the shared curve
* ActivityDetailGrid the label/value layout inside level two
* ActivityMark a list row's mark, for lists with no header orb above
*
* The contract is two levels. Level one is what a reader sees having clicked
* nothing: one line per action. Level two is everything else. Nothing opens
* itself except work the reader is meant to watch happen, which folds itself
* away once it settles.
*/
export { ActivityHeader } from "./ActivityHeader";
export { ActivityFold, FoldCaret, FOLD_EASE } from "./ActivityFold";
export {
ActivityDetailGrid,
argumentRows,
isPlumbingArg,
type DetailRow,
} from "./ActivityDetailGrid";
export { ActivityMark, type MarkTone } from "./ActivityMark";
export { ActivityOrb, type OrbState, type OrbTone } from "./ActivityOrb";
export { ActivityRow } from "./ActivityRow";
export { ActivityDivider, ActivityStack } from "./ActivityStack";
export { StatusDot } from "./StatusDot";
export type { ActivityState } from "./types";