Skip to content

fix(live): the controls panel never covers the map buttons, shorter area notice (#1055) - #1092

Open
dborup wants to merge 6 commits into
masterfrom
fix/live-panel-covers-map-buttons
Open

dborup wants to merge 6 commits into
masterfrom
fix/live-panel-covers-map-buttons

Conversation

@dborup

@dborup dborup commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Relates to #1055

Status: Ready for review. The panel no longer covers any map button at 1920×870, 1280×800, 768×1024, 375×560 or 360×640 (the last two with touch), in light and dark. The area notice is one line naming the area rule (#1055 M3), with the full text under "why?". A DAGI selection adds at most one row, with M3's rule selector shown. This branch has master merged in (with #1087 M3) and folds in the #1087 review nits N1–N5.

Evidence: [T] a test run on this branch, [A] analysis of code or layout, [K] a known issue, either pre-existing or caused by this machine.

Problem

Owner report (staging, desktop about 2000×870, Live with "Kommune: Aarhus"): the open MESH LIVE panel spans the full width and covers the right-hand map buttons. The top button of that column, zoom-in, is hidden under the panel. The Area/DAGI notice runs to several lines and makes the panel taller.

Reproduced on master [T]:

  • At 1920×870 and 1280×800 the panel covers .leaflet-control-zoom-in, with or without a selection.
  • At 1920 the notice takes a row of its own and pushes "Color by scope" onto another, so the panel grows by 41 px.
  • At 1280 the tall bottom-right legend grows up beneath the panel and covers its right end.

The #1087 review (N2) then measured that M3's selector takes a 48 px row of its own on phones: +56 px at 360×640.

Plan and choices

  1. Reserve the button column, sized by measurement. live.js measures the column from the page's right edge to its leftmost shown control and publishes --live-map-rail. The width includes the 6 px gap the panel has kept since Live (mobile): expanded controls panel covers the gear toggle, panel cannot be closed #664. The column is zoom, layers, Fullscreen, Settings and Legend, or a row in short landscape.
    • The panel uses this reserve above 640 px. At ≤ 768 px and in short landscape it uses it while expanded, as before.
    • The hard-coded 68/312/250 px rails are gone. A ResizeObserver re-measures the column. An open layers list does not count as part of the column.
  2. A legend in a bottom corner stops under the panel (--live-panel-bottom). The legend scrolls internally, as it already does in a short window.
  3. A one-line notice that names the rule. It reads "From the area: adverts only · 18 nodes not on map why?", or "Touches the area: any type · …" under Touches. It sits at the start of the "Color by scope / Scoped only" row.
    • The full text is the line's title and opens under "why?". It is M3's wording, unchanged: ScopeMemberFilter.advertsOnlyNotice plus DagiFilter.hiddenNotice.
    • The short strings are shared helpers next to those: ScopeMemberFilter.advertsOnlyShort, which takes the rule labels from M3's RULE_LABELS, and DagiFilter.hiddenShort. They are short enough that the line plus "why?" fits a 360 px phone under both rules.
  4. M3's selector on phones (feat(live): the "Touches the area" rule on Live (#1055 M3) #1087 review N2). At ≤ 640 px the DAGI control and the selector share one row (.live-dagi-rule; display: contents above 640 px).
    • The radios show "From" / "Touches". Their aria-label keeps the full name, and the notice names the rule in full.
    • If space runs out, the DAGI label shortens with an ellipsis before the selector wraps.
  5. The selector follows the radio keyboard pattern (feat(live): the "Touches the area" rule on Live (#1055 M3) #1087 review N3). It uses roving tabindex. The arrow keys check and focus the next radio, wrapping around.
  6. A capped panel also stops above the map credit where the credit lies under it on a phone. This holds only while Live (landscape 641–768px): capped panel scroll box only 43–83px #672's 150 px minimum scroll box remains. In short landscape, reaching the controls wins.
  7. Collapse state. The controls' open/closed state was already saved (live-controls-expanded, The Mesh Live and Map Filters window has a large area of wasted space and obstructs the fireworks (packet) view Kpa-clawbot/CoreScope#1532). It is now pinned by a test.

I chose these over folding rows behind a "more" toggle because they are the smallest change that meets the bound without hiding any control.

Requirements, tests and mutants

test-issue-1055-live-panel-e2e.js runs on its own Go server through the shared #1055 harness (tests/e2e-1055-live.js), with the M2 seed and test area AARHUS. It covers 5 sizes × light/dark (375×560 and 360×640 with touch). Each size runs with no selection, Area only, Kommune Aarhus, and Aarhus + Area. The suite is in scripts/e2e-shards.json (shard 2). node scripts/run-e2e-shard.js --validate passes: 319 suites [T].

# Requirement Test Mutants
1 The panel never overlaps the right-hand button column, the VCR bar, the credit or the legend; every map button is clickable E2E "the panel clears every map button and bar; each button is clickable": bounding boxes against every .leaflet-control link or button, #vcrBar buttons, #feedShowBtn, the bar, the credit and the legend, plus elementFromPoint at each button's centre. Checked again with the explanation open. Master fails at 1920 and 1280 [T] A, A2, B killed [T] (earlier round)
2 One-line notice naming the rule and the count, under From and Touches; "why?" on the same line; explanation reachable; same wording source as Packets E2E "the notice is one line …, under From and Touches"; E2E "why?" opens and closes. Unit: advertsOnlyShort for each state and rule, which agrees with advertsOnlyNotice on when there is a notice; hiddenShort; the Live notice's parts C, D killed [T] (earlier round)
3 The selector is hidden with no filter (computed display) and shown with one; it is clickable; at ≤ 640 px it is on the DAGI row with short labels E2E (panel, every size and theme; M3 after the clear); unit CSS check. The unit CSS check is red on the merge commit [T]. The E2E row check would be red there too: the before probe put the selector at y 336 and the DAGI trigger at y 280 at 375×560 [A] MuF (from the review) caught by the display assertions [A]
4 A DAGI selection, with the selector shown, adds at most one row; the collapse state is remembered E2E "with the selector shown, the controls grow by at most one row" (children's boxes; one row is the tallest of the notice line, the DAGI trigger and the selector, plus the gap); E2E reload E, F killed [T] (earlier round)
5 Radio keyboard pattern Unit: tabindex, the keys, wrapping, other keys ignored. M3 E2E: Tab lands on the checked radio, the arrows, Tab and Shift+Tab, Space Red on the merge commit [T]

Controls height with a DAGI selection, with the selector shown, in px (children's boxes) [T]:

Size DAGI vs none Area + DAGI vs Area only One row
1920×870 48 → 86 (+38) 86 → 86 (+0) 38
1280×800 86 → 103 (+17) 103 → 103 (+0) 38
768×1024 125 → 142 (+17) 142 → 163 (+21) 38
375×560 touch 306 → 323 (+17) 381 → 379 (−2) 56
360×640 touch 293 → 329 (+36) 387 → 385 (−2) 56

On the merge commit, before the N2 fix, the phones grew by +73 px at 375×560 and +103 px at 360×640, measured with scrollHeight.

Other suites run on this branch

Invariants

  • No Go diff; cmd/server stays read-only [T].
  • No new map[string]interface{} [T].
  • No hard-coded colours [T].
  • No .github diff; the fork guards are unchanged [T].
  • Perf: the rail and cap trackers read a few boxes in a coalesced requestAnimationFrame, on resize only, never per packet. The arrow-key handler runs per key press. The notice renders only on a selection or rule change [A].

Screenshots

Before (the merge commit) and after (this head), at 1920×870, 1280×800, 768×1024, 375×560 and 360×640 with Kommune Aarhus and the selector visible. The after set includes Touches. The E2E's own light and dark shots are attached separately.

Remaining

  • [K] A legend or feed moved to the top-right corner (data-position="tr") still sits at top 64 px over the right end of an open panel. This was the case before too.
  • [K] Under Touches, live and rebuilt views can differ when Area and DAGI are each touched only by different observations (feat(live): the "Touches the area" rule on Live (#1055 M3) #1087 review N4). This is documented in the code.
  • [A] Customizer: the 6 px panel–column gap, the 640 px phone row and the one-row bound are layout constants, not user settings.

🤖 Generated with Claude Code

dborup and others added 6 commits December 2, 2026 12:56
)

Owner report: with "Kommune: Aarhus" selected, the open MESH LIVE panel
spans the full width and hides the zoom buttons, and its notice adds two
rows. The new E2E checks, at 1920x870, 1280x800, 768x1024 and 375x560 in
light and dark, that the panel meets no map button, bar or legend, that
the notice is one line with a "why?" explanation, and that a DAGI
selection adds at most one row. The unit tests pin the shared short
strings and the notice's parts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rea notice (#1055)

- The panel stops short of the right-hand map button column at the
  column's measured width (--live-map-rail, from live.js), at every width
  where they share a band; the hard-coded 68/312/250px rails are gone.
  The 6px gap #664 kept is unchanged.
- A legend in a bottom corner stops under the panel (--live-panel-bottom)
  instead of growing beneath it and hiding its right end.
- The Area/DAGI notice is one line ("Adverts only · 18 nodes without
  position") at the start of the scope row, so a selection adds no row of
  its own. The Packets wording (advertsOnlyNotice + hiddenNotice) is the
  line's title and opens under "why?". The short strings are shared
  helpers: ScopeMemberFilter.advertsOnlyShort, DagiFilter.hiddenShort.
- The M2 E2E reads the full text from the explanation; #664 and #875 pin
  the measured rail instead of the old constants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A CSS hex escape ends at one following space, so " \00b7 " rendered as
"Adverts only ·18 nodes"; a second space keeps "· 18 nodes".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #1087 (the "From the area / Touches the area" selector on
Live). Conflicts resolved so both hold:
- live.css: the one-line notice rules and M3's #liveAreaRule rules.
- live.js: the notice's parts (rule, count, why?) and M3's
  renderAreaRule/setLiveAreaRule/wireAreaRule; the selector stays
  after the DAGI control, the notice in the scope row.
- scope-member-filter.js: advertsOnlyShort names the active rule with
  M3's labels ("From the area: adverts only", "Touches the area: any
  packet type"); both export sets kept.
- e2e-shards.json: both new suites.
- Tests: the notice's full text is #liveScopeWhy (M2/M3 E2E, the
  shared harness's notice(), M3's unit DOM stub); the unit tests
  expect the rule in the one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- N1: the area rule selector must be hidden by its computed display
  with no filter (M3 E2E after the clear, the panel E2E with no
  selection), and the CSS keeps its [hidden] rule (unit).
- N2: the panel E2E runs 375x560 and 360x640 with touch; at 640 px and
  below the selector shares the DAGI control's row with short labels,
  and a selection with the selector shown grows the controls by at
  most one row (children's boxes, not scrollHeight, which counts the
  48 px hit areas; no own-row allowance any more). The notice line is
  checked under Touches too, with "why?" on the same line, and the
  open explanation must not reach the map credit.
- N3: roving tabindex and the arrow keys (unit and M3 E2E); the
  listener check expects the selector's click and keydown.
- N5: the M2 phone step waits for the debounced DAGI search to apply
  before it picks Aarhus (right after fill() the row is still in the
  unfiltered list, y 4602, and moves to y 216), and tapInPlace waits
  for its control to hold still for three frames as the element at
  its centre. No fixed sleeps.
- The notice's short texts: "From the area: adverts only",
  "Touches the area: any type", "N nodes not on map".
- The panel suite uses the shared #1055 harness (tests/e2e-1055-live.js);
  tests/e2e-1055-live-server.js, a copy of it, is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1055)

Review of #1087 (N2-N4) on the panel branch:
- N2: on 640 px and below the DAGI control and the area rule selector
  share one row (.live-dagi-rule, display: contents above 640 px): the
  radios show "From" / "Touches" (aria-label keeps the full name) and
  the DAGI label ellipsizes before the selector would wrap. A DAGI
  selection now grows the phone panel by 17 px at 375x560 (was 73)
  and 36 px at 360x640 (was 103).
- The one-line notice names the rule and fits 360 px under both
  rules: "Touches the area: any type", "N nodes not on map".
- A capped panel also stops above the map credit where the credit is
  under it, unless that leaves less than #672's 150 px scroll box.
- N3: roving tabindex (only the checked radio is a Tab stop) and the
  arrow keys check and focus the next radio, wrapping.
- N4: a comment on live (per observation) vs rebuilt (per group)
  judgement under Touches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dborup
dborup marked this pull request as ready for review December 2, 2026 18:13
@dborup

dborup commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Fix round — CS-VM2 PR#1092

Branch fix/live-panel-covers-map-buttons. The PR head was 5367a3c0; the branch is now 873fbb8d.

Evidence tags: [T] tested here, [A] analysis or judgement, [K] a known issue, either pre-existing or caused by this machine.

Review feedback addressed (commit 873fbb8d)

  1. Merged origin/master (b7db1738, which includes feat(live): the "Touches the area" rule on Live (#1055 M3) #1087 M3 6e49b0d1) with a merge commit, c44ea70c. There was no rebase and no force-push. Six files conflicted: live.css, live.js, scope-member-filter.js, e2e-shards.json, test-1055-live-dagi.js and the M2 E2E. Both sides now hold:
    • The panel rules are kept.
    • M3's selector #liveAreaRule, its rule switch and the full notice text (the source of M3's wording, ending "Rule: From the area.") are kept. That full text is the explanation under "why?".
    • The one-line notice now names the active rule, using M3's labels (RULE_LABELS) in ScopeMemberFilter.advertsOnlyShort. It reads "From the area: adverts only · 18 nodes not on map why?" or "Touches the area: any type · …".
    • The shared Live: DAGI area filter (kommune, landsdel, region, postnummer) — measure the cost first #1055 harness's notice(), M3's unit DOM stub and one M3 E2E line now read the full text from #liveScopeWhy.
  2. N1: the selector must be hidden on screen, not only by its attribute.
    • M3 E2E, after the filter is cleared: getComputedStyle(#liveAreaRule).display === 'none' and isVisible() === false.
    • Panel E2E, "no selection" at every size and theme: the same checks.
    • Unit: the CSS keeps .live-controls-body .live-area-rule[hidden] { display: none; }.
    • The reviewer's mutant MuF deletes that CSS rule. All three checks fail against it [A]. I did not re-run MuF itself.
  3. N2: the selector adds no row on phones.
    • At ≤ 640 px, the DAGI control and the selector share one row in a new wrapper, .live-dagi-rule. Above 640 px the wrapper is display: contents, so desktop layout is unchanged.
    • On phones the radios show "From" / "Touches". Their aria-label keeps the full name, and the notice line names the rule in full.
    • If space runs out, the DAGI label shortens with an ellipsis before the selector wraps.
    • The notice's short texts are shorter so that the line plus "why?" fits 360 px under both rules: "any type", "N nodes not on map".
    • The panel E2E now runs 375×560 and 360×640 with touch (48 px controls). At ≤ 640 px it asserts that the selector sits on the DAGI row with the short labels. It asserts that a selection, with the selector shown, grows the controls by at most one row. The own-row allowance is gone. Height is now measured from the children's boxes, because scrollHeight also counted the 48 px ::after hit areas.
    • Measured: at 375×560 a DAGI selection adds +73 px before this fix and +17 px after. At 360×640 it adds +103 px before and +36 px after. One row is 56 px [T]. The "before" figures are scrollHeight on the merge commit; the "after" figures are the E2E's box measure.
    • The touch runs exposed one more overlap. At 375×560 with Area + DAGI and "why?" open, the capped panel reached the two-line map credit. The cap (Live (mobile): tall controls panel overflows the viewport and cannot scroll #667) now also stops above the credit where it lies under the panel, but only while Live (landscape 641–768px): capped panel scroll box only 43–83px #672's 150 px minimum scroll box still holds. In short landscape, reaching the controls wins, and Live (landscape 641–768px): capped panel scroll box only 43–83px #672's 640×320 reserve stays at 112 px [T].
  4. N3: the radio keyboard pattern.
    • Roving tabindex: only the checked radio is a Tab stop.
    • ArrowLeft/Up and ArrowRight/Down check and focus the next radio, wrapping around.
    • Space and Enter click the focused radio.
    • Tests: two unit tests cover tabindex, the keys, wrapping, other keys and keys on the group itself. A new M3 E2E step covers Tab from the DAGI clear (it lands on the checked radio), the arrows, Tab and Shift+Tab, and Space. The M3 listener-leak check now expects click,keydown on the selector.
  5. N4: I added a comment to passesLiveMemberFilters. It explains that under Touches a WS observation is judged alone, while rebuildFeedList judges the whole hash group. A transmission whose Area and DAGI are touched only by different observations therefore shows after a rebuild but not live.
  6. N5: the M2 phone option tap. The cause is now proven by a probe [T]:
    • Right after fill('aar'), the test found Aarhus in the unfiltered list at y 4602.
    • The 100 ms debounced search then moves it to y 216.
    • A tap that lands in between misses the row, which gave the "covered at its centre" failure.
    • The fix: the step now waits for the search to apply (the tab row goes hidden) before it picks the row.
    • The shared tapInPlace now also waits, frame by frame, until its control holds still for three frames and is the element at its own centre. It has a bound and uses no fixed sleeps.
    • M2 E2E: 6/6 green afterwards [T].
  7. Cleanup and DRY:
    • The panel suite now uses M3's shared harness tests/e2e-1055-live.js. My copy, tests/e2e-1055-live-server.js, is deleted.
    • The shard note for the panel suite is updated: meanSeconds 270, 9 min locally.

Commits on the branch: c44ea70c (merge), e52bcca0 (tests, red on the merge commit), 873fbb8d (fix).

Checks

Check Result
Panel E2E test-issue-1055-live-panel-e2e.js, 5 sizes × light/dark 131/131 (545 s) [T]. After the final CSS move, re-run at 375×560 and 360×640: 53/53 [T]. A first full run before the credit fix had 129/131 (the two credit overlaps above)
M3 E2E test-issue-1055-m3-area-rule-e2e.js 5/5 green with the final test (runs 5–9) [T]. Runs 1–4 failed only on the old one-listener assertion, which N3 makes obsolete; their other 10 steps were green
M2 E2E test-issue-1055-m2-live-dagi-e2e.js 6/6 green, 14/14 steps each [T]
Unit tests: the new N1/N2/N3 tests and the short-text tests red on c44ea70c, green on 873fbb8d [T]
node test-frontend-helpers.js 746 passed, 0 failed [T]
node scripts/run-e2e-shard.js --validate exit 0, 319 suites [T]
sh test-all.sh 398 passed, 10 failed of 408 files [T]. One failure was mine: the Kpa-clawbot#1532 CSS check reads the text before the first @media, and my new media block sat ahead of the .is-collapsed rule. I moved the block and Kpa-clawbot#1532 now passes 15/15. The other 9 [K] are timing bounds and fail the same way on pristine origin/master on the test machine: heard-filter, scope-color, 724, 728, 941, 730, 598, 1055-live-dagi (30k median about 150–280 ms against 100 ms) and 1055-m3-area-rule (64-hop median about 360–660 ms against 300 ms). This test machine is slow: Set.has takes about 185 ns
Cap suites against a CI-like local server (fixture freshened, inline SQL, migrated, four seeds) #670 25/25, #671 10/10, #672 24/24 (the first run timed out once on a load wait, the rerun was green), #998 17/17, #664 36/36, #875 all passed [T]
#667 [K] 4 failures (node detail at 780×380 and 800×400). Pristine origin/master gets the same 3–4 failures on the test machine in 3 runs
bash scripts/check-xss-sinks.sh --diff origin/master clean, exit 0 [T]
cmd/ and .github/ diff, map[string]interface{}, hex colours none [T]

Screenshots

All under ~/out/fix-1092-shots/:

  • before/<w>x<h>-dagi.png: the merge commit c44ea70c with Kommune Aarhus and the selector visible, light theme, at 1920×870, 1280×800, 768×1024, 375×560 and 360×640. The phones use touch.
  • after/<w>x<h>-dagi.png and after/<w>x<h>-dagi-touches.png: the same probe on the fix.
  • panel-after/: the panel E2E's own shots, light and dark, for DAGI, Area + DAGI and Touches.

Logs are in ~/out/fix-1092-logs/.

Not verified

  • No real device or iOS Safari. Phones were checked in Chromium with touch emulation.
  • No screen-reader run for the radio pattern. It is checked through keyboard and DOM only.
  • MuF was not re-run as a mutant. N1 is shown by the assertions plus analysis.
  • A very long DAGI name next to the selector at ≤ 640 px is handled by the trigger's ellipsis [A]. I did not screenshot it.

@dborup

dborup commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Review — CS-MacBook PR#1092 — head 873fbb8

Dom: REQUEST CHANGES

The panel fix works. No map button is covered at any of the five sizes, in light or dark. M3 survived the merge, and N1, N3, N4 and N5 are done. One requirement of the PR is not met with Apple's system font: the "one-line notice with why? on the same line" (requirement 2). With -apple-system (SF), "why?" wraps to a second line at 360×640, and at 375×560 in WebKit, which is the iPhone-Safari engine. Because of this the panel E2E is red on macOS: 6 of 131 steps fail, the same in both themes. CI on Linux fonts will not catch it.

Evidence tags: [T] tested here, [A] analysis of code or layout, [K] a known or pre-existing issue, or one caused by this machine.

Trees: master b7db1738 is an ancestor of head, so the merged tree (git merge-tree) equals head's tree 6cc78696 [T]. Everything below ran on a git archive of head in scratch, with a server built from it. The E2E fixture was prepared as in CI: freshen, the inline seed SQL, corescope-migrate, then the 2073, 199, 245 and 122 seeds. git ls-remote showed head 873fbb8d before and after the review [T].

Findings

# Severity Finding Evidence
F1 must fix With SF, the one-line notice is two lines. .live-scope-notice uses flex-wrap: wrap, so why? wraps before the line's ellipsis can take effect. The text budget fits Arial/Liberation metrics: the line is 225 px there and 243 px in SF. The notice box is 262 px wide at 360 and 274 px at 375. Results by engine, font, size and count (the fixture count is 28):
• Chromium SF 360×640: wraps with every count.
• WebKit SF 375×560: wraps with every count. In the cold-start tap flow the line reads "Touches the area: any type · 28 nodes not on map", with why? on its own line below.
• Chromium SF 375×560: fits 28, wraps at 3 digits.
• Arial 360×640: wraps at 4 digits.
The hidden-node count counts all nodes with no position, so 3 digits is realistic on a real instance [A]. Panel E2E on macOS: "why?" wrapped: 407,419 at 360×640 for dagi and dagi+area, in light and dark (4 steps). Suggested fix: keep the line and why? in one non-wrapping row, with the line shrinking to its ellipsis and the explanation as its own row below. Test it with a long count (stub DagiFilter.hiddenCount to 1234, for example), so the check depends on neither the fixture count nor the CI font.
[T] probe + E2E
F2 minor At 375×560 with Area + DAGI in SF, the selector sits under the capped panel's fold. The panel E2E step "the area rule selector is shown and clickable" fails: from is covered at its centre {"y":401,"h":48}, where the body's visible bottom is 423. That is 2 steps, light and dark. In the real tap flow, Chromium and WebKit both scroll the panel by 19–28 px to reach the DAGI trigger. After a pick the notice is below the fold until the panel is scrolled. This is the #667 cap working as designed, and every control is reachable. But the E2E assumes it is all visible without a scroll, which only holds with the CI font. Either scroll in the test, or make that assertion explicit about the cap. [T]
F3 nit (test gap) The ≤ 640 px shared row survives as a mutant. MuW disables .live-dagi-rule:has(...) {display:flex…}, and the panel E2E still passes the row check at 360×640, because "Kommune: Aarhus" is short. Head with Ringkøbing-Skjern (0760) or Lyngby-Taarbæk (0173): the selector stays on the DAGI row and the trigger shortens to 110 px with an ellipsis. Under MuW: the selector drops to its own row, at both 360 and 375. Add one long-name case. [T]
F4 nit (a11y) The why? hit area is 24 px (a 12 px box plus a 24 px ::after), also with touch. The other panel controls are 48 px under pointer: coarse. That meets WCAG 2.5.8 (24 px) but not the house touch size. [T] measured, [A]
F5 info The explanation's open state is not reset when the filter is cleared: renderLiveScopeNotice hides only the container. After a clear and a new pick it reappears open, with aria-expanded="true". It is harmless and arguably intended. [A] code only
K1 pre-existing Leaving Live (a tap on Packets) during a zoom transition gives a Leaflet page error, Cannot read properties of undefined (reading '_leaflet_pos') from _onZoomTransitionEnd. It shows after the flow Area + DAGI + Touches + zoom + reload. The same flow on origin/master gives the same error, 3 of 3 runs on each. [T] [K]
K2 pre-existing The Area menu rows are 27–28 px tall on touch, below 44 px. That is outside this PR. [T] [K]

Answers to the review points

  • The merge kept M3 intact [T]:
    • The "From the area / Touches the area" selector is there: aria-labels are full, and the visible labels are short only at ≤ 640 px.
    • &areaRule=touches round-trips.
    • Kiosk defaults to Touches.
    • The notice names the active rule ("From the area: adverts only" / "Touches the area: any type"), and M3's full text is unchanged under "why?".
    • The M3 E2E (all of this, including Packets unchanged) passed 3/3, 11/11 steps each.
  • Panel rules at 1920×870, 1280×800, 768×1024, 375×560 and 360×640 (phones with touch), light and dark, with Area, DAGI and the selector visible [T]:
    • Every "clears every map button" step passed, with elementFromPoint at each button's centre. That covers no selection, Area only, DAGI, DAGI + Area, and the explanation open.
    • In the real tap flow, zoom-in under the open panel was tapped and the map zoomed 9 → 10, in Chromium and WebKit at both phone sizes.
    • The desktop screenshot (1920 dark, DAGI + Area) shows the panel stopping before the zoom column.
  • One-line notice with why? No with SF; see F1. It passes at 1920, 1280 and 768, and at 375 in Chromium with a 2-digit count.
  • At most one extra row [T]: it passed at every size and theme. Measured: 1920 +38 (one row 38); 1280 +17; 768 +17 and +21; 375 +37 and −1 (one row 56); 360 +49 and +11. The +49 at 360 includes F1's wrapped why?.
  • N1 [T]: the computed display: none and isVisible() === false checks are in the panel and M3 E2E, plus a unit CSS check. MuF, the same mutant as in my feat(live): the "Touches the area" rule on Live (#1055 M3) #1087 review, is now killed by the panel E2E ("the area rule selector shows with no filter") and by the unit test ("the class rule beats the [hidden] attribute").
  • N2 [T]: at ≤ 640 px the selector shares the DAGI row with "From" / "Touches", including with long kommune names. It holds for the fixture name in all runs, and for long names in my probe. The test gap is F3.
  • N3 [T]: roving tabindex and the arrow keys with wrap-around work. Unit tests and the M3 E2E "keyboard" step cover them (Tab lands on the checked radio, Shift+Tab, Space). MuK (no wrap) and MuT (no roving tabindex) are killed by the unit tests. Red before: the N3 unit tests fail on c44ea70c and pass on head. Home/End are not handled; they are optional in the APG radio pattern.
  • N4 [A]: the comment is on passesLiveMemberFilters and is accurate.
  • N5 [T]: the M2 phone step now waits for the debounced search (the tabs go hidden). tapInPlace polls per animation frame until the control holds still, with a 5 s bound. No fixed sleep was added; the existing 550 ms between taps is from Live: a visible "TV mode" button that builds and starts the kiosk link #998. The M2 E2E passed 3/3, 14/14 steps each.
  • Collapse state remembered [T]: the E2E reload step passed. In the tap flow: close, reload, closed; open, reload, open.
  • No listener leak leaving Live [T]:
    • The M3 E2E CDP check passed 3/3: the selector has click,keydown, and visits leave constant deltas.
    • initPanelReserveTracker is cleaned up in destroy (ResizeObserver, window resize, rAF) [A].
  • Real taps at 375×560 and 360×640 from a cold start [T], in Chromium (touch) and WebKit (touch). The flow ran from #/home: nav Live, gear, Area → AARHUS, DAGI trigger, type "aar", Aarhus, gear, Touches, why?, zoom-in, gear closed, reload, gear open, reload, nav Packets. Every step was possible and none needed closing something. At 375×560 the panel had to be scrolled 19–28 px to reach the DAGI trigger and the notice (F2). The only page error is K1 (pre-existing).
  • Red before, green after [T]: the head unit tests run against the merge commit c44ea70c. test-1055-live-dagi.js gives 3 failures (advertsOnlyShort, hiddenShort, the markup) and test-1055-m3-area-rule.js gives 5 (the N3 tabindex and keys, the markup, the short line). Both are green on head. The panel E2E's row and clear checks are red without the fix: see MuR and MuC below. The author's "before" screenshots were not re-run.

Tests and mutants

Check Result
Panel E2E test-issue-1055-live-panel-e2e.js, all 5 sizes × light/dark 125 passed, 6 failed on macOS (F1 ×4, F2 ×2). All button and bar clearance steps, the row bound, the reload step and the no-page-error steps passed [T]
M2 E2E test-issue-1055-m2-live-dagi-e2e.js 3/3 runs, 14/14 [T]
M3 E2E test-issue-1055-m3-area-rule-e2e.js 3/3 runs, 11/11 [T]
node test-frontend-helpers.js 746 passed, 0 failed [T]
test-1055-live-dagi.js / test-1055-m3-area-rule.js 50/0 and 30/0 [T]
node scripts/run-e2e-shard.js --validate exit 0, 319 suites [T]
sh test-all.sh 406 of 408. The 2 failures (628-vendor-gitattributes, 715-og-denmark) need a .git. Both fail the same way on a git archive of master, and both pass in a git checkout of head [T]
#664, #667, #670, #671, #672, #875 E2E against a local server Same failing step counts on head and on origin/master here (34/2, 40/7, 8/5, 8/1, 8/4, 0/8). Both trees are offset the same way by a banner on this fixture, so there is no regression, but these are not green locally [T] [K]
scripts/check-xss-sinks.sh --diff origin/master (in a clone at head) exit 0 [T]
Go No cmd/, .github/ or Go diff, so cmd/server stays read-only. No new map[string]interface{}. No hex colours in the public/ diff. Go was not run locally because nothing changed. CI Go jobs green [T]
Fork guards / commits .github unchanged. No closing keyword ("Relates to #1055"). All 6 commits are authored and committed by dborup <kontakt@meshview.dk> [T]

Mutants (my own, each restored afterwards and diffed against head):

Mutant Change Result
MuR do not call initPanelReserveTracker() killed: 1920×870, the panel covers .leaflet-control-zoom-in (8 steps)
MuC drop the credit stop in the cap (limit = cr.top) killed: 375×560, the panel covers the credit (7 steps)
MuW disable the ≤ 640 px .live-dagi-rule flex rule survives the panel E2E (F3); a long-name probe kills it
MuF delete .live-area-rule[hidden] { display: none } killed by the panel E2E and the unit test (N1)
MuK arrow keys clamp instead of wrapping killed (unit)
MuT no roving tabindex killed (unit)
MuS hiddenShort without the singular killed (unit)

CI per job (head 873fbb8d, at the time of writing)

Job Result
Go Build & Test pass
Go Server Tests 1/3, 2/3, 3/3 pass (14m21s, 14m32s, 22m20s)
Go Ingestor Tests pass
Go Libraries & CLI pass
JavaScript Unit Tests & Lint pass
Script & Container Unit Checks pass
Verify Go Test Assignments pass
Validate Docker Image pass
Release Artifacts skipping
Playwright E2E Tests 1/3 pass (37m17s)
Playwright E2E Tests 3/3 pass (48m12s)
Playwright E2E Tests 2/3 fail (35m30s): test-issue-873-base-deep-link-e2e.js, step "375x560: config 1500 ms late, a pick made before it arrives is not undone by the link: not on the page: .leaflet-control-layers-base label[data-tile-id="osm-standard"]". That is on #/map, which this PR does not touch. Here it passed 26/26 in 3 of 3 runs on head and on master [T]. Shard 2 was green on the 6 most recent completed master runs I checked. I judge it a CI flake [A]. The shard stops at the first failing suite (suite 90 of 107), so the new panel suite and the M3 suite (positions 106 and 107 in shard 2) did not run in CI. A re-run of shard 2 is needed before merge

Not verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant