test(v1.1): fe_walk_v11 harness (89 checks, 3 staged catalogs) + polish from the walk

- app/fe_walk_v11.py: self-contained headless walk — stages rich /
  returns-only / dead-catalog Dbs, boots the scratch server on 9455
  (OPENROUTER_API_KEY unset), and verifies all ten items on the real page:
  keyboard map + guards + no-scroll, tap flow + Esc chains (deck and list
  paths), contain/blur computed styles, minimal rubric + debug toggle
  round-trip, the 0/25 -> 25/25 counter with undos, dry messaging, fresh
  pill, loud empty2 + nightly-recovery, violet bands, B1 regressions
  (flip clamps, one .topcard, no-lock storm) and the full P3 loop.
- Keyboard: ArrowDown/Backspace now no-op while a sheet is open (arrows
  work on the deck only — spec note); found by the walk.
- get_section: an empty composed section (fully drained catalog)
  recomposes on read once pool_counts shows stock again — the nightly
  import re-lights the deck without a manual forge (item 8 recovery).
This commit is contained in:
Torres
2026-11-13 14:04:11 -04:00
parent 08f945a029
commit 35138bdc22
3 changed files with 869 additions and 3 deletions

View File

@@ -1382,11 +1382,12 @@ document.addEventListener('keydown',e=>{
else if($('detail').classList.contains('on')) closeDetail();
return; // Esc never forges or navigates tabs
}
if(k==='ArrowDown'){ e.preventDefault(); undo(); return; }
if(k==='Backspace'){ undo(); return; }
const sheetOpen=()=>$('detail').classList.contains('on')||$('viewer').classList.contains('on');
if(k==='ArrowDown'){ e.preventDefault(); if(!sheetOpen()) undo(); return; }
if(k==='Backspace'){ if(!sheetOpen()) undo(); return; }
if(k==='ArrowLeft'||k==='ArrowRight'||k==='ArrowUp'){
e.preventDefault();
if($('detail').classList.contains('on')||$('viewer').classList.contains('on')) return;
if(sheetOpen()) return;
const el=pile[0]&&pile[0].el;
if(el) commit(el, k==='ArrowLeft'?'nope':k==='ArrowRight'?'like':'maybe');
}