Repository navigation
Issue #1924: drag reorders preset groups and never nests them; one order for the Manager and the panel - #1928
Merged
Conversation
…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>
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.
Fixes #1924
preset_ordermodule: 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.preset.renameGroup {path}), so a group goes into or out of another on purpose.preset.hideGroup {own}), never the groups inside 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.rsunit tests.Manual: develop/colour.mdx (Presets).
Before / after (release builds of staging 4c1cfe6 and this branch, demo library, driven over the control channel):
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/stagingpasses fmt, clippy, docs, i18n, parity, layers and assets. In the test step, three failures come from staging and fail on plain staging too:i18n::tests::no_language_has_translation_gapsandtests_i18n_coverage::ui_text_has_no_em_dashes: from the Face Prototypes change; #1886: face prototype command names in every language, no em dash in its What's New #1893 fixes them.tests_face_recognize::a_trained_person_and_an_untrained_one_are_scored_the_same_way(engine): fails the same way on staging 5df5a81 with no engine change.🤖 Generated with Claude Code