Retire aggregate top-level workspace routes

This commit is contained in:
rcourtman
2026-05-25 12:34:57 +01:00
parent c9be4c86f2
commit 8b0b1b0c6e
20 changed files with 214 additions and 416 deletions

View File

@@ -667,21 +667,21 @@ was clarified on 2026-05-25 through `frontend-modern/src/App.tsx` and
`frontend-modern/src/AppLayout.tsx`: the top of the app may expose canonical
platform pages (Proxmox, Kubernetes, TrueNAS, vSphere) plus the
container-runtime lens (shown as Containers for Docker / Podman), aggregate
Workloads / Storage / Recovery workspaces, Alerts, Patrol, and Settings.
platform-owned Workloads / Storage / Recovery sub-surfaces, Alerts, Patrol, and Settings.
Provider/runtime destinations must pass the shared support-and-resource-
evidence gate before they appear in navigation, command palette entries,
keyboard shortcuts, or landing fallbacks. Aggregate workspace tabs are
first-class product surfaces, not compatibility placeholders. Admitted-only or
absent platform/runtime surfaces must stay hidden from the AI-adjacent shell
and must not be kept as disabled placeholders. The legacy `/infrastructure`
route shell was retired alongside its page wrapper, and `/ceph` remains only a
keyboard shortcuts, or landing fallbacks. Aggregate workspace tabs are retired
top-level routes, not compatibility placeholders. Admitted-only or absent
platform/runtime surfaces must stay hidden from the AI-adjacent shell and must
not be kept as disabled placeholders. The legacy `/infrastructure` route shell
was retired alongside its page wrapper, `/workloads`, `/storage`, and
`/recovery` remain unregistered top-level routes, and `/ceph` remains only a
thin redirect to `/proxmox/ceph`. The AI Chat launcher, Patrol surfaces, and
`AssistantHandoffPayload` deep links must use canonical platform or aggregate
workspace routes (`/proxmox/overview`, `/proxmox/storage`,
`/kubernetes/workloads`, `/workloads`, `/storage`, `/recovery`, etc.) rather
than reviving retired Infrastructure paths; adding a platform tab through the
same shell files must not fork Assistant or Patrol shell state or smuggle in
AI-owned platform reads.
`AssistantHandoffPayload` deep links must use canonical platform or runtime
routes (`/proxmox/overview`, `/proxmox/storage`, `/kubernetes/workloads`, etc.)
rather than reviving retired Infrastructure or aggregate workspace paths;
adding a platform tab through the same shell files must not fork Assistant or
Patrol shell state or smuggle in AI-owned platform reads.
Post-auth `/` and `/login` resolution follows that same provider-first
platform order, with Agents only as the agent-only fallback, so the
assistant-capable shell never treats Agents or legacy Infrastructure as the

View File

@@ -510,10 +510,10 @@ or other self-hosted uncapped continuity plans.
`state.resources`. Admitted-only, presentation-only, unsupported, or
absent platform families must not render as disabled placeholders in the
paid or hosted app shell. Infrastructure is not an equal primary tab in
that list. Workloads, Storage, and Recovery are explicit aggregate
workspace tabs, while their component surfaces also remain reusable inside
platform pages via embedded `tableOnly` surfaces. Each platform page must
remain chrome-only:
that list. Workloads, Storage, and Recovery are not standalone aggregate
workspace tabs; their component surfaces remain reusable inside platform
pages via embedded `tableOnly` surfaces. Each platform page must remain
chrome-only:
routing plus sub-tab navigation that embeds the canonical
`WorkloadsSurface`, `StorageSurface`, `RecoverySurface`, or
`UnifiedResourceTable` in `embedded tableOnly` mode with a forced

View File

@@ -461,14 +461,14 @@ not a replacement status card, CTA band, or page-local nested card.
frontend primitives must not register `/cloud` or `/cloud/signup` as public
product-runtime routes, because Cloud signup belongs to Pulse Account and
the Cloud control plane rather than a local in-product trial page.
The former top-level `/infrastructure` operator route never shipped as a
stable v6 surface and must remain unregistered instead of being kept as a
compatibility redirect. `/workloads`, `/storage`, and `/recovery` are
explicit aggregate workspace routes owned by their product surfaces and the
authenticated shell; they must appear through the same navigation, command
palette, shortcut, route-preload, and active-tab owners as other first-class
destinations rather than lingering as hidden compatibility routes. `/ceph`
remains a thin redirect to the Proxmox-owned Ceph tab.
The former top-level `/infrastructure`, `/workloads`, `/storage`, and
`/recovery` operator routes never shipped as stable v6 surfaces and must
remain unregistered instead of being kept as compatibility redirects.
Workload, storage, and recovery workflows live inside the owning
platform/runtime pages and reusable component surfaces; they must not appear
in navigation, command palette, shortcut, route-preload, or active-tab
owners as standalone aggregate destinations. `/ceph` remains a thin
redirect to the Proxmox-owned Ceph tab.
The same settings-shell boundary owns read-only landing posture: when the
session presentation policy says the operator cannot manage setup, `/settings`
and sidebar navigation must land on the canonical reporting/control surface
@@ -631,8 +631,9 @@ not a replacement status card, CTA band, or page-local nested card.
make only their immediate control shell overflow-visible rather than
forking local z-index or popover positioning rules.
The shared navigation guide owns route-aware first focus: when it opens
from a top-level product route such as `/recovery`, the first highlighted
step should match that route instead of always restarting at Dashboard.
from a platform-owned product surface such as a recovery tab, the first
highlighted step should match that route instead of always restarting at
Dashboard.
5. Keep shared infrastructure shell state on the reusable settings boundary: `frontend-modern/src/components/Settings/useSettingsInfrastructurePanelProps.ts` and `frontend-modern/src/components/Settings/InfrastructureWorkspace.tsx` must continue to derive provider counts, availability, and shared subtab copy from one infrastructure-settings source — via the unified aggregator through `frontend-modern/src/components/Settings/useConnectionsLedger.ts` — instead of creating provider-local summary fetches or VMware-only shell vocabulary. Phase 9 retired the old `PlatformConnectionsWorkspace` per-type shell; setup guidance should now use `Add infrastructure` plus source-strategy language for API-backed onboarding. The standalone connections-table presenter is retired; `frontend-modern/src/components/Settings/InfrastructureSourceManager.tsx` is the only landing-ledger presenter for configured infrastructure rows.
The first-run setup wizard inherits that same source-strategy vocabulary:
step labels and completion copy must frame the final setup step as choosing
@@ -1573,8 +1574,8 @@ panel and Patrol findings panel that consumed them now keep investigation
in-place through their existing handoff buttons and inline actions. Future
cross-surface drilldown chips must not reanimate the legacy helpers.
Command palette and keyboard shortcuts moved to platform-first on 2026-05-16
and aggregate-workspace ownership was clarified on 2026-05-25
Command palette and keyboard shortcuts moved to platform-first on 2026-05-16,
and top-level aggregate workspace routes were retired on 2026-05-25
(`frontend-modern/src/components/shared/commandPaletteModel.ts`,
`frontend-modern/src/components/shared/useCommandPaletteState.ts`,
`frontend-modern/src/components/shared/KeyboardShortcutsModal.tsx`,
@@ -1582,18 +1583,16 @@ and aggregate-workspace ownership was clarified on 2026-05-25
`frontend-modern/src/routing/routePreload.ts`,
`frontend-modern/src/routing/navigation.ts`). The legacy
`nav-infrastructure` palette entry and `g i` chord remain retired with the
unregistered Infrastructure route. `nav-workloads`, `nav-storage`, and
`nav-recovery` are first-class aggregate workspace commands; Workloads and
Storage own the `g w` / `g s` chord bindings, while Recovery is available
through visible navigation and the command palette. Platform commands remain
`nav-proxmox`, `nav-docker`, `nav-kubernetes`, `nav-truenas`, `nav-vmware`
(chords `g p` / `g d` / `g k` / `g n` / `g v`) plus a dedicated
`nav-kubernetes-workloads` entry that lands on `/kubernetes/workloads`.
The route-module preload registry and `getActiveTabForPath` matcher must
recognize the aggregate workspace routes as owned destinations. New palette
commands and shortcut chords must flow through the same shell owners; do not
reintroduce hidden platform families or the retired top-level Infrastructure
entry by reanimating legacy paths.
unregistered Infrastructure route. `nav-workloads`, `nav-storage`,
`nav-recovery`, and the `g w` / `g s` aggregate chords are also retired rather
than hidden as compatibility commands. Platform commands remain `nav-proxmox`,
`nav-docker`, `nav-kubernetes`, `nav-truenas`, `nav-vmware` (chords `g p` /
`g d` / `g k` / `g n` / `g v`) plus a dedicated `nav-kubernetes-workloads`
entry that lands on `/kubernetes/workloads`. The route-module preload registry
and `getActiveTabForPath` matcher must not recognize aggregate workspace URLs
as owned shell destinations. New palette commands and shortcut chords must
flow through the same shell owners; do not reintroduce hidden platform
families or retired top-level aggregate routes by reanimating legacy paths.
The shared table chrome now allows `TableCardHeader` to expose a right-aligned
action slot, currently used by the Workloads/Proxmox metric display control.

