Skip to content

Commit d769e38

Browse files
SpicyPeteclaude
andcommitted
frontend: add dev debugger dialog
Adds a dev-only debugging dialog with connect-config fixtures and feature-flag overrides. Wired into the root layout (dev builds only) and app setup. Moved here from the UX-1275/template-gallery-basic branch to keep that PR smaller and more focused. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9c1488c commit d769e38

5 files changed

Lines changed: 1631 additions & 1 deletion

File tree

frontend/src/app.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import { useEffect } from 'react';
4848
import { getBasePath } from 'utils/env';
4949
import { patchedRedpandaTheme as redpandaTheme } from 'utils/redpanda-theme';
5050

51+
import { applyOverrides as applyDebugFeatureFlagOverrides } from './components/debug-helper/feature-flag-overrides';
5152
import { NotFoundPage } from './components/misc/not-found-page';
5253
import { addBearerTokenInterceptor, checkExpiredLicenseInterceptor, getGrpcBasePath, setup } from './config';
5354
import { routeTree } from './routeTree.gen';
@@ -106,6 +107,9 @@ const App = () => {
106107

107108
useEffect(() => {
108109
const setupTeardown = setup(EMPTY_SETUP_ARGS);
110+
// Apply local debug feature-flag overrides AFTER setup() (which clobbers
111+
// config.featureFlags). Dev-only mechanism — see debug-helper/feature-flag-overrides.ts.
112+
applyDebugFeatureFlagOverrides();
109113
const uiSettingsTeardown = installUISettingsSideEffects();
110114
return () => {
111115
uiSettingsTeardown();

0 commit comments

Comments
 (0)