feat(webui): promote debug to a standalone page, Apple-style redesign
Move the debug console out of the Settings 调试 subtab into a dedicated top-level /debug page (sidebar nav + route + AppPath), and redesign it in an Apple-HIG flavour: translucent sticky header with title block + connection pill, soft layered cards (rounded-2xl, hairline borders, blurred backdrop), an iOS-style segmented control with a sliding active pill (params form/JSON, stream all/event/action filter), refined timeline rows + empty state, calm type hierarchy with tabular-nums. Logic (tester + live SSE) carried over verbatim. Remove the old settings/debug-panel + the Settings 'debug' subtab.
This commit is contained in:
5 files changed
+372
-261
No files matched your search
@@ -64,8 +64,17 @@ const logsRoute = createRoute({
|
||||
),
|
||||
});
|
||||
|
||||
const debugRoute = createRoute({
|
||||
path: '/debug',
|
||||
getParentRoute: () => appLayoutRoute,
|
||||
component: lazyRouteComponent(
|
||||
() => import('@/components/pages/debug-page'),
|
||||
'DebugPage',
|
||||
),
|
||||
});
|
||||
|
||||
/** Settings sub-tabs — also the contract for the `?tab=` deep link. */
|
||||
export const SETTINGS_TABS = ['appearance', 'data', 'advanced', 'account', 'system', 'debug', 'notifications', 'about'] as const;
|
||||
export const SETTINGS_TABS = ['appearance', 'data', 'advanced', 'account', 'system', 'notifications', 'about'] as const;
|
||||
export type SettingsTab = (typeof SETTINGS_TABS)[number];
|
||||
|
||||
export const settingsRoute = createRoute({
|
||||
@@ -86,7 +95,7 @@ export const settingsRoute = createRoute({
|
||||
});
|
||||
|
||||
const routeTree = rootRoute.addChildren([
|
||||
appLayoutRoute.addChildren([overviewRoute, processesRoute, configRoute, logsRoute, settingsRoute]),
|
||||
appLayoutRoute.addChildren([overviewRoute, processesRoute, configRoute, logsRoute, debugRoute, settingsRoute]),
|
||||
]);
|
||||
|
||||
export const appRouter = createRouter({
|
||||
@@ -103,4 +112,4 @@ declare module '@tanstack/react-router' {
|
||||
}
|
||||
|
||||
/** Paths registered on the layout — single source of truth for nav metadata. */
|
||||
export type AppPath = '/' | '/processes' | '/config' | '/logs' | '/settings';
|
||||
export type AppPath = '/' | '/processes' | '/config' | '/logs' | '/debug' | '/settings';
|
||||
Reference in new issue
Block a user