Repository navigation
LR-EDIT-SECTION-SOLO: Solo Mode for Edit sections - #1308
Conversation
|
Note for review: of the three main fixes here, the |
FredApps
left a comment
There was a problem hiding this comment.
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 fromparity.md; Top gaps moved to gaps.md, shortcut notes to ui-parity.md" twice. - Unrelated fixes in this PR: the
tests_lock.rsandspots.rschanges are the macOS/clippy fixes also in #1317 and #997, andmainalready hason_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).
|
Thanks for the review, @FredApps.
|
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>
1874dc1 to
eeb2ca2
Compare
|
Rebased onto The Solo Mode commits are unchanged. The only conflict was |
FredApps
left a comment
There was a problem hiding this comment.
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>
|
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. |
What
Solo Mode for the Edit sections (Lightroom Classic's panel Solo Mode): while it is on, opening one Edit section closes the others.
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 inUiStatebut nothing could set it).sectionMenu:solo).section.<id>, which takes{solo?}, so agents can do the same.section.calibrationis registered (no menu item). Unknown sections and flags that are not true / false are refused.LR-EDIT-SECTION-SOLO, andKEYC-PANELSpoints to it.Tests
crates/ui-egui/src/tests_solo_sections.rs: command and ⌘ shortcuts, the header menu, ⌥-click andsection.<id> {solo}, refused flags and unknown sections.main(eeb2ca2f).cargo xtask ci: fmt, clippy, heif, parity, layers, assets and wasm pass. The only failing test incargo test --workspaceisvisualize::tests::all_masks_overlay_shows_every_visible_mask_at_once, which fails the same way onmain.