Repository navigation
Conversation
Relates to #1065 (#1081 review F2 and F5). F2: cmd/smoke builds the Skærmkort WMS GetMap URL the browser builds (skaermkortURL) from map.tiles.providers.datafordeler.apiKey and probes one tile over Copenhagen (200, 512 px PNG); SKIP without that key. A shared fixture, asserted against real Leaflet in an E2E and against the Go builder, pins the two together. The key is never in the printed URL. F5: attribution links get a >= 24x24 px hit area (padding offset by an equal negative margin, so the bar is not taller). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rapport — CS-MacBook PR#1097 #1065 — head a76c697Status: Both items are implemented and green locally. CI has not run: GitHub created no run for the PR event. Evidence labels: [T] test run, [A] analysis, [K] known and not verified. F2 — Skærmkort smoke probe
Notes:
F5 — credit tap target
I did not check the compact inset credit ( Runs
CI per jobNone. Residue
|
Review — CS-Minimax PR#1097 — head a76c697Dom: REQUEST CHANGES Evidence labels: [T] test I ran, [A] analysis, [K] known and not verified. Dummy keys only. Reviewed on the merged tree ( Findings
Answers to the review points
Tests run
Mutants (mine, run separately and restored after each)
Not verified
Suggested direction (not a requirement)Give the credit links real room in the layout instead of a negative-margin overlap, for example 🤖 Generated with Claude Code |
…nd wrapped credit (#1065) The padded inline-block of the first round stuck out of the clipped compact inset credit (#752 E2E red, 4 of 8) and its box reached into the next line of a wrapped credit, where that line won the hit test. The link stays inline; its hit area is a ::after box above the credit text. On touch/narrow screens each credit line gets a 26 px slot so boxes of different lines never overlap; the compact credit clips the box with itself and is at least one tap target tall. Tests measure what a finger hits (elementFromPoint from the link centre, up/down and left/right), at 375x560 and 360x640, in the full and the compact credit; the #728 ortho tap step does the same. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The 26 px credit line slots made the wrapped credit about 78 px tall at 640x360 and squeezed the open layer list (#839 E2E red in CI). The slots now need (min-height: 500px); the sizes the issue names are unaffected. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rmkort smoke probe (#1065) A 24 px hit area in a wrapped credit needs a taller credit, which moves the phone legend and layer list (#792, #839, #982 suites assume today's credit height). The credit CSS and its E2E changes are removed, so the credit is exactly as on master; public/ is unchanged by this branch. The URL-parity E2E for the smoke probe stays (renamed, no tap steps). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fix round — CS-MacBook PR#1097Review feedback addressed (commit
CI on this head: all jobs green (Go jobs, Playwright 1/3, 2/3 and 3/3, Docker validate, shard verification). Locally, #752 passes; #792, #839 and #982 fail here with the same baseline failures as on master (fixture not fully seeded) and pass in CI. |
Relates to #1065
Follow-up from the #1081 review, finding F2 only: the Skærmkort smoke probe. The credit tap target (F5) is split out, see the last section.
Plan and choices
cmd/smokehadskaermkort-wmsas a permanent SKIP because the URL is built in the browser.skaermkortURLincmd/smoke/skaermkort.gobuilds the same GetMap URL Leaflet builds:wms.datafordeler.dk/Dkskaermkort/topo_skaermkort/1.0.0/wms, layersdtk_skaermkort,_graaand_daempet, WMS 1.3.0, EPSG:3857, 512 px, withapikeyfirst and the tile box last.map.tiles.providers.datafordeler.apiKey, the browser key. The server keymap.datafordeler.apiKeyis never used in its place.test-fixtures/skaermkort-wms-url-1065.jsonholds what real Leaflet and the real provider registry produce.test-issue-1065-skaermkort-url-e2e.jsasserts the browser against it, andTestSkaermkort1065_BuilderMatchesTheBrowserFixtureasserts the Go builder against it.UPDATE_FIXTURE=1regenerates the fixture from the browser.!,/,+and parentheses, so theencodeURIComponentandQueryEscapedifference is covered.enabled: true.Tests
TestSkaermkort1065_BuilderMatchesTheBrowserFixtureand the E2E fixture stepTestSkaermkort1065_ProbeSendsTheBrowserRequestAndNeverPrintsTheKey,TestSkaermkort1065_ResultURLHoldsNoKeyTestSkaermkort1065_NoClientKeySkipsTestSkaermkort1065_RefusedKeyFailsThe old
TestSkaermkortIsSkippedWithoutABuilderis removed: it asserted a "no Go builder" reason that no longer exists.scripts/e2e-shards.jsongets the new suite on shard 3. Dummy keys only.public/is unchanged by this PR.Credit tap target (F5): left as a follow-up
A first version of this PR also made the attribution links a 24 px tap target. It is removed again (the credit is exactly as on master) because a real 24 px hit area in a wrapped credit needs a taller credit, which moves the phone legend and layer list that the #792, #839 and #982 suites assume. Options found:
::afterbox) and update the Map: colour-by-elevation overlay, rendered server-side from DHM (v0.2.9) #792 and Map popup follow-ups: stuck cluster add, stale-add guard test, spiderfied popups, closing on a dense phone map #982 suites to the new credit height. Honest fix, but it widens the scope.Padding or negative margins on the link alone do not work: they stick out of the clipped compact inset credit (#752) and the next line of a wrapped credit wins the hit test.
🤖 Generated with Claude Code