Files
pad/web/e2e
xarmian f7b2558196 fix(web): ESC closes the pane before its ItemDetail has loaded (BUG-3148) (#2053)
ItemDetail is imported on demand (TASK-2226), so a cold open shows the
PaneHost shell (.item-pane) before ItemDetail exists. The pane-close ESC
layer was registered by ItemDetail, so in that window the escape stack held
only the list-focus layer and ESC did nothing. Measured with
pane-a11y-focus :200's own steps at 4 workers: 14 of 20 runs had the stack
top at the list priority, and each of those failed to close; every passing
run had the pane layer on top and closed via replace-delete. That is the
:200 failure on #2046 (?item= still set at :222).

The shell now registers the pane-close layer for as long as it is mounted;
ItemDetail no longer does (PaneHost is its only embedded mount).

New e2e holds the ItemDetail chunk (found by a string only it contains),
presses ESC on the empty shell, and expects the pane to close: red on main
(?item= stays), green 5/5. Pane + escape e2e specs 71 passed; vitest
5684/5684; check 0 errors.

Claude-Session: https://claude.ai/code/session_01FAVXA5mJ5BNhKmv95jxQkQ
2026-10-11 05:30:53 -04:00
..