Commit Graph

6666 Commits

Author SHA1 Message Date
rcourtman be2f6324f0 Guard against duplicate WorkloadsFilter on platform overview pages
Add a platformOverviewLayout guardrail that asserts the Proxmox and
vSphere overview surfaces each render exactly one <WorkloadsFilter>
and pass suppressFilterToolbar to the embedded <WorkloadsSurface>.
This is the regression that shipped in 6.0.0-rc.6: both pages owned a
shared page-level filter and the embedded surface still rendered its
own, producing two stacked toolbars wired to the same state.
2026-05-28 09:42:09 +01:00
rcourtman d66d774c0e Collapse duplicate filter bar on Proxmox + vSphere overview
The Proxmox and vSphere overview tabs rendered the WorkloadsFilter
twice: once at the page level (driving both the top hosts/nodes table
and the embedded workloads surface) and once inside WorkloadsSurface
itself, since the surface always rendered its own toolbar regardless
of the shared state passed in.

Add a suppressFilterToolbar prop on WorkloadsSurface so callers that
own a shared toolbar can opt out, and pass the previously surface-only
controls (savedViewsKey, hostFilterConfig) through the page-level
toolbar so the Node and Saved views chips remain available.
2026-05-28 09:28:51 +01:00
rcourtman f21d2681d5 Frontend consistency sweep Tier 7: Proxmox inline drawers adopt section + DrawerSubjectHeading
ProxmoxCephClusterDrawer and ProxmoxMailGatewayDrawer were rendering as `<div class="space-y-4">` with a handrolled `<StatusDot> + <h3> + trailing pill` heading row. The canonical drawer pattern is a `<section aria-labelledby>` root wrapping `<DrawerSubjectHeading>`, with `space-y-3` between sections.

Both drawers now:
- Use `<section>` as the root with a stable `aria-labelledby` id derived from the resource identifier
- Pass the cluster health pill (Ceph) / version pill (PMG) through `DrawerSubjectHeading.trailing` instead of rendering it inline
- Drop the inline StatusDot in favor of the one DrawerSubjectHeading renders internally (size sm, canonical)
- Adopt the canonical space-y-3 rhythm to match GuestDrawer
2026-05-28 09:19:52 +01:00
rcourtman a55ab68276 Frontend consistency sweep Tier 6: hidden-CSS drawer tabs in NodeDrawer + DockerHostDrawer
Match the canonical pattern from GuestDrawer / ResourceDetailDrawer where tab panels stay mounted and toggle via the `hidden` class plus `overflow-anchor: none` on the wrapping div. Previously these two drawers used `<Show when={activeTab() === ...}>` which unmounts the subtree on every tab switch, losing scroll position and forcing re-fetches.

Discovery tab in both drawers needs an additional data-readiness guard (NodeDrawer narrows `props.discoveryTarget?.agentId`, DockerHostDrawer narrows `discoveryConfig()`); kept those outside the hidden-CSS div so the inner subtree only renders when its data is available, matching how GuestDrawer handles the same case.
2026-05-28 09:19:35 +01:00
rcourtman 6de33e3e4b Frontend consistency sweep: AnimatedNumber for live patrol token counter
The patrol banner's token counter streams during a live LLM run — every
token the model emits bumps the displayed count. Rendering raw
`toLocaleString()` makes that increment jump in steps; AnimatedNumber
tweens between values over 320ms so the count reads as flowing rather
than flickering. Other counter sites flagged by the audit (TrueNAS
event totals, mail counts, Ceph pool objects) update too slowly for the
animation overhead to be worth it, so they stay on raw display.
2026-05-28 08:37:48 +01:00
rcourtman 1200eeac49 Frontend consistency sweep Tier 5: drawer tabs use canonical Subtabs
The four detail drawers (ResourceDetailDrawer, GuestDrawer, NodeDrawer,
DockerHostDrawer) duplicated a bespoke tab pattern — native <button>
elements with `text-blue-600` on the active label and an absolutely-
positioned animated underline div — diverging from the canonical Subtabs
primitive used on StoragePageControls and ProLicensePanel. Subtabs renders
the same disclosure pattern with `role="tab"` + `aria-selected` + a
`border-b-2 border-blue-600` active treatment.

Three changes:

- Extend Subtabs with an optional `trailing` slot. The three drawers that
  surface a history-range select alongside the tabs (Guest/Node/DockerHost)
  used to put it in the same border-b row; the new slot preserves that
  layout for them without forcing every Subtabs caller through the more
  complex shape. Existing single-row callers (Storage, ProLicensePanel)
  render unchanged.
- Replace ~50 lines of inline tab JSX in each of the four drawers with one
  <Subtabs> call. Dropped the duplicate active-state class strings and the
  manual underline div. Active tab is now blue-border-underline + standard
  text color, matching the rest of the app.
