Skip to content

Viewer UX improvements: unit selector, clippy fixes, metadata cleanup#802

Merged
thinkingfish merged 7 commits intoiopsystems:mainfrom
thinkingfish:viewer-multi-node-fixes
Apr 18, 2026
Merged

Viewer UX improvements: unit selector, clippy fixes, metadata cleanup#802
thinkingfish merged 7 commits intoiopsystems:mainfrom
thinkingfish:viewer-multi-node-fixes

Conversation

@thinkingfish
Copy link
Copy Markdown
Member

@thinkingfish thinkingfish commented Apr 18, 2026

Summary

  • Unit type selector in Query Explorer and expanded chart view — lets users override Y-axis formatting when modifying queries (prevents incorrect clamping/scaling)
  • Clippy fixes across crates (systeminfo, exporter, mcp, viewer)
  • Multi-node query injection for cgroup selector queries
  • metriken-query 0.9.2 — picks up timestamp alignment fix that snaps TSDB timestamps to sampling interval boundaries, eliminating spurious nulls in binary operations between metrics from different samplers
  • Remove top nav metadata dropdown — redundant now that there's a dedicated Metadata sidebar section
  • Site viewer fixes — correct loadSection call and re-export node helpers

Test plan

  • cargo build passes
  • cargo clippy clean (zero warnings)
  • Verify unit selector works in Query Explorer and expanded chart view
  • Verify CPU utilization queries at 1s step no longer show null gaps
  • Verify multi-node combined parquet files render correctly

🤖 Generated with Claude Code

thinkingfish and others added 4 commits April 17, 2026 16:02
… fix

Add node selection to the WASM site viewer (file_metadata_json, parseNodeList,
changeNode) so combined parquet files can switch between nodes. Wrap bare
cpu_cores references in sum() across all dashboard queries to fix PromQL
label-matching when node labels are injected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Inject node label into cgroup queries so charts scope to selected node
- Inject node label into query explorer and single chart view queries
- Fix site viewer loadSection missing sectionRoute for node injection
- Add unit type selector dropdown to query explorer and expanded chart view
- Fix chart re-render when format changes without data change

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove unneeded return in systeminfo hwinfo util
- Use checked_div instead of manual division guard (macos summary)
- Gate dump_dashboards behind xtask-commands feature to match caller
- Gate Kpi re-export behind cfg(test) since only used in test code
- Collapse nested if into match guard (mcp anomaly detection)
- Use sort_by_key with Reverse instead of sort_by (mcp)
- Suppress deprecated Histogram::percentiles warning (pending migration)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The upstream metriken-query crate removed the hardcoded cpu_cores
special case that ignored label filters and forced scalar return.
Revert the sum(cpu_cores) workaround in dashboard queries back to
bare cpu_cores, and regenerate dashboard JSONs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thinkingfish thinkingfish force-pushed the viewer-multi-node-fixes branch from 822019f to 8a0abfb Compare April 18, 2026 04:16
thinkingfish and others added 2 commits April 17, 2026 23:12
Picks up timestamp alignment fix that snaps TSDB timestamps to
sampling interval boundaries, eliminating spurious nulls in binary
operations between metrics from different samplers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The metadata section in the sidebar makes the top nav dropdown
redundant. Remove the chevron, popup table, click handler,
metadataExpanded state, and related CSS/helpers.
@thinkingfish thinkingfish changed the title feat(viewer): multi-node query fixes and unit type selector Viewer UX improvements: unit selector, clippy fixes, metadata cleanup Apr 18, 2026
cpu_cores is an unlabeled gauge, so sum() is unnecessary.
@thinkingfish thinkingfish marked this pull request as ready for review April 18, 2026 06:33
@thinkingfish thinkingfish merged commit f86bed1 into iopsystems:main Apr 18, 2026
26 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.

1 participant