mirror of
https://github.com/storytold/lightcraft.git
synced 2026-12-05 13:32:52 -05:00
6c54433175d9dde533bdcdcf5acfc9420d6f93bb
172
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f9f37dd0d0 |
LRC-MAP-VIEW: review fixes for library switches, track log text, counts, filters, no-store tiles and theming
From review on #4243: - Opening another library resets the Map view's state that names the old one's photos or saved locations (MapUi::library_changed): ids are per library, so B's location 3 no longer inherits A's Delete… confirmation. - A GPX is read with lossy UTF-8 again: a stray Latin-1 byte in a track name no longer refuses the file (photo.autoTagTracklog always read it that way). The 50 MB cap stays: the Map view keeps the whole parsed log in memory. - The navigator counts each saved location's photos with one PositionIndex (its band of latitudes, not every point), and a rating or label change, which rebuilds the points without moving any, no longer counts them again. - map.filterPhotos reads positions through valid_gps (an out-of-range one is untagged, as in the Map view and Has GPS); `bounds` is documented as the area of mode "visible". - A 200 marked no-store takes an older copy of the tile off the disk. - map.setView: the doc comment, message and docs say what is applied (0…24, shown within the map style's range). - act takes the map's view as one argument instead of silencing the lint. - The Map view's interface surfaces (notes, hover card, filter bar, toolbar, legend, loupe card, navigator, saved-locations text) use the theme's tokens; the marks drawn on the map's tiles (pins, badges, credit plate, circles, track) are named constants, the tiles being pictures no theme changes. - docs/map.md: the Map view itself isn't covered by private locations (the offline map style keeps it off the network). - rules_editor: value_editor's doc comment back on it. - pick_flow_tests: the bottom bar's focus order includes the Map view button. |
||
|
|
0fbda761e0 |
Merge remote-tracking branch 'upstream/main' into lrc-map
# Conflicts: # crates/engine/src/library.rs |
||
|
|
7dd7851df1 |
Merge pull request #2633 from Bruno-Alumn/fix/panic-log-settings-folder-2572
Desktop: the panic log is kept in the settings folder, never the shared temp folder (#2572) |
||
|
|
e21483c3db |
LRC-MAP-VIEW: merge upstream/main into lrc-map
Resolves the 47 conflicts that blocked PR #4243: - crates/ui-egui/locales/*.json (34 files): merged key by key against the merge base; no key was changed differently on both sides; main's key order, with this branch's new keys after their neighbours. - crates/engine: Cargo.toml keeps main's jiff and this branch's chrono note; Session keeps both sides' fields; print.rs takes main's template folders and saves through this branch's save_prefs_or_undo; the test module lists and persist.rs keep both sides' tests. - crates/ui-egui: menubar.rs moves to main's submenu_items; icons, shortcuts, the settings doc line and the test module lists keep both. - docs: both sides' rows; the parity summary regenerated. main's new menu and settings tests also required: - The Map view's commands move from View > Map to Window > Map, below the Map panel toggles: View is at main's 40-row limit (39.5 on main, 41.5 with View > Map). Map View (Cmd+Alt+3) is there too; the registry's duplicates (map.lock, map.filterBar, view.map, view.toggleMapFilter, map.lockMarkers) are listed in HIDDEN. MENU-VIEW-MAP goes to partial. - Photo no longer lists Edit Capture Time and Auto-Tag from Tracklog at its top level: main moved them into Photo > Metadata. - Settings > Map's button is "Delete Cached Tiles", so a settings search for "Clear Cache" finds only the preview cache. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
5f79f1f8c5 |
UI: Settings Language and Lightroom catalog choice are dropdowns (#4890)
Settings > General: Language is a boxed dropdown (as Export > Resize to) and "When importing a Lightroom catalog" a borderless one (as Export > Metadata), instead of rows of buttons. - dialogs/frame: combo is choice_combo's boxed dropdown without its label, for a Settings row that draws its own; its menu is tall enough for every option, so the 16 languages show without scrolling - the language names stay as they were (the catalogs keep them as they are); items are keyed by language code - both dropdowns close on a keyboard choice and report their expanded state, through the helpers from #4739 - tests: the language and Lightroom tests choose from the dropdowns; the row-wrapping test, which used the language buttons, now checks Performance > Memory for caches in a narrower window - docs: control-protocol widget ids, ui-parity change-log row Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
16a961c8e3 |
Merge remote-tracking branch 'upstream/main' into tmp/fix-2633
# Conflicts: # apps/lightcraft/src/launch.rs # apps/lightcraft/src/main.rs # docs/whats-new.md |
||
|
|
88edf65426 |
Merge main (3c6a9f2c47) into menu-structure
Conflicts: crates/engine/src/cmd/geocode.rs crates/ui-egui/locales/cs.json crates/ui-egui/locales/de.json crates/ui-egui/locales/es.json crates/ui-egui/locales/fi.json crates/ui-egui/locales/fr.json crates/ui-egui/locales/id.json crates/ui-egui/locales/it.json crates/ui-egui/locales/ja.json crates/ui-egui/locales/ka.json crates/ui-egui/locales/pl.json crates/ui-egui/locales/pt-br.json crates/ui-egui/locales/ru.json crates/ui-egui/locales/sv.json crates/ui-egui/locales/uk.json crates/ui-egui/locales/vi.json crates/ui-egui/locales/zh-hans.json crates/ui-egui/locales/zh-hant.json crates/ui-egui/src/menus/menubar.rs crates/ui-egui/src/menus/menubar/tests.rs crates/ui-egui/src/menus/ui_commands.rs docs/parity-checklist.md docs/whats-new.md Delta since approval ( |
||
|
|
0a95565d2e |
Merge main (a2a1712229) into task-queue-core
Conflicts: crates/engine/src/cmd/previews.rs Conflict: the help string both sides edited is word-merged, keeping this PR's wording and main's addition. Docs: both revision rows kept, summary regenerated. |
||
|
|
084e8caf51 |
Merge remote-tracking branch 'origin/main' into pr2373
# Conflicts: # crates/ui-egui/locales/cs.json # crates/ui-egui/locales/de.json # crates/ui-egui/locales/es.json # crates/ui-egui/locales/fi.json # crates/ui-egui/locales/fr.json # crates/ui-egui/locales/id.json # crates/ui-egui/locales/it.json # crates/ui-egui/locales/ja.json # crates/ui-egui/locales/ka.json # crates/ui-egui/locales/pl.json # crates/ui-egui/locales/pt-br.json # crates/ui-egui/locales/ru.json # crates/ui-egui/locales/sv.json # crates/ui-egui/locales/uk.json # crates/ui-egui/locales/vi.json # crates/ui-egui/locales/zh-hans.json # crates/ui-egui/locales/zh-hant.json |
||
|
|
54f1ef1e6d | Merge branch 'main' into branch-fold-off-main | ||
|
|
f61d16bc21 | Merge branch 'main' into reduce-motion | ||
|
|
e928a11f0c |
Merge origin/main (78b575658a) into reduce-motion
origin/main at
|
||
|
|
8bd02083fe |
LR-MAP-MODULE: the Map view's keys, Hide Pins, View > Map and Settings > Map tile source and cache
- Keys in the Map view only (shortcuts::grid_key_command, the rule that
already gave the map \ and Cmd+K): H hides / shows the pins, O the saved
locations list, = / - and Cmd+= / Cmd+- zoom the map, Cmd+0 fits it; the +
alias zooms there too. Elsewhere the keys keep Remove, the mask overlay,
the grid's thumbnail size and the photo zoom; the Masking panel's H
override stays out of the Map view.
- Hide Pins: MapUi.show_pins (saved in ui.json), the bottom toolbar's Hide
Pins, map.showPins {on?}; hidden pins can't be clicked, hovered or dragged;
saved locations and the track log stay. map.showLocations {on?} (the
navigator panel holding the list), map.settings (Settings > Map).
- View > Map (after PR #921's map menu): Fit, Zoom In / Out, Map Pins, Lock
Markers, Location Filter Bar, Location Filter > 4 modes, Saved Locations >
New Location... / Saved Locations List, Tracklog > Load / Auto-Tag / Set
Offset / Fit / Clear, Map Tiles...; greyed outside the Map view. Window >
Map keeps the panel toggles.
- Settings > Map: the tile source (built-in sources usable now, the Esri
styles only with a key, Offline), a custom server applied on Apply or
Return only (a refused one shows why and changes nothing), the tile cache's
size with Clear Cache, what a tile server sees, a link to docs/map.md, then
the ArcGIS key. The offline note says "Map tiles are off (Settings > Map)".
- Tests: tests/map_keys.rs (each key in and out of the Map view, hidden pins
not clickable, the menu and its states, Settings source / bad server /
custom on Apply / Esri with a key).
- Docs: map.md "Keys and menus", library-shortcuts.md, control protocol;
LR-MAP-MODULE 0 -> partial, MENU-VIEW-MAP added; strings in all 17 catalogs.
After PR #921 by Jason Baldwin.
Co-Authored-By: Jason Baldwin <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
1127a17ab3 |
LRC-MAP-TRACKLOG: track logs drawn on the Map view, the Tracklog menu, loading off the UI thread
- crates/engine/src/map/track.rs (ported from PR #916): TrackShape projects a track's segments once, cuts them at ±180°, ranks points for Douglas-Peucker (ends kept, ~0.6 pt error), builds a level per zoom in chunks clipped to the view. 2 million points (release): 370 ms to build, 1-29 ms per zoom level, a frame's clipped lines under 1 ms (big_track_cost, ignored by default). - crates/engine/src/tracklog.rs: map.trackLog (load path / gpx, active track, camera time zone offset, clear; session only; 50 MB, 2 million timed points; a refused file keeps the loaded log); photo.autoTagTracklog {loaded: true} tags from the active track with its offset. Files are read through read_file::read_regular under the byte cap (#3703's rule). - The GPX parser's track indexes, names and caps already come from craft-metadata. - Map view (panels/map/tracks.rs): a Tracklog button in the bottom toolbar with its menu (tracks, start / end / duration on the camera clock, Set Time Zone Offset…, Auto-Tag N Selected Photos, Fit Map to Tracklog, Load Another…, Clear); tracks drawn under the pins (others dimmed); the selected photos marked where Auto-Tag puts them. Load Tracklog… reads the file on a worker thread with an activity row ("Loading tracklog <file>") and fits the map when it lands. UI commands map.loadTrackLog, map.trackLog.autoTag, .setOffset, .fit; map.state.trackLog. - The tile credit moves above the toolbar (the longer toolbar made it cover Lock Markers) and the legend above the credit. - Tests: engine tests/tracklog.rs and map/tests_track.rs (ported); UI tests/map_tracks.rs (load and fit, track pick, ticks and auto-tag in one undo step, bad files / hostile tracks / tiny window, the worker thread's activity row). - Docs: map.md "Track logs", control protocol, LRC-MAP-TRACKLOG row; strings in all 17 catalogs. Ported from PR #916 by Jason Baldwin. Co-Authored-By: Jason Baldwin <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
6776fad691 |
LRC-MAP-LOCATIONS: saved locations in locations.json, with counts, private exports and handles on the map
- crates/engine/src/locations.rs (ported from PR #906): named circles, 1 m to 1000 km, great-circle (across ±180° and the poles), a private flag, checked on every change; a latitude-sorted index for counts. - Kept per library in locations.json (atomic; a damaged file or bad entries set aside as locations.json.corrupt-<time> with a warning; a file that can't be read is never overwritten). Older prefs.json savedLocations are written there once, read back to confirm, and only then left out of prefs.json; while unconfirmed (or with locations.json damaged) prefs.json keeps them. - Commands map.locations, map.location.add (or fromSelection), .update, .remove, .photos; app: map.location.show, .select, .new. The older map.savedLocations.list/create/delete stay as aliases (numeric ids now). - Private locations: photos inside them export without GPS or place fields (the export's remove-location switch, per photo); the Info panel hides their map until Show Map. - Map view (panels/map/locations.rs): every location in view drawn with its name; the active one has centre and radius handles (Lock Markers keeps them); the navigator list shows counts of photos in view, a checkbox selecting them, Go To, Rename…, Private, Delete… with a confirmation; + around the selected photos or at the map's centre. - GPS Radius smart-rule field (catalog, from #906), with its editor. - Tests: engine tests/saved_locations.rs (ported, plus migration: old prefs only, both files, a damaged locations.json); the private-export test fails with the strip turned off; ported catalog circle tests; UI tests/map_locations.rs. - Docs: map.md "Saved locations", control protocol, LRC-MAP-LOCATIONS row; strings in all 17 catalogs. Ported from PR #906 by Jason Baldwin. Co-Authored-By: Jason Baldwin <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
e895981e5a |
LRC-MAP-FILTER: the location filter narrows the filmstrip, with counts, over the library's filter
- Smart-rule fields (crates/catalog/src/rules.rs): GPS Area (gpsArea, is
inside / is outside {south, west, north, east}; east < west wraps across
±180°; edges inside; no position is neither) and Has GPS counting only a
valid position. library.filter, album.createSmart and album.setRules refuse
missing edges, text, NaN, out-of-range values and south north of north;
album.ruleFields reports kind "area"; the rule editor shows four numbers and
never rewrites a stored out-of-range edge.
- Session::narrow: a view's own rules over source, filter and sort, never
saved or shown as the filter; visible_base_shared gives the list before it.
- The Map view's bar counts Visible on Map, Tagged, Untagged and None, and
narrows the filmstrip, selection and keys while the Map view is shown;
leaving it restores exactly the grid's list (sync_location_filter, every
frame). Visible on Map follows the view once it rests 250 ms (commands at
once). Pins come from the list before it; Untagged hides them with a note.
- map.locationFilter {mode?} → {mode, visible, tagged, untagged, all, area,
countMs, shown}; map.state.locationFilter.
- Tests: the ported catalog rule tests (areas, antimeridian, checks, Has GPS
on corrupt positions, smart albums following tagging), engine
tests/location.rs (library.filter, smart albums, narrowing over the filter,
empty library, 50,000 photos narrowed in 9 ms release, 20,000 counted in
0.1 ms), UI tests/map_filter.rs.
- Docs: map.md "Location filter", control protocol, LRC-MAP-FILTER row; 11
strings in all 17 catalogs.
Ported from PR #819 by Jason Baldwin.
Co-Authored-By: Jason Baldwin <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
d3e4b8ed28 |
LR-MAP-INFO: a map of the active photo's place in the Info panel
- Under the location fields: the fields' width, 160 pt, zoom 14 (or the
source's max), the photo's pin (kept on the map near the poles) and the tile
credit. The active photo's place with several selected; no map without a
valid position. A click opens the Map view centred there.
- Show on Map becomes Open in Browser (same widget id, still openstreetmap.org).
- It draws with the Map view's tile service and textures (tiles::draw, ring 0)
and only while on screen: with the Info panel closed or the map below the
panel's fold, nothing is wanted, so nothing is fetched for it. Offline: grey,
the pin, "Map tiles are off" (now at the top of a short map).
- The tile texture store moves from a process-wide static into the egui
context's memory, so each window (and each headless test) has its own;
parallel tests no longer roll each other's wanted tiles.
- map.state reports miniMap {photo, lat, lon, zoom, rect, pin, tiles};
widgets info:miniMap, info:miniMapAttribution.
- Tests (tests/map_info.rs, fake tile server): pin and credit, active photo
with several selected, no GPS, near the pole, a click to the Map view with
no tile fetched twice, nothing wanted off screen or below the fold, offline,
and keep_on_map on tiny and non-finite input.
- Docs: map.md "Info panel map", control protocol, LR-MAP-INFO ✅; two strings
in all 17 catalogs.
Ported in spirit from PR #804 by Jason Baldwin.
Co-Authored-By: Jason Baldwin <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
6838cb5a42 |
LRC-MAP-VIEW: world-anchored pin clusters, view commands, pin moves and Lock Markers
Phase 2 of the map work, and the Map view half of the geotag work (pin moves, the lock and the pin menu share the canvas's input handling, so they came with the rewrite): - Clustering moves to the engine (map/cluster.rs, ported from PR #797): positions are projected once per change of the photo list, then grouped in world-anchored ~60 pt cells, so panning never regroups the pins and zooming in only splits them. 50,000 photos cluster in 1.7 ms (release). - The view uses the engine's Viewport for pan, wheel zoom and positions. Fit to Photos (toolbar, map.fit, and the first showing in a session), map.setView {lat?, lon?, zoom?} (hostile values refused), map.zoomIn / map.zoomOut. "N photos without GPS" on the map; hovering a pin shows its photo's thumbnail; double-click opens Detail or zooms into a cluster. - A drag that starts on a single photo's pin moves it (photo.setGps, one undo step; let go off the map, nothing changes); a cluster's drag pans. Lock Markers (toolbar, map.lockMarkers {on?}, Cmd/Ctrl+K in the Map view, saved in ui.json) stops pin moves. A pin's right-click menu removes its photos' GPS (photo.removeGps); Photo > Remove GPS Coordinates in the menu bar. - map.state gains maxZoom, source, offline, attribution, pins' lat/lon, clusterCount, clusterMs, withGps/withoutGps, lockMarkers, movingPin, hovered. - Tests: tests/map_geotag.rs (pin move and undo, cluster pans, Lock Markers, pin menu and Photo menu, groups kept on pan and split on zoom, view commands and hostile values, first-showing fit, without-GPS count, hover thumbnail, empty library) and the ported engine cluster tests. - Docs: map.md (Map view, Geotagging, commands), control protocol, parity rows (LRC-MAP-GEOTAG ✅, MENU-PHOTO-REMOVEGPS), gaps; strings in all 17 catalogs. Ported in part from PRs #797 and #810 by Jason Baldwin. Co-Authored-By: Jason Baldwin <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
1e0e814657 |
LRC-MAP-VIEW: Esri map styles with the user's own ArcGIS API key
- Esri Streets and Esri Outdoor (topographic) come from the ArcGIS Location Platform static basemap tiles service with the user's key (Settings > Map, map.setEsriKey); without a key they are not offered and map.tileSource refuses them, saying where to get one. The keyless arcgisonline endpoints are gone; World Imagery is dropped (no raster imagery style there). - Esri's 512 px tiles are cut into the four 256 px tiles they hold; one request serves all four. - The key is a secret: kept in the config folder (map-keys.json, 0600 on Unix), never journaled, logged, reported (esriKeySet only), used as a cache key or shown in errors ([key]); ApiKey's Debug hides it. - The map's credit is "Powered by Esri" plus the style's copyrightText from its metadata (bounded, plain text), else a fixed fallback. - docs/map.md records the endpoints, what was read and what could not be verified (attribution guide, platform agreement). Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
f6524ed1c6 |
LRC-MAP-GEOTAG: drag filmstrip photos onto the Map view to geotag them; filmstrip and selection on the map
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]> |
||
|
|
7cbfd8c5ba |
LRC-MAP-VIEW: map tiles under the OSM tile policy from an engine tile service; Esri layers off
The Map view fetched tiles from its own pool of six threads with no cache policy, no backoff and two User-Agent headers, and offered Esri's ArcGIS tiles by default. The tile core of PR #797 is ported into the engine (crates/engine/src/map/: mercator, source, cache, service; no new crate) and the view now draws from it: - Tile sources are a library preference (prefs.json mapSource, `map.tileSource`): OpenStreetMap (default), OpenTopoMap, a checked https custom template, or Offline (no service, no threads). `map.providers` lists the sources offered; `map.cacheInfo` and `map.clearCache` report and empty the disk cache. - Fetching follows the OSM tile usage policy: only the tiles in view plus one ring, newest view first with stale requests dropped, at most two requests in flight, exponential backoff on errors/429/5xx honouring Retry-After, one distinct `LightCraft/<version> (+https://github.com/storytold/lightcraft)` User-Agent (fetch's `get` no longer adds a second one), no no-cache, size/content/decode checks. One "Loading map tiles" activity row while tiles are queued. - Disk cache in the per-user cache folder (`<cache>/maptiles`, new `config::cache_dir`), one folder per source: Cache-Control/Expires/ETag with conditional refresh (7 days by default), 500 MB LRU cap, atomic writes, damaged entries refetched. HTTP dates go through chrono. - Sessions fetch only when the host asks (`with_default_map_cache`: desktop app, CLI snapshot, MCP), so tests never go online; the test that hit Esri's server is gone. - UI: one texture cache (256, LRU) for the map and the navigator; a missing tile is drawn from a loaded ancestor up to four zooms up; the service gets the union of the tiles drawn this frame and the last, and nothing once no map is drawn. The credit is always painted bottom right. - `LatLon::new` rejects out-of-range positions instead of clamping them (95° was accepted as the pole); `LatLon::wrapped` wraps longitude. - Esri: their terms (docs/map.md, with URLs) allow the layers only with Esri software or an ArcGIS subscription, so they are not offered, `map.tileSource` refuses them, and a library saved with one opens on OpenStreetMap with a one-line notice while prefs.json keeps the choice. No command turns them on; that needs a maintainer decision. docs/map.md is new; control-protocol, the LRC-MAP-VIEW row and gap 16 are updated. Tests: `cargo xtask ci --quick` (fmt, clippy, tests of every package): all map, fetch, geom, config and UI tests pass; the only failures are the pre-existing ones on this machine (13 lightcraft-raw corpus tests, 2 engine corpus tests, 1 GPU out-of-memory test). `cargo xtask layers`, `assets`, `roots`, `parity` and `wasm` pass. The app was run with `--demo --control 18421` and screenshotted: OSM tiles load in the map and the navigator with the credit, Esri is refused, Offline shows the grey map. Co-Authored-By: Jason Baldwin <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
b5d188ea85 |
Crop panel Overlay and Upright, and the Remove panel's tool mode, changed to a dim label with a dropdown beside it (like White Balance - more neat and like Lr), via a new shared labeled_dropdown widget, with a headless test.
|
||
|
|
9b1338bc93 |
LR-BEHAV-SIDEBAR-SECTIONS: the control protocol lists everything ui.dragWidget takes
The drag shape takes fx/fy for its start point and alt, shift, cmd and ctrl like the click shape (gesture_events computes both once for all three widget gestures, and holds the modifiers for the whole drag); the row named them for the click only. Co-Authored-By: Claude <[email protected]> |
||
|
|
e395804329 |
LR-BEHAV-SIDEBAR-SECTIONS: Option-click on a triangle opens or folds the whole branch
Opening or folding a branch of the left sidebar's trees took one click per row. A click on a row's triangle with Option (Alt) held now opens or folds the row and all the rows inside it, however many: a folder of albums with the folders in it, a folder of the library down to its last folder, a keyword with the keywords inside it, a year with its months. A plain click still opens or folds the one row. It is kept for the session as two things said, not one per row: of the row, and of all the rows inside it, each with a counter that orders them. A row is as the last thing said of it, or of a row above it, has it; what is said above is carried down each tree as it is drawn. So the click costs the same on ten rows or fifty thousand, reaches rows that are not drawn yet, and a folder that appears inside the branch later follows the rest. What is opened or folded inside it afterwards holds for that row. In Local the click folds everything inside a folder and opens the one folder (opening them all would read every folder inside from the disk). Nothing is kept across restarts, as for every sidebar tree on main. |
||
|
|
8ffc86bd12 |
LR-BEHAV-BG-TASKS: a preview build asked for while another runs can wait in line for it
Jobs that must not run side by side share a lane (`activity::Lane`; the preview lane first: Build Previews and background Build / Discard Smart Previews). With `queue: true` a build asked for while its lane is busy waits in line instead of being refused: it keeps what it was asked, with the photos written out, and `Session::start_waiting` (after every command, and every frame in the app) runs it under the id it had in line once the lane is free. `activity.list` lists waiting tasks after the running ones (`waiting`, `place`, `lane`); `activity.cancel` takes one out of the line, `all` empties it, and opening another library drops it. The line holds at most 100. Without `queue` the call is refused as before. The activity stack draws running tasks only. Co-Authored-By: Claude <[email protected]> |
||
|
|
61005f3dc1 |
Culling: the loupe uses built previews; photos prepared ahead and in the background (#3077)
* PERF-CULL-0: ui.inspect reports how the loupe showed each photo it was stepped to
perf.loupeSteps records, per step, the ms from the step to the first frame
with anything of the photo, with a full-size picture (camera JPEG, cached
or rendered) and with LightCraft's own render, measured on the frames the
app draws, so culling benchmarks exclude the control channel's round trip.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 95f0343848fc0a238f80f07ceb292eaf6779aeaa)
* PERF-CULL-1: browsing a folder shows its first photos within a second
The Local view read and hashed every file of the folder before showing any
of them (2,933 EOS R5 C CR3s: 30.6 s to the first photo). It now hands the
files the library lacks straight to the import, ordered the way the view
sorts them (file time for the date sorts), which adds them batch by batch:
first photo 0.9 s, twelve thumbnails 1.4 s, the whole folder in the same
~34 s as before, in the background.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit b766558e7ef4f802919a144da53e444f70e0186b)
* PERF-CULL-2: the loupe makes the next photos' camera previews ahead of the step
Culling steps through photos, and each step waited for the next raw's
embedded JPEG to be read and decoded (p50 187 ms, p95 332 ms on EOS R5 C
CR3s) and then for a full raw develop. Now:
- the loupe's stand-ins for the next five photos in the direction of
travel and the one behind are made ahead (Slot::QuickAhead, priority
just below the loupe's own render) and taken over at the step, so a
step shows the camera JPEG at once (p50 0 ms);
- a slot keeps its photo while the photo stays wanted, so photos that
shift places as the user steps are not made twice;
- decoded camera JPEGs stay in the memory LRU (never on disk), so going
back shows them again without a decode;
- while an arrow key is held (a photo left within 0.25 s), the raw
develop waits until the photo has stayed 0.12 s, and a render queued
for a photo already left is dropped, so the workers make the previews
instead of renders nobody sees.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 0430b95636d2b6adce8887af7b9464687c95549e)
* PERF-CULL-3: CR3 previews take the smallest embedded JPEG that covers the view; plain sRGB JPEGs decode straight to 8-bit
Upstream's embedded_preview_covering (
|
||
|
|
077f4a507f |
GPU-FULL: more of the render on the GPU, loupe drafts from GPU textures (#1065)
* GPU-FULL-1: LUT profiles, Refine Edges and soft proofs render on the GPU These three sent the whole loupe / compare / export render back to the CPU pipeline (media::develop and lightcraft_gpu::render declined them). - LUT profiles: the .cube table rides in the finish kernel's aux buffer (LUT_* parameters); lut_apply mirrors Lut3d::apply (trilinear, domain), applied after grain and blended by the profile amount, as on the CPU. - Refine Edges: the cross guided filter Auto Mask already ran on the device, now with a combine mode (max for strokes, mix by sqrt(refine) for Refine), applied to the combined alpha before the mask's invert and amount. - Soft proofing: proof-space gamut mapping and the destination / display gamut warnings in the kernel (PROOF_* parameters, GAMUT_WARN and warning colours generated from the CPU constants), for output spaces and displays. Equivalence tests (RTX 5070, DX12): LUT profiles at three amounts and a non-default domain, Refine 15/60/100 on two masks, proofs in 16 combinations of space, output, display and warnings - all max 1 LSB, mean <= 0.0005 LSB. The tests also check that strong refine and the destination warning change the image (so they aren't comparing two unchanged renders). Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-2: spot removal, defringe and the histogram on the GPU Spots and defringe made every render that had them (and every white balance or spot edit) read the resampled image back, run the scene-linear stage on the CPU and upload it again. Now only the ProRAW local tone map (off by default) does. - Defringe: OkLab pass, separable lightness min/max filter, per-pixel apply. Parameters come from the new optics::defringe_params, which the CPU stage now uses too. - Spots: new spot module (spot_prep / spot_apply over each spot's box, the Heal tone correction as device Gaussians), spot by spot in place so each reads what the earlier ones left, as on the CPU. Remove's automatic source: spot_score rates the 48 candidates on the device and only the scores come back. Layout, candidates, spoke directions, radii and ranking are shared helpers in pipeline::spots (spots::apply uses them; behaviour unchanged, pipeline tests green). - Histogram: counted with atomics on the device on Histogram::of_srgb8's sampling grid (exact), instead of a CPU pass over the readback. Tests: spots (clone, heal, auto remove incl. near the edge where no candidate fits, brushed strokes, feather 0, cut by the edge, overlapping) and defringe (purple/green, hue ranges, preview and full size) max 1 LSB; the device histogram equals the CPU count of the returned image for small, sampled (>1 MP) and windowed renders; the scoring kernel picks the CPU's candidate. (The edge case caught a real bug: "doesn't fit" was written as a decimal literal that rounds below f32::MAX.) Unit tests that create the device now take turns with the crash-sentinel test, which swaps a global. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-2: fix the spot kernels' build; GPU tests fail when kernels don't build 07d4680b's spot module declared `const F32_MAX = bitcast<f32>(...)`, which naga can't evaluate as a constant: the kernels failed to build, the device was unavailable, and the equivalence tests skipped as if there were no adapter - so that commit's GPU tests didn't actually run. f32::MAX is now a function, and the equivalence suite (and the device unit test) fail instead of skipping when an adapter exists but the kernels don't build. Re-verified on the RTX 5070 (DX12), all on the device: 21 equivalence tests incl. the 8 spot cases (max 1 LSB), defringe, the exact device histogram, and the auto-source unit test. Adds an ignored thumbnail throughput bench (tests/thumbs_bench.rs). Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-3: thumbnails render on the GPU once the device is ready Every cached job (grid and filmstrip thumbnails, preset and profile previews, faces, quick stand-ins) was forced onto the CPU. They now use the GPU when lightcraft_gpu::ready() - so they never block on device creation at startup (1.8 s incl. kernels here) and render on the CPU until then. Views and exports keep waiting for the device as before. tests/thumbs_bench.rs (ignored): six workers rendering 256 px thumbnails of 512 px sources with preset-like settings (NR, sharpening, clarity, grading, a gradient mask): RTX 5070 3.6 ms each vs 4.3-5.2 ms on 32 CPU threads, with the cores left free for raw decoding. Engine and UI suites: unchanged (only the 12 failures that predate this branch on Windows: tests_sync paths, tests_model_setup). Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-4: the loupe's drafts are drawn straight from the GPU Rendering and drawing now share one device: the desktop app creates the window's wgpu device with the adapter's limits and hands it to the GPU renderer (lightcraft_gpu::adopt_window_device, on a background thread at startup, under the crash sentinel; a device that doesn't suit falls back to one of the renderer's own, as before). A drag's drafts of the views are RenderJob::on_screen: the render ends in an Rgba8Unorm texture (lightcraft_gpu::render_display -> Output::Display, new `present` kernels: unwritten-pixel count, row padding for the copy) and egui-wgpu draws it as a native texture (ui-egui ScreenTextures, implemented by the app) - no readback, no conversion to egui pixels, no re-upload. The readback's checks run on the device (atomic unwritten count, device histogram). Renders that need pixels keep the readback: the settled full render (view cache, overlays, screenshots), thumbnails, exports, overlays, windows that spots grew, a monitor profile. - engine: RenderJob::on_screen, RenderResult::frame (ScreenFrame). - ui-egui: Tex::native / Tex::id() (21 draw sites), Renderer set_screen_textures, natives per slot (freed when pixels return), ui.inspect perf.gpuWindowDevice / screenTextures / mainOnGpu. - app: WindowTextures, window device limits, LIGHTCRAFT_GPU_WINDOW=0 to opt out. Tests: crates/gpu/tests/display.rs adopts a device in its own process and checks the texture holds exactly the readback's pixels (padded and unpadded widths, draft and full), the histogram matches, and overlays / grown windows come back as pixels. In the app (RTX 5070, a 45 MP CR3 from the user's library copy): all 90 drafts of a drag drawn from GPU textures, 1.69 ms vs 2.05 ms median per draft render with the readback; the frame screenshot shows the image correctly; pixels return after the drag. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-2: the denoise runner tests take turns with the crash-sentinel tests Building a denoise runner creates a device and compiles kernels under the init marker. Running in parallel with backend::tests, it could arm the marker the test had just set, so "is removed afterwards" failed now and then. The runner tests now hold DEVICE_TEST_LOCK while they build, like the render tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-4: fix the build after merging upstream main Upstream's QuickJob panic guard builds a RenderResult (add `frame: None`), its idle-trim test builds a Tex (add `native: None`), and its on_exit test builds App (add the WindowTextures slot). Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL-2: upstream's blur tests take turns with the crash-sentinel tests gaussian_matches_cpu and bench_kernels create the device, so they hold DEVICE_TEST_LOCK like every other device test in lightcraft-gpu. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Tests: the same-folder export test compares paths separator-blind (Windows) The written path is the original's folder (`\` on Windows) joined with `Exports/IMG_1.jpg`; the expected one had `\Exports`. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Tests: the folder-drop tests find folder widgets separator-blind (Windows) The folder tree spells its paths with `/`; the tests built widget ids from Windows paths with `\`, so none was found and every test failed on Windows. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Tests: the Windows path fixes take the same form as in the other PR branches So the branches merge into main without conflicts between their copies of the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: headless screenshots read back GPU-drawn views; LIGHTCRAFT_GPU_LIMITS caps the adopted device Review of PR #1065: - A headless `ui.screenshot` taken mid-drag showed the photo as a white rectangle: the GPU-resident draft left no CPU copy. With keep_pixels (control channel) the renderer now keeps each view's frame, and `cpu_textures` reads it back through `ScreenTextures::read` (`lightcraft_gpu::read_texture`). Drawing still never reads back, so drags keep the speed-up. - Adopting the window's device skipped LIGHTCRAFT_GPU_LIMITS; `Gpu::adopt` now caps its limits the same way `Gpu::new` does. Tests: a_headless_screenshot_reads_back_a_view_drawn_from_the_gpu (ui-egui), the_limits_override_caps_an_adopted_device (gpu); the display test uses read_texture and skips through lightcraft_testkit::skip!. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: review fixes (CodeRabbit 2026-10-21) and slideshow/print draw GPU-drawn views - the window-device adoption is announced before its thread starts: until it finishes, the settings' warm-up and renders don't create a device of their own (they raced it) - the device error / device-lost handlers go on only after the kernels build, so a declined window device keeps the window's own handler - releasing a slot frees its GPU-resident texture and kept frame - a soft proof into a colour space drafts full size on the GPU; only one to a device profile counts as proofed for `handles` - docs: Fill spots and device-profile soft proofs render on the CPU - slideshow, slide layout and print draw `Tex::id()` (the GPU texture when there is one) Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the display test skips when LIGHTCRAFT_GPU=0 switches the GPU off It panicked ("GPU rendering is off") instead of skipping like the other GPU tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: a view readback never panics on a lost device read_texture (headless screenshots of GPU-drawn views) polled the device directly. On a lost device wgpu 30 panics in Device::poll; it now goes through the same guard as the renderer's own polls (poll_device): a lost device returns an error, stops the GPU and is not polled again. Review of PR #1065. Also quiets a browser-build dead-code warning on OnScreen::Frame. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: an HDR edit's histogram shows the HDR range on the on-screen GPU path too develop_on_screen returned the GPU's SDR histogram for both its Display and Image arms; it now applies lightcraft_pipeline::hdr_histogram as develop_reporting does (None for drafts, windows, proofs and non-HDR edits, which keep the GPU's histogram). Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the Navigator draws the photo's texture as it is drawn in the loupe The Navigator falls back to the main view's texture before the photo has a thumbnail. It drew `t.tex`, which is stale (or the 1x1 placeholder) when the main view holds a GPU-resident draft; it now draws `Tex::id()`, like every other draw site. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the egui 0.37 lifecycle test's texture names no native id Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: rustfmt the lifecycle test Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the second window fits the frame's size; freed GPU frames drop their views The second window sized its image from the texture handle, which is only a 1x1 placeholder for a GPU-resident render; it now uses the frame's size. When a GPU-resident render can't be shown and every native texture is freed, the views pointing at them (Before, Region, Compare tiles) are dropped too, so they render again as pixels instead of drawing a freed id. Test: freeing_gpu_frames_drops_the_views_drawn_from_them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(gpu): LIGHTCRAFT_GPU_ADAPTER picks the card for rendering too The variable chose the card only for AI Denoise and the face detector (two copies of the same enumerate-and-match code); photo rendering always took the first high-performance adapter, on a two-card machine the one driving the screens. One helper, backend::pick_adapter, now serves the render device (Gpu::new), the denoise network and the face detector: the first hardware card whose name contains the value (any case), else the high-performance one. A name that matches no card is logged and falls back instead of failing. backend::may_adopt_window_device says whether rendering may share the window's device (only for the window's card). Name matching is unit-tested without a GPU; the equivalence tests print the card they ran on. Documented in docs/gpu-pipeline.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: a view switching to a GPU texture releases its pixel image Review of #1065 (CodeRabbit nitpick): when a slot that had pixels switched to a GPU-resident texture, its egui texture kept the full-size image, never drawn while the native texture is set. Tex::show_native now swaps it for a 1x1 placeholder on the switch. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(gpu): LIGHTCRAFT_GPU_ADAPTER picks among several matches in a defined order and logs once Review of #3428: - several cards match: the one whose whole name it is, then dedicated before built-in before virtual cards, then wgpu's order (backend::choose_named_adapter); the log names every match and the one used; - no match: the default choice, with a warning that lists the cards; - a name matching only a software renderer: never used, and the warning says so; - each line is logged once (backend::log_once), though the render device, AI Denoise and the face models each ask; - tests on fake adapter lists: a_fake_adapter_list_picks_in_a_defined_order, a_choice_is_logged_once. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the release note gives the GPU's documented bound against the CPU (3 levels, mean under half a level) Review of PR #3544. Co-Authored-By: Claude Opus 5.5 <[email protected]> * GPU-FULL: the window's device isn't adopted when LIGHTCRAFT_GPU_ADAPTER names another card With #3428 merged, Gpu::new already makes the render device on the named card; the window's device was still adopted first, so the app rendered on the screen's card whatever the variable said. backend::may_adopt_window_device (tested on names in backend.rs) now decides: another card named renders on a device of its own, and the window stays on the screen's card. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> |
||
|
|
9fcf67aca8 | LR-BEHAV-ACCESS: the control docs and the guard's comment say the refusal also covers a system that has not answered | ||
|
|
52d35d3446 | LR-BEHAV-ACCESS: view.reduceMotion refuses follow: true where the host has no system setting | ||
|
|
006d20b159 |
LR-BEHAV-ACCESS: Reduce motion also stops scroll glides and can hand back to the system
- Reduced motion sets egui's scroll_animation to none, so scrolling to a photo jumps.
- Settings ▸ Interface shows "Use the system setting" once the user has chosen and the
platform has a system value; the tooltip names the system only then.
- main.rs sets system_reduce_motion: None off macOS (Windows/Linux compiled before only by
accident of the missing field), and screen_profile is gated to macOS again.
- {follow: false} behaves like no params.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
5b1db88b76 |
LR-BEHAV-ACCESS: Reduce motion follows macOS until you choose
AppSettings.reduce_motion is now Option<bool>: None follows the system's Reduce Motion,
Some(..) is the user's choice. `view.reduceMotion` takes {on?} or {follow: true} and
replies {on, followsSystem}. The Settings tick box shows the effective value.
Services::system_reduce_motion is read at most once a second (like screen_profile); the
macOS implementation (apps/lightcraft/src/reduce_motion.rs) asks NSWorkspace through safe
objc2-app-kit calls. Windows and Linux stay manual.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
0c5a99402f |
LR-BEHAV-ACCESS: Reduce motion setting stops zoom and spinner animations
Settings ▸ Interface ▸ Reduce motion (also View ▸ Reduce Motion, `view.reduceMotion {on?}`),
off by default and saved with the UI settings. With it on, a click on the photo or Z zooms
at once, egui's widget easing time is 0, the Synchronize Folder spinner becomes a still dot
and the activity panel's indeterminate bar stands still. Toast and slideshow fades stay.
`motion.rs` is the one place animations ask; the setting reaches it through the egui
context each frame (sync_theme), and theme changes keep the easing at 0. The OS
preference is not read: that needs native calls, which only `crates/sysmem` may make.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
||
|
|
e05c4f7e7c |
Merge track r3-t08
# Conflicts: # crates/meta/README.md # crates/ui-egui/locales/cs.json # crates/ui-egui/locales/de.json # crates/ui-egui/locales/es.json # crates/ui-egui/locales/fi.json # crates/ui-egui/locales/fr.json # crates/ui-egui/locales/id-formats.json # crates/ui-egui/locales/id.json # crates/ui-egui/locales/it.json # crates/ui-egui/locales/ja.json # crates/ui-egui/locales/ka-formats.json # crates/ui-egui/locales/ka.json # crates/ui-egui/locales/pl.json # crates/ui-egui/locales/pt-br.json # crates/ui-egui/locales/ru.json # crates/ui-egui/locales/sv-formats.json # crates/ui-egui/locales/sv.json # crates/ui-egui/locales/uk.json # crates/ui-egui/locales/vi.json # crates/ui-egui/locales/zh-hans.json # crates/ui-egui/locales/zh-hant.json # crates/ui-egui/src/panels/grid.rs # crates/ui-egui/tests/it/main.rs # docs/gaps.md # docs/library-shortcuts.md # docs/parity-checklist.md # docs/raw-parity.md # docs/user/guides/export-photos.md # docs/whats-new.md |
||
|
|
8415fd6a90 |
Merge track r3-t06
# Conflicts: # docs/parity-checklist.md # docs/whats-new.md |
||
|
|
67b636329a |
Merge track r3-t03
# Conflicts: # crates/ui-egui/src/tests/drop_import.rs # crates/ui-egui/tests/it/main.rs # docs/gaps.md # docs/parity-checklist.md # docs/whats-new.md |
||
|
|
e8566e839a |
Merge PR #2952: LR-EDIT-COLOR-TEMP: a one-field white balance partial keeps the other field's look (#2910)
Conflicts: docs unioned |
||
|
|
e595d9de5e |
Merge PR #3408: Control: pointer and scroll gestures refuse numbers past any screen instead of queueing NaN positions
docs/whats-new.md: both entries kept, newest first. |
||
|
|
7283694154 | Control: pointer and scroll gestures refuse numbers past any screen instead of queueing NaN positions | ||
|
|
6b1fc20053 |
LR-IMP-ADD-DIALOG: render import previews when the camera JPEG is too small
Require a covering embedded image only for renderable import candidates. Keep the available camera JPEG for preview-only raws and failed or unavailable render fallbacks; ordinary quick views and grid thumbnails retain their immediate stand-in behavior. Also release import preview state when canceled through the control channel. Co-Authored-By: Codex <[email protected]> |
||
|
|
c53e573e6f |
Merge remote-tracking branch 'upstream/main' into fix/panic-log-settings-folder-2572
# Conflicts: # apps/lightcraft/src/main.rs |
||
|
|
8ab4641011 |
LR-IMP-ADD-DIALOG: finish import thumbnail sizing review (#2056)
Reconcile with current modules, preserve all locale catalogs, reuse small-source preview jobs, release dismissed review state, and keep exact-entry Escape inside the slider. Co-Authored-By: Codex <[email protected]> |
||
|
|
ba98807e78 |
MENU-BAR: every command has a place in the menus, and View fits a laptop screen
Commands the layout didn't list were appended to the end of their menu, 37 of them, and some came twice: File listed Clear Preview Cache next to Previews ▸ Discard Preview Cache (one command), and View listed Choose and Show Layout Image again after Loupe Overlay. View had 62 rows and scrolled. Every command now has a slot in LAYOUT or a submenu it places; SUBMENUS orders submenus (with `*` for the parameterized items and nested submenus). View has 36 rows: Loupe Overlay, Before/After, Mask Overlay (each mode and colour, current one checked), Crop Overlay and Slideshow submenus; the panel toggles moved to Window; Photo ▸ Metadata gathers the metadata commands. Tests: every command placed, no command twice in a menu, every menu at most 40 rows (a separator counts half). Co-Authored-By: Claude <[email protected]> |
||
|
|
840e33a311 |
Merge branch 'main' of https://github.com/storytold/lightcraft into space-hold-pan
# Conflicts: # crates/ui-egui/src/lib.rs |
||
|
|
0a76419c4e |
fix(mcp): #3069 resend a request that crossed the app's idle-close notice
A request sent just as the app expires an idle control connection crosses the app's id-less idle-close notice: the client's pre-send check saw an open connection, wrote the request, and read the notice as its reply, so `--connect` and the MCP server failed a command the app never read. The app reads nothing after its idle timeout, so such a request never ran. The app now marks the notice `"closed": "idle"`, and `Remote::call` sends a request whose reply is that notice once more on a new connection (it also matches the notice's exact text, for apps from before the marker). At most one resend per call, whatever the reason; a reply with an id or any other error is returned as before. `idle_close_reconnects_without_replaying_a_command` now forces both orders (notice before the next request, and a request crossing it) instead of racing the notice; with main's client it fails every run. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
|
|
bb59018de6 |
Merge remote-tracking branch 'origin/main' into space-hold-pan
# Conflicts: # crates/ui-egui/src/control.rs # docs/control-protocol.md |
||
|
|
fa7e5b9cb4 |
LR-EDIT-COLOR-TEMP: a one-field white balance partial lands where a mode answers its own white (#2910)
Reviewing #2952 turned up two more shapes of the same bug, both on the path this branch is about. `effective_wb` ignores the temp / tint stored on an `As Shot` white balance — it answers the file's as-shot white — and on a raw edited in Kelvin it also ignores a named preset mode's stored numbers, through `WbMode::preset`. So a one-field partial that names its scale, `wb {temp: 5800, scale: "kelvin"}`, merged into such a photo, was stored and then read by nothing: the panel shows 5800 K while the render stays at as shot, and the stored tint no longer matches what renders. An unmarked partial already materialized a Custom value through the relative-scale conversion; the named-scale ones never did. The photo's preparation now writes out the white the photo really renders as Custom values before the partial lands, for `As Shot` and for preset modes on a Kelvin source. `Auto` keeps its mode — its gray is resolved and stored when the mode is set, not at render time — and a partial that names a `mode` itself stays authoritative. Sources without the Kelvin scale (a raw whose camera has no matrices, a rendered file) had the same swallow, and the number reaches their render now. The issue asks for one photo-aware merge in every caller that writes settings onto a photo, and names preset apply. `preset.apply` ran `Preset::apply` → `apply_partial` → `DevelopSettings::merged` and never saw the photo's scale, so a preset authored by hand naming one white balance number still had the original bug; measured on a photo at 5000 K / +12, it landed the photo on the relative scale and moved the tint it never mentioned. The preparation and the normalize-back now wrap `Preset::apply` per photo, with the amount blending and the mask merging untouched, which also puts an amount below 100 % on a single scale. Presets the app writes (`preset.create` → `extract_groups`) and the crs / XMP importers name mode, temp, tint and scale together and so land in the branch that behaves exactly as before. Tests: the `As Shot` and preset-mode cases in the #2910 merge test, and the new `preset.apply` test, fail before this commit (the first stores the number in a mode that renders the photo's old white; the second demotes the photo to `Legacy`); the same test then pins that `preset.apply` and `develop.merge` agree on a one-field white balance, which is the point of having one merge. Docs: the rule for an agent is in `docs/control-protocol.md` and `docs/mcp.md`, recorded on the `LR-EDIT-COLOR-TEMP` row of `docs/parity-checklist.md`, and in `docs/whats-new.md`. Co-Authored-By: Claude <[email protected]> |
||
|
|
049034e247 |
LR-EDIT-COLOR-TEMP: a one-field white balance partial keeps the other field's look (#2910)
`develop.merge`, `lightcraft-cli render --settings` and MCP `set_develop` merged a white balance
partial that names only `temp` or only `tint` straight into the photo's settings, so the field the
partial leaves out — stored on the photo's scale — is re-read on the partial's scale. On a raw
edited in Kelvin that moves the green/magenta balance of photos the partial never mentioned:
`wb {temp: 5800}` on a photo at 5000 K / +12 tint lands on the relative scale, a shift of ~2.5 tint
units.
Resolve a one-field white balance partial against the photo: bring its stored white balance onto
the partial's scale with the photo's own as-shot white, merge, then put the result back on the
scale that photo is edited on. The inverse of `legacy_to_kelvin` is the composition of the two
Bradford adaptations run backwards: `lightcraft_pipeline::local::kelvin_to_legacy`. It maps the
source's own white to the relative scale's 6500 / 0 exactly, and answers None for a white the
relative scale cannot hold. Partials naming both fields or neither, presets and the crs / Luminar
importers are untouched: they always write `temp`, `tint` and `scale` together.
Tests: the round trip over the slider's reach, in both directions, and hostile inputs
(`crates/pipeline/src/local.rs`); the merge cases both ways plus the unchanged ones, and a restated
value that must not move the white at all (`crates/engine/src/tests_color.rs`). Both fail before
the change.
Co-Authored-By: Claude <[email protected]>
|
||
|
|
672baaea46 | Merge lightcraft#2913 (egui 0.37) into docking-adoption; craft-ui and craft-docpath at craft-libs main a091680 | ||
|
|
c627ce7210 | egui-037: preserve modal input ownership and packaged font notices | ||
|
|
e7144adc1f | M0.37: reconcile current LightCraft main and qualify the migration |