Conversation and Author screens styled to match; glyph policy chosen from measurement

This commit is contained in:
Sam
2026-11-10 14:18:33 +11:00
parent 4e3c955350
commit 031073fc46
13 changed files with 755 additions and 240 deletions

View File

@@ -246,3 +246,106 @@ I build the Board workspace first, and the visual language with it — frame, fo
- session: [[packs/paperclip-harness/80-sessions/rich-discovery-etc-2026-11-10-02-26-18|Rich discovery: etc 2026-11-10 02:26:18]]
- context: [[packs/paperclip-harness/20-context/home|etc]]
- observation: [[packs/paperclip-harness/60-observations/tmp-repository-structure-and-configuration-patterns|etc repository structure and configuration patterns]]
---
## Update (2026-11-10 03:01:16)
Bugs found and fixed in paperclip-harness (committed 4e3c955):
- If the worktree folder was removed, `git rev-parse --abbrev-ref HEAD` returns exit status 128; the change tab now says "the task's folder … no longer exists" instead of showing raw exit code.
- Table columns looked ragged because styled text was being padded by bytes. Rule: pad plain text first, apply colour after.
Caution on tuios set-config: `tuios set-config theme catppuccin_mocha` fails with "set_config came from host nixos-desktop and would change this machine, not the session". Using it on the live session risks changing the machine config rather than the session. Set `theme` in `~/.config/tuios/config.toml` instead; new sessions pick it up, but the running session needs a restart.
Screenshots saved: `/tmp/mockups/board-live.png`, `/tmp/mockups/work-live.png`.
Other note: the font rebuild is still the user's to run: `sudo nixos-rebuild switch --flake /etc/nixos#nixos-desktop`.
## Evidence
- Confidence: 80%
- Reason: Concrete discoveries/pitfalls for future agents.
---
## Update (2026-11-10 03:01:16)
## Structural/configuration observations (2026-11-10 03:01:16)
Three things answered, and the Work workspace is built.
## Vim keys: yes, as aliases
`j` and `k` now move in both the Board and Work screens, and `h` and `l` switch tabs. They are aliases, not the primary keys, because whether they reach the program depends on TUIOS's mode: in window-management mode TUIOS keeps `h j k l z n`, and in terminal mode the program gets them. Use whichever arrives, and the footer says `↑↓ or j k` so nobody has to guess. Arrow keys stay the primary path.
## The theme confusion, cleared up
You changed something and it worked; I checked the wrong thing. `tuios look` is a saved *appearance bundle*, and "no look is applied" says nothing about the theme. The real answer was in `~/.config/tuios/config.toml`:
```
theme = ''
```
So the config had no theme, which is why this session's chrome looked default. I have now set it:
```
theme = 'catppuccin_mocha'
```
New sessions pick it up. The running one needs a restart, and `tuios set-config theme catppuccin_mocha` refused with *"set_config came from host nixos-desktop and would change this machine, not the session"*, so I left that alone rather than fight it. Our program is drawn in Catppuccin Mocha with a Latte variant (`-theme light`), so once the session restarts the chrome and the panels will match.
## Styling changes
- The board now reads at a glance: group headings are a label, a rule and a count (`DONE───────── 6`), rows are two lines, content sits one column inside the frame.
- Three-column layout above 140 columns (tasks, chosen task, needs you), two columns below, so a wide terminal is used instead of wasted.
- The Work screen has a tab bar, coloured run states, and diff lines coloured by kind — additions green, deletions red, hunk headers blue.
- The footer shows only keys that apply in the current panel, and focus is a rounded bright edge plus `·focus·`.
## Work workspace
One screen, three tabs, tested on real data:
- **runs** — a column table of every run with what woke it, start, end and duration, then the activity list with times in local time.
- **change** — the task's worktree, branch, base, commits, changed-file counts, then the diff.
- **facts** — folder, branch, base, status and cost.
It follows the Board without being told: the chosen task lives in the project's `.harness/harness.toml`, and the Work panel re-reads it every five seconds. I watched it switch from `AUD-160` to `AUD-165` after only that file changed, then show `520bc2d AUD-165: add cleanup.sh` and the actual diff.
Two real bugs found by using it: a git that fails because the folder was removed now says *"the task's folder … no longer exists"* instead of a raw exit code, and a table whose columns were ragged because styled text was being padded by bytes — pad the plain text first, colour it second.
Screenshots: `/tmp/mockups/board-live.png` and `/tmp/mockups/work-live.png`. Committed as `4e3c955`.
## Still to do
The reply and new-task panels still use the older plain look — they need the same frame, tab bar and footer before the set is consistent. That is the next piece, and it is small because the frame already exists.
And the font rebuild is still yours to run:
```
sudo nixos-rebuild switch --flake /etc/nixos#nixos-desktop
```
## Source paths observed
- `home/sam/paseo/projects/paperclip-harness/bin/harness`
- `tmp/pc-sandbox-2026-11-10/.paperclip/worktrees/AUD-165-review-gate-pro`
- `tmp/pc-sandbox-2026-11-10/.paperclip/worktrees/AUD-165-review-gate-`
- `tmp/mockups/C.png`
- `tmp/mockups/work-live.png`
- `.config/tuios/config.toml`
- `tmp/mockups/board-live.png`
## Evidence
- Confidence: 82%
- Reason: Captured factual repo structure/configuration patterns from rich discovery
## Related learned memories <!-- same-turn-2026-11-10 03:01:16 -->
- context: [[packs/paperclip-harness/20-context/home|paperclip-harness TUI harness]]
- observation: [[packs/paperclip-harness/60-observations/tmp-repository-structure-and-configuration-patterns|Harness pitfalls: git failure, styled-text padding, tuios set-config]]
- action: [[packs/paperclip-harness/40-actions/2026-11-10-wrote-docs-ui-layout-md-and-three-live-layout-mockups|Built Work workspace and polished Board styling (4e3c955)]]
- session: [[packs/paperclip-harness/80-sessions/rich-discovery-config-2026-11-10-03-01-16|Rich discovery: .config 2026-11-10 03:01:16]]
- context: [[packs/paperclip-harness/20-context/tmp|.config]]