View File

@@ -575,12 +575,12 @@ shell clickable behind another overlay.
canonical dock threshold, the assistant must switch to an overlay drawer so
table filters, grouped rows, and other hot-path controls keep their
existing layout budget instead of paying a second collapse cost.
33. Keep hidden workload-route selector shells off the hot path. When the
workloads route keeps `frontend-modern/src/components/shared/InfrastructureSelector.tsx`
33. Keep hidden workload selector shells off the hot path. When an owning
platform page keeps `frontend-modern/src/components/shared/InfrastructureSelector.tsx`
mounted only for layout parity, `frontend-modern/src/components/shared/useInfrastructureSelectorState.ts`
must not hydrate `all-resources` or recovery rollups behind a hidden node
summary; selector-owned data hooks must be explicitly visibility-gated so
`/workloads` only pays for workload-owned transports.
workload surfaces only pay for workload-owned transports.
34. Keep the retired dashboard page-header path absent from the compact hot
path. New page headers must stay pure presentation on their owning route
and must not introduce a second data load, widen suspense ownership, or
@@ -613,24 +613,22 @@ shell clickable behind another overlay.
2s dial / 1s read with at most 5 concurrent fingerprints so the probe
endpoint cannot be repurposed into a slow-leak scanner that starves the
dashboard hot path.
Platform-first and aggregate workspace top-level pages must remain in the
app-shell route preload registry. `frontend-modern/src/routing/routePreload.ts`
carries a `ROUTE_PRELOADERS` entry per supported platform (Agents, Proxmox
plus the Docker, Kubernetes, TrueNAS, and vSphere families) and per
first-class aggregate workspace (Workloads, Storage, and Recovery) so
first-paint navigation between visible shell tabs stays warm and does not
depend on a cold dynamic import after the user clicks. New supported
platform families or first-class aggregate workspaces must extend that
registry rather than skipping the preload hot path; presentation-only or
retired routes must not be registered. Preload entries may warm route
modules, but they must not trigger additional unfiltered resource fetches,
metrics-history fan-out, recovery-history fan-out, storage scans, or
provider scans before the destination page owns its normal data query. The
preload order follows the provider-first shell order as a hot-path hint:
Proxmox remains ahead of Agents when both surfaces are available, while
Agents stays in the preload set so agent-only estates still get a warm
first destination; aggregate workspace entries are addressable for
hover/click warming without becoming generic app-bootstrap data work.
Platform-first top-level pages must remain in the app-shell route preload
registry. `frontend-modern/src/routing/routePreload.ts` carries a
`ROUTE_PRELOADERS` entry per supported platform (Agents, Proxmox plus the
Docker, Kubernetes, TrueNAS, and vSphere families) so first-paint
navigation between visible shell tabs stays warm and does not depend on a
cold dynamic import after the user clicks. New supported platform families
must extend that registry rather than skipping the preload hot path;
presentation-only or retired routes, including the top-level Workloads,
Storage, and Recovery aggregate routes, must not be registered. Preload
entries may warm route modules, but they must not trigger additional
unfiltered resource fetches, metrics-history fan-out, recovery-history
fan-out, storage scans, or provider scans before the destination page owns
its normal data query. The preload order follows the provider-first shell
order as a hot-path hint: Proxmox remains ahead of Agents when both
surfaces are available, while Agents stays in the preload set so
agent-only estates still get a warm first destination.
The authenticated app shell must not separately prewarm retired
Infrastructure or Workloads chart caches as a generic side effect; those
chart fetches belong to the route that renders the chart surface or to the
@@ -1121,8 +1119,8 @@ runtime strings, but they must not inherit Docker-only update affordances or
agent-only Discovery tabs on the Workloads row path unless the unified
resource contract explicitly supplies discovery ownership.
That same row-and-selection boundary also requires canonical app-container
identity to stay intact on the workload surface. `/workloads` rows, deep links,
drawer selection, anomaly correlation, and route-owned filters must key on the
identity to stay intact on the workload surface. Workload rows, deep links,
drawer selection, anomaly correlation, and route-state filters must key on the
unified resource ID such as `app-container:truenas-main:nextcloud`, while
Docker-native runtime IDs stay in a separate action-only field for Docker
controls like image updates. Performance work must not collapse API-backed
@@ -1130,9 +1128,9 @@ platforms back onto runtime-native container IDs or derive fake node scopes
from typed canonical resource IDs.
That same summary hot path must also keep workload hover identity canonical
across provider-backed history. Row hover and focus plus top-card isolation on
`/workloads` must resolve against the same canonical workload ID even when the
backing history is stored under a provider metrics target, so provider-backed
VM rows do not silently drop out of summary emphasis.
workload surfaces must resolve against the same canonical workload ID even
when the backing history is stored under a provider metrics target, so
provider-backed VM rows do not silently drop out of summary emphasis.
The shared infrastructure table hot path now also treats operator-facing
resource identity as a protected boundary: sorting, searching, summary-series
matching, and row titles on the infrastructure page must use the canonical

View File

