DevTools visual design
Audience: someone implementing or reviewing the Estela UI.
This directory holds the chosen high-fidelity design (direction A, "Instrument") for the two screens of the viewer, the session browser and the session workspace (README). The HTML files are static mockups. Open them in a browser at 1440 × 900. All session content, paths, and numbers in them are sample data.
| Screen | Dark | Light |
|---|---|---|
| Session browser (home) | session-browser-dark.html | session-browser-light.html |
| Session workspace | session-workspace-dark.html | session-workspace-light.html |
Screenshots are not committed. Take one from the HTML at a 1440 × 900 viewport when a PR needs it.
Screens
Session browser. npx @rivus/estela opens here. Left rail: agent and project filters, plus "has compaction", "has subagents", "has failed tools". Center: sessions grouped by day, with turns, requests, tokens, duration, and flag icons. Right: a preview of the selected session with its context-over-time shape, headline numbers, the first prompt, and "Open session".
Session workspace. Top to bottom:
- Session header: agent, working directory, start time, title, and seven numbers (duration, turns, requests, tokens in / out, compactions, subagents, failed tool calls), then the list cost (a recorded-token sum at the bundled price snapshot; its label says when it is partial or unavailable). The mockups predate the cost and do not show it.
- Timeline: one lane for the main agent and one per subagent. The time range under the brush filters the ledger.
- Ledger: events grouped by turn, or by agent with one header per agent. Turns and agents collapse. Hook events fold into one row. Events hidden from the model after a compaction can be dimmed.
- Inspector: Input, Output, Model saw, Raw. "Model saw" shows the context composition for the selected request and the events dropped by compaction.
Encoding rules
- Request bar height is context size. In the main lane each request is a bar whose height is the input tokens of that request. Growth and the drop at a compaction are visible without reading numbers.
- Missing data is drawn as missing. A slot the agent's log does not record (for example the system prompt in a Claude Code session without a prompt snapshot) is a hatched segment labeled "unavailable". It is never estimated.
- Kind is a mark, not text color. Each event kind has a colored square or bar. Labels and values stay in the text tokens.
- Red is reserved. Only failed tool calls use the error color, and always with the warning icon.
- Compaction is a neutral dashed rule with the before → after token count.
Tokens
Both themes share one layout. Only these values change. The right column maps each token to the semantic name used by the web app's styles.css (apps/web/src/styles.css).
| Token | Dark | Light | Semantic name |
|---|---|---|---|
| bg | #0d1013 | #fbfaf8 | --background |
| panel | #111519 | #f4f3f0 | --secondary |
| raised | #171c21 | #ffffff | --muted (inputs, active chips) |
| hover | #1b2127 | #efeeea | --accent |
| line | #222930 | #e6e4df | --border |
| line2 | #2b333b | #d9d7d1 | --input |
| text 1 | #e6e9ec | #17191c | --foreground |
| text 2 | #a3acb5 | #555b62 | --muted-foreground |
| text 3 | #6d7780 | #858b92 | new: --subtle-foreground |
| error | #e5534b | #c93a32 | --destructive |
Selection is the request hue at 10% (dark) or 8% (light) fill with a 55% / 50% ring.
Event kind palette
Fixed order. Never cycled, never reassigned when a filter hides a kind.
| Kind | Dark | Light |
|---|---|---|
| Request | #4d97de | #347ec4 |
| User prompt | #5aa75e | #418e47 |
| Reasoning | #b576c3 | #9c5eaa |
| Tool | #ca7e31 | #b0660c |
| Subagent | #00ab9d | #009284 |
Each set is OKLCH with one lightness and chroma (dark L 0.66, light L 0.58, C 0.13) and hues 250, 145, 320, 62, 185. Both sets pass the dataviz palette validator on their surface: lightness band, chroma floor, adjacent-pair color-blind separation (worst ΔE 13.8 dark, 13.3 light), normal-vision floor, and 3:1 contrast.
Assistant replies use a neutral outlined square.
Typography
- UI: Instrument Sans 400 / 500 / 600, fallback
"Helvetica Neue", Helvetica, Arial, sans-serif. - Data (ids, tokens, durations, paths, commands): JetBrains Mono 400 / 500, fallback
"SF Mono", Menlo, Consolas, monospace. - Chinese: both stacks continue with
"PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei".<html lang>follows the UI language. - Sizes: session title 26 px / 600, section labels 12 px / 600, body 13 px, data 11.5–12 px. Section labels are uppercase with 0.04em tracking in English only (
:lang(en)); Chinese labels keep normal case and tracking.
Logo
The mark is ../assets/logo.svg: a request trace inside a rounded tile, ending at the selected request in the request blue. The hollow nodes are cut with a mask, so the tile gradient shows through; the baseline and its ticks are the workspace's time axis.
- The tile carries its own dark background, so the mark reads on light and dark surfaces. Keep the tile; do not set the bare glyph on a light background.
- The in-app top bar uses the same glyph without the tile (
apps/web/src/shell/logo.tsx). The favicon is the same shape with filled nodes, which stays legible at 16 px (apps/web/src/index.html). - Colors: tile
#1b2229→#0d1013, trace#c3ccd5→#eef1f4, request#4d97de; the tile border is white at 11%, the axis#2f373f, and its ticks#262e35.
Not chosen
Two low-fidelity alternates were reviewed and not chosen: a light single-column reading layout, and a timeline-first layout with one lane per agent. The lane idea returned as the ledger's Agents layout, a toggle beside the default Turns layout.