Repository navigation
Conversation
This was referenced Oct 14, 2026
… on request A new library made by the desktop app filled itself with the 24 procedural demo photos, their albums and keywords, dressed as the person's own (realistic EXIF, "My Photos"), with nothing saying what they were and no way to take them out together. - A new desktop library starts empty. Its first screen (storytold#1761's empty state) is "Welcome to LightCraft" while the library has never held a photo, and offers Import Photos…, Import Lightroom Catalog… and Try Sample Photos. `--memory` keeps the demo photos (`--no-demo` for none); `lightcraft-cli --demo` and the web build are unchanged. A temporary session after a library error isn't welcomed. - `library.addSamples` (Help ▸ Add Sample Photos) adds the demo photos and albums as one undo step; refused while samples are in the library (Recently Deleted too), where the welcome no longer offers them. - `library.removeSamples` (Help ▸ Remove Sample Photos) removes every sample photo, the albums only they filled and the folders left holding none, as one undo step. An album that also holds a photo of the person's own stays, with that photo, and a cover that was a sample becomes its first photo left; a removed album being shown gives way to All Photos. - The catalog counts its sample photos as photos are added, removed or re-sourced (recounted by `repair` on load), so `Session::has_samples` costs no scan of a large library. - A banner under the top bar while a library holds samples: "These are sample photos…" with Import Photos… / Remove Sample Photos / Hide, or once photos of the person's own are in, Remove Sample Photos / Keep Them. Its buttons are laid out from the right, so a long translation shortens the message instead of pushing them out of a narrow window. Closing it is remembered (`samplesBannerHidden`); samples that newly appear bring it back. Not shown for an in-memory demo session. Removing says how many went and that Undo brings them back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n Recently Deleted With every sample photo in Recently Deleted the grid said "Your library is empty", while the banner above it still said "These are sample photos…" with a second Import Photos… button. - The catalog also counts the sample photos that are in the library (not in Recently Deleted), kept by one rule for every op that changes a photo: its state before and after. - The banner shows only while one is. The samples in Recently Deleted can still be removed with Help ▸ Remove Sample Photos, or restored, which brings the banner back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… to open The empty library's welcome shared the screen with an empty Tools panel whose own message was as loud as the welcome's title, a tool rail and a bottom bar of stars, flags and Copy Edit Settings with nothing to act on; and the samples, the best moment of the first minute, were its third, grey button. - While the welcome is shown, the Tools panel steps aside, remembered (in ui.json too, so quitting while empty doesn't lose it), and comes back once photos arrive: as it was, or as the Edit panel for an editing tool (Crop, Masking…) whose photo is gone. A panel the person opens or closes meanwhile is their choice. Browsing a Local folder or Recently Deleted brings it back, as those photos can be edited. - The bottom bar's rating, flags and Copy Edit Settings wait for a photo to use them on. - The right panel's empty-library message is one dim line (`empty_note`): one headline. - Under the welcome's buttons, a row of five sample photos (3 to 5 as the column allows, drawn on a worker thread, placeholders until they arrive): a click adds the samples and opens that one in Detail, where the Edit panel is back. Each is a named, focusable button. Where the row has no room (a narrow or short view) and in the web build, Try Sample Photos is a button as before; a temporary session offers neither. The thumbnails go the frame after the welcome isn't drawn, so their worker stops and the headless `settle` isn't kept waiting; a row out of room for a moment keeps them. - `empty_state` takes room below the hint, counted when the block is centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The empty library's welcome was painted text: a screen reader heard "Import Photos…, button" and nothing of the welcome around it. Nothing put the keyboard anywhere, and the light themes' dim text (the welcome's message and hint, panel notes, counts) read at 3.5–4.4:1, under WCAG AA. - Screen readers hear the welcome: its title as a heading, the message, the hint, the sample row's caption, and the right panel's note (`readable`: a hover-only node over painted text, read by its value as egui's labels are; the heading by its name). - A new library's welcome puts the keyboard on Import Photos… once a session; the welcome's buttons show an accent ring where the keyboard is. A focused plain button (the welcome's, its sample thumbnails) keeps only Enter, Space, Tab, Esc and the arrows, as dock chrome does: every other key still reaches shortcuts (Cmd/Ctrl+Shift+I among them), it isn't a text field for Esc or for macOS's menu bar accelerators. (Esc on the focused welcome also runs View ▸ Back, as it does with nothing focused.) - `text_dim` reaches 4.5:1 on chrome, canvas and grid in every theme: Charcoal and Midnight #949494, Silver #585858, Paper #6b6b6b. - The hint says a folder can be looked through without importing it, under Local in the sidebar, while Local is in sight (desktop). - The welcome is centred in the space below the grid's header (it overlapped it in a short window), and whether the sample row has room is measured from the message, not guessed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…which invites a first edit A design critique of the first run found the two ways into the samples ending apart: a welcome thumbnail opened that sample in Detail, while Try Sample Photos (the welcome's narrow and web button), Help ▸ Add Sample Photos and agents left a sparse grid of one photo per date. And once a sample was open, nothing said what to do: the banner still said "Import your own whenever you're ready", pointing away from the editor. - Samples coming into the empty library's welcome, however they are asked for (every path runs through `run_typed`), land on the first of the welcome's samples in Detail with the Edit panel (`land_on_samples`); a thumbnail then opens the one clicked. A library with photos of its own, or a Local folder or Recently Deleted on screen, stays as it is. - There, until the first change since they came (the session's commit count), the banner says "Drag any slider: the original never changes. Press Y to compare before and after." with the key Compare Before and After is bound to now (`samples::message`). Switching libraries ends it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… are the button component - The empty library's welcome: Import Photos… is a Primary button, the others Secondary, measured by the component (`empty_button`, for drawing and for the height that decides whether the sample row fits); the button height is the component's medium one. The first-run keyboard focus and the plain-button keys stay; the focus ring is the component's. - The samples banner: Import Photos… a small Primary, Remove Sample Photos a small Secondary, Hide / Keep Them a small Ghost (it was a frameless egui button that read as a label). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While the welcome is what the view shows (`empty_library::in_view`: the empty library in a grid,
or in Detail with nothing open, and no filter), the window steps back: the grid's "0 photos" and
the bottom bar (view modes and thumbnail size, with nothing to look at) aren't drawn, and the
sidebar's empty Albums, By Date, Folders and Keywords sections fold into one quiet line
("Albums, dates, folders and keywords appear here as photos arrive"). Local stays.
The empty state's title is in the brightest text, above the window's own headings, and its words
wrap at 540 points at most, as narrow as they go without another line, so the message reads as
two even lines rather than one run across a wide window (every empty state, and its measured
height, alike).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nledford
force-pushed
the
welcome-emphasis
branch
from
October 15, 2026 14:27
5a87890 to
9d72698
Compare
7 of 9 tasks
Contributor
Author
|
Folded into #1781, which now holds this PR's commits together with the rest of its chain, rebased onto current |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1811 (the onboarding stack). The one new commit is "LR-BEHAV-EMPTY-STATES: the welcome stands out from the window around it". This is the first of four PRs from a fourth review of onboarding: this one, then the first edit's payoff, the samples' promise and the banner, each stacked on the one before.
Rebased onto
mainafter integration batch 40 (0da998f24, 2026-10-15). Conflicts only in the plain catalogs (both sides' keys). Adds Czech, Italian, Georgian and Polish for its strings. Gates on the stack's tip (#1827):cargo fmt --all --check;cargo clippy --workspace --all-targets -- -D warnings(with-A clippy::chunks_exact_to_as_chunks);cargo xtask parity,layers,assets;cargo nextest run -p lightcraft-catalog -p lightcraft-engine -p lightcraft-ui-egui -p lightcraft-cli -p lightcraft: 2617 run, all pass (16 that timed out on the busy machine passed when run again with fewer threads).cargo check --workspace --all-targetson every branch of the stack. Not rerun:cargo xtask wasm, the screenshots (nothing on screen changed in the rebase).Why
In the welcome, the window around it spoke louder than the invitation itself:
Change
empty_library::in_viewcovers the empty library in a grid with no filter, or in Detail with nothing open. While it's true:balanced_wrap), so a message breaks into two even lines.empty_state_heightmeasures with the same rule.Top, BEFORE (#1811): a dim title, one 800 px line, "0 photos", the bottom bar and four empty sidebar sections. Bottom, AFTER: a bright title, two even lines, no count or bar, and one sidebar line.
How it was checked
tests_welcome.rs):cargo test -p lightcraft-catalog -p lightcraft-engine -p lightcraft-ui-egui -p lightcraft-cli -p lightcraftpass, run on the top of these four.cargo fmt --all --check;cargo clippy --workspace --all-targets -D warnings, withchunks_exact_to_as_chunksallowed (clippy 1.99 flags it on untouched main); andcargo xtask parity,layers,assetsandwasm.lightcraft-cli snapshot --library. BEFORE is LR-BEHAV-EMPTY-STATES: the welcome and the samples banner use the button component (stacked on #1803 and #1810) #1811's build, AFTER is this branch's.Merging
unsafe, build scripts, network access, CI or gate changes: none.🤖 Generated with Claude Code