From 870227100d024a5c502f696a3cd1e6dc16e77f39 Mon Sep 17 00:00:00 2001 From: Frederic Jung Date: Tue, 10 Nov 2026 07:56:26 +0000 Subject: [PATCH] Route fuzz: leave the link panel's header city links out of the buttons both pages offer They only change the view, and main's page has plain text there, so offering them would make the two pages diverge on a screen that routes the same. --- scripts/lib/fuzz-page.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/lib/fuzz-page.js b/scripts/lib/fuzz-page.js index 5b05a14..769b69c 100644 --- a/scripts/lib/fuzz-page.js +++ b/scripts/lib/fuzz-page.js @@ -56,7 +56,9 @@ const screen = (w) => { if (w.where === 'modal') return btns($('modal')); if (w.where === 'city') { UI.sel = { type: 'city', id: w.city }; UI.tab = w.tab; renderAll(); return btns($('panel')); } - if (w.where === 'link') { if (!S.links.some((l) => l.id === w.id)) return []; UI.sel = { type: 'link', id: w.id }; renderAll(); return btns($('panel')); } + // The city names in a link panel's header open the city (#196); older pages have plain text there. They only change + // the view, so neither page offers them, and both stay in lockstep. + if (w.where === 'link') { if (!S.links.some((l) => l.id === w.id)) return []; UI.sel = { type: 'link', id: w.id }; renderAll(); const P = $('panel'); for (const h of P.querySelectorAll('.ph h2 [data-act]')) h.removeAttribute('data-act'); return btns(P); } if (w.where === 'dash') { $('dash').hidden = false; UI.dtab = w.tab; renderDash(); const b = btns($('dash')); return b; } if (w.where === 'left') { UI.left = w.tab; UI.leftOpen = true; renderLeft(); let b = btns($('leftBody'));