* LR-FILT-TYPE: an Originals / Virtual copies choice in the filter bar (#5029)
The filter bar gets an Originals and copies menu next to Edited or not; library.filter gains `virtualCopy` (true: only virtual copies, false: only originals), which combines with the type and the other rules. The chip names it and clears it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU
* LR-FILT-TYPE: review: the Lightroom result's reset clears Originals / Virtual copies (test), agents find virtualCopy
- dialogs/confirm.rs resets virtualCopy with the other fields serde leaves out, so Show in Library no longer keeps the imported originals hidden behind Virtual copies; lightroom_result_stays_readable_and_shows_photos_hidden_by_a_filter sets it.
- library.filter and album.createSmart list virtualCopy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* LR-FILT-LABEL: a No label choice in the filter bar shows the photos without a colour label (#5028)
The Label group of the filter bar gets a No label button after the colour swatches: alone it shows the photos without a colour label, with colours on it shows those photos too. library.filter gains `unlabeled`, one more choice of the `labels` multi-select; the chip names it and clears it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU
* LR-FILT-LABEL: review: the filter bar keeps No label with the swatches (headless test), the Lightroom result's reset clears it (test), agents find unlabeled
- filter_bar_no_label_combines_with_the_swatches: No label, then Red keeps both, then No label again leaves Red.
- lightroom_result_stays_readable_and_shows_photos_hidden_by_a_filter sets unlabeled, so the reset line is covered.
- library.filter lists labels and unlabeled; album.createSmart lists unlabeled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mj2w3LwYjFhMHALZuFp2rU
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
- Map view (and the navigator) no longer draw tiles centred inside a private saved
location until the user chooses Show Map; the choice resets on library switch.
- Pins, cluster badges, location circles and track marks use theme Tokens (map_*)
instead of file-level colour constants.
- map.trackLog keeps the 50 MB cap; photo.autoTagTracklog keeps its previous 256 MB cap.
Main now occupies V13 through V16 (LATEST = V16), so this branch moves the
Apple ProRAW tone chain to V17 (LATEST, appended to Process::ALL). V1 to V16
and the 9->V8 / 11-12->V10 fallbacks are preserved unchanged.
Also addresses CodeRabbit's smart.rs review comment: deserialize SmartFacts::proraw
leniently so an invalid curve is ignored instead of dropping the rest of the stored
facts and mattes.
Co-authored-by: Exalted5373 <247056922+Exalted5373@users.noreply.github.com>
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.
Conflicts resolved:
- docking.rs: main's rewritten show(), with the Map view's hooks put back in it
(the mini-map and location filter reset, the track-log poll, map_drawn reset,
the Map view arm and the tile service's end of frame).
- shortcuts.rs: main's pressed_commands(clips) and matches_with, with the Map
view's remaps (grid_key_command's map flag, + zooms the map); main moved the
Shift+Tab handling elsewhere.
- grid.rs: Show in Map as a framework menu Row, like the rows around it.
Adapted to the port: the Map Style picker uses widgets::menu_dropdown (combo_box
is gone), and the saved location's rename field takes the focus through
text_field::focus (an egui focus request no longer reaches the field's text).
* row debug
* Import review body scrolls again and number fields give up the keyboard on Return
- The review no longer caps its body with set_max_height (egui stacked everything past the cap at its bottom edge, so an opened recipe could not scroll); the photo grid reads the body's room from note_body_room instead.
- Import recipe and print number fields blur on Return, as the app's own fields do: a focused framework number field keeps the wheel, so the body would not scroll.
- headless import rename tags test seeds the caret on the framework field's text part.
* Rating row: measure inside a measuring run so the real run checks nothing against the shell's kept transcript
* Bottom bar: the unflag circle is not selected while a photo has no flag (as on main)
* Keywording box: lit view choice, compact Sm suggestions, exact chip widths, keyword set dropdown room and chevron, + and − glyph buttons
* Library chooser: footer buttons below the list, unavailable libraries readable
- The blocking window reserves the height its real body took (the framework measures the body shorter: the list rows are host targets only in a real pass), so the footer's buttons no longer cover Remove from List and its hint.
- A library that can't be opened lists its name and folder muted, not disabled-faint.
* Keyword tag dialog measuring copies get their own ids; screenshot test copied from w2-grid (to drop before merge)
* Left panel: sidebar title and header roles, muted counts, month names with their year; masking clash test
* Screenshot test of every window and dialog (ignored; LC_SHOTS_DIR), for main-versus-port comparison
* Presets list: group headers bold, names indented and muted under their group
* Masking: inset sliders, fixed decimals, wider overlay dropdown, non-selectable row labels; save effect dialog width and label colours
* Chosen keyword view lit; keyword set label small; keyword list tests use windows tall enough for the taller Keywords box
* Presets: tree-item role and framework overlay oracles in preset tests
* i18n Presets test installs the framework runtime
* Presets rows do nothing while photos are carried
* Mask local sliders on the shared develop slider row; remove the private track face
* Mask sliders: no fixed decimals for now
* Keyword set dropdown at small size; drops test window; debug for clip and ticking
* v3 round: slider rows measured then shown at their room, reset hint at the pointer, crop angle field and overlay rows, crop aspect row wraps, framework menus skip speculative passes; tests follow framework menus and pressed state
* Dropdown faces are measured and shown at their room, as the rating row is
* Paste Settings description not selectable (no duplicate-id clash with the measuring run); text_button tests read a selected button as toggled (aria-pressed)
* Clip test selects a photo so the framework tick is live
* Lens blur focus menu test follows the framework value menu's keyboard model (the checked row leads; arrows move, Enter or Space picks, Escape closes)
* Look round: LightCraft's colours on the framework theme, framework told about LightCraft's fonts, docked panels edge to edge
- theme.rs: framework_theme(kind) pins LightCraft's tokens (chrome, canvas, field, button, text, divider,
borders, hover/pressed/selected, accent, text selection, scrim) on the suite default; app/shell.rs passes it
as the root's library theme. Framework panels, docks, dialogs, popups and controls now sit in LightCraft's
charcoal instead of the suite's #535353, text fields select in the accent, and the framework scrim dims
as LightCraft's own dialog dim (SCRIM_ALPHA 140), so every dialog dims the same.
- theme.rs/app.rs: tell_framework_fonts installs the framework's default stack once per context before the
first pass, so the framework knows a `semibold` family and the line ratio: strong text, list headers and
dialog titles are semibold again. (Inside a pass it asked for a rerun; doing it before the pass keeps the
pass count.)
- docking.rs: the Library, Tools and Presets bodies show edge to edge (WindowKind::Document); left.rs keeps an
8 pt margin inside the sidebar's own border, so the inset frame is gone and the rows sit where they did.
- bottombar.rs: the unflag circle is never shown selected (no blue ring).
- right.rs: the empty Tools panel allocates its room, so its border is the panel's edge, not a stray dot.
- dialogs.rs: the Keyword Tag dialog's captions are not selectable, so the measuring run no longer gives
their ids a second use (the red id-clash overlays in scene 75).
* Dialog visual round (w5): dropdowns look like selects, export rows as main's, nothing cut to an ellipsis
- widgets::menu_field: the closed box of a dropdown (the framework's dropdown well, value at the start, chevron at
the end) for value menus whose rows keep their own automation names; used by the smart-album rule dropdowns, View
Options' info lines, the export Preset picker and the album picker.
- Export: slider rows as main had them (caption and typed value over a full-width track, existing ids); short radio
groups keep to one line (Format with Original files), the dialog taking the few points the radios need; the Tags
button gets the room it really takes.
- Smart-album rules: − and + and + Group are as wide as their text needs.
- Rename: preset buttons at their whole width; the active preset has the accent outline.
- Keyboard Shortcuts: the restore button draws LightCraft's arrow (the UI font has no ↺); a faint row stripe.
- Print: a 3 pt row gap so the Bottom margin row shows without scrolling.
- Import review: the thumbnail size track takes the row up to its value box.
* Clip test reads the tick's recorded actual response rect
* hold debug
* UNRUN: point-colour samples are one radio group of swatches; point_color_controls_tests read the framework's records and focus (not yet compiled or run: no build reservation fits)
* The Keyword List hold ignores sizing and measuring runs; remove the hold debug prints
* One port_screenshots module (two branches each added the mod line)
* Point colour group: read enabled before the closure
* The Keyword List hold is taken by the real draw, not by a sizing or measuring run
* Drop the screenshot test copy (the grid's is kept)
* Keywords box mode buttons use the framework's own selected look (UI522)
* Rename presets: the active preset keeps the framework's selected look (no LightCraft accent outline; UI522)
* Host targets use the framework's own focus ring
* UI522: selection, focus and text-selection looks back to the framework theme's own
The framework theme keeps LightCraft's surfaces, text, lines, hover/pressed fills, accent and scrim, and no
longer pins state.selected, state.text_selection or line.focus; the suite default's own pins stay for every token
LightCraft does not set.
* Import review lays out the same in every run: rows within the body's clip, grid room measured in the same pass, recipe end reachable
- The shell no longer forces the dialog body width on the fixed-size import review: with the scroll bar's gutter taken out, rows ran under the clip.
- The grid's room comes from the window's real height less the measured chrome; the body's start and the rows below the grid are noted in the measuring run too, so rows that appear this pass (Copy/Move destination) no longer move a frame later.
- The measuring run reserves the height the real body took, so an opened recipe's last rows can be scrolled to.
- Recipe flow test wheels over the dialog body's scroll bar at the footer OK button's right edge (the window margin lies outside the scrolling body).
* hold debug 2
* Keys round v3: clipboard and F6/F10 to the keymap, opener-menu Escape, focus reveal, wheel steps, docking Debug/widths/held gestures, test updates
* Restore the screenshot test; drop a stray debug print
* Right panel reads the scroll offset through its accessor
* hold debug 2 compiles
* hold debug 3
* hold debug 4
* Left panel v4r2: folder_drop helper moves the pointer a frame before pressing; temp trace
* The Keyword List hold starts from the offset the last real pass ended at; remove hold debug
* Face name box: a press on its own buttons is not a dismissal
* Save Effect: the framework footer, content-capped width, framework dots icon for the group picker
* Keywords box: mode buttons are toggle buttons, chip outline holds its x; bottom bar debug
* Labels are not selectable by default (no duplicate ids from measuring runs)
* Edit panel id-clash test: no egui 'Double use of widget ID' at rest, with the Profile menu open, or after it closes
* Import review settles before it is used; chosen Transfer, Adjust… and Rename preset show the framework's on look
- The height below the import grid is noted from real runs only (the measuring run reserves the real body's height, which fed back and shrank the grid to one row), and a change asks for another frame, so a settled review no longer moves its rows on the next frame (importCopy, album picker "moved before its press").
- Add in place / Copy / Move and Adjust… are the framework's ToggleButton (controls::choice); the Rename presets too: a Button given selected paints no on state (UI522: the framework's own selected look).
- Test: rename_preview_flow expects the preset to be a ToggleButton.
* Bottom bar zoom faces at small size so the centre keeps Copy Edit Settings; remove debug
* Export slider rows as compact as main's: one 40-point allocation for caption and track (from w5-dialogs)
- The Export dialog fits its tall-window height again; dialog_fit's width check accepts 614.2-640 (the short choice groups are framework radios on one line; accepted by the port owner).
* Mask opacity: next lets the field's own decimals win, so no opt-in
* Info fields keep an edit through a rerun pass; wheel grab survives measuring runs; Rename paste menu; narrow window fits the docks; clipboard host test
* folder_drop: click through the control channel; remove the popup trace
* egui fork rev follows craft-libs next (b15ffe9)
* hold debug 5
* Save Effect: the include block is as wide as the body, so the dialog is
* Covered-dialog Escape tests draw the real quit prompt
- tests::covered_escape: the full app with a typed New Album name; an Escape in the quit prompt's creation pass and at a settled prompt leaves the field's typing and the dialog alone; without a prompt the same Escape closes the dialog (control).
- print_template and smart_rules flow harnesses show the real quit prompt while blocked and run each frame through its barrier (dialogs::show_under_prompt, cfg(test)), instead of passing blocked with no prompt drawn. Assertions unchanged.
* Lens blur shape tooltip test leaves the button before resting on it (a press hides a framework tooltip until the pointer leaves)
* Tests follow the v5 framework: batched click's release lands a frame later, a rerun pass has no events, the loupe menu is the framework's in both runs
- library_problem: one more step after a batched move/press/release (the framework holds what follows a press for the next frame).
- keymap measuring: the F9 check runs in the pass that had the F9.
- loupe view options: menu state read from the framework menu's binding in both runs (no egui popup any more).
* The Keyword List hold keeps the offset a real pass started at; a sizing run no longer overwrites it; remove debug
* Red eye and lens blur shape: a key after a focused photo-scoped control goes away acts on nothing stale; focus may be nowhere (next 8206a076a) or on the surviving control
* A field's edit under its own Cut/Copy/Paste menu goes on: typing kept while the menu is open and as it fades after Esc
The framework field's edit menu takes the focus while shown; the wrapper now counts an edit under way in the last pass as still under way while that menu shows, so Settings keeps the half-typed text and Return saves it after Esc closes the menu (tests::dialog_settings_text::using_the_edit_menu_does_not_save_a_half_typed_text). A field that went away with its menu open still starts afresh.
* Save Effect flow: a refused whitespace name keeps focus in the name field
* Bottom bar dropdown faces: measure inside a measuring run (a real-run measure missed the shell's kept transcript every frame)
* Dropdown faces: measure inside a measuring run
* Save Effect flow: the no-fields refusal keeps focus in the name field too
* IME tests drive the framework field as the app does: runtime installed, framework focus, caret on the text part
text_field_ime_commit_replaces_the_selection is green; the delete-surrounding test stays red on a framework gap (the text-field adapter drops delete-surrounding edits; framework-gaps.md).
* v5 keys: date picker keeps its open calendar when the picker goes disabled; a floating panel over the title bar stops the window move; dock tab and gap tests follow v5's tab focus and two-point gap
* Slider rows: the real run shows at the height a measuring run kept, so show_at's measure is the row's only one in the real run
* Slider rows and point-colour group measure in the run they are in (no measuring-run wrapper), so the body's measuring and real runs record the same leaves
* Headless capture forks the window's UI memory into the shadow context (fork_into) instead of copying egui Memory
A plain Memory copy shared the window's runtime state (pass state, focus, overlays) with the shadow, and the shadow's pass left the window's hold with nothing (pass_state.rs "another thread holds this context's pass state"). craft::ui::runtime::memory::fork_into copies scroll offsets and open sections by value and leaves the shadow its own runtime.
* Held-divider tests step once more after the move: the v6 dock applies a divider move in the following pass
* Slider value field gives the keyboard back on Return as on Escape; crop Angle writes a turned angle with its sign (+2.50)
* Slider value field: Return or Escape on the pass that opens it gives the keyboard back on the next pass; opening-release tests check the keyboard one frame later
* Import review grid fills its room: the room is the body's visible height, measured in the real run
The shell's chrome guess (window height less content height) assumed the window hugs its content; the fixed-size import review's empty space counted as chrome and the grid lost its second row. The grid's room now comes from the body's clip in the real run (one row gap less), used by both runs. port_screenshots: LC_SHOTS_ONLY renders only matching scenes.
* Pin craft to craft-libs ui-port-integration (b9664e62c)
* UNRUN: camera local tone and mixer band tests read toggled from each control's own AccessKit node by id (a label-keyed map was overwritten by another node with the same name)
* Pin sidebar folder counts to the visible right edge again
The old sidebar kept every row's photo count in one column at the panel's
visible right edge while the content scrolled sideways under it, cut the name
with an ellipsis exactly at the pin, and let the count (and a colour label's
dot) give way — wholly past the edge, reached by scrolling — for a row too deep
to hold its name's least room and the count.
The framework row laid the count out in its own column at the end of a row that
reaches past the panel, so past a few levels every count had scrolled out of
view. `Pinned` computes the pin per row from the frame's own visible edge and
passes the moved COUNT and GAP cell rects to `ListRow::cells`; the name's column
is left as the list lays it out (its width is what the framework's indent asks
for, so the tree keeps its steps) and the name is cut with `elide_head` at the
pin, the whole name going into the row's tooltip. Counts are right-aligned. A
list that fits the panel keeps the framework's own layout, where the row already
ends at the edge.
Tests: the four deleted `a_count_that_gives_way_is_whole_*` tests are restored
(frames after a panel-width change, a sideways flick, a one-frame grow, and
every frame of a sideways scroll), `a_count_never_covers_the_name_of_a_deep_row`
gets its pin assertions back, and the deep-chain test no longer asserts the
opposite of a pin.
* Pin craft to craft-libs ui-port-integration (7036b630ac), for the list rows' scoped tree indent
* Sidebar: the indent step narrows in bands as folders nest deeper
The sidebar planned its width in one 16 pt step per level and let the framework indent by its
icon slot, so a deep tree spent the panel on indent and pushed the names out of it. Restore the old
app's adaptive step: 16, 14, 12 (the old ladder 16/14/12/10 with the research's 12 pt floor, so the
10 pt rung is never drawn) chosen once a frame from the panel's visible width and the deepest row,
never narrower than the floor, with the sideways scroll as the last resort.
The step is handed to the framework as its tree's `TreeIndent` (craft-libs 7036b630ac), so the
label, the icon, the disclosure and the accessibility level follow it together, and the content
width and the label rect the app reports follow the same step.
Tests: the deleted `the_indent_step_narrows_in_bands` is back (whole bands from the panel width and
the deepest row, never below the floor), and `a_deep_library_path_keeps_the_names_readable` returns
to the old promise as `a_deep_library_path_narrows_the_indent_instead_of_cutting_the_names` (the
narrow step in the default panel, the full step in a wide one, a shallow tree unchanged).
* CodeRabbit #4750: reuse an Info draft only in the pass that drew it
* CodeRabbit #4750: keep an edit committed during a drag when the drag is cancelled
* CodeRabbit #4750: preview a duration from the gesture's start
A slide dragged shorter than the fade clamps the fade in the memory preview, so
merging the next preview (or the released value) onto those clamped settings
kept the fade short for good: Escape gave the slide back but left the shorter
fade, and a release at a slide that allows the original fade saved the clamped
one. The Playback durations now keep the settings the gesture began with and
work every preview and the save out from those, and a slider step reports its
gesture's Begin (the value it started from) so they can.
Tests: slideshow_duration_escape_restores_the_fade_a_shorter_slide_clamped,
slideshow_duration_release_clamps_the_fade_by_the_value_let_go_of,
slideshow_fade_duration_is_clamped_by_the_slide_alone.
* CodeRabbit #4750: ignore the journey that needs a private tmp
The saved-photos journey reads TMPDIR and LIGHTCRAFT_REAL_JOURNEY_ROOT and
panics when an ordinary run has neither, so a plain `cargo test -p
lightcraft-ui-egui --lib` failed on it. It is `#[ignore]`d with the reason, like
the crate's other tests that need something an ordinary run does not have, and
the module docs give the invocation with --ignored.
* CodeRabbit #4750: highlight the album, not its place in the results
The picker remembered the highlighted search result as an index into the
pickable results, so a caller that reordered its albums between frames (a rename,
a new album) made Enter pick another album, with the query unchanged. The state
holds the album's id now, resolved against this pass's results: Enter picks that
album, and nothing when it has gone or become blocked.
Test: keyboard_highlight_follows_its_album_through_a_reorder_and_a_blocking.
* CodeRabbit #4750: give a headless capture the window's frame input
* CodeRabbit #4750: a same-pass click needs egui's click, not just its press and release
* CodeRabbit #4750: histogram drags commit only on a live pass
* CodeRabbit #4750: Light nudges land only on a real enabled pass
* CodeRabbit #4750: a slider ends only the interaction it began
* CodeRabbit #4750: window the By Date list before it measures
Expanding the months of several years listed every row of the By Date tree to
one `List`: over a thousand rows is past the framework's 32,768-point size
guard, and the collection went inert (disclosure triangles included).
`rows::rows_in_view` now holds the sidebar's windowing policy (the rows in
view, a row below, plain space standing in for the rest, the names of the rows
left out kept for the control channel), and the By Date list uses it: only the
rows in view are built, the rest stand as the space above and below, and their
`source📅` names are registered where they are.
Test: `an_expanded_by_date_tree_keeps_showing_past_the_size_guard`.
* CodeRabbit #4750: the Effect menu's Return belongs to the focused control
The menu read Enter with `key_pressed` for any focused control and in every
pass: Return on Manage Presets, Reset Sliders or Save Current Settings applied
a preset to the mask instead of running the control, and a measuring pass of
the menu body could apply one during layout.
The keys are now read only while the search field has the keyboard in a live
pass (`text_field::focused`, or the field's own submitted Return), and Return
is consumed there; otherwise it is left for the control that has focus. The
search field is also focused only in a live pass.
Test: `effect_menu_return_runs_the_focused_action_instead_of_applying_a_preset`.
* CodeRabbit #4750: keep the hand-painted face under the focus ring
A hit area's caller paints the area's face over the same rectangle the leaf
paints its inset keyboard focus ring in, on the same layer, after the leaf:
a keyboard-focused segment, section header, flyout row or drop-down showed no
ring at all.
`HitArea::show_at` now reserves a place in the layer's paint list either side
of the leaf's own paint, and `HitAreaOutput::face_under_ring` moves what the
caller drew between them to the place before the ring, so the ring paints
above the face. Every caller (arrow button, section header and its eye, flyout
row, segments, drop-down) calls it once its face is drawn; hit rects, focus
stops and the face itself are unchanged.
Test: `the_area_face_paints_under_the_keyboard_focus_ring`.
The test now sends a key press after the focus request: the framework paints a
focus ring only for focus a key reached (`FOCUS_VISIBLE`), as a person tabbing
through the panel gives it.
* CodeRabbit #4750: come back to an edit committed during a drag, not over it
* CodeRabbit #4750: end a duration gesture so nothing of it lingers
A drag's start was only dropped on Step::Save, so a cancel (or a commit that
changed nothing) left it in temp memory, and the next one-pass change -- a press
on the track, a typed number, the wheel, with no Begin of its own -- restored
that stale start before saving. Ticking Manual slideshow after a cancelled drag
and then setting the slide duration wrote Manual back to what it was when the
drag began.
controls::slider now ends every gesture with Step::End (a commit, a cancel, and
a one-pass Set, which now also hears its own Begin), and duration_slider drops
its start there, so a later change can't colour the next one.
Test: slideshow_duration_a_one_pass_change_keeps_what_changed_since_a_cancelled_drag
(the one-pass change is a press on the track: these sliders carry no key policy,
so an arrow key does not step them).
* cargo fmt --all
* Crop and Remove dropdowns: publish rows only while the menu is open
A closing framework menu still paints its rows; labeled_dropdown now publishes
the row aliases only while the opener's menu slot is open (overlay::opened_from),
so a pick, Escape or a press outside leaves no live row. Sizing and measuring
runs show no menu, as the Tool Overlay dropdown, so they publish nothing and
take no pick. The crop overlay flow test checks the whole label sits in its row
instead of the opening clip.
* Make the ui-egui crate clippy-clean under -D warnings
The `cargo clippy --workspace --all-targets -- -D warnings` pass reported these
in the crate's own files, so each is fixed where clippy points:
- `egui::Id::new` -> `Id::unique` (same value; `Id::new` is deprecated)
- unused imports (`register` in crop.rs and lens_blur.rs), unused variables, and
dead items: the unused `build_all` builder, `SideShown::label`, the test
helpers `person` and `key`/`focus`/`tab_to`, and the never-constructed
`Modal::Dialog` variant (with the docs that named it)
- a deprecated `scroll_area::State::offset` -> `clamped_offset` (its body)
- nested `if`s collapsed into let chains; a single-element `for` unrolled
- `!(x > 0.0)` on floats rewritten as a named condition, keeping NaN behaviour
- `filter_map(..then(..))` -> `filter(..).map(..)` and a `let ... else` -> `?`
- `unreachable!` in test matches -> `panic!("<what> {value}")`
- `red_eye`'s cognitive complexity (33/30): the numeric ownership, the target
eye, the stale-gesture cancel and the per-slider cancel each became a named
helper with the code moved, not rewritten
- `expect` in `install_framework` and the same panic in a `#[cfg(all(test, ...))]`
fixture module, which clippy does not treat as test code: `assert!` there, and
a file-level `allow(clippy::unwrap_used, clippy::panic)` with a reason in that
test module only, plus one narrow `allow(clippy::if_same_then_else)` where the
native-settings and ported scopes deliberately draw the same section
No behaviour or test assertions change.
* Make the ui-egui tests and dialogs clippy-clean
Fix the clippy findings in this branch's files without changing behaviour:
- collapse nested ifs into let chains (pick_flow, denoise_qualified_work,
date_filter, keyword_suggestions) and drop an identical-branch if whose two
arms drew the same tab (display_profile, slide_overlays_sdk)
- remove code nothing reads or calls: PaintedText and its collection, Node's
description/checked, Fixture::idle/has/arm/undo_redo, frame::num and
frame::choices, CONTRIBUTOR_GROW, the unused rename_preview re-export and
AUTO/QUEUE consts, an unused had_focus, vec2 and Icon import, and a
redundant `let mut state = state`
- replace unreachable! in tests with panic! carrying the case, and make
dialog_content's About arm a no-op (show() never draws About there) instead
of panicking
- split shell()'s press/close block into settle_dialog() with a Closing value,
split the print template test into its workflow steps, and bundle the rule
editor number field's span into a Span struct (too many arguments)
- egui::Id::new -> Id::unique, as_ref on a &str dropped, a closure called at
its declaration inlined, needless &i18n::tr() borrows dropped, and
crop_angle_label's re-export gated on cfg(test)
One narrow allow: HeadlessView::new() keeps expect() on install_runtime, which
registers on a fresh context and has no way to report a failure from new().
* Fix clippy findings in the ui-egui files for CI
Every finding from the PR 4750 clippy run in the files this branch owns,
fixed as clippy suggested or with a small refactor; no #[allow] added.
- unused imports, an unused ctx parameter (now `_ctx`), unused test helpers
(`Fixture::has`, `Hit::published`), an unread `HitOutput.cancelled` field and
its now-unwritable `Hit.visual` field
- collapsible ifs -> let chains (faces, mixer, mixer band flow test)
- identical if/else blocks and `(closure)()` calls collapsed
- useless `as_ref()` in accesskit label comparisons, `to_vec()` for a slice
copy, `assert!(!x)` instead of `assert_eq!(x, false)`
- `unreachable!` in test helpers -> `panic!` with the offending value
- `number()` in the Print dialog takes a `NumberSpec` instead of 8 arguments
- cognitive complexity: local_rows' row-event loop, the two Save Effect
include/popup journeys and the real journey test are split into named
helpers (the journey test into stage/open/rate/develop/undo/persist/export
phases), keeping every assertion and its order
The auto-import port test module is declared with `#[cfg(test)]` plus
`#[cfg(not(target_arch = "wasm32"))]` instead of one `all(...)`: clippy's
`allow-unwrap-in-tests`/`allow-panic-in-tests` only recognise the plain
`#[cfg(test)]` form, and the module is test code either way.
cargo fmt --all run.
* Clippy round 2: a test import and a needless mut
* CodeRabbit #4750: drop the test passes' texture deltas like the harness does
* CodeRabbit #4750: keep Light nudges across an invisible sizing pass, and stop the histogram test stepping the clock back
egui's `UiBuilder::invisible()` also disables the Ui, so a sizing pass is a disabled one:
`apply_pending` dropped the queued nudge there instead of keeping it for the pass that draws
(the sizing/measure check now comes first, the enablement check after — the order production
needs too, since a panel can be drawn in an invisible sizing run).
The histogram test's manual measuring pass ran at `h.time() + 0.1`, ahead of the harness clock, so
the next `step()` fed egui an earlier time and tripped its frame-history assert; it now runs at
`h.time()` — the time the next harness frame uses — as the Light test's passes do.
* Settings keyboard tests: a settle budget that survives a slow hosted runner
* Pin craft to ui-port-integration-2 (main + every open framework PR) and egui to the fork's b9770908e
* CI: the gate's ceiling records the ported suite's measured time (sharding is the follow-up)
* Rename/import: the unknown-tag warning row always takes its line, so a warning never moves the fields
* Masking test: the focused slider takes the arrow over another hovered one (#3271)
* Port main's cull stack_groups and dialog instance into the ported tests
* Port main's print-template folder menus without a nested framework submenu; keep the folder feature
* Rules editor: take arrow keys only in a real pass; window-fill guards for the ported bars
* Rules editor: notes on the focus drop; no debug prints left
* Rules editor: trace-freed tree; landing notes record the staged-pass root cause
* Print templates: open the folder dropdown only in a real pass; face painted whole
* Print templates: the folder pick is applied outside the menu body, so a picked folder reaches the save
* Print templates: the Folder selector has three intents (unpicked, User Templates, a named folder), and the clear is sent as the label the engine reads
* Print: selecting a template folder dismisses the picker
* Print: use framework context menus in the template browser
* Tests: match the boxed embedded lens in the optics fixture
* Print: apply template moves after drawing folder rows
* Smart Rules: keep keyboard focus on the moved rule
* Print tests: inspect the production text field region
* Fix input fixtures for folder drop and export variable tests
* Keep Settings heading aliases out of speculative passes
Check the three named SDK Cull checkboxes now that Stack and Regroup are mounted.
* Dates: exercise the sidebar’s real expansion state in fixtures
* Restore framework context menus on filmstrip photos and badges
* Route filmstrip wheel input through the explicit scroll step
* Print: dismiss on Escape from the template name field
* Menu test: exercise the reachable part of a clipped submenu row
* Masking: preserve overlay preference and show held Refine
* Masking tests: distinguish live development from brush tint
* Masking test: snapshot the held stroke after settling
* Keep export insertion and crop size automation wired
* Exercise Export and search through the installed SDK runtime
* Pin the LightCraft UI port to landed craft-libs main
* Format the merged LightCraft UI port
* Adapt LightCraft to the landed UI framework API
* Clear dead port helpers and split the brush assertions
* Keep recursive Alt-click for imported folders
* Check right-panel Tab order within its Tools landmark
* Assert Crop offset fields and sliders in Tab order
* Save Effect: a clicked name field keeps its focus after a refused Create
A focus Tab or a request gives a framework text field never surrenders on a press
elsewhere, but egui's text edit asks for the focus again on its own click, which puts
that focus back on egui's click-away rule. A click on Create, which takes no focus,
then dropped the name being corrected after a refused save. The Save naming fields now
keep the runtime's rule for a focus they already hold; no focus is requested.
(cherry picked from commit 7c1c70015502829b48ae515fb3472bc454b557ef)
* Preserve keyboard selection when the library chooser opens
* Install the UI runtime in real app startup test fixtures
* Drain completed frames in gesture regression fixtures
* Preserve main’s patched Candle and zip dependency pins
* Pin the LightCraft UI to the landed Craft framework fixes
* Take the owned response from framework toggle edits
* Avoid rendering demo photos in Settings keyboard trials
* Give the LightCraft Windows CI gate time to finish
* Use one file-backed photo for slideshow crop geometry coverage
* Clarify the default size of the file-backed test fixture
* Use a small nonempty library for Rules Editor tests
* Keep paint and numeric-input trials independent of demo photos
* Use two real files for Compare and reference render trials
* Keep test fixture imports in formatter order
* Keep Compare fixture above the zoom-window threshold
* Keep Quick Develop keyboard cases independent by edit row
* Keep a bounded cross-row Quick Develop keyboard sequence
* Skip photo renders for activity-only UI tests
* Wait for Activity fixture input readiness
* Hold a valid test download open until activity cancellation
* Separate the Tone Curve histogram status from graph editing
* Expect rating chip removal to clear stars and operator
* Log Ubuntu memory during the LightCraft draft gate
* Match the quoted Curve render path in test diagnostics
* Revert "Log Ubuntu memory during the LightCraft draft gate"
This reverts commit c90026ff8e.
* Port the per-photo denoise method picker to the SDK
* Run the draft's Ubuntu gate once on the 16-core runner
Temporary diagnostic for one run: does the gate complete on a 16-core/64 GB
runner? Revert before any further run or landing.
* Revert "Run the draft's Ubuntu gate once on the 16-core runner"
This reverts commit 894426b6c7.
* Pin the LightCraft SDK context lifetime backport
* Run the standard Ubuntu CI gate with two test threads
* Canonicalize the lockfile after the SDK backport pin
* Clarify the appearance mode fixture helper name
* Report frame geometry when the Rename pointer assertion fails
From review on the Map view: the images in arrival events waiting for the UI's
next poll were not counted, so a burst of large tiles before a frame could hold
far more than the decoded-memory budget (96 MB for 24 tiles of 1024 px). They are
now bounded by it too: past it, the oldest waiting arrivals are dropped (a tile
still in memory is drawn from there; one evicted is looked for again while it is
in view, the map repainting every 100 ms while a tile is missing).
Also: a cached copy that fails to decode after a 304 is taken off the disk
(unless replaced since), so the next try fetches it whole.
From review on the Map view: a revalidation sends the validators of the copy on
disk and keeps its bytes. On a 304, the disk entry is renewed only while it
still holds those bytes (another writer may have replaced it meanwhile: that copy
is left as it is and revalidated later), and the map then shows the validated
copy, decoded, instead of renewing whatever older image memory held.
From review on the Map view:
- An error answer (429, 5xx) is returned with its status and headers as soon as
they arrive, its body never read: an error page too large or too slow no longer
hides that the host is throttling (Retry-After reaches the backoff).
- lightcraft-fetch's Limits gains an overall deadline (`deadline`, HttpError::TooSlow),
checked before every socket read and write, including chunk-size and trailer
lines and each TLS handshake step (complete_io looped inside and is no longer
used), and in connection setup when it comes before the connect timeout. A
server trickling one byte under the stall timeout can no longer hold a request
indefinitely. The tile transport sets it to its connect + body time; the model
downloader passes none.
A custom source pointed at OpenStreetMap's own tile servers (tile.openstreetmap.org,
its a./b./c. names, any path, a trailing dot) is now the OpenStreetMap source
whatever its id, so it always shows OpenStreetMap's licence credit and asks at
most zoom 19; another credit or a higher zoom is refused. docs/map.md says so,
and says exactly which files clearing the tile cache deletes.
Clearing and evicting the cache, and sweeping leftover temporary files, now
touch only the names LightCraft gives (<source>/<z>/<x>/<y>.tile and
<y>.tile.<pid>-<seq>.part in numeric folders), so a cache folder pointed at a
folder that holds other files (LIGHTCRAFT_MAP_CACHE) loses none of them.
Ids were the highest remaining plus one, so deleting the newest location gave
its id to the next one: a caller holding the old id could rename or change the
privacy of a different location. locations.json now keeps the highest id ever
given out (lastId; 0 in older files), so a new location always gets a new id,
also after a reopen.
From review on the Map view:
- A damaged locations.json while prefs.json still holds an older copy of the
saved locations: the damaged file is set aside and the older copy is taken
over and confirmed, as when there is no file (a later save no longer leaves it
behind in a prefs.json that drops it).
- A failed locations.json write stays pending like prefs.json: retried, counted
as unsaved, and closing the library refuses until it lands.
- A locations.json unreadable at open: location commands are refused before
anything changes, instead of keeping an edit only in memory.
- A prefs.json unreadable at open: a change that needs it is reported as unsaved
rather than dropped silently (closing still works: retrying can't help).
- Opening another library retries the current one's pending prefs.json and
locations.json writes first, and fails (keeping it open) if one can't land.
- GPS ownership is written to prefs.json only once its catalog change is on
disk (the log appended and flushed, or the closing snapshot): prefs.json never
holds ownership of a change a crash could lose, whatever saves it.
From review on the Map view:
- A later failure no longer shortens a Retry-After wait already running.
- Setting or removing GPS marks only the photos the batch changed as
LightCraft's for their sidecar GPS.
- Info panel "Show Map" approvals are tied to the location's centre as well as
its id (a deleted id can be reused) and cleared when another library opens.
- Tile textures are keyed by the URL-aware cache id, so a custom source pointed
at another server doesn't show the old one's tiles.
- Clearing a drawn track log no longer drops one still loading.
- lightcraft-cli snapshot sessions stay offline: OpenStreetMap's tile policy
rules out scripted fetching.
- A stale tile counts as new work only when it can be fetched: offline, it made
every frame re-filter and re-sort the queues (review on #4243).
- A wanted tile evicted from memory (a view wanting more than the budget holds)
is looked for again, at most once a second and only while no download waits.
- A tile missing from disk with nothing to fetch it is not looked up again until
the retry delay. ServiceStats counts disk lookups.
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 <noreply@anthropic.com>
* Import: optional backup copy that mirrors the destination (#4840)
Copy and Move imports can make a second, verified copy of each file in a
backup folder (dialog: Backup to; library.import: backup). The backup takes
the path the main copy ended up with, relative to the destination, so
folder and rename templates, sequence numbers, the -1 of a taken name and
Copy as DNG all carry over: the backup mirrors the destination.
Each backup gets the check Copy runs (copy_verified: a new file, synced,
checked against the probe hash or byte for byte); a bad one is removed and
reported in backupFailed. A Move keeps the original of a photo whose backup
failed. A different file already at the backup's place is left alone and
reported, never renamed. A backup with mode add, or a backup folder that is,
is inside or contains the destination, is refused up front.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import backup: address review findings (#4840)
- A backup place that is the file being imported (a backup folder set to
the card) is not a backup: it is reported, and a Move keeps the original
instead of deleting the only copy.
- The backup folder check runs when library.import's params are checked,
so the import dialog refuses it before creating a new album.
- The "outside the destination" check also compares the folders with
links resolved through their nearest existing ancestor, so a backup
folder that doesn't exist yet can't slip inside the destination.
- A photo browsed in Local that a Copy or Move adds in place is reported
in backupFailed.
- docs/user describes the latest release only: the import guide's backup
step is held back until a release ships the option.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import backup: resolve `..` and relative backup paths; refuse a backup on the main copy (#4840)
- import_move::resolved makes a path absolute and follows it part by part:
links of the parts that exist are resolved, and a `..` after a part that
doesn't exist yet steps back from it (it used to stop there and compare
the path unresolved, so <base>/missing/../out/bk got past the "outside
the destination" check).
- back_up also refuses a backup place that is the main copy or one of a
Move's placed sidecars, not only the original.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import backup: compare backup and destination in one path form (#4840)
On Windows, import_move::resolved gave a path whose first folder exists in
the \?\C:\ form canonicalizing returns, and one whose first folder doesn't
in the plain C:\ form; Path::starts_with told them apart, so a backup
inside a destination that doesn't exist yet could pass the overlap check.
resolved now always returns the plain form, and compare_key (used by the
overlap check and the backup-is-the-file check) also ignores letter case
on Windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Import backup: check folder overlap on resolved paths only (#4840)
backup_folder_error also ran import_move::inside, which compares the raw
paths first, so a folder beside the destination named through it
(<dest>/../bk) was refused as inside it. The resolved comparison
(compare_key: absolute, links and `..` followed) already covers equal and
nested folders, so the raw checks are dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* add my real name in contributors
* Import backup: a Move checks its backup again before removing the original (#4840)
The backup path a transfer made was dropped from the Move's bookkeeping,
so finish_moves checked only the main copy: a backup removed (or a backup
drive unplugged) while the catalog was committed and saved still let the
original be deleted. The path is now carried to finish_moves, and
import_move::backup_intact checks the photo's backup and its sidecars'
against the placed copies before the source is removed; when it fails the
original stays, reported in kept like a backup that failed outright.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* LR-FILT-RATING: = or ≤ no stars shows the unrated photos instead of every photo (#3417)
* Saving the view as a smart album keeps the rating's stars with its operator
* LR-FILT-RATING: deleting the keyword of a filter put aside keeps = or ≤ no stars
Enable Filters can put aside a filter of a keyword and "= no stars" or "≤ no stars". Deleting that keyword
dropped the whole filter, as if the rating operator alone filtered nothing. Since #3417 those operators show
the unrated photos, so the rule is still put aside and comes back. "≥ no stars" still filters nothing and is
dropped.
* style: apply CI formatting to saved rating filters
* refactor: separate no-match Smart Album rendering
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* LR-EDIT-CURVE: show sampled Tone Curve input (#987)
Keep the output Histogram separate. Sample each selected curve's input
with the production prefix LUT builder and strict request identity.
Preserve current main's source facts, mask behavior and render output.
Credit @zelefogs for the request and @aiongg for the input/output
clarification. Human contributor credit remains @AlexChambers.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: refresh curve input source after relink (#987)
Rebuild the prepared diagnostic job when its origin changes, even if
the content hash and render key stay the same. Retain completed
histograms for identical content.
Add a real-file regression through import, relink, the prepared-job
caller flow and the native worker. Check the actual retry path,
source facts and successful recovery.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: bound histogram UI test work (#987)
Use two small generated PNGs for the input-histogram tests. Keep the
production decoder, render queue and pipeline, and retain the 20-second
settle budget. The full demo library adds unrelated thumbnail and
neighbor work when the failure gate opens.
Assert that stale cached histograms stay hidden during pending and
failed replacements, and verify that clearing the selection leaves
no active photo. Keep the existing histogram stage checks.
Human contributor credit remains @AlexChambers.
Co-Authored-By: GPT-6-Astra <noreply@openai.com>
* LR-EDIT-CURVE: adapt the histogram to main's render parameters (#987)
Carry the curve input source, edit panel and tests into the module layout and
render-parameter API on current main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: register the histogram label with the panel's Ui (#987)
Main's register now takes the Ui, not its Context.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: match unknown channels to the Point input (#987)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: fit the merge to main's three-argument file loader; histogram-only slots in one helper (#987)
Main's loaders take the camera profile as a third argument, so the curve tests' loaders take it too. Keeping the Tone Curve and HDR histograms moves into keep_histogram, which brings Renderer::collect back under the cognitive complexity limit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: the input diagnostic's pixels are dithered like the render's (#987)
Main's finish dithers its 8-bit output with an 8x8 Bayer pattern (#3509). The diagnostic's image used plain rounding, so it no longer matched a render with the later curves removed; it now encodes with finish's dither at the same output position. Its histogram still bins the undithered samples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* LR-EDIT-CURVE: refresh the parity summary after the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Trim duplicate Tone Curve histogram tests (#987)
* LR-EDIT-CURVE: check the brush budget before sampling a curve's input (#987)
The Tone Curve input diagnostic went straight into mask preparation in
both the native render job and the web worker, skipping
check_brush_budget. An over-budget brush then lost its later strokes and
the backdrop showed that partial sample as the curve's input.
curve_input::render now runs check_brush_budget on its own clamped,
full-crop request (at most 256 px, no window) and returns a Result, so
both callers fail the request and the UI shows "Input histogram
unavailable". Regression tests cover the pipeline, the native job, the
worker and the headless UI.
* LR-EDIT-CURVE: tell screen readers the selected channel and the input status (#987)
The Tone Curve's channel buttons now report which channel is selected
(toggled), through the same helper the segmented controls use. The input
histogram's caption is a polite live region, so screen readers read it
when it changes between loading, sampled and unavailable, and the focus
stays where it is. A new announce_live helper sets the live region; the
AccessKit adapters read a live node only when its text changes.
The headless test view keeps the last frame's AccessKit tree in test
builds, and a new test checks both behaviours through it.
---------
Co-authored-by: GPT-6-Astra <noreply@openai.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* Camera look: refuse a fitted matrix led by another channel (#3973)
A Canon EOS 400D CR2 fitted blue = 2.07·R − 3.37·G + 2.38·B to its embedded JPEG
(and 2.97·R − 4.50·G + 2.57·B without its clipped pixels). The 96 px proxy holds
few saturated oranges, so the holdout gates passed it, and the render turned
orange lights and red roofs magenta. fit_matrix now refuses a matrix where a row
isn't led by its own channel or another channel weighs more than 1.0, for the
full look, the partial look and pooled profiles alike. LOOK_VERSION 14 and
RENDER_CACHE_VERSION 77 redraw what was built with such a fit.
* Camera look: judge a cross weight against the row's own weight (review)
An EOS 6D fit with blue row [1.86, -4.65, 3.87] renders a turquoise scene like
its camera JPEG but was refused by the absolute 1.0 limit. A row's own weight
must now be at least 1.5 times any positive cross weight: the refused fits have
0.87, 1.15 and 0.88, the 6D's 2.08.
* Camera look: hold stored camera profiles to the same matrix rule; log the real reason (review)
A camera profile in the config folder saved before the fit refused implausible matrices could
still carry one, and look_fit uses a profile's matrix before fitting. CameraProfile::valid now
also asks plausible_matrix, so such a profile is not loaded. The ten bundled profiles pass with a
margin (lowest own-to-cross ratio 4.8, the rule asks 1.5).
The profiling line said a refused row was "led by another channel", the first rule; it now names
the ratio. The fit's own doc line had slipped above plausible_matrix; it is back on fit_matrix.
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
remove_from_stacks_ops and ungroup_ops checked every stacked photo against
the passed slice, and culling's keep_active_shown and move_to_burst checked
the selection and burst members against Vecs: quadratic for large deletes,
selections and moves.
Fixes#4947Fixes#4948