Files
lightcraft/docs/showcase
skylar taylor 57de0abe8e LightCraft: port the UI to the Craft framework (#4750)
* 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
2026-12-02 21:31:09 -06:00
..

README showcase

The screenshots in docs/images/ are captured by driving LightCraft over its control channel.

# public-domain set (downloaded into the gitignored corpus/, see assets/ATTRIBUTION.md for sources)
cargo run --release -p lightcraft -- --memory --control 7980 corpus/images/pd &
python3 docs/showcase/run.py docs/showcase/pd-edits.jsonl

# procedural demo library
cargo run --release -p lightcraft -- --memory --control 7980 &
python3 docs/showcase/run.py docs/showcase/demo.jsonl

# compress for the repo (macOS)
for f in docs/images/*.png; do sips -s format jpeg -s formatOptions 82 "$f" --out "${f%.png}.jpg" && rm "$f"; done

run.py sends each JSON line ({"method":…,"params":…} or {"sleep": seconds}) to 127.0.0.1:7980.