@@ -181,13 +181,14 @@ recovery scope, or a storage/recovery-owned secret source.
1. Add or change recovery-point persistence, rollups, or series derivation through `internal/recovery/`
2. Add or change recovery page UX through `frontend-modern/src/components/Recovery/` and keep canonical route/query/filter state ownership in `frontend-modern/src/features/recovery/useRecoverySurfaceState.ts`
`/recovery` is a first-class authenticated aggregate workspace.
`/recovery` is no longer an authenticated top-level aggregate workspace.
`frontend-modern/src/App.tsx`, `frontend-modern/src/AppLayout.tsx`, the command
palette, keyboard shortcuts, route preloading, and active-tab routing must
treat Recovery as canonical product navigation rather than hidden
compatibility. `/storage` has the same aggregate-workspace status for the
Storage owner surface. The app shell may route to those surfaces, but it
must not duplicate storage/recovery state outside their owning components.
keep Recovery unregistered as standalone product navigation rather than as
hidden compatibility. `/storage` has the same retired top-level status for
the Storage owner surface. Storage/recovery state remains owned by the
reusable surfaces that platform pages embed; the app shell must not
duplicate that state or expose it as a separate aggregate route.
Recovery table surfaces must consume the frontend-primitives-owned
`TableCard` frame and `TableCardHeader` header band for protected-item,
recovery-event, and adjacent table-fallback chrome. Storage/recovery may own
@@ -199,10 +200,10 @@ recovery scope, or a storage/recovery-owned secret source.
`overflow-x-auto` div around the shared table. Storage pools and physical
disks inherit the surrounding `StorageContentCard` frame and must not add
a nested `Card` or second scroll wrapper.
Recovery is event-first: the default `/recovery` surface is the recovery
events history, and protected-item rollups are a secondary Protection
coverage review reached from the explicit header action or
`view=inventory` compatibility links. Recovery must not present
Recovery is event-first: recovery surfaces open on recovery events history
by default, and protected-item rollups are a secondary Protection coverage
review reached from the explicit header action or route state owned by the
embedding surface. Recovery must not present
protected rollups and recovery events as equal default sub-tabs because
workload backup posture already belongs on Workloads, while Recovery owns
concrete backup/snapshot/replication evidence. Both surfaces still opt into
@@ -257,7 +258,7 @@ recovery scope, or a storage/recovery-owned secret source.
A selected timeline day is an active event-history filter: table totals,
footer ranges, empty states, and search/date matching must describe the
visible filtered recovery points, not the unfiltered API page metadata.
3. Add or change storage UX through `frontend-modern/src/components/Storage/Storage.tsx` (the canonical `StorageSurface`, embedded inside platform pages and mounted by the aggregate Storage workspace), `frontend-modern/src/components/Storage/`, `frontend-modern/src/features/storageBackups/`, the shared storage-source contract in `frontend-modern/src/utils/storageSources.ts`, and the Proxmox-native Ceph table at `frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx`. The old standalone page wrappers under the legacy frontend-modern pages directory were retired with the platform-first primary nav (2026-05-16); the canonical component surfaces remain alive both as aggregate Workloads / Storage / Recovery workspaces and as embedded views inside matching platform page sub-tabs. The Ceph legacy route remains a thin redirect to the Proxmox-owned Ceph tab.
3. Add or change storage UX through `frontend-modern/src/components/Storage/Storage.tsx` (the canonical `StorageSurface`, embedded inside platform pages), `frontend-modern/src/components/Storage/`, `frontend-modern/src/features/storageBackups/`, the shared storage-source contract in `frontend-modern/src/utils/storageSources.ts`, and the Proxmox-native Ceph table at `frontend-modern/src/features/proxmox/ProxmoxCephTable.tsx`. The old standalone page wrappers under the legacy frontend-modern pages directory were retired with the platform-first primary nav (2026-05-16), and the top-level aggregate Workloads / Storage / Recovery routes were unregistered on 2026-05-25; the canonical component surfaces remain alive as embedded views inside matching platform page sub-tabs. The Ceph legacy route remains a thin redirect to the Proxmox-owned Ceph tab.
The retired dashboard route must not reintroduce storage or recovery
widgets as compatibility panels. Storage capacity, storage health,
protected-item, and recovery-outcome readiness claims belong on the Storage
@@ -751,15 +752,15 @@ recovery scope, or a storage/recovery-owned secret source.
23. Keep backend-native platform diagnostics on the adjacent AI/runtime and platform contracts. When `internal/api/` wires native TrueNAS app log reads for Assistant, storage and recovery may use those diagnostics during investigation, but they must not grow a parallel recovery-local log transport or diagnostic payload shape.
24. Keep backend-native platform configuration reads on the adjacent AI/runtime and platform contracts. When `internal/api/` wires native TrueNAS app config for Assistant, storage and recovery may use that runtime shape during investigation, but they must not grow a parallel recovery-local config transport or provider-shaped configuration payload.
25. Keep provider-backed poll cadence and settings-runtime health on the adjacent platform-connections contract. When shared `internal/api/` and poller wiring expose TrueNAS last-sync status, failure summaries, discovered contribution counts, manual saved-test status refresh, or platform handoff links in settings, storage and recovery may consume the resulting datasets, apps, disks, and recovery artifacts but must not redefine those settings-runtime health semantics or connection-level handoffs in storage/recovery-local transport or page flows.
26. Keep cross-surface recovery handoffs on the shared route-helper contract. When infrastructure or other unified-resource consumers expose TrueNAS recovery links, they must reuse the canonical `frontend-modern/src/routing/resourceLinks.ts` recovery builder with owned `platform` and `node` queries instead of inventing drawer-local recovery URLs or treating PBS services as the only infrastructure-to-recovery path.
26. Keep recovery filter/query state on the shared route-state parsing contract without restoring standalone recovery navigation. When platform pages or other embedded owners expose TrueNAS recovery context, they may reuse the canonical recovery query vocabulary with owned `platform` and `node` fields, but they must land inside an owning platform/runtime route instead of inventing drawer-local recovery URLs, treating PBS services as the only recovery path, or sending operators to the retired Recovery aggregate route.
That same shared route-helper boundary also owns exact workload handoffs
when storage or recovery surfaces send operators back to node-scoped
workloads for investigation context. Proxmox VM and system-container links
must carry the canonical workload identity (`<instance>:<node>:<vmid>`) in
the shared `/workloads` `resource` query rather than an opaque unified
resource id, so recovery/storage drill-downs reopen the intended workload
drawer instead of landing on an unselected table state.
27. Keep alert-side recovery drill-ins on that same shared route-helper contract. When alert investigation surfaces such as resource-incident panels expose recovery follow-up links for TrueNAS or future API-backed platforms, they must route through the canonical `frontend-modern/src/routing/resourceLinks.ts` recovery builder instead of freezing alert-local recovery URLs or introducing another provider-shaped recovery handoff vocabulary.
the shared workload query state rather than an opaque unified resource id,
so recovery/storage drill-downs reopen the intended platform-owned
workload drawer instead of landing on an unselected table state.
27. Keep alert-side recovery drill-ins on that same embedded-owner route-state contract. When alert investigation surfaces such as resource-incident panels expose recovery follow-up links for TrueNAS or future API-backed platforms, they must route through an owning platform/runtime destination using canonical recovery query vocabulary instead of freezing alert-local recovery URLs, reviving the retired Recovery aggregate route, or introducing another provider-shaped recovery handoff vocabulary.
28. Keep VMware onboarding runtime and recovery semantics separate on that same adjacent platform-connections contract. When `internal/api/router.go`, `internal/api/router_routes_registration.go`, or `internal/api/vmware_handlers.go` evolve VMware connection CRUD, poller-owned `poll` / `observed` summary payloads, saved-test refresh, or observed datastore/VM snapshot visibility, storage and recovery may consume the resulting shared context but must not treat those onboarding/runtime payloads as canonical recovery artifacts, restore capability, or recovery-local control transport.
29. Keep VMware datastore projection on the shared unified-resource and storage-source contracts. When `frontend-modern/src/hooks/useUnifiedResources.ts` or shared `internal/api/router.go` wiring starts surfacing VMware-backed canonical `storage` resources, storage and recovery may expose those datastores through the owned `vmware-vsphere` source/platform vocabulary for inventory, capacity, and handoff flows only; they must not reinterpret that projection as VMware recovery support, restore semantics, or a provider-local protection surface.
The same shared unified-resource boundary also covers canonical
@@ -994,9 +995,9 @@ recovery scope, or a storage/recovery-owned secret source.
11. Letting non-canonical recovery platform values survive in route or transport state; shared recovery URLs must collapse unsupported or fake `platform` values back to the canonical unset state, and only owned source-platform options or canonical legacy aliases may reach rollups, points, series, and facets transport filters
11c. Letting route-owned recovery platform selections disappear while filter options are still hydrating; the recovery page state owner must keep the current canonical `platform` query value present in the platform option set until transport-backed facets and records arrive so shared filter selects keep the user-visible TrueNAS or other owned platform selection instead of flashing back to `All platforms`
11d. Letting recovery filter default labels drift between protected inventory and recovery events; both recovery filter surfaces must consume the shared `recoveryTablePresentation` labels (`All item types`, `All platforms`, and `Any item`) instead of hard-coding title-case local variants.
11a. Letting adjacent workload-route changes in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery parse/build semantics; expanding canonical `/workloads` platform scoping must not alter the owned `/recovery` `platform` and `itemType` vocabulary, legacy alias rewrites, or recovery drill-down workspace selection
11b. Letting adjacent storage-link additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery route semantics; expanding canonical `/storage` deep links for unified resources must not reuse recovery-owned query names or alter the owned `/recovery` parse/build contract while those surfaces continue sharing the same route-helper module
11e. Letting adjacent platform-route additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb storage or recovery route semantics; adding canonical `/agents` paths or other platform paths must not reuse storage/recovery query names, alter `/storage` or `/recovery` parse/build behavior, or convert agent-platform membership into storage/recovery ownership
11a. Letting adjacent workload route-state changes in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery parse/build semantics; expanding canonical workload platform scoping must not alter the owned recovery `platform` and `itemType` vocabulary, legacy alias rewrites, or recovery drill-down workspace selection
11b. Letting adjacent storage route-state additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb recovery route semantics; expanding canonical storage deep links for unified resources must not reuse recovery-owned query names or alter the owned recovery parse/build contract while those surfaces continue sharing the same route-helper module
11e. Letting adjacent platform-route additions in shared `frontend-modern/src/routing/resourceLinks.ts` perturb storage or recovery route semantics; adding canonical `/agents` paths or other platform paths must not reuse storage/recovery query names, alter storage or recovery parse/build behavior, or convert agent-platform membership into storage/recovery ownership
12. Letting protected-inventory protection posture overload recovery-event outcome filtering; the protected inventory protection-state control must drive the route-backed `state` field and local rollup posture filtering, while the recovery events `status` field remains the canonical outcome filter for points, series, and facets transport filters
13. Letting visible protected-item filters fall out of shared recovery links; protected inventory state such as stale, failed, warning, running, unknown, healthy, and never-succeeded must restore from the canonical recovery URL and rewrite to the owned `state=<value>` route form, with legacy `stale=1` accepted only as compatibility input
14. Reintroducing stacked full-width recovery tables as the primary desktop layout; the governed recovery surface must expose one primary data region at a time with recovery events as the default workspace and protection coverage as an explicit secondary review so Pulse does not collapse back into a single-platform backup screen
@@ -1889,10 +1890,11 @@ default event routes should omit redundant `view=events` query state.
That same shared route-helper contract now also has to preserve exact storage
and recovery handoffs for unified resources discovered outside the storage or
recovery pages. When alerts, Patrol, or infrastructure drawers route a
TrueNAS-backed disk, app, or system into `/storage` or `/recovery`, the shared
helper must keep the owned `source`, `node`, `platform`, `view`, and exact
`resource` semantics intact instead of collapsing those handoffs back to
provider-local URLs or generic top-level tabs.
TrueNAS-backed disk, app, or system into an owning platform/runtime surface,
the shared helper must keep the owned `source`, `node`, `platform`, `view`,
and exact `resource` semantics intact instead of collapsing those handoffs
back to provider-local URLs, retired aggregate workspace routes, or generic
top-level tabs.
That history table layout now also derives its minimum width from the same
canonical column-width spec that owns the header sizing in
`frontend-modern/src/utils/recoveryTablePresentation.ts`, so longer governed
@@ -2989,7 +2991,7 @@ reconstruct the same point-history window instead of silently widening back to
the broader chart range.
That same route continuity rule also applies to the selected chart window
itself: changing the recovery timeline range to `7d`, `90d`, or `1y` must stay
in canonical `/recovery` route state so reload, navigation, and shared links
in canonical recovery route state so reload, navigation, and shared links
reconstruct the same rollup and series transport window instead of widening
back to the default `30d` range.
@@ -3182,11 +3184,11 @@ may surface VMware-backed datastores as canonical `storage` resources under
the shared `vmware-vsphere` source/platform vocabulary, but that operator-
facing storage visibility still ends at inventory, capacity, and navigation.
That same shared storage adapter must classify those VMware-backed records as
inventory-only datastores on `/storage`, not as backup repositories or
recovery-protected targets. Shared storage rows may show datastore topology,
capacity, accessibility, and multi-host context, but they must keep fallback
protection semantics neutral unless a separately governed recovery slice adds
real VMware protection contracts.
inventory-only datastores on platform-owned storage surfaces, not as backup
repositories or recovery-protected targets. Shared storage rows may show
datastore topology, capacity, accessibility, and multi-host context, but they
must keep fallback protection semantics neutral unless a separately governed
recovery slice adds real VMware protection contracts.
That same inventory-only contract also applies when the operator turns on
runtime mock data. Mock TrueNAS pools/datasets and mock VMware datastores may
surface through the shared storage and recovery-adjacent pages as canonical