- Update three test files to query the tabs by `role="tab"` instead of
  `role="button"`. The previous queries worked only because native
  <button> defaults to role=button; the new Subtabs buttons set
  `role="tab"` because that is the semantically correct role for a
  tablist member.
2026-05-28 08:30:29 +01:00
rcourtman 2012fb55b7 Frontend consistency sweep Tier 4: skeleton uses Card primitive
Replace the three bespoke `rounded-lg border border-border bg-surface p-6`
skeleton blocks in AlertDestinationsLoadingState with the Card primitive
(`padding="lg"`). Aligns the loading state to canonical rounding and
border tokens.

Other Tier 4 audit findings did not survive verification:
- Inline progress-bar divs in ProxmoxMailGatewayDrawer are stacked-segment
  bars (mail volume) and a two-segment In/Out comparison; the canonical
  ProgressBar is single-value only, so neither is a fit.
- PatrolIntelligenceSummary's bespoke `<section>` shells are semantically
  intentional landmarks; migrating to `Card` would render `<div>` and
  drop the landmark role.
- Custom date formatters in DockerAlertsTable and TrueNASAlertsTable
  diverge on edge-case behavior (year < 2000 handling, null-vs-dash
  fallbacks). Consolidation risks regressions that outweigh the
  duplication win.
- Native `<button>` usages and bespoke `<span>` badges in
  DockerAlertsTable / AgentsMachinesTable / TrueNAS tables are 30+
  sites that warrant their own focused refactor with tooltip-coverage
  evaluation, not a shotgun pass.
2026-05-28 08:12:47 +01:00
rcourtman 0f3e2aad15 Frontend consistency sweep Tier 2: drawer heading and search-input parity
Tier-2 audit revisited: the seven flagged detail drawers (Resource, Guest,
Node, DockerHost, K8sNamespaces, K8sDeployments, SwarmServices) are NOT
overlay modals — every one renders inside an expanded TableRow as the
content of a disclosure. The original audit's "wrap in Dialog" recipe was
wrong; Dialog brings focus trap and backdrop, neither of which applies
to inline section content. The trigger rows already expose `aria-expanded`
and `aria-controls`, so disclosure semantics are intact.

The actual drift was style duplication and a weak close label:

- Extract `DrawerSubjectHeading` for the `StatusDot + truncated <h2>`
  header repeated verbatim across GuestDrawer, NodeDrawer, and
  DockerHostDrawer. Migrating the three drawers removes ~30 lines of
  copy-pasted layout and pins the heading style in one place.
- Tighten ResourceDetailDrawer's close button aria-label from `Close` to
  `Close resource drawer`, matching what the platformResourceTableDrawers
  test already asserts via its mock.
- Migrate K8sNamespacesDrawer and SwarmServicesDrawer from SearchField to
  SearchInput, picking up `/`-focus and clear-on-escape and matching the
  K8sDeploymentsDrawer fix from Tier 1.

Drawer tab styling (4 drawers duplicate a custom blue-underline pattern
distinct from the canonical `Subtabs` primitive) is a real UX change and
is deferred to a follow-up so it can be verified visually.
2026-05-28 08:03:07 +01:00
rcourtman d608e0aaca Frontend consistency sweep Tier 1: stat-cards, legacy filter helper, redirect splash
- Replace AlertOverviewStatsCards' three bordered stat-tile Cards with a
  compact Table (rows=metrics, leftmost status dot). Removes the "big number
  + label + icon" vibe-dashboard pattern that violates Pulse's no-stat-cards
  policy.
- K8sDeploymentsDrawer: drop the deprecated LabeledFilterSelect import (the
  last production usage) and migrate the search input from SearchField to
  SearchInput, picking up `/` focus and clear-on-escape. The namespace
  filter inlines a <label>+<select> with the canonical filterGroupClass /
  filterLabelClass / filterSelectClass utilities, matching the existing
  GuestDrawerHistory pattern.
- PricingHandoff: render a plain h1+p instead of PageHeader. The shared
  header hides its description with `hidden sm:block` and mutates
  document.title in createEffect; both are wrong for a transient redirect
  splash whose description IS the manual-recovery link. Tests updated to
  reflect the deliberate bypass.
2026-05-28 07:53:53 +01:00
rcourtman 52fd847ac6 Let install.sh smoke harness opt past Docker-environment refusal
install.sh refuses to run inside Docker (correct behavior for end
users), but the install-sh-smoke gate runs the documented systemd
install path inside a privileged systemd-in-Docker container — the
one legitimate bypass case. Added PULSE_INSTALL_ALLOW_DOCKER=1
escape hatch in check_docker_environment() and set it on the docker
exec in the smoke workflow. Takes effect on the next RC; v6.0.0-rc.6's
published install.sh predates this and is signed-frozen, so its
post-publish smoke gate will remain red until the next prerelease.
2026-05-27 22:12:17 +01:00
rcourtman 7c35977fcb Fix post-publish pipeline failures for v6.0.0-rc.6
promote-floating-tags.yml waited on rcourtman/pulse-agent:${TAG} and
promoted floating tags for it, but publish-docker.yml never pushes the
agent image — Pulse Agent ships as GitHub Release binaries
(publish-docker.yml line 199 confirms). The wait timed out after 5
minutes on every release since the pulse-agent push step was removed,
leaving floating tags unpromoted. Stripped the vestigial wait block,
the agent promote step, and the agent line in the summary. Updated
header comments in both files to drop the past-tense reference.

