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
4.0 KiB55 linesraw

T02 · Overlay layering and dialogs

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

Goal

Menus open behind dialogs, some overlays show the page through them, opening a dialog shifts and clips the sidebar, and the dark-mode scrim lightens the page. Fix this once with a z-index scale, portalled popovers and a stable scrollbar gutter.

Files to change

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

  • src/styles/app.css (z-index tokens: base, sticky, sidebar, popover, dialog, dialog-popover, toast)
  • src/components/Popover.tsx and src/components/FloatingMenu.tsx (portal to body, layer above the open dialog)
  • src/components/ui.tsx (Dialog: opaque surface, scrim colour per theme, scroll lock without layout shift)
  • src/app/CommandPalette.tsx
  • src/screens/Setup.tsx (dialog max-height + internal scroll)
  • src/components/TaskEditor.tsx (Repeat dropdown)

Findings to fix (high and medium)

#SeverityStateIssueSuggested fix
1Hightasks-repeat-optionsRepeat dropdown opens but its options render behind the dialog (confirmed in capture QA) — can't pick a frequency by mouseportal the listbox above the dialog layer (z-index / top-layer)
2Highsetup-computerSetup dialog is see-through: the chat page ("What would you like to do?", suggestion cards, composer) shows through and overlaps the setup content. Either the entrance fade was captured mid-way or the "Translucent" surface setting applies to dialogsverify; dialogs always opaque (Transparency setting should not reach modal surfaces)
3Mediumnavigation-rename-chatOpening a dialog shifts the sidebar ~26px left, clipping its contents ("orkspaces", New chat button cut) — also in delete confirmationfix scrollbar-gutter compensation (scrollbar-gutter: stable on the scroll container, not padding on body)
4Mediumnavigation-command-paletteOpen state is see-through — chat content shows through the palette and is unreadable (search/empty states are opaque). Same pattern as Setupverify entrance animation vs. translucent surface; overlays must be opaque at first paint
5Mediumdark-*Dark-mode modal scrim is a light grey wash (#4a4a4a-ish) rather than a darkening overlay, so the page behind looks washed out and the dialog has little contrast against itscrim rgba(0,0,0,.55) in dark

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:

  • In the task editor, the Repeat dropdown opens above the dialog and an option can be picked with mouse and keyboard.
  • Opening any dialog does not move the sidebar (compare its x position before and after; use scrollbar-gutter: stable or compensate padding).
  • Setup and the command palette have opaque surfaces in both themes. First confirm the see-through look is not just a mid-animation capture; if it is, note that and skip.
  • Dark mode scrim darkens the page (e.g. rgba(0,0,0,.55)).
  • Setup fits a 1280×720 window with its own scroll area; the primary action stays visible.
  • 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/:

  • tasks-repeat-options-light.png
  • setup-computer-light.png
  • navigation-rename-chat-light.png
  • navigation-command-palette-light.png

Done when

  • All checks pass.
  • Commit on branch fix/t02-overlay-layering with message T02: Overlay layering and dialogs.
  • 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# T02 · Overlay layering and dialogs
2
3**Phase 1** · 5 findings (2 high, 3 medium, 0 low) · Depends on: nothing, can start now
4
5## Goal
6Menus open behind dialogs, some overlays show the page through them, opening a dialog shifts and clips the sidebar, and the dark-mode scrim lightens the page. Fix this once with a z-index scale, portalled popovers and a stable scrollbar gutter.
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/styles/app.css` (z-index tokens: base, sticky, sidebar, popover, dialog, dialog-popover, toast)
11- `src/components/Popover.tsx and src/components/FloatingMenu.tsx` (portal to body, layer above the open dialog)
12- `src/components/ui.tsx` (Dialog: opaque surface, scrim colour per theme, scroll lock without layout shift)
13- `src/app/CommandPalette.tsx`
14- `src/screens/Setup.tsx` (dialog max-height + internal scroll)
15- `src/components/TaskEditor.tsx` (Repeat dropdown)
16
17## Findings to fix (high and medium)
18| # | Severity | State | Issue | Suggested fix |
19|---|---|---|---|---|
20| 1 | High | `tasks-repeat-options` | Repeat dropdown opens but its options render behind the dialog (confirmed in capture QA) — can't pick a frequency by mouse | portal the listbox above the dialog layer (z-index / top-layer) |
21| 2 | High | `setup-computer` | Setup dialog is see-through: the chat page ("What would you like to do?", suggestion cards, composer) shows through and overlaps the setup content. Either the entrance fade was captured mid-way or the "Translucent" surface setting applies to dialogs | verify; dialogs always opaque (Transparency setting should not reach modal surfaces) |
22| 3 | Medium | `navigation-rename-chat` | Opening a dialog shifts the sidebar ~26px left, clipping its contents ("orkspaces", New chat button cut) — also in delete confirmation | fix scrollbar-gutter compensation (scrollbar-gutter: stable on the scroll container, not padding on body) |
23| 4 | Medium | `navigation-command-palette` | Open state is see-through — chat content shows through the palette and is unreadable (search/empty states are opaque). Same pattern as Setup | verify entrance animation vs. translucent surface; overlays must be opaque at first paint |
24| 5 | Medium | `dark-*` | Dark-mode modal scrim is a light grey wash (#4a4a4a-ish) rather than a darkening overlay, so the page behind looks washed out and the dialog has little contrast against it | scrim rgba(0,0,0,.55) in dark |
25
26## Optional polish (low)
27Do these only if the task is otherwise done and the budget allows.
28
29_None._
30
31## How to check
32Run these and fix anything that fails:
33- `npm run typecheck`
34- `node --test tests/` (all existing tests stay green)
35- `npm run check` (typecheck, UI audit, contrast, measure, luminance)
36- `npm run build`
37
38Task-specific checks:
39- [ ] In the task editor, the Repeat dropdown opens above the dialog and an option can be picked with mouse and keyboard.
40- [ ] Opening any dialog does not move the sidebar (compare its x position before and after; use scrollbar-gutter: stable or compensate padding).
41- [ ] Setup and the command palette have opaque surfaces in both themes. First confirm the see-through look is not just a mid-animation capture; if it is, note that and skip.
42- [ ] Dark mode scrim darkens the page (e.g. rgba(0,0,0,.55)).
43- [ ] Setup fits a 1280×720 window with its own scroll area; the primary action stays visible.
44- [ ] Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.
45
46Screens to re-capture and compare with the audit screenshots in `docs/evidence/audit-2026-10-07/`:
47- `tasks-repeat-options-light.png`
48- `setup-computer-light.png`
49- `navigation-rename-chat-light.png`
50- `navigation-command-palette-light.png`
51
52## Done when
53- All checks pass.
54- Commit on branch `fix/t02-overlay-layering` with message `T02: Overlay layering and dialogs`.
55- 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.