Skip to content

WZ: Fix fleet charts and link host cards to DSM - #113

Merged
codebend3r merged 1 commit into
mainfrom
chart-fixes
Nov 7, 2026
Merged

codebend3r merged 1 commit into
mainfrom
chart-fixes

Conversation

@codebend3r

@codebend3r codebend3r commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

The disk chart plotted free space (about 10%) under a "used" label, lines could not be hidden, and host cards gave no quick way into DSM.

Changes

  • disk chart reports used space instead of free, to two decimals (fleet-monitor; already running on the NAS ahead of main, see below)
  • percent charts keep a fixed 0-100% axis, so a nearly full disk reads as full
  • every chart legend is a set of checkboxes that hide and show host lines, remembered per chart
  • MetricChart takes one optional toggle, so a hidden line always comes with its checkbox; the store keeps one list per chart
  • host cards open their DSM login page in a new tab, with a hover and focus lift; dsmUrl lives in lib/fleetApi

Notes

  • The four changed fleet-monitor files were hand-copied to the NAS on 2026-11-07, with backups in .pre-chart-fix/. Run deploy-nas after this merges so the NAS matches main again.
  • Fleet lists open incidents by target and reason sometimes hits its 1s timeout in the full admin-portal suite; it fails the same way on main and passes alone.

@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for westeroz ready!

Name Link
🔨 Latest commit 5600bdd
🔍 Latest deploy log https://app.netlify.com/projects/westeroz/deploys/6aef46bef7dfacc9a3dfe598
😎 Deploy Preview https://deploy-preview-113--westeroz.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

- Host cards open their DSM login page in a new tab, with a hover and focus lift
- Disk chart reports used space instead of free, to two decimals
- Percent charts keep a fixed 0-100% axis, so a nearly full disk reads as full
- Every chart legend is a set of checkboxes that hide and show host lines
- Hidden lines persist per chart in the fleet prefs store, one list per chart
- MetricChart takes one optional toggle, so a hidden line always has its checkbox
- dsmUrl lives with the host model in lib/fleetApi; chart class names share one helper
- Multi-line comments are one block, not stacked `//` lines; CLAUDE.md states the rule
@codebend3r
codebend3r merged commit ed9a6ce into main Nov 7, 2026
7 checks passed
@codebend3r
codebend3r deleted the chart-fixes branch November 7, 2026 15:58
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