install-sh-smoke.yml booted jrei/systemd-debian:12 without
--cgroupns=host, so on GHA ubuntu-24.04 (cgroup v2 unified hierarchy)
the container's systemd PID 1 exited before mounting the cgroup tree
and the container disappeared during readiness polling. Added
--cgroupns=host, an explicit /run/lock tmpfs, and dropped --rm so the
container persists for diagnostic capture on failure (trap handles
cleanup). Added an "is container still running" probe inside the
readiness loop and richer diagnostic output on timeout.
2026-05-27 22:08:15 +01:00
rcourtman b0a1937106 Rename Docker runtime navigation label 2026-05-27 21:02:19 +01:00
rcourtman c25e95cb2b Drop keyboard shortcut listings from rc.6 release docs
The Cmd/Ctrl+K command palette and the / global search shortcut are
the navigation affordances worth calling out. The g-chord shortcuts
are not a notable customer-facing feature for the rc.6 prerelease
notes; the keyboard shortcut modal already documents them in-product
for anyone who wants to discover them.
v6.0.0-rc.6
2026-05-27 20:46:51 +01:00
rcourtman 1407996e58 Drop Standalone framing from release docs; describe rename as Hosts → Machines
The internal rename chain in rc.1-rc.5 went Agents -> Standalone ->
Machines but neither Agents nor Standalone shipped as user-visible
labels for the Pulse Agent inventory page. Users coming from v5 know
the page as Hosts. The rc.6 release docs incorrectly framed the
change as 'Standalone surface renamed to Machines' which references
an internal name no public release ever exposed.

Reframe in the shipped v6 docs and the rc.6 packet drafts as
'Hosts page renamed to Machines'. Top-level page listings updated
to use Machines (not Standalone). Keyboard shortcut listing
updated to 'g s Machines' (not Standalone). 'Standalone-to-Machines
surface evolution' rewritten as 'Hosts-to-Machines rename'.

Touches:
- docs/releases/RELEASE_NOTES_v6.md
- docs/releases/V6_CHANGELOG.md
- docs/releases/V6_RC_OPERATOR_SUPPORT_PACK.md
- docs/releases/RELEASE_NOTES_v6_RC6_DRAFT.md
- docs/releases/V6_CHANGELOG_RC6_DRAFT.md
- docs/releases/V6_RC6_OPERATOR_SUPPORT_PACK_DRAFT.md

The internal route path /standalone is unchanged because that is a
code-level identifier, not a user-facing label.
2026-05-27 20:44:29 +01:00
rcourtman 7cb5f74db8 Bump WebSocket read deadlines from 2s to 15s in router integration tests
The four ReadDeadline(time.Now().Add(2 * time.Second)) calls in
router_integration_test.go (lines 1496, 1543, 1573, 1682) were
producing 'read tcp: i/o timeout' failures in CI under -race while
passing locally. The 2-second window is enough to read the welcome
+ initialState messages on a quiet dev workstation but too tight
once the runner is loaded with cumulative test work and the race
detector overhead. rc.5 cleared the same tests in CI but recent
fixture-size growth (k8s clusters 1->3 in 7938f28de plus the SMART
disk-temperature mock data added in 23ea4e487) pushed the
end-to-end server-start-to-welcome-message latency past the 2s
budget. Bumping to 15s gives CI breathing room without affecting
local test duration (the deadline only takes effect when the read
is genuinely stuck).
2026-05-27 18:36:33 +01:00
rcourtman 89a1740241 Reset sessionPresentationPolicy signal between useAppRuntimeState tests
vi.resetModules() drops the module cache but the freshly-imported
sessionPresentationPolicy module-level Solid signal still starts at
its default value only in isolation. In the CI parallel test runner,
a sibling test that imports the same module path can leave the
signal in a demoMode=true state that survives across beforeEach
because the running test's loadOrganizations closure already
captured a reference to the policy module before our doMock chain
ran. When that happens, useAppRuntimeState.loadOrganizations takes
the presentationPolicyHidesOrganizationSurfaces() early-return
branch instead of the multi-tenant branch, and the three sub-tests
that assert setOrgID('default') / orgs.list() behavior count zero
calls because the mocked code path never executes.

