Files
alzeo/dashboard/static/js
Hasan BasbunarandClaude Opus 5.5 5de8e7e262 cockpit: what the review of the put-away load window found
A code review of 681e25a found ten defects, all real, each with a test that fails on 681e25a:
- Under 1100 px the head hid the job button, the only way back to a load put away: it shows there
  now (.away), and under 720 px it takes at most a quarter of the screen, since the head's right
  side never shrinks (at 260 px it ran to 404 px on 375 and 393 px phones; touch-check taps it on
  three phones now).
- Image, video and Decide started while a load ran, and its next step could stop their lane: they
  refuse now, and busyWhy() names the load, so every control waits with its reason.
- A failure brought the window back with the focus on Retry: it goes to Cancel; brought back by the
  job button while the steps run, it goes to Hide (Go is disabled then).
- Under the menu or the image viewer a failure no longer brings the window back underneath them: a
  toast says what failed and the job button ("Load ...: a step failed") opens it.
- The job button opens the load's window only when the job it shows is the load's own, or between
  steps; another job (the autoheal belt, another browser) opens the dock as before.
- Closing or reloading the page while a load is put away asks first (not in a dry run).
- waitFor() counts a predicate that throws as not yet: a throw inside its timer left the promise
  pending and the load running for good; and an error in the chain stops it like a failed step.
- A new action or load closes a failed load left put away instead of replacing it silently.
- One helper per question (loadRunning, loadAway, reopenJourney, journeyChanged) instead of copies.

17 page checks (16 fail on v1.28.1) and 11 mutants of these fixes; 1019 page and server tests and
the four browser checks pass (touch 253/253).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:22:07 +02:00
..