Skip to content

LR-EDIT-SECTION-SOLO: Solo Mode for Edit sections - #1308

Merged
echelon merged 4 commits into
storytold:mainfrom
mattsivak:develop-solo-mode
Oct 15, 2026
Merged

echelon merged 4 commits into
storytold:mainfrom
mattsivak:develop-solo-mode

Conversation

@mattsivak

@mattsivak mattsivak commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What

Solo Mode for the Edit sections (Lightroom Classic's panel Solo Mode): while it is on, opening one Edit section closes the others.

  • Window ▸ Edit Sections ▸ Solo Mode: view.soloSections {on?} (no params toggles), checked while on. Turning it on keeps only the section opened last. Kept with the UI state (singlePanel; the flag already existed in UiState but nothing could set it).
  • Right-click any section header: a Solo Mode item (sectionMenu:solo).
  • ⌥-click a header: opens just that section once, without turning the mode on.
  • Header clicks now run section.<id>, which takes {solo?}, so agents can do the same. section.calibration is registered (no menu item). Unknown sections and flags that are not true / false are refused.
  • "Solo Mode" is translated in all 9 catalogs. New parity row LR-EDIT-SECTION-SOLO, and KEYC-PANELS points to it.

Tests

  • crates/ui-egui/src/tests_solo_sections.rs: command and ⌘ shortcuts, the header menu, ⌥-click and section.<id> {solo}, refused flags and unknown sections.
  • Headless snapshot checked: the header menu shows Solo Mode.
  • Rebased onto main (eeb2ca2f). cargo xtask ci: fmt, clippy, heif, parity, layers, assets and wasm pass. The only failing test in cargo test --workspace is visualize::tests::all_masks_overlay_shows_every_visible_mask_at_once, which fails the same way on main.

@mattsivak
mattsivak marked this pull request as ready for review October 12, 2026 16:53
@mattsivak

Copy link
Copy Markdown
Contributor Author

Note for review: of the three main fixes here, the on_exit one (f3181585) is already on main (701f78e, 0.7.1) and is now a no-op; the clippy 1.99 as_chunks change in spots.rs is the same fix as #997 and conflicts with it textually (whichever lands second takes the other's version). The /bin/true → true lock-test fix is also carried by #1286. Also: docs/parity-checklist.md conflicts with #1286, #1240, #1009 and #995 (docs only).

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested at 1874dc1 on Linux (ui-egui tests, see below).

The Solo Mode logic is small and well covered. It works from the menu command, the header's context menu, ⌥-click, and the agents' section.* with {solo}, and it refuses bad params and unknown sections.

Comments:

  • ⌥-click on the section that's already open (panels/edit.rs, header click → solo_section) always leaves it open. Consider letting ⌥-click close it when it is already the only open section, so ⌥-click can also collapse everything (worth checking against Lightroom Classic).
  • The parity checklist header line (docs/parity-checklist.md:1) now repeats "renamed from parity.md; Top gaps moved to gaps.md, shortcut notes to ui-parity.md" twice.
  • Unrelated fixes in this PR: the tests_lock.rs and spots.rs changes are the macOS/clippy fixes also in #1317 and #997, and main already has on_exit(self, None). Splitting them out, or dropping them once #1317 lands, would keep this PR to Solo Mode and avoid conflicts.

Tests: cargo test -p lightcraft -p lightcraft-catalog -p lightcraft-pipeline -p lightcraft-ui-egui passes (ui-egui 749, pipeline 173, catalog 193, app 58).

@mattsivak

mattsivak commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @FredApps.

mattsivak and others added 3 commits October 13, 2026 14:13
Window > Edit Sections > Solo Mode (view.soloSections {on?}) and a right-click on
any section header turn it on: opening one section closes the others. Option-click
on a header opens just that section once. Kept with the UI state (singlePanel).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…command

Option-click goes through section.<id> {solo: true}, so agents can open just one
section; view.soloSections and section.* refuse flags that are not true / false
(bool_param); toggle_section reuses solo_section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ctions

Calibration's header runs section.calibration, now a registered command (no menu
item); section.<id> refuses an id the Edit panel hasn't got instead of closing
the real sections for a phantom one. "Solo Mode" sits with the other So… keys
in the catalogs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattsivak mattsivak changed the title LR-EDIT-SECTION-SOLO: Solo Mode for Edit sections (+ build, clippy 1.99 and macOS test fixes) LR-EDIT-SECTION-SOLO: Solo Mode for Edit sections Oct 13, 2026
@mattsivak

Copy link
Copy Markdown
Contributor Author

Rebased onto main (now eeb2ca2f), so this is Solo Mode only, as promised, @FredApps. The three side fixes (the on_exit build fix, clippy 1.99 as_chunks in spots.rs, and the macOS true spawn in tests_lock) are all on main already through #997, #990, #1003 and #1018, and dropped out. Since #1317 is closed, nothing is waiting on it.

The Solo Mode commits are unchanged. The only conflict was docs/parity-checklist.md: I kept main's header and revision history, added the Solo Mode entries, and regenerated the summary with cargo xtask parity --write. cargo xtask ci passes apart from visualize::tests::all_masks_overlay_shows_every_visible_mask_at_once, which fails the same way on main. The PR description is updated to match.

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at eeb2ca2. The current diff is scoped to Solo Mode; the unrelated on_exit, spots and lock-test changes have dropped out.

All four tests_solo_sections tests pass on Linux at this exact head, and cargo fmt --all -- --check passes. That covers header clicks, the context menu, one-shot Alt/Option selection, command flags and unknown-section rejection. I found no new blocking issue in this rebase.

One small documentation note: the repeated “renamed from parity.md; Top gaps moved…” text is still in the checklist header, but it is also present on the current base, so it is not introduced by this PR. The earlier Alt/Option-click behavior suggestion remains optional; this run does not establish Lightroom parity for collapsing an already-solo section.

docs/parity-checklist.md: main's header and summary (regenerated) with this PR's Solo Mode note and history row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @mattsivak! This landed on main in integration batch 36 (#1843).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants