Repository navigation
Conversation
As in Lightroom Classic, hovering a pin opens a card with the photo, its file name, capture time and exposure line; a pin of several photos gets "1 of N" with arrows that step through them, rounding the ends. The card is an egui Area, so it takes clicks: it stays while the pointer is on the pin, the card or the gap between them, follows the pin and closes when the pointer leaves, the map is dragged or zoomed, or a drag is under way. A click on the photo selects it. It replaces the thumbnail-and-count preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
emmertex
left a comment
There was a problem hiding this comment.
Reviewed and it reads sound (CI was green), but it now conflicts with main after #1538 landed (map/tests.rs appends, map manual pages). Please merge origin/main; note #1540 and #1541 also touch the same spots (MapUi fields, end of map/tests.rs, map.mdx lines), so whichever lands second will need one more merge. I'll approve and merge on a later pass once the new head is green.
# Conflicts: # crates/ui-egui/src/map/tests.rs
Head branch was pushed to by a user without write access
|
Merged |
|
Reviewed earlier and CI is green, but #1539 just merged and this branch now conflicts with main. Please merge main and push; I'll approve and merge on the next run if CI stays green. |
# Conflicts: # crates/ui-egui/src/map/tests.rs
|
Merged main again after #1539 (the same |
|
This change landed on main through #1547 (merged 2026-11-27 09:04 UTC), which merged an earlier head of this branch with the conflicts resolved. GitHub still shows this PR as open because of the later main-merge push here, so it can be closed. |
Problem
Hovering a pin on Chromaforge's Map shows a picture of its first photo and a count ("5 photos"). The other photos at that pin can't be seen without selecting the pin and looking in the filmstrip, and the preview goes away as soon as the pointer leaves the pin, so nothing on it can be clicked. Lightroom Classic shows a card instead: the photo, its capture date and exposure, and for a pin of several photos "1 of N" with arrows to step through them.
Change
All in
crates/ui-egui/src/map/:view.rs): anegui::Areaover the map with the photo, its file name, capture time (display_time) and exposure line (exposure_line, as grid cells show it). A pin of several photos gets ‹ "2 of 5" ›; the arrows wrap round at both ends. A click on the photo selects it.next_hover_card): the card stays while the pointer is on the pin, on the card or crossing the gap between them, and follows the pin. It closes when the pointer leaves, and while the map is dragged or zoomed or a pin, location or photo drag is under way, as the old preview did.mod.rs):MapUi::hover_card, the pin's photos, the one shown, the pin's position and the card's rectangle last frame.hover_preview; themap:hoverwidget id stays, so the existing zoom-suppression test still covers it.How it was checked
cargo xtask ci --quick(all 16 steps) passes on this branch, up to date withmainmap::tests::a_pin_hover_card_steps_through_the_pins_photos_and_selects_onefails without this change: hovering a pin of three photos opens the card on the first; clicking › (the pointer moves onto the card) keeps it open and shows the second; ‹ twice wraps to the last; a click on the photo selects it; moving away closes it; a pin of one photo has no arrows.zooming_over_a_pin_keeps_zooming_and_suppresses_hover_previewstill passesScreenshots
Headless renders of the demo library on a plain tile server (attached below): (1) the card over a pin of three photos: photo, file name, capture time, exposure, ‹ 1 of 3 ›; (2) after › : the second photo, 2 of 3.
Merging
MapUifield next tohover_card, append tomap/tests.rsand edit the same manual lines; keep bothunsafe, build scripts, network access, spawned processes, deleted files, CI orxtaskgate changes: noneChecklist
tr()/tr_format!with its key in every fork catalog; no new shortcutdocs/parity-checklist.mdLRC-MAP-PINS updated (stays ✅)library/map.mdx,output/map.mdx), What's New and changelog entries added🤖 Generated with Claude Code