From b890b7da74217aaa0ca07db2d3c93e3b9fc3a3d6 Mon Sep 17 00:00:00 2001 From: Simian Astronaut 7 Date: Tue, 10 Mar 2026 03:41:31 -0400 Subject: [PATCH] fix(web): add root redirect to dashboard and fix header z-index layering Add permanent redirect from / to /_app/ so the gateway root serves the dashboard. Fix z-index stacking in Layout so the header dropdown menus render above main content. Co-Authored-By: Claude Opus 4.6 --- src/gateway/mod.rs | 4 ++++ web/src/components/layout/Layout.tsx | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index 26506e6d1..72cb1bc86 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -689,6 +689,10 @@ pub async fn run_gateway(host: &str, port: u16, config: Config) -> Result<()> { .route("/ws/chat", get(ws::handle_ws_chat)) // ── Static assets (web dashboard) ── .route("/_app/{*path}", get(static_files::handle_static)) + // ── Root redirect to dashboard ── + .route("/", get(|| async { + axum::response::Redirect::permanent("/_app/") + })) // ── Config PUT with larger body limit ── .merge(config_put_router) .with_state(state) diff --git a/web/src/components/layout/Layout.tsx b/web/src/components/layout/Layout.tsx index 531b1f4d1..c1e26f03c 100644 --- a/web/src/components/layout/Layout.tsx +++ b/web/src/components/layout/Layout.tsx @@ -47,9 +47,11 @@ export default function Layout() { sidebarCollapsed ? 'md:ml-[6.25rem]' : 'md:ml-[17.5rem]', ].join(' ')} > -
setSidebarOpen((open) => !open)} /> +
+
setSidebarOpen((open) => !open)} /> +
-
+