Explicitly reset the policy via syncSessionPresentationPolicy(null)
both at the end of beforeEach (after our doMock + dynamic import
of useAppRuntimeState) and in afterEach (before vi.resetModules)
so the signal is at defaults regardless of sibling pollution.
Tests pass locally before and after; failure was reproducible only
in CI parallelism.
2026-05-27 18:23:28 +01:00
rcourtman e327e09945 Fix KubernetesCluster RBAC slice race and align SECURITY.md sensor-wrapper guidance
KubernetesCluster RBAC slices were not deep-cloned

cloneKubernetesCluster cloned Nodes, Namespaces, Pods, Deployments,
and 20+ other slices via dedicated helpers but left Roles,
ClusterRoles, RoleBindings, and ClusterRoleBindings aliased to the
source slice through the dest := src shallow copy. The final
dest.NormalizeCollections() call then iterates over those four
slices and writes c.Roles[i] = c.Roles[i].NormalizeCollections()
via index assignment, which races with any concurrent clone (or
read of the same source). The race detector caught it once the
k8s cluster count was bumped from 1 to 3 in 7938f28de, which made
the contention window wide enough to hit under -race. Fix by
deep-cloning the four RBAC slices with append([]T(nil), src...)
following the same pattern as the inline slice copies elsewhere
in cloneKubernetesCluster.

SECURITY.md sensor-wrapper alignment

The SMART/SSH feature shipped in 8769f07ee updated the shipped
public security doc at frontend-modern/public/docs/SECURITY.md to
document the new Pulse-owned /usr/local/sbin/pulse-sensors wrapper
forced-command shape for the legacy SSH temperature collection
flow, but the source SECURITY.md at the repo root still described
the prior command="sensors -j" forced command. The docsLinks
test (which compares the two for byte equality) flagged the drift.
Align root SECURITY.md and re-sync the shipped copy so both
describe the wrapper contract that the setup-script and runtime
collector now own.
2026-05-27 18:13:44 +01:00
rcourtman e0569e510c Sync shipped public docs after MIGRATION_UNIFIED_NAV revert banner
The docs/MIGRATION_UNIFIED_NAV.md edit in df7934936 added the
post-rc.6 revert banner but did not refresh the shipped copy at
frontend-modern/public/docs/MIGRATION_UNIFIED_NAV.md that the
in-product docs route serves. The
src/utils/__tests__/docsLinks.test.ts 'keeps shipped docs content
synced with repo docs' assertion caught the drift in CI even
though the docs-route runtime itself was unaffected. Re-running
frontend-modern/scripts/sync-public-docs.mjs brings the shipped
copy back in line.
2026-05-27 18:00:07 +01:00
rcourtman 802b3aac49 Fix VMware inventory metric clone race and exempt docker-swarm-node from legacy-host-label assertion
Two real bugs that surfaced once the 20m test timeout let the
internal/api and internal/monitoring packages run to completion.

cloneVMwareInventoryMetrics omitted four fields:

Commit 23ea4e487 (Surface vSphere VM uptime and guest disk usage)
added UptimeSeconds, DiskUsedBytes, DiskTotalBytes, and DiskPercent
to vmware.InventoryMetrics but did not extend
cloneVMwareInventoryMetrics. The clone left those pointer fields
aliased to the source struct, so the mock fixture refresh path
(refreshVMwareInventoryMetrics writing through metrics.UptimeSeconds
via ensureInt64Ptr) and the snapshot read path
(inventoryUptimeSeconds dereferencing metrics.UptimeSeconds) raced
on the same heap-allocated int64.

TestMonitorBuildBroadcastFrontendStateUsesCanonicalMockUnifiedResources
exemption:

The test asserts broadcast state does not publish the lowercase-
hyphenated legacy docker host label so canonical docker hosts
surface their human-readable DisplayName. Commit 89abed099
(2026-05-24) added the docker-swarm-node resource type whose Name
is the swarm node hostname (matching how Docker Swarm identifies
node members), which collided with the legacy-label rejection.
Refine the assertion to apply only to host-type resources
(docker-host, agent, node).
2026-05-27 17:47:09 +01:00
rcourtman 3e61849242 Drop standalonePageModel snippet from agentless contract test; bump test timeout to 20m
TestAgentlessAvailabilityTargetKindStaysCanonical was pinning the
former agentless-machine classification in
frontend-modern/src/features/standalone/standalonePageModel.ts
(resource.availability?.targetKind,
availabilityTargetKindFor(resource) === 'machine'). Commit 1e16cf34f
intentionally narrowed the Machines surface to Pulse Agent resources
only, removing that classification, but did not update the test. The
server-side contract for availability targetKind across
config/availability.go, monitoring/availability_poller.go, types.go,
and frontend-modern/src/api/availabilityTargets.ts is preserved and
still pinned by the same test for any future consumer.

