Repository navigation
Description
Execution plan: claude/design/Apps/Workbench/stages/stage-0-deactivate.md · Roadmap: claude/design/Apps/Workbench/07-roadmap.md
First stage of the Workbench product re-architecture (shell-first / deactivate / per-journey reintroduction).
Goal: Reduce the Workbench to its shell frame — every deep/workspace (zone-D) view gated off but still compilable, and zero dead controls. No new behavior; only removal/gating.
Exit gate: the app builds and launches; only the shell frame is reachable; no zone-D view is accessible by any path; no disabled/stub control exists.
Work
- Add a view-enablement gate (single registry/flag) so deactivation is one reversible switch per view. →
src/shell/viewRegistry.ts(isViewActive) - Gate off all zone-D views at every entry point —
DockHostcomponents map / default layouts, the View menu, the command-palette toggles, cross-view handoffs — keeping the view source compilable (gated, not deleted). - Remove the disabled stub affordances (Resource detail "Open in …"; Resource-tree/Schema/Data context-menu stubs).
- Remove the
StartHereplaceholder. - Reduce default layouts to the shell zones only (edge groups + neutral center).
- Bump the dockview layout-store key version (
v4 → v5);fromJSON→rebuildDefaultrecovery + filtered components map handle stale layouts.
Acceptance criteria (each must be green)
- AC0.1 — Builds & launches. Client
tsc+eslint+vite buildgreen; app launches in Debug (E2E drove the live app). Server has no Stage 0 changes. - AC0.2 — No zone-D view reachable. Vitest (
viewRegistry,commandRegistry) + Playwrightstage0-shell.spec.tsassert no zone-D view/handoff in menu, palette, or workspace. - AC0.3 — Zero broken affordances. Playwright
conformance-affordances.spec.ts(suite-E slice) + adaptedresource-tree-polishassert zero disabledOpen in/Reveal in/Go tocontrols. - AC0.4 — No placeholder.
stage0-shell.spec.tsasserts noStartHereafter opening a file. - AC0.5 — Deactivated views still compile.
tsc/vite buildgreen with the full component map still importing every gated view.
Risks / notes
- Stale saved dockview layouts referencing gated components hit the
fromJSONrecovery; layout-store key bumped to discard them. ✓ - Gate is reversible per view — Stages 2–4 re-enable redesigned views by flipping a
viewRegistryflag. ✓
Out of scope
Any new shell behavior (bus, palette routing, context bar, focus model, navigators, inspector) → Stage 1.
Implementation complete on feature/372-stage-0-deactivate (client-only; 9 source files + tests). Pending review + commit (user owns commits). 14 deactivated-view E2E specs centrally ignored via playwright.config.ts testIgnore (return with their views in Stages 2–4). One pre-existing, unrelated E2E failure noted: resource-tree-polish Ctrl+/ status-bar restore (StatusBar/keyboard untouched by Stage 0).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
nockawa commentedon May 23, 2026
Accepted implementation plan (Stage 0)
Approach: a single view-enablement gate (
src/shell/viewRegistry.ts—isViewActive(viewId)) consumed as an inclusion/render guard at every entry point, so the 19 zone-D deep views are deactivated without deleting anything (reversible per view by flipping a flag in Stages 2–4). Client-only; no engine/C# change.Shell frame kept reachable (IA §9.2–9.4): Menu/Nav bar, Resource Tree navigator, Detail/Inspector, Logs drawer, Status bar, Command Palette, Connect dialog, Options/Settings, PaletteDebug (dev-only).
Zone-D deactivated: SchemaBrowser, ArchetypeBrowser, SchemaLayout, SchemaArchetypes, SchemaIndexes, SchemaRelationships, DataBrowserEntities, DbMap, Profiler, TopSpans, CallTree, SourcePreview, SystemDag, CriticalPath, DataFlow, AccessMatrix, QueryCatalog, QueryPlanTree, ExecutionInspector.
Changes
viewRegistry.ts(new) — the gate.DockHost.tsx— filter components map to active; removeStartHere; reducebuildDefaultLayoutto shell zones only (neutral center); gate the profiler/top-spans safety nets.MenuBar.tsx— guard zone-D View items withisViewActive; remove Edit→Find… and Help→About stubs.commands/baseCommands.ts+profilerCommands.ts—viewIdtag + filter; remove no-opabout; DEBUG-gatedebug-color-palettes.DetailPanel.tsx— remove the 3 "Open in …" disabled stubs.ResourceTreeContextMenu.tsx— remove the 3 outright stubs; gate the 2 handoffs to gated views.SchemaBrowserContextMenu.tsx/EntityListContextMenu.tsx— remove their "Open in Query Console" / "Reveal in Resource Tree" stubs.useDockLayoutStore.ts— bump persist keyv4 → v5.Tests (per AC)
viewRegistry,commandRegistry,DetailPanel.affordances,ResourceTreeContextMenu.affordances,MenuBar(View menu).stage0-shell.spec.ts(no StartHere / no zone-D in menu·palette·workspace) +conformance-affordances.spec.ts(suite-E slice: zero disabled/Open in|Reveal in|Go to/).Acceptance criteria
AC0.1 builds & launches · AC0.2 no zone-D reachable · AC0.3 zero broken affordances · AC0.4 no placeholder · AC0.5 deactivated views still compile.
Full plan tracked locally; closing via
/complete-task #372once all AC are green + code-review passes.Workbench redesign — Stages 1–4 + perf hardening + J2/J3 E2E (#379)