push-puqrvooxwpxw #3
Loading…
Reference in a new issue
No description provided.
Delete branch "push-puqrvooxwpxw"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce a new `webui` feature that provides a web-based interface for viewing and editing configuration settings. This includes the core `Config` struct updates to expose internal state, a new `page` module for defining configuration schemas, and a full `webui` implementation using Axum with HTML rendering and CSS styling. - Add `webui` crate-kit dependency and update version to 0.1.12 - Expose `Config::overrides` and `Config::lock` as `pub(crate)` in `src/config.rs` - Introduce `src/introspect.rs` with `Source` enum and methods for determining value origins (`default_of`, `source_of`) and applying changes (`set_values`, `reset`) - Add `src/page/mod.rs` defining `Kind`, `Mode`, `Apply`, `Setting`, `ConfigPage`, and `ConfigPages` structs for schema definition - Implement `src/page/view.rs` with `SettingView` and `PageView` structs and rendering logic to filter hidden settings - Add `src/webui/mod.rs` with `WebUi` struct and Axum router handling `/` and `/{id}` routes - Add `src/webui/render.rs` for HTML generation including escaping, row construction, and page indexing - Add `src/webui/style.css` with dark mode styling for configuration elements - Move `src/config_tests.rs` to `src/tests/config.rs` without content changes - Add comprehensive test suites for introspection, page validation, rendering logic, and web UI endpoints