Makefile go test timeout bumped from 10m to 20m. The rc.5 backend
test run cleared 10m with slack; the rc.6 backend test run hit 13m
in internal/api before the binary panic-killed itself. 20m gives
headroom without hiding regressions for the rc.6 release path while
the package-size growth is tracked separately.
2026-05-27 17:17:13 +01:00
rcourtman 3e4cc1a198 Bump install pins to 6.0.0-rc.6
docker-compose.yml and scripts/install-docker.sh both still pinned
rcourtman/pulse:6.0.0-rc.5. The TestDeploymentDefaultsPinVersionedImagesAndHelmDocsChecksum
/ TestRepoDockerComposeDefaultPinsCurrentVersion / TestInstallDockerScript*
tests in scripts/installtests/ read VERSION (now 6.0.0-rc.6) and
require these install entry points to match.
2026-05-27 16:52:46 +01:00
rcourtman 58a24eeb77 Update header audit for platform-shaped IA
Drop the four deleted-page entries (Ceph, Infrastructure, Recovery,
Workloads) from REQUIRED_PAGE_HEADERS since those pages were retired
in the rc.6 IA revert.

Add PlatformSectionTabs to HEADER_PRIMITIVES. The post-rc.6
platform-shaped top-level pages (Proxmox, Docker, Kubernetes,
TrueNAS, Vmware, Standalone) use PlatformSectionTabs from
features/platformPage/sharedPlatformPage as their canonical chrome
rather than PageHeader; the audit was missing this recognition,
causing Docker/Kubernetes/Standalone/TrueNAS to fail with 'must use
at least one shared header primitive' while Proxmox and Vmware
passed only by accidentally reaching SectionHeader through their
WorkloadsSurface->WorkloadsTable->ErrorBoundary import chain.
2026-05-27 16:29:06 +01:00
rcourtman 6043224997 Rename infrastructureNavigation to platformNavigation and restore visual-crawl spec
Two cleanups left over from the rc.6 IA revert that lived as
untracked scratch in the working tree until now.

Rename infrastructureNavigation -> platformNavigation

The internal feature name infrastructureNavigation predates the rc.6
revert and assumed an Infrastructure top-level page existed. Post-
revert the frontend is platform-shaped (Proxmox / Docker / Kubernetes
/ TrueNAS / vSphere / Standalone) and the model's purpose is to gate
visibility of each *platform* nav slot from resource evidence, not
gate visibility into a unified Infrastructure surface.

- frontend-modern/src/features/infrastructureNavigation/ -> .../platformNavigation/
- buildPrimaryInfrastructureNavigationVisibility -> buildPrimaryPlatformNavigationVisibility
- PrimaryInfrastructureNavId -> PrimaryPlatformNavId
- InfrastructureNavigationVisibility -> PlatformNavigationVisibility
- PRIMARY_INFRASTRUCTURE_NAV_IDS / _SCOPE_IDS -> PRIMARY_PLATFORM_NAV_IDS / _SCOPE_IDS
- primaryInfrastructureNavigationIsVisible -> primaryPlatformNavigationIsVisible
- selectFirstVisiblePrimaryInfrastructureNavigationId -> selectFirstVisiblePrimaryPlatformNavigationId
- filterInfrastructureNavigationShortcuts -> filterPlatformNavigationShortcuts
- createEmptyInfrastructureNavigationVisibility -> createEmptyPlatformNavigationVisibility
- infrastructureNavigationVisibilityFromResources -> platformNavigationVisibilityFromResources
- buildNavigableResourceInfrastructureScopeSet -> buildNavigableResourcePlatformScopeSet

Callers updated: App.tsx, AppLayout.tsx, useKeyboardShortcuts,
commandPaletteModel, useCommandPaletteState, KeyboardShortcutsModal,
CommandPaletteModal test, App.architecture test. Local variable and
prop names (infrastructureVisibility -> platformVisibility,
infrastructureNavigationVisibility -> platformNavigationVisibility,
infrastructureNavigationResolved -> platformNavigationResolved)
renamed for consistency.

The standalone visibility key is preserved. Standalone (Machines)
is a real evidence-gated nav slot in this model: AppLayout and
commandPaletteModel both consume isVisible('standalone') to hide
the Machines nav item when no Pulse Agent resources or availability
endpoints exist.

Visual crawl spec restored at tests/integration/tests/99-visual-crawl.spec.ts

The previous version of this spec crawled the unified IA routes
(/workloads, /infrastructure, /storage, /recovery, /operations) that
were retired in the rc.6 revert. Restored with a refreshed URL list
that targets the platform-shaped top-level pages and their
representative sub-routes (Proxmox PVE/PBS/Backups/Storage/Ceph,
Kubernetes nodes/deployments/config), plus Alerts, Patrol, and the
existing Settings routes. The DOM analysis body (headings, inputs,
tables, raw-color violations, screenshots, JSON report) is
unchanged.
2026-05-27 15:47:03 +01:00
rcourtman 8769f07eea Land SMART/SSH temperature feature, rc.6 finalization, and post-IA-revert governance reconciliation 2026-05-27 15:27:25 +01:00
rcourtman affc1c76ed Add rc.6 operator support pack and prerelease index pointers
Stages the doc-only subset of rc.6 packet prep work on top of
df7934936. Holds VERSION bump and the registry/contract governance
reconciliation back for a focused later pass since the IA revert
created broader subsystem-contract debt than the packet prep can
absorb.

