Skip to content

Commit 243a1e9

Browse files
committed
fix(frontend): render DebugHelper in federated root (Cmd+Shift+D parity)
The embedded MF-v2 Console renders federatedRootRoute, not __root.tsx's RootLayout, so it was missing <DebugHelper /> — the component that registers the Cmd+Shift+D debug dialog (dev-only). Render it in the federated root too, gated on NODE_ENV=development, mirroring __root.tsx.
1 parent 8aebc0c commit 243a1e9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

frontend/src/federation/federated-routes.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type { QueryClient } from '@tanstack/react-query';
1414
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router';
1515
import { NuqsAdapter } from 'nuqs/adapters/tanstack-router';
1616

17+
import { DebugHelper } from '../components/debug-helper/debug-dialog';
1718
import AppFooter from '../components/layout/footer';
1819
import AppPageHeader from '../components/layout/header';
1920
import { LicenseNotification } from '../components/license/license-notification';
@@ -74,6 +75,8 @@ function FederatedRootLayout() {
7475
<FederatedAppContent />
7576
</RequireAuth>
7677
</ErrorBoundary>
78+
{/* Cmd+Shift+D debug dialog — mirrors __root.tsx; dev-only. */}
79+
{process.env.NODE_ENV === 'development' && <DebugHelper />}
7780
</NuqsAdapter>
7881
</>
7982
);

0 commit comments

Comments
 (0)