Skip to content

Issue #1924: drag reorders preset groups and never nests them; one order for the Manager and the panel - #1928

Merged
emmertex merged 1 commit into
emmertex:stagingfrom
RAD-Films:pr/ui-presets
Dec 5, 2026
Merged

emmertex merged 1 commit into
emmertex:stagingfrom
RAD-Films:pr/ui-presets

Conversation

@OneSlips

@OneSlips OneSlips commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes #1924

  • Dragging a group in the Presets Manager puts it above or below the header it is dropped on (a line shows where). It never puts a group inside another. A nested group dropped next to a group at another level comes out to that level.
  • The list scrolls while dragging, near its top and bottom edges and with the wheel.
  • The Manager lists groups in the Presets panel's order (new preset_order module: the user's dragged order, then User Presets first when that option is on, then A to Z), each group's own groups right under it. A reorder shows in both. The order is kept in the app settings (preset_group_order) and follows renames and moves.
  • Rename shows and edits the whole group path (preset.renameGroup {path}), so a group goes into or out of another on purpose.
  • A group's eye in the Manager hides only that group's own presets (preset.hideGroup {own}), never the groups inside it.
  • The Presets panel's ... menu has Manage Presets...
  • The Manager's help line names the group drag, in every language (sorted per the i18n rule; the old help key is removed where nothing uses it).

Tests: tests_presets_manager.rs (group drag reorders, never nests, panel follows), tests_preset_marks.rs (own-group hide, path rename, hostile parameters), presets.rs (the panel follows the user's order), preset_order.rs unit tests.
Manual: develop/colour.mdx (Presets).

Before / after (release builds of staging 4c1cfe6 and this branch, demo library, driven over the control channel):

Staging This PR
before after

Gamma's header dragged onto the top of Alpha's. Staging nests it (Alpha/Gamma); this branch puts Gamma above Alpha.

Checks: cargo xtask ci --quick --base origin/staging passes fmt, clippy, docs, i18n, parity, layers and assets. In the test step, three failures come from staging and fail on plain staging too:

🤖 Generated with Claude Code

…order for the Manager and the panel

- Dragging a group in the Presets Manager puts it above or below the header it is dropped on
  (a line shows where); it never puts a group inside another. Dropped next to a group outside
  the one it sits in, a nested group comes out to that level.
- The list scrolls while dragging: near its top and bottom edges, and with the wheel (egui
  stops its own scrolling during a drag).
- The Manager lists groups in the Presets panel's order (new `preset_order` module: where the
  user dragged them, then User Presets first when that option is on, then A to Z), a group's
  own groups right under it; a reorder shows in both. The order is kept in the app settings
  (`preset_group_order`) and follows renames and moves.
- Rename shows and edits the whole group path (`preset.renameGroup {path}`), so a group can be
  moved into or out of another on purpose.
- A group's eye in the Manager hides only that group's own presets (`preset.hideGroup {own}`),
  never the groups inside it.
- The Presets panel's ... menu has Manage Presets...
- The Manager's help line names the group drag, in every language.

Tests: tests_presets_manager.rs (group drag reorders, never nests, panel follows),
tests_preset_marks.rs (own-group hide, path rename, hostile parameters), presets.rs
(the panel follows the order the user set), preset_order.rs unit tests.
Manual: develop/colour.mdx (Presets).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit 9e69fc3 into emmertex:staging Dec 5, 2026
3 checks passed
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.

Presets Manager: dragging a group onto another nests it instead of reordering

2 participants