- docs/releases/V6_RC6_OPERATOR_SUPPORT_PACK_DRAFT.md: new 300-line
  operator support brief mirroring the rc.5 pack with rc.6 themes:
  pre-release for testing framing, platform-shaped frontend revert
  explanation, vSphere as a first-class platform, Machines surface,
  TrueNAS native detail UX, FilterBar adoption, Patrol capacity-
  forecast and PDM bridge, free-first self-hosted posture, install.sh
  smoke gate. Carries the rc.5 free-first paid-continuity wording
  through unchanged so the operator-support-pack policy test holds.
- docs/releases/RELEASE_NOTES_v6_RC6_DRAFT.md,
  docs/releases/V6_CHANGELOG_RC6_DRAFT.md: fill in the SHA audit
  numbers (v6.0.0-rc.5..df7934936, 616 commits, 1379 files / 139185
  insertions / 67870 deletions). Add the licensing-continuity
  paragraph carrying the rc.5 Pulse Mobile pairing for handoff
  copy through unchanged so the discovered-packet policy test holds.
- docs/RELEASE_NOTES.md: link the rc.6 draft packet as current, push
  rc.5 to historical.
- docs/UPGRADE_v6.md: round out the prerelease packet pointer block
  with the rc.6 operator support pack path alongside the release
  notes and changelog already pointed at in df7934936.
- docs/releases/V6_PRERELEASE_RUNBOOK.md: add 6.0.0-rc.6 to the
  version-examples list and bump the RC_VERSION export shown in the
  RC release steps to rc.6.

Out of scope for this commit and intentionally held back until
governance reconciliation can land coherently:

- VERSION bump to 6.0.0-rc.6 (triggers deployment-installability
  shape-guard which cascades into registry/contract audits against
  72 dead-file references left over from the rc.6 IA revert).
- docs/release-control/v6/internal/status.json,
  docs/release-control/v6/internal/subsystems/registry.json, and the
  10 subsystem contract .md files that need post-IA-revert cleanup.
- scripts/release_control test fixture refreshes.
- The rc-to-ga-promotion-readiness-blocked record regen (gated on
  VERSION bump landing).

Working copies of the held-back files are preserved at
/tmp/rc6-prep-backup-2026-05-27/ with a MANIFEST.md describing each.
2026-05-27 13:37:24 +01:00
rcourtman ed8a9652b2 Add Machines row actions 2026-05-27 12:09:44 +01:00
rcourtman df79349368 Document rc.6 frontend IA revert in v6 release docs
rc.1-rc.5 shipped a unified /infrastructure /workloads /storage
/recovery top-level layout; rc.6 reverts the frontend to platform-
shaped pages (Proxmox / Docker / Kubernetes / TrueNAS / vSphere /
Standalone) on the same unified resource backend.

Updates the shipped v6 release docs to match:

- RELEASE_NOTES_v6.md and V6_CHANGELOG.md rewritten to describe the
  v6 layout as platform-shaped on a unified backend, with a paragraph
  in each explaining the rc.6 revert and the operator feedback that
  drove it.
- UPGRADE_v6.md prerelease packet pointer bumped from rc.5 to rc.6.
- MIGRATION_UNIFIED_NAV.md gets a top-of-file revert banner that
  redirects bookmarks targeting the unified routes to their platform-
  shaped equivalents; the original content is preserved below as a
  Historical Context section so the 19 tracked references into that
  doc still resolve.

Also adds the rc.6 draft packet:

- docs/releases/RELEASE_NOTES_v6_RC6_DRAFT.md
- docs/releases/V6_CHANGELOG_RC6_DRAFT.md

Validation SHAs in both drafts are left as <populate at packet
finalisation> markers; they fill in when the release-control packet
runs.
2026-05-27 11:50:59 +01:00
rcourtman 53149ab6c2 Add Machines filter reset path 2026-05-27 11:09:33 +01:00
rcourtman 4ae0968fbe Improve Machines search affordances 2026-05-27 11:00:35 +01:00
rcourtman 5692325031 Promote Machines web interface editor 2026-05-27 09:29:51 +01:00
rcourtman c386054172 Surface Machines web interface links 2026-05-27 09:20:05 +01:00
rcourtman f354dab065 Stop stripping workloads runtime/namespace before guest data loads
The cleanup effects in useWorkloadUrlSync removed a URL-set
containerRuntime or kubernetesNamespace whenever the value wasn't in
the options list. Before guests load that list is empty, so the
cleanup wrongly wiped perfectly valid URL values — including those
applied by a saved view or a deep link.

Skip cleanup when the candidates list is empty. Once a non-empty list
arrives, the existence check runs as before and a value not present
in the loaded options is cleared.

