Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Redirect authenticated login route to dashboard

rcourtman8ec365b5ffb4
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index e028cefaee..a8c6f5b9a4 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -228,6 +228,11 @@ organization chrome: `frontend-modern/src/App.tsx` and
`frontend-modern/src/AppLayout.tsx` may hide org switchers or demo-only org
labels, but they must not couple assistant visibility, session reset, or
drawer-open behavior to that organization presentation state.
+Authenticated `/login` recovery belongs to that same route shell boundary:
+once login succeeds, `frontend-modern/src/App.tsx` must resolve `/login`
+through the canonical post-auth landing route instead of leaving the
+assistant-capable authenticated shell stranded on a route that only exists for
+logged-out presentation.
`docs/release-control/v6/internal/subsystems/registry.json` must therefore keep
`frontend-modern/src/stores/aiRuntimeState.ts` and
`frontend-modern/src/components/AI/Chat/` on the explicit AI runtime proof
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index e2a1b03471..8c0e27f36e 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -898,6 +898,10 @@ shell first, so existing operators land on the overview route and first-time
operators hit the governed dashboard empty state that forwards them into
Infrastructure Install, instead of carrying a root-only redirect to the
infrastructure route that bypasses the shared landing contract.
+That same landing contract also owns authenticated `/login`: once the browser
+has a valid session, `frontend-modern/src/App.tsx` must redirect `/login` to
+the governed dashboard landing route instead of leaving the authenticated app
+shell on a not-found compatibility path.
The Pro license settings surface now follows the same rule as well. Changes to
`frontend-modern/src/components/Settings/ProLicensePanel.tsx` must carry this
contract and the dedicated Pro-license proof file instead of remaining an
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 2f0afa5141..43e58afce4 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -373,6 +373,10 @@ connections` visible as the API-backed alternative for Proxmox and
the governed dashboard empty state route first-time operators into
Infrastructure Install, instead of preserving a separate root-only jump to
`/infrastructure` that drifts from the rest of the onboarding contract.
+ The same entry-shell contract must also canonicalize authenticated
+ `/login`: once auth succeeds, the shared shell must resolve that route back
+ onto the governed dashboard landing path instead of rendering a page-local
+ not-found state inside the authenticated chrome.
24. Keep relay settings shell copy on the shared presentation owner in
`frontend-modern/src/utils/relayPresentation.ts`. The route metadata in
`settingsHeaderMeta.ts` and the leading `SettingsPanel` in
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index 3d06e671a0..d2717fb272 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -211,6 +211,11 @@ regression protection.
default org scope for route-safe API calls, but it must skip browser org
list hydration and must not turn dashboard landing on `frontend-modern/src/App.tsx`
into another summary-fetch or org-bootstrap hot path.
+ Authenticated `/login` recovery belongs to that same app-shell boundary:
+ `frontend-modern/src/App.tsx` must redirect that route back to the
+ canonical dashboard landing path instead of leaving the freshly
+ authenticated shell on a not-found page that immediately pays another cold
+ bootstrap.
The same protected hot path now also owns proof harness steadiness.
Store-backed chart SLO and benchmark helpers in `pkg/metrics/store_slo_test.go`,
`internal/api/slo_bench_test.go`, and `internal/monitoring/monitor_metrics_slo_test.go`
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 473bc3ebf0..7eca9f7cc7 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -240,6 +240,11 @@ querying, and the operator-facing storage health presentation layer.
commercial compatibility handoffs like `/pricing` must stay separate thin
route exits rather than borrowing storage/recovery preview framing,
first-session copy, or page-state assumptions.
+ Authenticated `/login` must follow that same shared app-shell contract:
+ once login succeeds, `frontend-modern/src/App.tsx` must hand the browser
+ back to the governed dashboard landing route instead of leaving
+ storage/recovery-adjacent authenticated shells on a page-local not-found
+ route.
Authenticated-shell demo organization suppression on `frontend-modern/src/App.tsx`
may hide top-bar org chrome for public demo posture, but it must not leak
into storage/recovery preview route ownership, first-session recovery copy,
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index dcc671224e..13f8b442ba 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -419,6 +419,7 @@ function App() {
<Route path="/cloud/signup" component={HostedSignupPage} />
<Route path="/preview/setup-complete" component={SetupCompletionPreviewPage} />
<Route path={ROOT_DASHBOARD_PATH} component={DashboardPage} />
+ <Route path="/login" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />
<Route path="/" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />
<Route path={ROOT_WORKLOADS_PATH} component={WorkloadsView} />
<Route path={STORAGE_PATH} component={StoragePage} />
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 28720b11c0..b51231dbb9 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -22,6 +22,7 @@ describe('App architecture', () => {
expect(appSource).toContain('clearPendingAppShellRestoreTop');
expect(appSource).toContain('const ROOT_DASHBOARD_PATH = DASHBOARD_PATH;');
expect(appSource).toContain('<Route path={ROOT_DASHBOARD_PATH} component={DashboardPage} />');
+ expect(appSource).toContain('<Route path="/login" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />');
expect(appSource).toContain('<Route path="/" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />');
expect(appSource).toContain(
"const PricingHandoffPage = lazy(() => import('./pages/PricingHandoff'));",