View File

@@ -1847,35 +1847,38 @@ dashboard, alert, and settings referrals may target `/patrol` through
`frontend-modern/src/routing/resourceLinks.ts`, but legacy `/ai` route shapes
must remain compatibility-only redirects rather than forked primary
destinations in local link builders.
That same shared routing boundary now also owns storage deep links for unified
resources. Infrastructure drawers and other cross-surface consumers must route
storage-centric systems and exact storage resources through canonical
`/storage` route state there, using owned `source`, `node`, and `resource`
queries instead of rebuilding drawer-local storage paths or provider-local
highlight rules. When a top-level system is a merged hybrid surface, that
helper must resolve the deep-link source from the canonical merged source set
before falling back to raw `platformType`, so TrueNAS-backed hybrid systems do
not lose their storage handoff just because agent telemetry is also present.
That same routing contract now also owns canonical `/workloads` platform
scoping. Shared workloads links, dashboard URL-sync state, and infrastructure
drill-down helpers must preserve `platform=<owned-source-key>` for API-backed
workloads such as TrueNAS app-containers instead of collapsing those routes
back to generic agent or Docker-only semantics when host telemetry is also
present. Runtime-local filters like `agent` or cluster context may still be
added as secondary scope, but the canonical platform query must remain the
first-class route boundary for shared workload navigation.
That same shared routing boundary now also owns storage route-state vocabulary
for unified resources without restoring the retired `/storage` top-level route.
Platform pages and other embedded owners may carry owned `source`, `node`, and
`resource` queries, but cross-surface consumers must land inside an owning
platform/runtime route instead of rebuilding drawer-local storage paths,
provider-local highlight rules, or standalone aggregate workspace URLs. When a
top-level system is a merged hybrid surface, the route-state helper must
resolve the deep-link source from the canonical merged source set before
falling back to raw `platformType`, so TrueNAS-backed hybrid systems do not
lose their storage context just because agent telemetry is also present.
That same routing contract now also owns workload platform scoping without
restoring the retired `/workloads` top-level route. Shared workloads links,
dashboard URL-sync state, and infrastructure drill-down helpers must preserve
`platform=<owned-source-key>` for API-backed workloads such as TrueNAS
app-containers instead of collapsing those routes back to generic agent or
Docker-only semantics when host telemetry is also present. Runtime-local
filters like `agent` or cluster context may still be added as secondary scope,
but the canonical platform query must remain the first-class route-state
boundary for shared workload navigation.
That same shared workload-route contract also owns exact guest selection for
node-scoped workloads. Proxmox VM and system-container links must emit the
canonical workload identity (`<instance>:<node>:<vmid>`) in the shared
`resource` query rather than an opaque unified-resource id, so direct route
loads and cross-surface drill-downs reopen the correct workload drawer instead
of landing on an unselected table state.
That same routing contract now also owns recovery deep links for unified
resources. Infrastructure drawers and other cross-surface consumers must route
TrueNAS-backed top-level systems through canonical `/recovery` route state
there, using owned `platform` and `node` queries instead of rebuilding
drawer-local recovery links or assuming only PBS services can expose recovery
handoffs from infrastructure.
That same routing contract now also owns recovery route-state vocabulary for
unified resources without restoring the retired `/recovery` top-level route.
Infrastructure drawers and other cross-surface consumers must carry canonical
`platform` and `node` query state into an owning platform/runtime route instead
of rebuilding drawer-local recovery links, assuming only PBS services can
expose recovery handoffs from infrastructure, or sending operators to a
standalone aggregate workspace URL.
When shared recovery links include protected-inventory posture, they must use
the recovery-owned `state` query instead of overloading event `status`. Event
outcome `status` remains recovery-history state, and compatibility input such
@@ -1884,16 +1887,18 @@ cross-surface links are rebuilt.
That same shared routing boundary now also owns alert-investigation handoffs.
Resource-incident panels and other alert-side resource drill-down consumers
must route operators back through canonical infrastructure resource detail and
then into shared workloads, storage, and recovery surfaces via
`frontend-modern/src/routing/resourceLinks.ts`, instead of treating alert
investigation as a provider-local dead end or freezing per-surface route
strings outside the unified-resource contract.
then into platform-owned workload, storage, and recovery surfaces via
`frontend-modern/src/routing/resourceLinks.ts` route-state vocabulary, instead
of treating alert investigation as a provider-local dead end, freezing
per-surface route strings outside the unified-resource contract, or reviving
retired aggregate workspace URLs.
That same routing contract also owns Patrol finding handoffs. Expanded
Patrol-finding rows and scoped-run finding snapshots must resolve the backing
unified resource and surface the same canonical infrastructure/workloads/
storage/recovery links there, including exact workload and physical-disk route
unified resource and surface the same platform-owned workload/storage/recovery
route-state vocabulary there, including exact workload and physical-disk route
state when the selected resource is itself the workload or disk, instead of
stopping at finding text or rebuilding patrol-local route strings.
stopping at finding text, rebuilding patrol-local route strings, or reviving
retired aggregate workspace URLs.
That drawer shell now routes its canonical timeline filter, facet-bundle, and
resource-intelligence state through
`frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts`,
@@ -2253,7 +2258,7 @@ The shared workloads projection in `useWorkloads` also uses that helper for
pod context labels, so dashboard Kubernetes grouping follows the same
canonical cluster-name contract instead of re-encoding the fallback locally.
That same shared workloads projection now also owns canonical app-container
identity on the `/workloads` surface. Frontend workload records must keep the
identity on workload surfaces. Frontend workload records must keep the
unified resource `id` intact for drawer selection, deep links, anomalies, and
discovery, while Docker-native action fields such as `containerId` stay
separate and are only consumed by Docker-specific controls. API-backed
@@ -2264,7 +2269,7 @@ provider-backed workloads. Unified-resource VM and system-container views may
surface `MetricsTarget` only as the history lookup target, while workload
chart transport and hover/focus selection must keep using the canonical
workload row ID so provider-backed workloads such as VMware VMs stay aligned
with `/workloads` rows and summary cards.
with workload rows and summary cards.
Kubernetes pods follow that same split. Pod rows may surface
`MetricsTarget.ResourceID` only as the history lookup target, but that target
must stay on the canonical prefixed runtime key
@@ -2533,17 +2538,18 @@ contract for reporting/ignored infrastructure state; future settings-row
grouping or reporting-surface scope changes must be routed through that backend
projection instead of teaching the frontend to reinterpret raw resource facets
or removed-runtime arrays locally.
Canonical route helpers must also preserve recovery-specific drill-down state
when they serialize governed resource views. Recovery timeline day selection is
part of the durable route contract, so `/recovery` links must round-trip the
selected day instead of dropping it as transient local UI state.
The same recovery route contract also applies to the selected timeline range:
canonical `/recovery` links must preserve explicit non-default chart windows
such as `7d`, `90d`, and `1y` so recovery drill-down transport does not widen
back to the default `30d` window on reload or shared navigation.
That same shared recovery route helper contract also owns the primary recovery
Canonical route-state helpers must also preserve recovery-specific drill-down
state when they serialize governed resource views. Recovery timeline day
selection is part of the durable route-state contract, so recovery query state
must round-trip the selected day inside an owning platform/runtime route
instead of dropping it as transient local UI state or restoring `/recovery`.
The same recovery route-state contract also applies to the selected timeline
range: canonical recovery query state must preserve explicit non-default chart
windows such as `7d`, `90d`, and `1y` so recovery drill-down transport does
not widen back to the default `30d` window on reload or shared navigation.
That same shared recovery route-state contract also owns the primary recovery
workspace selection. When an operator explicitly switches between protected
items and recovery events, canonical `/recovery` links must round-trip that
items and recovery events, canonical recovery query state must round-trip that
`view` selection unless the active `rollupId` or selected day already implies
the default recovery-events workspace.
That same shared recovery route helper contract now also owns canonical
@@ -2552,16 +2558,16 @@ round-trip through the owned `state=<value>` query form instead of leaking ad
hoc booleans, overloading event `status`, or disappearing from shared links on
reload. Legacy `stale=1` may be parsed only as compatibility input that
rewrites to canonical inventory state.
That same route contract now also owns the canonical recovery `itemType`
query. `/recovery` links must round-trip a provider-neutral item category such
as `vm`, `dataset`, or `pvc`, and
That same route-state contract now also owns the canonical recovery `itemType`
query. Recovery query state must round-trip a provider-neutral item category
such as `vm`, `dataset`, or `pvc`, and
`frontend-modern/src/routing/resourceLinks.ts` may canonicalize provider-native
aliases like `proxmox-vm` into that shared vocabulary during parse/build, but
recovery route state must not drift back to raw platform-specific
`subjectType` values in shared navigation.
That same route contract also owns the canonical recovery `platform` query.
`/recovery` links must emit `platform=<owned-source-key>` as the shared
operator-facing route shape, while accepted legacy `provider` aliases may be
That same route-state contract also owns the canonical recovery `platform`
query. Recovery query state must emit `platform=<owned-source-key>` as the
shared operator-facing shape, while accepted legacy `provider` aliases may be
parsed only as compatibility input that rewrites back to canonical platform
route state. `frontend-modern/src/routing/resourceLinks.ts` must not keep
legacy `provider` as a first-class build option once parse-time compatibility
@@ -2572,10 +2578,10 @@ prefer canonical `platform` / `platforms` response fields over legacy
carry the same platform vocabulary on both route and payload boundaries.
That same shared drill-down contract also owns which primary recovery workspace
an upstream surface is targeting. Infrastructure service links that open
platform-level recovery activity must emit canonical `/recovery` route state
with `view=events` instead of inheriting the inventory default, and those
entry links should describe the destination as recovery events rather than
platform-specific backup wording.
platform-level recovery activity must emit canonical recovery route state with
`view=events` inside an owning platform/runtime destination instead of
inheriting the inventory default, and those entry links should describe the
destination as recovery events rather than platform-specific backup wording.
Shared API consumers now also depend on a single registry-list snapshot per
request when deriving canonical type aggregations for resource list and stats
responses. Re-reading `registry.List()` for the same `/api/resources` request