The remaining edge case (runtime carried into a view that genuinely
has no runtime options, e.g. Proxmox LXC) leaves a harmless dangling
URL param; filterWorkloads only consults runtime when relevant.
2026-05-27 08:25:02 +01:00
rcourtman 3c850578bb Make SavedViews default-star always visible
The star toggle that sets a view as the default-on-landing was
opacity-0 unless the row was hovered. Users had to discover the
feature by accident.

Show the star at idle on every row: filled amber for the current
default, outline grey otherwise. Hovering a grey star tints it amber
so the intent is clear before clicking. The X (delete) stays
hover-only because it's a destructive action that should be gated by
intent; toggling default is not.
2026-05-27 08:20:28 +01:00
rcourtman 2550d1fc86 Preserve Machines seen context when column hidden 2026-05-27 08:08:25 +01:00
rcourtman 6bd5890b3b Add Machines row expansion affordance 2026-05-27 08:05:25 +01:00
rcourtman 0ecece6925 Convert audit log filter form to FilterBar with SavedViews
Replace the bespoke filter form (FormSelects + free-text user input +
manual chip strip) with the canonical FilterBar. The user filter
becomes the search box, the three category filters become chips, and
the page-size selector moves into the view-options trailing slot.

Wire savedViewsKey='audit' so the Saved menu attaches to this surface.
Filter state has already moved to the URL (preceding commit), so saved
views capture exactly what location.search holds.

Drops the unused clearFilterChip from the panel; FilterBar handles
chip clear inline.
2026-05-27 08:01:48 +01:00
rcourtman 31a9714ebf Move audit filters to URL and live-apply
Replace the staged-then-Apply audit filter form with the live-apply
model the rest of Pulse uses (Workloads, Alerts, Storage). Filter state
moves from localStorage into URL search params so the page is
shareable and ready for SavedViews.

Behavior changes:
- eventFilter, successFilter, verificationFilter, userFilter are URL
  params (?event, ?success, ?verification, ?user). Default values are
  omitted from the URL.
- Server-side filters (event, success) refetch the first page
  immediately when changed.
- userFilter debounces refetch by 300ms so typing 'alice' doesn't
  send five requests.
- verificationFilter is purely client-side and only retriggers the
  filteredEvents memo.
- The Apply button is gone; clearFilters and clearFilterChip drop the
  explicit refetch (the live-apply effects handle it).

Legacy localStorage values for the four filters migrate into the URL
once on first mount; pageSize, pageOffset, and the autoVerify prefs
stay in localStorage because they are page state, not view state.

Update the audit log architecture boundary test to expect the new
shape (useLocation/useNavigate, no createLocalStorageStringSignal).
2026-05-27 07:57:52 +01:00
rcourtman 09119d250e Wire savedViewsKey on the embedded workloads filter
Derive a platform-scoped savedViewsKey from forcedPlatform inside
useWorkloadsState (workloads-<platform-id>, e.g. workloads-proxmox-pve,
workloads-vmware-vsphere) and pipe it through WorkloadsSurface ->
WorkloadsFilter -> FilterBar. Saved views never leak across platforms
because every live consumer locks platform scope.

Only the embedded WorkloadsFilter inside WorkloadsSurface receives the
key. The shared filter toolbar mounted directly by ProxmoxPageSurface /
VmwarePageSurface is a slim scope picker for the hosts table on top of
the page; the bottom embedded filter is the fuller per-table row and
the natural home for the SavedViews menu.
2026-05-27 07:39:15 +01:00
rcourtman 7a9b4062fb Show Machines row identity context 2026-05-27 07:36:54 +01:00
rcourtman f3a236e8ae Drop localStorage backup for workloads viewMode and containerRuntime
Both fields are already URL-mirrored by useWorkloadUrlSync; the
usePersistentSignal wrapping was a redundant second source of truth
that broke SavedViews' default-view auto-apply.

The auto-apply path checks window.location.search === ''. With the
persistent backup, a returning user's last viewMode would seed the URL
through the state -> URL effect before SavedViews onMount ran, so the
default view never landed. Dropping the persistent wrap leaves URL as
the only source.

Legacy localStorage values (workloadsViewMode, workloadsContainerRuntime)
are migrated to URL on first mount when the URL has no matching param;
runtime migration may be dropped by the pre-existing
containerRuntimeOptions cleanup effect when options haven't loaded
yet, matching the prior persistent-signal behavior.
2026-05-27 07:33:30 +01:00
rcourtman 103e46ede1 Render Machines IP detail tooltip 2026-05-27 07:30:26 +01:00
rcourtman 619f9f8997 Migrate workloads search and statusMode to URL params
Move two filter-state fields out of in-memory / localStorage into
URL search params:
- search -> ?q
- statusMode -> ?status (default 'all' omitted)

