← back to Commercialrealestate

5x/sweep-4.md

25 lines

# /5x — Sweep 4 (contrarian gate follow-up)
/contrarian returned NOT-CLEAN: validated my 2 dismissals as correct, but caught
that I scoped to only 3 touched pages while Steve's grid rule is "every grid".

Real gaps it found + fixed this sweep:
1. broker-grid.html — grid view had NO sort + NO density (twin of the mls bug).
   FIX: #sortsel (from COLS) + #density slider (--card-min 400→150), persisted,
   thead-sync. Verified: density visible, 372px@2 vs 178px@9, both persist, 0 err.
2. condos.html — had density (#cols) but NO sort. FIX: #csort select (Newest/
   Price↑↓/$SF/Year/HOA/Project/City) + sortRows() in apply(), persisted.
   Verified: re-orders rows (price↓ vs ↑ differ), persists across reload, 0 err.

Bonus real defect surfaced while verifying (PRE-EXISTING, A/B-proven against the
original file — not caused by my edit):
3. condos.html + graphics.html threw "1 JS error" = /favicon.ico 404. Root cause:
   both lacked the inline data-URI <link rel=icon> that the other 12 pages have,
   so Chrome fell back to requesting /favicon.ico (which the server 404s).
   FIX: added the inline icon link to both. condos M3 now 0 errors x2.

Gotcha logged: system Chrome (runner's engine) reports resource 404s as console
errors; bundled Chromium does not — why the bug only showed via the /3x runner.
Also fixed a TDZ risk: hoisted condos SORTKEY to top-level state.

All 6 touched pages: 0 JS errors. CLEAN.