View File

@@ -44,11 +44,8 @@ import {
KUBERNETES_PATH,
PATROL_PATH,
PROXMOX_PATH,
RECOVERY_PATH,
STORAGE_PATH,
TRUENAS_PATH,
VMWARE_PATH,
WORKLOADS_PATH,
buildAgentsPath,
buildDockerPath,
buildKubernetesPath,
@@ -82,21 +79,6 @@ const AlertsPage = lazy(() =>
import('./pages/Alerts').then((module) => ({ default: module.Alerts })),
);
const SettingsPage = lazy(() => import('./components/Settings/Settings'));
const WorkloadsPage = lazy(() =>
import('./components/Workloads/WorkloadsSurface').then((module) => ({
default: () => <module.WorkloadsSurface vms={[]} containers={[]} nodes={[]} useWorkloads />,
})),
);
const StoragePage = lazy(() =>
import('./components/Storage/Storage').then((module) => ({
default: () => <module.default />,
})),
);
const RecoveryPage = lazy(() =>
import('./components/Recovery/Recovery').then((module) => ({
default: () => <module.default />,
})),
);
const ProxmoxPage = lazy(() => import('./pages/Proxmox'));
const DockerPage = lazy(() => import('./pages/Docker'));
const KubernetesPage = lazy(() => import('./pages/Kubernetes'));
@@ -550,12 +532,6 @@ function App() {
<Route path="/preview/setup-complete" component={SetupCompletionPreviewPage} />
<Route path="/login" component={RuntimeHomePage} />
<Route path="/" component={RuntimeHomePage} />
<Route path={WORKLOADS_PATH} component={WorkloadsPage} />
<Route path={`${WORKLOADS_PATH}/*`} component={WorkloadsPage} />
<Route path={STORAGE_PATH} component={StoragePage} />
<Route path={`${STORAGE_PATH}/*`} component={StoragePage} />
<Route path={RECOVERY_PATH} component={RecoveryPage} />
<Route path={`${RECOVERY_PATH}/*`} component={RecoveryPage} />
<Route path="/ceph" component={() => <Navigate href="/proxmox/ceph" />} />
<Route path="/ceph/*" component={() => <Navigate href="/proxmox/ceph" />} />
<Route path={PROXMOX_PATH} component={ProxmoxPage} />

View File

@@ -11,9 +11,6 @@ import ServerIcon from 'lucide-solid/icons/server';
import ShipWheelIcon from 'lucide-solid/icons/ship-wheel';
import DatabaseIcon from 'lucide-solid/icons/database';
import CpuIcon from 'lucide-solid/icons/cpu';
import BoxesIcon from 'lucide-solid/icons/boxes';
import HardDriveIcon from 'lucide-solid/icons/hard-drive';
import RotateCcwIcon from 'lucide-solid/icons/rotate-ccw';
import { ProxmoxIcon } from '@/components/icons/ProxmoxIcon';
import {
MobileNavBar,
@@ -43,11 +40,8 @@ import {
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
buildRecoveryPath,
buildStoragePath,
buildTrueNASPath,
buildVmwarePath,
buildWorkloadsPath,
} from '@/routing/resourceLinks';
import { getKioskModePreference, setKioskMode } from '@/utils/url';
import { updateStore } from '@/stores/updates';
@@ -63,9 +57,6 @@ const ROOT_KUBERNETES_PATH = buildKubernetesPath();
const ROOT_TRUENAS_PATH = buildTrueNASPath();
const ROOT_VMWARE_PATH = buildVmwarePath();
const ROOT_AGENTS_PATH = buildAgentsPath();
const ROOT_WORKLOADS_PATH = buildWorkloadsPath();
const ROOT_STORAGE_PATH = buildStoragePath();
const ROOT_RECOVERY_PATH = buildRecoveryPath();
const ROOT_ALERTS_PATH = '/alerts';
const NAV_TAB_ICON_CLASS = 'w-4 h-4 shrink-0';
const AI_CHAT_LAUNCHER_BUTTON_CLASS =
@@ -221,9 +212,6 @@ export function AppLayout(props: AppLayoutProps) {
truenas: 'TrueNAS',
vmware: 'vSphere',
agents: 'Agents',
workloads: 'Workloads',
storage: 'Storage',
recovery: 'Recovery',
alerts: 'Alerts',
ai: 'Patrol',
settings: 'Settings',
@@ -411,44 +399,6 @@ export function AppLayout(props: AppLayoutProps) {
return allPrimaryTabs.filter((tab) => tab.alwaysShow || tab.enabled);
});
const workspaceTabs = createMemo<PrimaryTab[]>(() => [
{
id: 'workloads',
label: 'Workloads',
route: ROOT_WORKLOADS_PATH,
settingsRoute: '/settings/infrastructure',
tooltip: 'Aggregate workload inventory across VMs, containers, and Kubernetes resources',
enabled: true,
live: true,
icon: BoxesIcon,
alwaysShow: true,
},
{
id: 'storage',
label: 'Storage',
route: ROOT_STORAGE_PATH,
settingsRoute: '/settings/infrastructure',
tooltip: 'Aggregate storage pools, disks, datastores, and capacity posture',
enabled: true,
live: true,
icon: HardDriveIcon,
alwaysShow: true,
},
{
id: 'recovery',
label: 'Recovery',
route: ROOT_RECOVERY_PATH,
settingsRoute: '/settings/system-recovery',
tooltip: 'Backup, snapshot, replication, and recovery-point activity',
enabled: true,
live: true,
icon: RotateCcwIcon,
alwaysShow: true,
},
]);
const mobilePrimaryTabs = createMemo<PrimaryTab[]>(() => [...primaryTabs(), ...workspaceTabs()]);
const utilityTabs = createMemo(() => {
const allAlerts = props.state().activeAlerts || [];
const breakdown = allAlerts.reduce(
@@ -793,9 +743,6 @@ export function AppLayout(props: AppLayoutProps) {
<div class="flex items-end gap-1" role="group" aria-label="Infrastructure">
<For each={primaryTabs()}>{renderPrimaryNavigationTab}</For>
</div>
<div class="flex items-end gap-1 pl-1 sm:pl-3" role="group" aria-label="Workspaces">
<For each={workspaceTabs()}>{renderPrimaryNavigationTab}</For>
</div>
<div class="flex items-end gap-1 ml-auto" role="group" aria-label="System">
<div class="flex items-end gap-1 pl-1 sm:pl-4">
<For each={utilityTabs()}>
@@ -894,7 +841,7 @@ export function AppLayout(props: AppLayoutProps) {
<Show when={!kioskMode()}>
<MobileNavBar
activeTab={getActiveTabMobile}
primaryTabs={mobilePrimaryTabs}
primaryTabs={primaryTabs}
utilityTabs={utilityTabs}
onPrimaryClick={handlePrimaryClick}
onUtilityClick={handleUtilityClick}

View File

@@ -36,24 +36,22 @@ describe('App architecture', () => {
expect(routePreloadSource).toContain('export const APP_SHELL_ROUTE_PRELOAD_PATHS = [');
expect(routePreloadSource).toContain('ROOT_PROXMOX_PATH,');
expect(routePreloadSource).toContain('PATROL_PATH,');
// Infrastructure never shipped as a stable top-level route, so it must not
// remain wired as a hidden compatibility surface. Workloads, Storage, and
// Recovery are explicit aggregate workspaces and must be owned by the shell
// instead of lingering as hidden routes.
// These aggregate pages never shipped as stable top-level routes, so they
// must not remain wired as hidden compatibility or shell workspace surfaces.
expect(routePreloadSource).not.toContain('ROOT_INFRASTRUCTURE_PATH');
expect(routePreloadSource).toContain("id: 'workloads',");
expect(routePreloadSource).toContain("id: 'storage',");
expect(routePreloadSource).toContain("id: 'recovery',");
expect(routePreloadSource).not.toContain("id: 'workloads',");
expect(routePreloadSource).not.toContain("id: 'storage',");
expect(routePreloadSource).not.toContain("id: 'recovery',");
expect(appSource).not.toContain('const InfrastructurePage = lazy(');
expect(appSource).not.toContain('const WorkloadsPage = lazy(');
expect(appSource).not.toContain('const StoragePage = lazy(');
expect(appSource).not.toContain('const RecoveryPage = lazy(');
expect(appSource).not.toContain("import('./features/infrastructure/InfrastructurePageSurface')");
expect(appSource).not.toContain('component={InfrastructurePage}');
expect(appSource).not.toContain('INFRASTRUCTURE_PATH');
expect(appSource).toContain("import('./components/Workloads/WorkloadsSurface')");
expect(appSource).toContain("import('./components/Storage/Storage')");
expect(appSource).toContain("import('./components/Recovery/Recovery')");
expect(appSource).toContain('<Route path={WORKLOADS_PATH} component={WorkloadsPage} />');
expect(appSource).toContain('<Route path={STORAGE_PATH} component={StoragePage} />');
expect(appSource).toContain('<Route path={RECOVERY_PATH} component={RecoveryPage} />');
expect(appSource).not.toContain('<Route path={WORKLOADS_PATH}');
expect(appSource).not.toContain('<Route path={STORAGE_PATH}');
expect(appSource).not.toContain('<Route path={RECOVERY_PATH}');
expect(appSource).toContain(
'<Route path="/ceph" component={() => <Navigate href="/proxmox/ceph" />} />',
);
@@ -98,10 +96,8 @@ describe('App architecture', () => {
expect(appLayoutSource).toContain(
"tooltip: 'Standalone Pulse Agent machines, OS telemetry, storage, and command eligibility'",
);
// Governed shell nav: Infrastructure is not a standalone tab; the
// aggregate Workloads / Storage / Recovery destinations are first-class
// workspace tabs, and Docker / Podman is presented as the Containers
// runtime lens.
// Governed shell nav: Infrastructure, Workloads, Storage, and Recovery are
// not standalone shell tabs; platform/runtime pages own those workflows.
expect(appSource).toContain('getDefaultWorkspaceRoute');
expect(appSource).toContain('infrastructureNavigationResolved');
expect(appSource).toContain('buildPrimaryInfrastructureNavigationVisibility');
@@ -110,10 +106,10 @@ describe('App architecture', () => {
expect(appLayoutSource).toContain("label: 'Containers'");
expect(appLayoutSource).toContain("'Docker / Podman runtime lens");
expect(appLayoutSource).not.toContain("id: 'infrastructure',");
expect(appLayoutSource).toContain("id: 'workloads',");
expect(appLayoutSource).toContain("id: 'storage',");
expect(appLayoutSource).toContain("id: 'recovery',");
expect(appLayoutSource).toContain("aria-label=\"Workspaces\"");
expect(appLayoutSource).not.toContain("id: 'workloads',");
expect(appLayoutSource).not.toContain("id: 'storage',");
expect(appLayoutSource).not.toContain("id: 'recovery',");
expect(appLayoutSource).not.toContain("aria-label=\"Workspaces\"");
expect(appLayoutSource).not.toContain('buildStorageRecoveryTabSpecs(');
expect(appSource).not.toContain('DashboardPage');
expect(headerAuditSource).not.toContain("['src/pages/Dashboard.tsx', 'PageHeader']");
@@ -357,9 +353,9 @@ describe('App architecture', () => {
expect(routePreloadSource).not.toContain("import('@/pages/Recovery')");
expect(routePreloadSource).not.toContain("import('@/pages/Storage')");
expect(routePreloadSource).not.toContain("import('@/pages/Ceph')");
expect(routePreloadSource).toContain("import('@/components/Workloads/WorkloadsSurface')");
expect(routePreloadSource).toContain("import('@/components/Storage/Storage')");
expect(routePreloadSource).toContain("import('@/components/Recovery/Recovery')");
expect(routePreloadSource).not.toContain("import('@/components/Workloads/WorkloadsSurface')");
expect(routePreloadSource).not.toContain("import('@/components/Storage/Storage')");
expect(routePreloadSource).not.toContain("import('@/components/Recovery/Recovery')");
expect(routePreloadSource).not.toContain("import('@/pages/RecoveryRoute')");
expect(appRuntimeContextSource).toContain(
"import { createContext, useContext } from 'solid-js';",

View File

@@ -25,8 +25,6 @@ const UNIFIED_NAV_SHORTCUTS: ShortcutGroup = {
{ keys: 'g then k', description: 'Go to Kubernetes' },
{ keys: 'g then n', description: 'Go to TrueNAS' },
{ keys: 'g then v', description: 'Go to vSphere' },
{ keys: 'g then w', description: 'Go to Workloads' },
{ keys: 'g then s', description: 'Go to Storage' },
{ keys: 'g then a', description: 'Go to Alerts' },
{ keys: 'g then r', description: 'Go to Patrol' },
{ keys: 'g then t', description: 'Go to Settings' },

View File

@@ -312,12 +312,12 @@ describe('shared primitive guardrails', () => {
expect(commandPaletteStateSource).toContain('createSignal');
expect(commandPaletteStateSource).toContain('buildProxmoxPath');
expect(commandPaletteStateSource).toContain('export function useCommandPaletteState');
// Infrastructure was retired when shell navigation moved to explicit
// platform and aggregate workspace destinations.
// Infrastructure and aggregate workspace URLs are not command-palette
// destinations; platform/runtime pages own those workflows.
expect(commandPaletteStateSource).not.toContain('buildInfrastructurePath');
expect(commandPaletteStateSource).toContain('buildWorkloadsPath');
expect(commandPaletteStateSource).toContain('buildStoragePath');
expect(commandPaletteStateSource).toContain('buildRecoveryPath');
expect(commandPaletteStateSource).not.toContain('buildWorkloadsPath');
expect(commandPaletteStateSource).not.toContain('buildStoragePath');
expect(commandPaletteStateSource).not.toContain('buildRecoveryPath');
expect(commandPaletteModelSource).toContain('buildCommandPaletteCommands');
expect(commandPaletteModelSource).toContain('normalizeCommandPaletteQuery');

View File

@@ -61,12 +61,12 @@ describe('CommandPaletteModal', () => {
expect(commandPaletteStateSource).toContain('buildProxmoxPath');
expect(commandPaletteStateSource).toContain('export function useCommandPaletteState');
// Infrastructure was retired when route ownership moved to explicit
// platform and aggregate workspace destinations.
// Infrastructure and aggregate workspaces are not command-palette routes;
// platform/runtime pages own those workflows.
expect(commandPaletteStateSource).not.toContain('buildInfrastructurePath');
expect(commandPaletteStateSource).toContain('buildWorkloadsPath');
expect(commandPaletteStateSource).toContain('buildStoragePath');
expect(commandPaletteStateSource).toContain('buildRecoveryPath');
expect(commandPaletteStateSource).not.toContain('buildWorkloadsPath');
expect(commandPaletteStateSource).not.toContain('buildStoragePath');
expect(commandPaletteStateSource).not.toContain('buildRecoveryPath');
expect(commandPaletteModelSource).toContain('buildCommandPaletteCommands');
expect(commandPaletteModelSource).toContain('normalizeCommandPaletteQuery');
@@ -80,9 +80,9 @@ describe('CommandPaletteModal', () => {
expect(commandPaletteModelSource).toContain("id: 'nav-vmware'");
expect(commandPaletteModelSource).toContain("id: 'nav-vmware-networks'");
expect(commandPaletteModelSource).not.toContain("id: 'nav-infrastructure'");
expect(commandPaletteModelSource).toContain("id: 'nav-workloads'");
expect(commandPaletteModelSource).toContain("id: 'nav-storage'");
expect(commandPaletteModelSource).toContain("id: 'nav-recovery'");
expect(commandPaletteModelSource).not.toContain("id: 'nav-workloads'");
expect(commandPaletteModelSource).not.toContain("id: 'nav-storage'");
expect(commandPaletteModelSource).not.toContain("id: 'nav-recovery'");
});
it('renders platform entries, runtime lens commands, and vSphere network inventory', () => {
@@ -99,12 +99,12 @@ describe('CommandPaletteModal', () => {
expect(screen.getByText('Go to Containers')).toBeInTheDocument();
expect(screen.getByText('Go to Kubernetes Workloads')).toBeInTheDocument();
expect(screen.getByText('/kubernetes/workloads')).toBeInTheDocument();
expect(screen.getByText('Go to Workloads')).toBeInTheDocument();
expect(screen.getByText('/workloads')).toBeInTheDocument();
expect(screen.getByText('Go to Storage')).toBeInTheDocument();
expect(screen.getByText('/storage')).toBeInTheDocument();
expect(screen.getByText('Go to Recovery')).toBeInTheDocument();
expect(screen.getByText('/recovery')).toBeInTheDocument();
expect(screen.queryByText('Go to Workloads')).not.toBeInTheDocument();
expect(screen.queryByText('/workloads')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Storage')).not.toBeInTheDocument();
expect(screen.queryByText('/storage')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Recovery')).not.toBeInTheDocument();
expect(screen.queryByText('/recovery')).not.toBeInTheDocument();
expect(screen.getByText('Go to vSphere')).toBeInTheDocument();
expect(screen.getByText('Go to vSphere Networks')).toBeInTheDocument();
expect(screen.getByText('/vmware/networks')).toBeInTheDocument();
@@ -147,22 +147,6 @@ describe('CommandPaletteModal', () => {
expect(onClose).toHaveBeenCalledTimes(1);
});
it('navigates to aggregate workspace routes', async () => {
const onClose = vi.fn();
render(() => (
<CommandPaletteModal
isOpen={true}
onClose={onClose}
infrastructureVisibility={infrastructureVisibility}
/>
));
await fireEvent.click(screen.getByText('Go to Storage'));
expect(navigateMock).toHaveBeenCalledWith('/storage');
expect(onClose).toHaveBeenCalledTimes(1);
});
it('uses the shared search input and keeps Enter selection behavior', async () => {
const onClose = vi.fn();
render(() => (
@@ -195,9 +179,9 @@ describe('CommandPaletteModal', () => {
));
expect(screen.getByText('Go to Proxmox')).toBeInTheDocument();
expect(screen.getByText('Go to Workloads')).toBeInTheDocument();
expect(screen.getByText('Go to Storage')).toBeInTheDocument();
expect(screen.getByText('Go to Recovery')).toBeInTheDocument();
expect(screen.queryByText('Go to Workloads')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Storage')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Recovery')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Agents')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Containers')).not.toBeInTheDocument();
expect(screen.queryByText('Go to Kubernetes')).not.toBeInTheDocument();

View File

@@ -14,9 +14,6 @@ window.requestAnimationFrame = ((callback: FrameRequestCallback) => {
const AgentsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>AG</span>;
const ProxmoxIcon: Component<{ class?: string }> = (props) => <span class={props.class}>PX</span>;
const WorkloadsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>WO</span>;
const StorageIcon: Component<{ class?: string }> = (props) => <span class={props.class}>ST</span>;
const RecoveryIcon: Component<{ class?: string }> = (props) => <span class={props.class}>RC</span>;
const AlertsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>AL</span>;
const SettingsIcon: Component<{ class?: string }> = (props) => <span class={props.class}>SE</span>;
const PatrolIcon: Component<{ class?: string }> = (props) => (
@@ -49,9 +46,9 @@ describe('MobileNavBar', () => {
expect(mobileNavBarModelSource).toContain("'kubernetes'");
expect(mobileNavBarModelSource).toContain("'truenas'");
expect(mobileNavBarModelSource).toContain("'vmware'");
expect(mobileNavBarModelSource).toContain("'workloads'");
expect(mobileNavBarModelSource).toContain("'storage'");
expect(mobileNavBarModelSource).toContain("'recovery'");
expect(mobileNavBarModelSource).not.toContain("'workloads'");
expect(mobileNavBarModelSource).not.toContain("'storage'");
expect(mobileNavBarModelSource).not.toContain("'recovery'");
expect(mobileNavBarModelSource).not.toContain("'infrastructure'");
});
@@ -84,20 +81,20 @@ describe('MobileNavBar', () => {
expect(within(navList).queryByRole('button', { name: 'Pulse Patrol Patrol' })).toBeNull();
});
it('allows inactive workspace tabs to render without an active mobile tab', () => {
it('allows inactive platform tabs to render without an active mobile tab', () => {
const { container } = render(() => (
<MobileNavBar
activeTab={() => null}
primaryTabs={() => [
{
id: 'workloads',
label: 'Workloads',
route: '/workloads',
settingsRoute: '/settings',
tooltip: 'Workloads',
id: 'agents',
label: 'Agents',
route: '/agents/overview',
settingsRoute: '/settings/infrastructure',
tooltip: 'Agents',
enabled: true,
live: true,
icon: WorkloadsIcon,
icon: AgentsIcon,
alwaysShow: true,
},
]}
@@ -132,7 +129,7 @@ describe('MobileNavBar', () => {
const { container } = render(() => (
<MobileNavBar
activeTab={() => 'workloads'}
activeTab={() => 'proxmox'}
primaryTabs={() => [
{
id: 'agents',
@@ -156,39 +153,6 @@ describe('MobileNavBar', () => {
icon: ProxmoxIcon,
alwaysShow: true,
},
{
id: 'workloads',
label: 'Workloads',
route: '/workloads',
settingsRoute: '/settings',
tooltip: 'Workloads',
enabled: true,
live: true,
icon: WorkloadsIcon,
alwaysShow: true,
},
{
id: 'storage',
label: 'Storage',
route: '/storage',
settingsRoute: '/settings/storage',
tooltip: 'Storage',
enabled: true,
live: true,
icon: StorageIcon,
alwaysShow: true,
},
{
id: 'recovery',
label: 'Recovery',
route: '/recovery',
settingsRoute: '/settings/system-recovery',
tooltip: 'Recovery',
enabled: true,
live: true,
icon: RecoveryIcon,
alwaysShow: true,
},
]}
utilityTabs={() => [
{
@@ -227,18 +191,15 @@ describe('MobileNavBar', () => {
const buttons = container.querySelectorAll('button[data-tab-id]');
expect(buttons[0]).toHaveAttribute('data-tab-id', 'proxmox');
expect(buttons[1]).toHaveAttribute('data-tab-id', 'agents');
expect(buttons[2]).toHaveAttribute('data-tab-id', 'workloads');
expect(buttons[3]).toHaveAttribute('data-tab-id', 'storage');
expect(buttons[4]).toHaveAttribute('data-tab-id', 'recovery');
expect(buttons[5]).toHaveAttribute('data-tab-id', 'alerts');
expect(buttons[6]).toHaveAttribute('data-tab-id', 'settings');
expect(buttons[2]).toHaveAttribute('data-tab-id', 'alerts');
expect(buttons[3]).toHaveAttribute('data-tab-id', 'settings');
expect(screen.getByText('2')).toBeInTheDocument();
expect(screen.getByText('3')).toBeInTheDocument();
expect(screen.getByText('Pro')).toBeInTheDocument();
fireEvent.click(screen.getByTitle('Storage'));
expect(onPrimaryClick).toHaveBeenCalledWith(expect.objectContaining({ id: 'storage' }));
fireEvent.click(screen.getByTitle('Agents'));
expect(onPrimaryClick).toHaveBeenCalledWith(expect.objectContaining({ id: 'agents' }));
fireEvent.click(screen.getByTitle('Alerts'));
expect(onUtilityClick).toHaveBeenCalledWith(expect.objectContaining({ id: 'alerts' }));

View File

@@ -24,9 +24,6 @@ export type CommandPaletteCommandPaths = {
dockerPath: string;
kubernetesPath: string;
kubernetesWorkloadsPath: string;
workloadsPath: string;
storagePath: string;
recoveryPath: string;
trueNasPath: string;
vmwarePath: string;
vmwareNetworksPath: string;
@@ -123,32 +120,6 @@ export function buildCommandPaletteCommands(options: {
});
}
commands.push(
{
id: 'nav-workloads',
label: 'Go to Workloads',
description: options.paths.workloadsPath,
shortcut: 'g w',
keywords: ['workloads', 'vms', 'containers', 'pods', 'inventory'],
action: () => options.navigate(options.paths.workloadsPath),
},
{
id: 'nav-storage',
label: 'Go to Storage',
description: options.paths.storagePath,
shortcut: 'g s',
keywords: ['storage', 'pools', 'disks', 'datastores', 'capacity'],
action: () => options.navigate(options.paths.storagePath),
},
{
id: 'nav-recovery',
label: 'Go to Recovery',
description: options.paths.recoveryPath,
keywords: ['recovery', 'backups', 'snapshots', 'replication', 'protection'],
action: () => options.navigate(options.paths.recoveryPath),
},
);
commands.push(
{
id: 'nav-alerts',

View File

@@ -41,9 +41,6 @@ const MOBILE_NAV_PRIMARY_PRIORITY = [
'truenas',
'vmware',
'agents',
'workloads',
'storage',
'recovery',
] as const;
const MOBILE_NAV_UTILITY_PRIORITY = ['alerts', 'ai', 'settings'] as const;

View File

@@ -5,11 +5,8 @@ import {
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
buildRecoveryPath,
buildStoragePath,
buildTrueNASPath,
buildVmwarePath,
buildWorkloadsPath,
} from '@/routing/resourceLinks';
import {
buildCommandPaletteCommands,
@@ -33,9 +30,6 @@ export function useCommandPaletteState(props: CommandPaletteModalProps) {
dockerPath: buildDockerPath(),
kubernetesPath: buildKubernetesPath(),
kubernetesWorkloadsPath: buildKubernetesPath('workloads'),
workloadsPath: buildWorkloadsPath(),
storagePath: buildStoragePath(),
recoveryPath: buildRecoveryPath(),
trueNasPath: buildTrueNASPath(),
vmwarePath: buildVmwarePath(),
vmwareNetworksPath: buildVmwarePath('networks'),

View File

@@ -5,10 +5,8 @@ import {
buildDockerPath,
buildKubernetesPath,
buildProxmoxPath,
buildStoragePath,
buildTrueNASPath,
buildVmwarePath,
buildWorkloadsPath,
} from '@/routing/resourceLinks';
import {
createEmptyInfrastructureNavigationVisibility,
@@ -100,8 +98,6 @@ export function useKeyboardShortcuts(options: KeyboardShortcutsOptions = {}) {
);
return {
...infrastructureRoutes,
w: buildWorkloadsPath(),
s: buildStoragePath(),
a: '/alerts',
r: '/patrol',
t: '/settings',

View File

@@ -9,13 +9,13 @@ describe('navigation routing helpers', () => {
expect(getActiveTabForPath('/agents/overview')).toBe('agents');
expect(getActiveTabForPath('/proxmox')).toBe('proxmox');
expect(getActiveTabForPath('/proxmox/storage')).toBe('proxmox');
// Infrastructure and Ceph are not standalone tabs. The aggregate
// Workloads, Storage, and Recovery workspaces remain first-class tabs.
// Infrastructure, Ceph, and aggregate workspace URLs are not standalone
// tabs. Platform/runtime pages own those workflows.
expect(getActiveTabForPath('/infrastructure')).toBeNull();
expect(getActiveTabForPath('/workloads?type=pod')).toBe('workloads');
expect(getActiveTabForPath('/storage')).toBe('storage');
expect(getActiveTabForPath('/workloads?type=pod')).toBeNull();
expect(getActiveTabForPath('/storage')).toBeNull();
expect(getActiveTabForPath('/ceph')).toBeNull();
expect(getActiveTabForPath('/recovery')).toBe('recovery');
expect(getActiveTabForPath('/recovery')).toBeNull();
expect(getActiveTabForPath('/alerts/open')).toBe('alerts');
expect(getActiveTabForPath('/patrol')).toBe('ai');
expect(getActiveTabForPath('/ai')).toBe('ai');

View File

@@ -4,11 +4,8 @@ import {
KUBERNETES_PATH,
PATROL_PATH,
PROXMOX_PATH,
RECOVERY_PATH,
STORAGE_PATH,
TRUENAS_PATH,
VMWARE_PATH,
WORKLOADS_PATH,
} from './resourceLinks';
export type AppTabId =
@@ -18,9 +15,6 @@ export type AppTabId =
| 'kubernetes'
| 'truenas'
| 'vmware'
| 'workloads'
| 'storage'
| 'recovery'
| 'alerts'
| 'ai'
| 'settings';
@@ -34,9 +28,6 @@ export function getActiveTabForPath(path: string): ActiveAppTabId {
if (path.startsWith(TRUENAS_PATH)) return 'truenas';
if (path.startsWith(VMWARE_PATH)) return 'vmware';
if (path.startsWith(AGENTS_PATH)) return 'agents';
if (path.startsWith(WORKLOADS_PATH)) return 'workloads';
if (path.startsWith(STORAGE_PATH)) return 'storage';
if (path.startsWith(RECOVERY_PATH)) return 'recovery';
if (path.startsWith('/alerts')) return 'alerts';
if (path.startsWith(PATROL_PATH) || path.startsWith('/ai')) return 'ai';
if (path.startsWith('/settings')) return 'settings';

View File

@@ -6,11 +6,8 @@ import {
KUBERNETES_PATH,
PATROL_PATH,
PROXMOX_PATH,
RECOVERY_PATH,
STORAGE_PATH,
TRUENAS_PATH,
VMWARE_PATH,
WORKLOADS_PATH,
} from '@/routing/resourceLinks';
type RoutePreloader = {
@@ -73,21 +70,6 @@ const ROUTE_PRELOADERS: readonly RoutePreloader[] = [
matches: (route) => route === AGENTS_PATH || route.startsWith(`${AGENTS_PATH}/`),
preload: () => import('@/pages/Agents').then(() => undefined),
},
{
id: 'workloads',
matches: (route) => route === WORKLOADS_PATH || route.startsWith(`${WORKLOADS_PATH}/`),
preload: () => import('@/components/Workloads/WorkloadsSurface').then(() => undefined),
},
{
id: 'storage',
matches: (route) => route === STORAGE_PATH || route.startsWith(`${STORAGE_PATH}/`),
preload: () => import('@/components/Storage/Storage').then(() => undefined),
},
{
id: 'recovery',
matches: (route) => route === RECOVERY_PATH || route.startsWith(`${RECOVERY_PATH}/`),
preload: () => import('@/components/Recovery/Recovery').then(() => undefined),
},
{
id: 'alerts',
matches: (route) => route === ALERTS_PATH || route.startsWith(`${ALERTS_PATH}/`),