|
| 1 | +# Jobs viewer redesign — decision log |
| 2 | + |
| 3 | +Started 2026-05-10. Owner: Claude (Opus 4.7). |
| 4 | + |
| 5 | +## Why |
| 6 | + |
| 7 | +The jobs UI shipped in commits `42b2ef9` → `7d2e704` was functional but felt |
| 8 | +out of place in the viewer. The rest of the viewer is **editorial**: Palatino |
| 9 | +serif, cream paper, navy accent, dingbat ornaments, hero-with-kicker, quiet |
| 10 | +page rows with chips. Jobs shipped as a **dashboard**: 4-cell run-ledger, |
| 11 | +twin Settings/Outcome panels of monospaced key/value tiles, a redundant |
| 12 | +3-cell "impact" grid pinned to every row. |
| 13 | + |
| 14 | +The information was right; the visual register was wrong. This redesign keeps |
| 15 | +the data, swaps the register. |
| 16 | + |
| 17 | +## Design principles (held while redesigning) |
| 18 | + |
| 19 | +1. **Match the viewer's existing register.** Hero kicker + serif title + |
| 20 | + muted prose deck. Ornament where a section break needs weight. Chips for |
| 21 | + taxonomy, not for state. |
| 22 | +2. **One representation per fact.** The old detail page showed |
| 23 | + created/updated/archived in three places — strip, settings panel, outcome |
| 24 | + panel. Pick one. |
| 25 | +3. **Prose over grids.** "147 runs recorded — 3 active, 142 completed" |
| 26 | + reads better than a 4-tile stat grid, and matches the |
| 27 | + "{N} pages and {M} topics indexed" line on the overview page. |
| 28 | +4. **Group by day.** A run history is a logbook. Group rows under |
| 29 | + "Today / Yesterday / Mar 8" labels — that gives the page rhythm without |
| 30 | + filter chrome. |
| 31 | +5. **State as a dot, not a pill.** Pills are loud. A `●` glyph in |
| 32 | + sage/navy/burgundy + the word reads like an editorial mark. |
| 33 | +6. **Don't touch transcript internals.** The tool-card and chat-bubble work |
| 34 | + is fine; only the surrounding chrome (avatar, section heading) changes. |
| 35 | + |
| 36 | +## Concrete shape |
| 37 | + |
| 38 | +### List page |
| 39 | + |
| 40 | +``` |
| 41 | +[kicker] LEDGER |
| 42 | +[title] Run history |
| 43 | +[deck] 147 runs recorded in .almanac/runs — |
| 44 | + 3 active, 142 completed, 2 need attention. |
| 45 | +
|
| 46 | +──────── Today ──────── |
| 47 | + 14:32 absorb · claude / sonnet-4 |
| 48 | + {displayTitle} |
| 49 | + {displaySubtitle} |
| 50 | + ● Completed · +3 created, 2 updated · 3m 24s |
| 51 | +
|
| 52 | + 09:14 garden · claude / sonnet-4 |
| 53 | + ... |
| 54 | +
|
| 55 | +──────── Yesterday ──────── |
| 56 | + ... |
| 57 | +``` |
| 58 | + |
| 59 | +- Time column: `HH:MM` in mono, fixed width, left. |
| 60 | +- Kicker: `operation · provider / model` — small caps, accent color. |
| 61 | +- Title: serif, 18px. |
| 62 | +- Summary: muted, two-line clamp. |
| 63 | +- Tally line: dot + status word + impact (only non-zero counts) + elapsed. |
| 64 | + No chips here; chips are for taxonomy elsewhere. |
| 65 | + |
| 66 | +### Detail page |
| 67 | + |
| 68 | +``` |
| 69 | +[kicker] ABSORB |
| 70 | +[title] {displayTitle} |
| 71 | +[deck] {displaySubtitle} |
| 72 | +[chips] ● Completed claude · sonnet-4 3m 24s absorb-target |
| 73 | +
|
| 74 | +───────────── colophon ───────────── |
| 75 | + Started 2026-05-10 14:32 Created 3 |
| 76 | + Finished 2026-05-10 14:35 Updated 2 |
| 77 | + Provider claude / sonnet-4 Archived 0 |
| 78 | + Turns 4 Tokens 12,432 |
| 79 | + Cost $0.18 Log .almanac/runs/... |
| 80 | + Session {providerSessionId} |
| 81 | +
|
| 82 | +[if failure] |
| 83 | + Failure — {message} |
| 84 | + Fix — {fix} |
| 85 | +
|
| 86 | +[if targets] |
| 87 | + Targets |
| 88 | + {chips of paths} |
| 89 | +
|
| 90 | + ✥ |
| 91 | +
|
| 92 | +Transcript · {N} events |
| 93 | + ... |
| 94 | +``` |
| 95 | + |
| 96 | +- Colophon: one `<dl>`, two columns on wide screens, one column on narrow. |
| 97 | + Small-caps `dt`, serif `dd`, mono only when the value is a path/hash. |
| 98 | +- Failure: standalone callout with left border in accent; not a fact row. |
| 99 | +- Targets: chip row, separate section so it doesn't get lost in the dl. |
| 100 | +- Ornament `✥` divides above-fold metadata from the transcript, matching |
| 101 | + page header treatment elsewhere. |
| 102 | + |
| 103 | +## What I deliberately did NOT change |
| 104 | + |
| 105 | +- `jobs-transcript.js` parser and `buildTranscript` / `getToolCardModel`. |
| 106 | +- Tool card open/close, fact grid inside tool cards, code blocks. |
| 107 | +- API shape — pure frontend redesign. |
| 108 | +- Status taxonomy (queued / running / done / failed / cancelled / stale). |
| 109 | +- Color tokens. The dots reuse existing `--ca-accent`, `--ca-sage`, and a |
| 110 | + derived burgundy for failure. |
| 111 | + |
| 112 | +## Open questions for reviewer |
| 113 | + |
| 114 | +1. Is "LEDGER" the right kicker for the list page? Alternatives: "RUNS", |
| 115 | + "JOBS LOG". I chose "Ledger" because the viewer already uses words like |
| 116 | + "almanac" — "ledger" carries the same archival feel. |
| 117 | +2. The colophon two-column layout on the detail page — should it instead |
| 118 | + be a flowing definition list (one column, all the way down) for easier |
| 119 | + scanning? I picked two-column because the metadata count is high (10+ |
| 120 | + fields) and a single column scrolls past the fold. |
| 121 | +3. Day grouping uses **local time** of the user's browser. If a run |
| 122 | + crosses midnight UTC, the label is whatever the viewer's clock says. |
| 123 | + Acceptable for a local viewer; flagging in case it's not. |
| 124 | + |
| 125 | +## After-thoughts (filled in as work progresses) |
| 126 | + |
| 127 | +- _(to be appended)_ |
0 commit comments