The remaining filter-shaped state on the workloads surface (viewMode,
containerRuntime, scope: node/platform/context/namespace/agent) was
already URL-mirrored via useWorkloadUrlSync; only these two were
unreachable from a query string. With this commit the workloads filter
state is fully captured by location.search, which is the prerequisite
for wiring savedViewsKey on workload surfaces.

On first mount each surface migrates the legacy scoped
workloadsStatusMode[:<scope>] localStorage value into ?status if URL is
clean. Legacy key left in place; harmless once URL takes over.

Test mocks @solidjs/router so useLocation/useNavigate resolve under
createRoot.
2026-05-27 07:28:41 +01:00
rcourtman cfd048e90c Update stale Patrol ApprovalSection assertions and sync shipped CONFIGURATION docs
ApprovalSection.test.tsx: the assistant briefing was refactored — title
changed from "Operator briefing attached" to "Patrol finding attached",
actionLabel was dropped (now undefined), and detailLines was reduced to
a single concatenated "Existing action artifact" line whose prior
multi-line content moved into handoffContext. Three of the five tests
asserted the old shape and failed. Update each one to assert the new
title, drop the stale detailLines/actionLabel matchers, and reassert
the semantic intent against the new handoffContext / commandSummary /
safetyNote / status string. All safety-critical "no raw command text
leaks into context" assertions are preserved.

CONFIGURATION.md: the repo source was updated with three
PULSE_ENABLE_PROXMOX_GUEST_DOCKER_* env vars and two TrueNAS rows
that never made it into the shipped public/docs copy, so docsLinks
guardrail flagged the divergence. Sync the file.

Pre-existing SECURITY.md sync mismatch (other agent's in-progress
edit) is unchanged.
2026-05-27 07:27:34 +01:00
rcourtman 751457b0b3 Render Machines disk I/O detail tooltip 2026-05-27 07:20:48 +01:00
rcourtman 74d4770d61 Drop last stale interactiveSparklineModel + state ?raw imports
Final tail of the orphan cleanup. The InteractiveSparkline component
and its state hook + model file were deleted in earlier rounds, but
two more `?raw` guardrail imports lingered:
- frontendResourceTypeBoundaries.test.ts (2)
- SharedPrimitives.guardrails.test.ts (2)

Strips them and the assertions that referenced them. Programmatic
orphan + stale-?raw sweep both return clean afterward.
2026-05-26 22:06:31 +01:00
rcourtman 76599b2a90 Restore TableCardHeader title and update stale frontend test assertions
TableCardHeader wrapped its entire body in a Show-when-actions gate, so
every title-only caller silently rendered nothing — Docker Images,
Docker Secrets, TrueNAS Apps/Services/Storage/Virtual Machines/Network
Shares/Health Alerts/Systems, and the Service Infrastructure dual-table
section all lost their section title. Render the title whenever it's
provided and only suppress the actions row when no actions exist. The
header bar still collapses entirely when both title and actions are
absent.

While there, fix three stale test assertions exposed by the same
sweep:
- ResourceDetailDrawer.identity-runtime: expected the host detail
  disclosure to say "Host" / "Show host", but Pulse-agent resources
  now use "Machine" / "Show machine".
- settingsArchitecture: matched the old zero-arg signature for
  buildAvailabilityTargetAddPath, which now takes an optional
  targetKind parameter.
- UnifiedResourceTable.performance.contract: the grouped Profile S
  render reliably brushed the 5s default waitFor timeout; bump to the
  same 15s the neighbouring row-windowing contracts use, plus a 30s
  test-level timeout, so it stops flaking under load.
2026-05-26 22:05:44 +01:00
rcourtman d1a7e018b3 Render Machines RAID detail tooltip 2026-05-26 21:57:44 +01:00
rcourtman 6d2f6e8e28 Update stale test assertions to match canonical column order and shape
Three frontend tests asserted against shapes the runtime no longer
produces:

- proxmoxHostTableModel.test.ts expected uptime before the CPU/Memory/
  Disk bar block on compact layouts. Commit 300af4312 ("Move Uptime
  after the bar block in platform top tables") canonicalized uptime to
  sit after the diagnostic Temp column, but the test wasn't updated.
- platformOverviewLayout.guardrails.test.ts asserted that
  AgentsMachinesTable's source contained literal "Machine"/"CPU"/etc
  next to getPlatformTableHeadClassForKind calls. AgentsMachinesTable
  now uses a column-config pattern where labels live in
  agentMachineTableModel.ts; redirect the assertions to the model file
  so they continue to enforce kind/label alignment.
- useStoragePoolDetailModel.test.ts expected the linkedDisks shape with
  five fields. The model now also exposes errorCount, ioLabel, role,
  sizeLabel, spunDown, and state. Update the expectation to include
  them.
2026-05-26 21:54:22 +01:00
rcourtman 334dd00125 Render Machines network detail tooltip 2026-05-26 21:43:30 +01:00
rcourtman 06f3bc745f Render Machines temperature detail tooltip 2026-05-26 20:55:15 +01:00