Repository navigation
feat(qcm): Check conditions starting set (QQA-18b) - #46
Merged
Merged
Conversation
Ported from headlessmode-archive #790 (commit 3e807b4f) onto master; conflicts in main.js and layer-registry.test.mjs resolved against master's groupHint and screen/names render maps.
… (QQA-18) The Layers panel was headed by provider and rendering role. It now has ten task headings (Map style, Places & routes, Land & access, Terrain & landscape, Weather & conditions, Night sky, Cameras, Place facts, Explore counties, Print options); every layer id has exactly one home. Search also matches group purpose words and opens matching groups, restoring them when cleared. An Active on map list shows each layer that is on with Remove and Retry. Print-only pages are not counted as on the map. Presentation only: ids, input ids, radio/checkbox roles, URL state and what each layer draws are unchanged. Ported from headlessmode-archive #794 (commit 7f665250). Adapted to the shipped catalogue: the eleven layers added since get a task home, and the browser tests account for the default-on names and roads layers in the Active list.
…16a) Under the Cameras group, a list built from loaded camera records, not pins: "In this view" (from zoom 7) or "Near selected place" (25 km, any zoom), with purpose filters over the five camera layer ids. - camera-layer.js: cameraList, cameraListStatus, cameraRowText, listLoadState, listPlace, PURPOSE_OF_LAYER, kmBetween, reachBox. - main.js: builds and redraws the list (150 ms debounce, rows rebuilt only on change); the near scope loads the camera files around the place on demand. The latest place pick wins: finder, pin or places list, else the drawn area's centre. - Counts are honest: "Listing the nearest 50 of 350" and the 300-pin cap is stated, never silent. Loading, zoom-in, nothing near, unavailable and partly-unavailable states are distinct, and a near-scope failure is judged on the near files alone. - The Active on map list counts only layer rows, not the list controls. - Tests: camera-list (11) and camera-list-browser J10, J10b-e (6). Ported from headlessmode-archive #798 (commit 212364d9), stacked on the QQA-18 grouping PR.
Eighth task preset: radar, air quality, smoke and fire perimeters on the topo base, appended last so every saved or shared preset id still restores. Flood zones stay one switch away (a floodplain is not a condition), and Explore outdoors maps to the existing Public land and Trails & terrain sets rather than a near-duplicate button. Night sky docs now match the code. Ported from headlessmode-archive #799 (commit 8817715d), stacked on the QQA-16a camera list PR. The shipped catalogue already has a seventh preset (Loud or quiet), so this is the eighth.
Deploying headlessmode-current with
|
| Latest commit: |
5a97847
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://db4ff1d2.headlessmode-current.pages.dev |
| Branch Preview URL: | https://qqa-18b-presets.headlessmode-current.pages.dev |
# Conflicts: # scripts/qcm/README.md # scripts/qcm/site-coupling.json # themes/headlessmode/static/js/quiet-corners-maps/main.js
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.
Ported from headlessmode-archive #799 (commit 8817715d), QC U13 camera chain (QC-04), plan row U13. Base
qqa-16a-camera-list(PR for #798), stacked. Closed in the archive, not merged there; this is the port.What changes: a Check conditions task preset (radar, air quality, smoke and fire perimeters on the topo base), appended last so saved and shared preset ids still restore.
Adapted to the shipped catalogue: master already has a seventh preset (Loud or quiet), so this is the eighth; the docs say eight buttons. Eight presets fill the grid's two rows of four exactly, so the old
last-of-typespan-2 rule is removed (it pushed the 390px layout over its 600px limit). Road and place names open ON on master, so the Check conditions proofs leave them out of the on-layer snapshot. The compact-panel budget is unchanged. At a 320px viewport the four preset columns floor at their longest word ("conditions") and ran 20px past the edge, which a first full run caught ina11y-dynamic-browseranddock-layout-browser; below 360px the grid is now two columns, the same shape the 287px dock already uses.Tests (through
bin/pytest-slot.sh, logs unpiped):