Skip to content

features: oriolis ui updates#4

Open
PeterGrace wants to merge 8 commits into
mainfrom
feature/topic-naming-and-ranges
Open

features: oriolis ui updates#4
PeterGrace wants to merge 8 commits into
mainfrom
feature/topic-naming-and-ranges

Conversation

@PeterGrace
Copy link
Copy Markdown
Owner

This PR is an import of some of the work oriolis was doing offline and asked me to review for possible inclusion in the project.

Oriolis Martinez and others added 8 commits January 1, 2026 23:04
- Added topic_name to PointConfig and MonitoredPoint to allow custom MQTT topic names
- Implemented wildcard range expansion (e.g., [1..6]) for catalog_ref in sunspec_poll.rs
- Updated payload generation to use custom topic names if provided
…d task block

Re-enable console_subscriber, opentelemetry::global, and TraceContextPropagator
imports in main.rs that were commented out during UI work. Restore
console_layer wiring into the tracing subscriber and opentelemetry shutdown
in the Ctrl-C handler.

In sunspec_unit.rs, remove the long-dead commented-out async populate_models
task block (and its now-unused imports) that had been superseded by the
synchronous inline call.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Cleans up 16 files modified in this branch:
- Remove unused imports (SqlitePool, TryRecvError, Router, get, post, HashMap, Payload, num_traits::Pow, std::fs, load_config, routing::get)
- Replace len() > 0 with is_empty() checks throughout
- Convert match -> if let for single-pattern matches
- Fix late-init variable declarations to inline initialization
- Remove needless borrows on references already auto-derefed
- Convert try_into().unwrap() to .into() for infallible u32->i64 conversions
- Replace format!("literal") with "literal".to_string()
- Collapse nested if-let chains
- Replace deprecated DateTime::from_utc with from_naive_utc_and_offset
- Convert impl Default manual impls to #[derive(Default)] with #[default]
- Remove dead code (unused query variable, dead grid_import/export_today accumulators)
- Replace println! with info! in refresh_baselines
- Fix let-and-return in make_tracer
- Replace Vec::filter+collect loop with retain()
- Add #[allow(dead_code/clippy::upper_case_acronyms)] where renaming would break other files
- Remove needless mut on non-mutated bindings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant