okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
2.2 KiB43 linesraw

T06 · Fix the response hover layout

Phase 1 · 1 findings (1 high, 0 medium, 0 low) · Depends on: nothing, can start now

Goal

Hovering a reply opens a side column about 20px wide, its text wraps one character per line, and the code block is pushed out of view. Message actions must never change layout.

Files to change

These are the likely files. Read them before editing, and change others only if the fix needs it.

  • src/screens/Chat.tsx (message actions)
  • src/styles/app.css
  • src/components/Markdown.tsx (only if the code block width is involved)

Findings to fix (high and medium)

#SeverityStateIssueSuggested fix
1Highchat-response-actionsLAYOUT BUG: hovering a response opens a ~20px side column; its meta text ("…tok/s · 4.2s") wraps one character per line and the code block is pushed left/clipped ("rt function", "turn notes")actions row horizontal under the message, absolutely positioned; never reflow content

Optional polish (low)

Do these only if the task is otherwise done and the budget allows.

None.

How to check

Run these and fix anything that fails:

  • npm run typecheck
  • node --test tests/ (all existing tests stay green)
  • npm run check (typecheck, UI audit, contrast, measure, luminance)
  • npm run build

Task-specific checks:

  • Hovering or focusing a reply shows the actions in a row under the message, without moving any content (measure the message bounding box before and after hover; it must be identical).
  • Meta text ("tok/s · 4.2s") sits on one line.
  • Works with the keyboard (focus-within) and on touch (always visible on narrow screens).
  • Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.

Screens to re-capture and compare with the audit screenshots in docs/evidence/audit-2026-10-07/:

  • chat-response-actions-light.png

Done when

  • All checks pass.
  • Commit on branch fix/t06-response-hover with message T06: Fix the response hover layout.
  • Append a short entry to audit-fixes/PROGRESS.md: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.
1# T06 · Fix the response hover layout
2
3**Phase 1** · 1 findings (1 high, 0 medium, 0 low) · Depends on: nothing, can start now
4
5## Goal
6Hovering a reply opens a side column about 20px wide, its text wraps one character per line, and the code block is pushed out of view. Message actions must never change layout.
7
8## Files to change
9These are the likely files. Read them before editing, and change others only if the fix needs it.
10- `src/screens/Chat.tsx` (message actions)
11- `src/styles/app.css`
12- `src/components/Markdown.tsx` (only if the code block width is involved)
13
14## Findings to fix (high and medium)
15| # | Severity | State | Issue | Suggested fix |
16|---|---|---|---|---|
17| 1 | High | `chat-response-actions` | LAYOUT BUG: hovering a response opens a ~20px side column; its meta text ("…tok/s · 4.2s") wraps one character per line and the code block is pushed left/clipped ("rt function", "turn notes") | actions row horizontal under the message, absolutely positioned; never reflow content |
18
19## Optional polish (low)
20Do these only if the task is otherwise done and the budget allows.
21
22_None._
23
24## How to check
25Run these and fix anything that fails:
26- `npm run typecheck`
27- `node --test tests/` (all existing tests stay green)
28- `npm run check` (typecheck, UI audit, contrast, measure, luminance)
29- `npm run build`
30
31Task-specific checks:
32- [ ] Hovering or focusing a reply shows the actions in a row under the message, without moving any content (measure the message bounding box before and after hover; it must be identical).
33- [ ] Meta text ("tok/s · 4.2s") sits on one line.
34- [ ] Works with the keyboard (focus-within) and on touch (always visible on narrow screens).
35- [ ] Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.
36
37Screens to re-capture and compare with the audit screenshots in `docs/evidence/audit-2026-10-07/`:
38- `chat-response-actions-light.png`
39
40## Done when
41- All checks pass.
42- Commit on branch `fix/t06-response-hover` with message `T06: Fix the response hover layout`.
43- Append a short entry to `audit-fixes/PROGRESS.md`: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.