Repository navigation
Prevent focus zoom on touch-screen filters - #2514
Merged
efiten merged 3 commits intoDec 1, 2026
Merged
Conversation
Contributor
Author
|
Kent Beck Gate: PASS (test quality) at |
n30nex
marked this pull request as ready for review
November 29, 2026 18:17
zfouts
approved these changes
Dec 1, 2026
zfouts
left a comment
Contributor
There was a problem hiding this comment.
Reviewed at 3b9886f8. Approving.
font-size: max(16px, 1rem, 1em)on text fields and selects in#app, under@media (pointer: coarse), leaves desktop alone (the e2e test checks desktop stays at 13px).- The viewport meta still allows zoom (no
maximum-scaleoruser-scalable). Changingbodyfromtouch-action: pan-ytopan-y pinch-zoomalso fixes an existing accessibility problem: pinch-zoom was blocked across the whole app. - Row swipes and the bottom-nav tab swipes still reach
touch-gestures.js. A pinch cancels the pointers, andonPointerCancelresets the gesture. - Moving the
ngConfidenceselect's inline font-size into.ng-filters selectwas needed, or the inline size would have won. - The tests pinch with two fingers through CDP and check field sizes on touch and on desktop, including larger root sizes. The new test is in
deploy.ymlandnon-unit-tests.json.
Notes, none blocking:
- Customizer fields will still zoom on iPhone. They're outside
#appand set inline 11–12px sizes:public/customize-v2.js:1238, 1776, 2211andpublic/customize.js:822. They're outside #2507's filter scope, so a follow-up is fine. bodykeepspan-y, so once zoomed in, panning sideways takes two fingers. That's a reasonable trade-off for the row swipes; a line in the PR body would explain it.- As the PR says, this hasn't been checked on a real iPhone in Safari.
efiten
pushed a commit
that referenced
this pull request
Dec 1, 2026
…2508, #2509, #2510) (#2519) Three phone-layout fixes, one commit each. All three are CSS-only; each issue's cause was confirmed on current master before fixing. Measurements are from Chromium (Playwright) with touch emulation (`isMobile` + `hasTouch`, so `(pointer: coarse)` matches) against the E2E fixture. **Not checked on a real iPhone.** ## #2508 Nodes filter row on phones **What was wrong:** `.nodes-filters` is a flex row with no wrapping. At 390px the row was 406px wide inside a 378px pane. The status buttons wrapped onto two lines (All/Active above Uncertain/Stale), and `#nodeSilentFor` ended at x=413 in a 390px viewport. At 768px (tablet, list pane beside the detail pane) the row was 514px inside a 424px pane, so "Silent for" was clipped there too. **Fix:** - `.nodes-filters` gets `flex-wrap: wrap` at every width. On desktop the row fits, so nothing moves. - At ≤640px the button group takes its own line (`flex: 1 1 100%`) and the selects share the next one (`flex: 1 1 140px; min-width: 0`). This differs from the issue's `flex: 1 1 0`: if the LoRa select is shown as well, the third select wraps to its own line instead of all three being squeezed. - `align-self: flex-start` was needed too, and the issue's CSS doesn't have it. `.nodes-tabs-bar` is a wrapping column with `align-items: center`. At 390px the node-type tabs are 406px wide, so the column's flex line is 406px as well. Centring the 378px filter row in that line pushed it 14px past the right edge, even with the issue's CSS applied. | 390px touch | before | after | |---|---|---| | filter row width / pane width | 406 / 378 px | 378 / 378 px | | status buttons | 2 lines | 1 line | | `#nodeSilentFor` right edge (viewport 390) | 413 px | 384 px | | 768px: filter row / list pane | 514 / 424 px | 424 / 424 px (Silent for wraps to the next line) | | 1280px: filter row | 518 px, one row | unchanged | ## #2509 Nodes count pills on touch screens **What was wrong:** the `(pointer: coarse)` rule gives `.node-count-pill` `min-height: 44px`, but the pill was `inline-block`, so the text sat at the top. The label's centre was 14px above the pill's centre. **Fix:** as suggested: `display: inline-flex; align-items: center; justify-content: center`. The 44px target is kept, and the text is now 0px off centre. Without touch the pill is unchanged at 20px tall. ## #2510 Home health card stats on phones **What was wrong:** `.health-metric { flex: 1 1 140px }` is meant as a minimum width in the wrapping row. At ≤640px `.health-metrics` becomes a column, and the basis became the height: five 140px boxes for 58px of content. **Fix:** as suggested: `.health-metric { flex: 0 0 auto; }` inside the existing 640px block. After the fix each box is 58px at 390px. 768px and desktop are unchanged (59–61px boxes side by side). ## Screenshots Taken at 390px, 768px and 1280px, before and after, and reviewed locally; they are not attached. - **390px Nodes:** before, the buttons sit two by two with "Silent for" cut off. After, the buttons are on one line and both selects share the next line inside the screen. - **390px Home health card:** before, five tall, mostly empty boxes. After, compact boxes. - **768px Nodes:** after, "Silent for" wraps under the buttons inside the list pane. - **1280px:** identical before and after. ## Tests New `tests/e2e/test-phone-layout-e2e.js` loads Nodes and Home in Chromium at 390 and 430px with touch, 768px with touch, and 1280px with a mouse. It asserts: - **#2508:** the status buttons share one line, the selects stay inside the viewport, they share the line below the buttons, and the page has no horizontal scroll. At 768px the selects stay inside the list pane. - **#2509:** each pill is at least 44px tall with its text within 2px of centre. - **#2510:** each health stat is no taller than its content plus 2px, and Home has no horizontal scroll. - **Desktop:** the filters are on one row, the pills are under 30px and centred, and the stats sit side by side. The test is registered in `scripts/non-unit-tests.json` and in `deploy.yml` (shard 3, the lowest in the last master run). Each commit adds the assertions for its own issue. Before the fixes, the full test fails 10 of 22 checks. After each commit, that commit's checks pass, and all 22 pass at the end. Local runs: - `sh test-all.sh` passes. - ESLint on `public/*.js`: 0 errors. - These E2E suites pass: `test-a11y-axe-1668`, `test-filter-ux-e2e`, `test-bottom-nav-1061-e2e`, `test-touch-gestures-coverage-e2e`, `test-table-fluid-e2e`, `test-home-coverage-e2e`, `test-touch-targets`, `test-nodes-export-e2e`, `test-node-quick-actions-e2e`. - `test-e2e-playwright.js`: 149 pass with fail-fast disabled. One check fails locally, "Version info lives on Perf dashboard" (`#navStats` wait), and it fails identically on master's CSS, so it comes from the local setup and not from this change. ## Overlap with #2514 #2514 also edits `public/style.css`. It adds a 16px font size for touch-screen fields in the `(pointer: coarse)` block, and wires its test into `deploy.yml` / `non-unit-tests.json`. The hunks don't overlap: with #2514's `style.css` changes applied on top of this branch, the patch applies cleanly and the new test still passes 22/22. Its larger select text fits in the shared select row at 390px. ## Not changed At 390px the node-type tabs (All … Sensors, 406px) are still wider than the 378px pane, so the list pane can scroll sideways by about 28px. That is separate from these issues and is left for a follow-up. Closes #2508 Closes #2509 Closes #2510 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
zfouts
added a commit
to zfouts/CoreScope
that referenced
this pull request
Dec 2, 2026
… and the advert reception changes to Postgres Brings in 10 master commits: Kpa-clawbot#2366 (catalogue key tier), Kpa-clawbot#2497 (regions count only received adverts), Kpa-clawbot#2498 (archived foreign-advert flags), Kpa-clawbot#2492 (observer comparison), Kpa-clawbot#2511, Kpa-clawbot#2513, Kpa-clawbot#2514, Kpa-clawbot#2517, Kpa-clawbot#2518, Kpa-clawbot#2519. Conflicts: - cmd/ingestor/approved_channels.go: both sides added a mutex to channelKeySet. One mu now serialises refresh, master's setCatalog and the branch's Close, and guards the users.db/Postgres accounts readers as well as master's approvedNames and catalogue tier. - cmd/ingestor/db.go, nodes upsert: master's foreign_advert carry-over on top of the branch's qualified columns and lastSeenClampSQL. Master looked up the archived flag with ?1, which dbx.Rebind turns into $11 on Postgres; it is now a plain ? bound to the public key again, and the EXISTS is wrapped in CASE so Postgres stores 0/1 in the BIGINT column. - cmd/ingestor/db.go, MoveStaleNodes: master's UPDATE that restores an archived foreign flag runs before the branch's portable moveStaleNodesSQL (not master's INSERT OR REPLACE ... SELECT *), with IS DISTINCT FROM 1 instead of the SQLite-only IS NOT 1. Ported to Postgres: - catalog_keys (Kpa-clawbot#2366): pgschema migration 0004_catalog_keys.sql (same columns, CHECKs, defaults and key; LatestVersion 4), the table in sqlite_endstate.sql, and the worker's upsert sets updated_at from excluded.updated_at instead of strftime('%s','now'). - corescope-migrate copies catalog_keys and verify never prints catalog_keys.key_hex (channel secrets), for any store. - GetNodes region filter (Kpa-clawbot#2497) and the observer comparison (Kpa-clawbot#2492) used IS NOT 'tx'; both use IS DISTINCT FROM 'tx'. The comparison's ORDER BY label COLLATE NOCASE is lower(<label expression>) on Postgres, which folds ASCII only under COLLATE "C", as NOCASE does. - docs/catalogue-keys.md: the revert SQL on PostgreSQL. Tests on both backends: - The catalogue key tests that use a store and the Kpa-clawbot#2498 foreign-advert tests run on SQLite and Postgres (onBothStores; insertTx uses RETURNING). - New dual tests for the observer comparison and the GetNodes region filter. - pgschema: an upgrade from version 3 with data; the control migration tests no longer assume 3 is the latest version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2507.
iPhone Safari zooms into small fields on focus. Give native text fields and selects in the main app a 16px minimum on coarse pointers, retain larger text settings, and let the browser handle two-finger page zoom. One-finger horizontal swipes still open row actions and switch tabs.
The 16px mobile filter text follows Beacon's choice of
text-basefor its full-width filter sheet. CoreScope implements the sizing in its own CSS. Beacon sourceOn a 390px touch viewport, Chrome Beta measured Home search at 14px before the fix and 16px after. Nodes search, Last Heard and Silent for went from 13px to 16px. A two-finger pinch over Home went from 1× to 2.15× and back to 1×. Leaflet still zoomed and dragged the map. Desktop Nodes controls measured 13px. The regression also checks 22px root and 24px field settings. Playwright WebKit 26 on Windows confirmed all four fields at 16px with its iPhone 13 profile. Physical iPhone Safari remains unverified.
Tests before the fix