From 75d20310ed85f53ec8a850ad0ffd42f500ecd5d4 Mon Sep 17 00:00:00 2001 From: marcelo Date: Thu, 28 May 2026 09:55:54 -0700 Subject: [PATCH] refactor(playground): rename remaining AppBuilder internals to Playground MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit App Builder (tab) and chat-v2 (tab) are both removed; Playground is the only consumer of the orchestration hook, context, skeleton, and onboarding state that still carried "AppBuilder" names. Pure mechanical rename — no behavior change. - useAppBuilderState -> usePlaygroundState (+ co-exports, types, file rename) - AppBuilderStateProvider / useAppBuilderStateContext -> Playground-prefixed - APP_BUILDER_FIRST_RUN_PROMPT -> PLAYGROUND_FIRST_RUN_PROMPT - appBuilderOnboarding state in App.tsx -> playgroundOnboarding - AppBuilderSkeleton -> PlaygroundSkeleton (moved to components/playground/) - PostConnectGuide moved to components/ui-playground/ (no identifier rename) - "app-builder-send-nux-hint" testid -> "playground-send-nux-hint" - Drop the "app-builder" arm from surface literal unions in shared/inspector-command.ts (no in-tree caller sends it; CLI ships "playground") - Delete the now-empty components/app-builder/ directory PostHog event names (app_builder_tab_viewed etc.) preserved for analytics continuity; comments updated to explain the carry-over. Co-Authored-By: Claude Opus 4.7 (1M context) --- mcpjam-inspector/client/src/App.tsx | 12 +-- .../src/components/ActiveServerSelector.tsx | 3 +- .../playground/PlaygroundCenter.tsx | 16 ++-- .../playground/PlaygroundLeftRail.tsx | 4 +- .../PlaygroundSkeleton.tsx} | 4 +- .../components/playground/PlaygroundTab.tsx | 17 ++-- .../playground/panes/MultiServerToolsPane.tsx | 4 +- .../ui-playground/HandDrawnSendHint.tsx | 2 +- .../ui-playground/PlaygroundLeft.tsx | 4 +- .../ui-playground/PlaygroundMain.tsx | 2 +- .../PostConnectGuide.tsx | 0 .../__tests__/HandDrawnSendHint.test.tsx | 2 +- .../__tests__/PlaygroundMain.test.tsx | 6 +- .../__tests__/PostConnectGuide.test.tsx | 0 ...lect-connected-active-server-names.test.ts | 2 +- .../components/ui-playground/hooks/index.ts | 18 ++-- ...ilder-state.ts => use-playground-state.ts} | 96 ++++++++----------- mcpjam-inspector/shared/inspector-command.ts | 6 +- 18 files changed, 91 insertions(+), 107 deletions(-) rename mcpjam-inspector/client/src/components/{app-builder/AppBuilderSkeleton.tsx => playground/PlaygroundSkeleton.tsx} (50%) rename mcpjam-inspector/client/src/components/{app-builder => ui-playground}/PostConnectGuide.tsx (100%) rename mcpjam-inspector/client/src/components/{app-builder => ui-playground}/__tests__/PostConnectGuide.test.tsx (100%) rename mcpjam-inspector/client/src/components/ui-playground/hooks/{use-app-builder-state.ts => use-playground-state.ts} (89%) diff --git a/mcpjam-inspector/client/src/App.tsx b/mcpjam-inspector/client/src/App.tsx index ff8b08ca74..0be5a71c7f 100644 --- a/mcpjam-inspector/client/src/App.tsx +++ b/mcpjam-inspector/client/src/App.tsx @@ -944,7 +944,7 @@ export function PlaygroundRoute() { projectServers, remoteFirstRunOnboardingShown, selectedMCPConfig, - setAppBuilderOnboarding, + setPlaygroundOnboarding, setEvalChatHandoff, workOsUser, } = useAppRouteContext(); @@ -965,7 +965,7 @@ export function PlaygroundRoute() { onConnect={handleConnect} onSaveHostContext={handleUpdateHostContext} ensureServersReady={ensureServersReady} - onOnboardingChange={setAppBuilderOnboarding} + onOnboardingChange={setPlaygroundOnboarding} playgroundServerSelectorProps={playgroundServerSelectorProps} activeHost={activeHost} evalChatHandoff={evalChatHandoff} @@ -1084,7 +1084,7 @@ export default function App() { optimisticallyDeletedOrganizationIds, setOptimisticallyDeletedOrganizationIds, ] = useState([]); - const [appBuilderOnboarding, setAppBuilderOnboarding] = useState(false); + const [playgroundOnboarding, setPlaygroundOnboarding] = useState(false); const [callbackCompleted, setCallbackCompleted] = useState(false); const [callbackRecoveryExpired, setCallbackRecoveryExpired] = useState(false); const billingDeepLinkNavRef = useRef(false); @@ -2895,7 +2895,7 @@ export default function App() { saveServerConfigWithoutConnecting, selectedMCPConfig, selectedServerEntry, - setAppBuilderOnboarding, + setPlaygroundOnboarding, setActiveHostId, setEvalChatHandoff, setHostsTabSelectedHostId, @@ -2911,7 +2911,7 @@ export default function App() { const appContent = (