mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-05 13:32:52 -05:00
The Map view had no filmstrip: only Detail and Compare draw it, and in the Map view the bottom bar fell into the grid branch, showing a thumbnail-size slider that did nothing and no filmstrip toggle. So photos could not be dragged onto the map, and the map did not show which photos were selected beyond a pin colour. - The Map view draws the shared filmstrip under the map when it is on (View > Filmstrip, `/`, F6), as Detail does, and shrinks the map above it (not in full screen, not when the window is too short). In the Map view the bottom bar shows the Filmstrip toggle instead of the thumbnail size. - Photos carried from the filmstrip (the drag the filmstrip and grid already start: the selection, or the photo alone when it is not selected) draw a pin with their count at the pointer over the map, and the drag label says "Set the location of N photos". A release over the map gives all of them that point's position, overwriting one they had, as one undo step (`photo.setGps`). A release over the map's toolbar or filter bar, or outside the map, changes nothing. The longitude wraps around the world and the latitude stays inside Web Mercator's 85.05 degrees. - Selection both ways: a cluster holding selected photos is yellow and carries a bubble with how many are selected; a click on a pin selects its photo and a click on a cluster selects all its photos (the first active; Cmd/Ctrl adds), so the filmstrip shows them and scrolls to the active one. Pins are not hovered or clicked while photos are carried. - `map.state` (UI command) reports the view, the canvas, whether the filmstrip is drawn, each pin drawn last frame with its ids, count and selected count, and a drop in progress; it is cleared each frame so it reports nothing once the map is gone. - `photo.setGps` is extended rather than duplicated: it names its photos explicitly, wraps the longitude into -180..180 (it refused 190), refuses ids the library doesn't have (it skipped them silently, so a drop of photos deleted meanwhile reported success), and its undo step and label are "Set GPS Coordinates"; it now also returns lat/lon. This validation follows PR #810 (geotag); the drop itself is written for this branch's map view, since #810 builds on #797's cluster and viewport code. New strings are in every locale catalog. docs/map.md gains "Map view" and "Geotagging" sections; control-protocol, the LRC-MAP-VIEW and LRC-MAP-GEOTAG rows (geotag stays partial: no pin move, Lock Markers, Remove GPS menu or sidecar fix yet) and gap 16 are updated. Tests: new `ui-egui tests::map_filmstrip` (filmstrip drawn and toggled in the Map view, bottom bar toggle and no slider; filmstrip drag sets GPS for two photos in one undo step; a drop on the toolbar or of missing photos changes nothing; selected counts per pin and a cluster click selecting in the filmstrip) and two engine tests (one undo step and restore for several photos; longitude wrap and hostile values). Each failed with its change reverted (filmstrip not drawn; bottom bar branch, drop handler and cluster selection disabled; old `photo.setGps`). `cargo xtask ci --quick` (fmt, clippy, tests of every package): all pass except the known failures on this machine (13 lightcraft-raw corpus tests, 2 engine corpus tests; the GPU out-of-memory test failed in one run and passed in the other, and ui-egui find_similar::stopping_leaves_the_view_alone... failed once and passed three times alone). `cargo xtask layers`, `assets`, `roots`, `parity` and `wasm` pass. The app was run with `--demo --control 18421` and a headless snapshot: filmstrip under the map, a drag from it dropped two photos at the pointer, selected counts on the clusters, a cluster click selecting its photos in the filmstrip. Co-Authored-By: Jason Baldwin <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>