feat: introduce pattern-based collection nesting and entry creation #4

Merged
eric merged 1 commit from push-nmkvqlkxklmo into main 2026-11-11 12:46:55 +01:00
Owner

Refactor pmoconfig to replace fixed section depths with flexible path patterns, enabling nested collections and dynamic entry creation. Update the web UI to support these new structures, including specific styling for nested tables and cards.

  • Refactor Collection to use a pattern field instead of section, adding creatable labels for new entries and nested collections for hierarchy.
  • Introduce NewField struct and update EntryView with children fields to support nested data structures in the UI.
  • Update Config::entries signature to accept only a pattern slice, removing the depth argument and simplifying entry resolution logic.
  • Enhance web UI rendering with new styles for nested tables (table.entries) and cards, supporting horizontal scrolling and specific field sizing.
  • Add collection_create.rs tests to verify nested entry creation, group/destination removal, and behavior of empty fields in multiroom configurations.
  • Update existing tests in src/webui/tests to use wildcard patterns (*) for device types and renderer, reflecting the new pattern-based API.
  • Modify submit logic in webui/mod.rs to handle parent entry cleanup when removing entries, preventing orphaned empty sections.
  • Add creation and keep_entries helpers in save.rs to manage new entry creation and retention of existing entries during save operations.
  • Bump package version from 0.3.0 to 0.3.1 in Cargo.toml and Cargo.lock.
  • Move api/0.3.0.txt to api/0.3.1.txt to reflect updated API definitions for the new collection features.
Refactor `pmoconfig` to replace fixed section depths with flexible path patterns, enabling nested collections and dynamic entry creation. Update the web UI to support these new structures, including specific styling for nested tables and cards. - Refactor `Collection` to use a `pattern` field instead of `section`, adding `creatable` labels for new entries and `nested` collections for hierarchy. - Introduce `NewField` struct and update `EntryView` with `children` fields to support nested data structures in the UI. - Update `Config::entries` signature to accept only a pattern slice, removing the depth argument and simplifying entry resolution logic. - Enhance web UI rendering with new styles for nested tables (`table.entries`) and cards, supporting horizontal scrolling and specific field sizing. - Add `collection_create.rs` tests to verify nested entry creation, group/destination removal, and behavior of empty fields in multiroom configurations. - Update existing tests in `src/webui/tests` to use wildcard patterns (`*`) for device types and renderer, reflecting the new pattern-based API. - Modify `submit` logic in `webui/mod.rs` to handle parent entry cleanup when removing entries, preventing orphaned empty sections. - Add `creation` and `keep_entries` helpers in `save.rs` to manage new entry creation and retention of existing entries during save operations. - Bump package version from 0.3.0 to 0.3.1 in `Cargo.toml` and `Cargo.lock`. - Move `api/0.3.0.txt` to `api/0.3.1.txt` to reflect updated API definitions for the new collection features.
feat: introduce pattern-based collection nesting and entry creation
All checks were successful
Release / release (push) Successful in 1m26s
fa37d92300
Refactor `pmoconfig` to replace fixed section depths with flexible path patterns, enabling nested collections and dynamic entry creation. Update the web UI to support these new structures, including specific styling for nested tables and cards.

- Refactor `Collection` to use a `pattern` field instead of `section`, adding `creatable` labels for new entries and `nested` collections for hierarchy.
- Introduce `NewField` struct and update `EntryView` with `children` fields to support nested data structures in the UI.
- Update `Config::entries` signature to accept only a pattern slice, removing the depth argument and simplifying entry resolution logic.
- Enhance web UI rendering with new styles for nested tables (`table.entries`) and cards, supporting horizontal scrolling and specific field sizing.
- Add `collection_create.rs` tests to verify nested entry creation, group/destination removal, and behavior of empty fields in multiroom configurations.
- Update existing tests in `src/webui/tests` to use wildcard patterns (`*`) for device types and renderer, reflecting the new pattern-based API.
- Modify `submit` logic in `webui/mod.rs` to handle parent entry cleanup when removing entries, preventing orphaned empty sections.
- Add `creation` and `keep_entries` helpers in `save.rs` to manage new entry creation and retention of existing entries during save operations.
- Bump package version from 0.3.0 to 0.3.1 in `Cargo.toml` and `Cargo.lock`.
- Move `api/0.3.0.txt` to `api/0.3.1.txt` to reflect updated API definitions for the new collection features.
eric merged commit ef19c45aca into main 2026-11-11 12:46:55 +01:00
eric deleted branch push-nmkvqlkxklmo 2026-11-11 12:47:11 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pmo/pmoconfig!4
No description provided.