Commit Graph

11 Commits

Author SHA1 Message Date
rcourtman
a90d5c907a Fix Proxmox page workloads hidden by the proxmox-all platform filter
The PBS host physical disks change pointed the Proxmox page's forced
platform filter at the proxmox-all aggregate but only taught the storage
source matcher its prefix semantics. The workloads matcher still compared
it for equality against concrete guest scopes (proxmox-pve), so every VM
and LXC failed the filter and the Proxmox overview rendered 'No Proxmox
workloads' on every install (#1663).

Resolve the aggregate in one canonical predicate,
sourcePlatformScopeMatchesFilter, and use it from both the workloads and
storage matchers.
2026-08-01 13:03:18 +01:00
courtmanr@gmail.com
32a215203c feat(storage): surface PBS host physical disks 2026-07-30 17:23:38 +01:00
rcourtman
0e6d0532bf Format frontend-modern/src with prettier (mechanical, no functional changes)
One-time sweep: npx prettier --write "src/**/*.{ts,tsx,css}" over
frontend-modern, clearing 611 files of accumulated drift so make format
no longer spuriously dirties the tree. Verified format-only: tsc
--noEmit clean and the full vitest suite green (18326 passed) after the
sweep. A staged-file prettier step lands next to keep drift out.

Contract-Neutral: mechanical prettier formatting sweep, zero behavioral or contract delta (tsc clean, full vitest suite green)
2026-07-20 10:44:35 +01:00
rcourtman
62cff03210 Remove 103 unused frontend exports
Dead-code sweep. Named exports flagged unused by ts-prune and confirmed
unreferenced by adversarial cross-file verification, removed via a TypeScript
compiler-API codemod (whole-declaration removal by name). tsc --noEmit over the
full project including all test files, and npm run lint (eslint + theme +
canonical-platform audits), both pass.

54 candidates deferred for safety: 1 false positive caught by the type-check
(WizardState is imported by SetupCompletionPanel.tsx), ~20 files whose export
removal orphans secondary imports/helpers (needs a follow-up cascading pass),
and 2 multi-declarator statements.
2026-06-03 12:37:38 +01:00
rcourtman
7938f28de4 platforms: scale K8s clusters to 3 + fix VMware storage source matching
Two specific platform-page quality issues from the audit:

1. **/kubernetes/overview only had 1 cluster.** Bumping the K8s cluster
   count past 1 had been deferred because the prior
   monitor-broadcast equivalence test compared the raw snapshot count
   to the broadcast count exactly, and broadcast's
   `coalesceBroadcastResources` + second-pass coalesce inside
   `convertResourcesForBroadcast` legitimately drops merge candidates
   that the raw snapshot keeps. Switch the test to compare against
   the canonical snapshot count within a ±5% tolerance so future
   fixture bumps stay green without loosening any of the test's
   exact-name and exact-identity assertions. With that in place, bump
   `K8sClusterCount` 1 → 3 in `internal/mock/generator.go`,
   `scripts/toggle-mock.sh`, and the matching
   `scripts/tests/test-toggle-mock.sh` so the canonical mock estate
   ships with production + staging + edge clusters end-to-end.

   Live mock survey: k8s-cluster: 3, k8s-deployment: 42, pod: 120,
   plus 15 K8s nodes merged onto their agent hosts.

2. **/vmware/storage looked empty under platform-page chrome.**
   `resolveStorageSourceKey` was reading only `storage.type` (the
   on-disk technology like `vsan`, `vmfs`, `nfs41`, `zfs-pool`) and
   never consulted `storage.platform` (the canonical platform key
   like `vmware-vsphere` or `truenas`). Source filter chip options
   were therefore generated as `vsan`, `vmfs`, `nfs41`, etc., and
   `forcedSourceFilter='vmware-vsphere'` had nothing to match.
   Prefer the canonical `storage.platform` tag when set, so VMware
   datastores group under `vmware-vsphere`, TrueNAS pools group under
   `truenas`, PBS datastores under `proxmox-pbs`, etc., for both the
   chip options and the embedded platform-page filter.

Browser verification (Playwright, chromium, live mock-mode dev runtime):
- 9 tests pass.

Targeted vitest:
- `src/features/storageBackups` + `src/utils/__tests__/sourcePlatforms.test.ts` +
  `src/components/Storage/__tests__/storageSourceOptions.test.ts` (31
  files / 141 tests) green.

Go tests:
- `go test ./internal/mock/... ./internal/monitoring/... ./internal/vmware/...`
  all green.

Contracts updated:
- `monitoring.md` Shared Boundaries: new K8s multi-cluster default,
  ±5% tolerance for the broadcast equivalence assertion.
- `deployment-installability.md` Shared Boundaries: toggle-mock.sh /
  DefaultConfig parity updated for the K8sClusterCount=3 baseline.
2026-05-16 11:43:41 +01:00
rcourtman
2e473b2ba1 Canonicalize shared all-filter labels 2026-04-29 11:23:12 +01:00
rcourtman
47d898cd50 Normalize frontend product labels 2026-04-28 21:55:51 +01:00
rcourtman
795c16755b Normalize alert and status presentation palette 2026-04-23 15:57:03 +01:00
rcourtman
f941f7befe feat(storage): restore canonical truenas source handoff 2026-03-30 00:21:02 +01:00
rcourtman
92ba5c7757 Centralize title-case label formatting 2026-03-19 06:35:02 +00:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00