Skip to content

Workbench redesign — Stage 0: Deactivate (reduce to shell frame) #372

Closed

Description

@nockawa

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 — DockHost components 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 StartHere placeholder.
  • Reduce default layouts to the shell zones only (edge groups + neutral center).
  • Bump the dockview layout-store key version (v4 → v5); fromJSON → rebuildDefault recovery + filtered components map handle stale layouts.

Acceptance criteria (each must be green)

  • AC0.1 — Builds & launches. Client tsc + eslint + vite build green; 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) + Playwright stage0-shell.spec.ts assert no zone-D view/handoff in menu, palette, or workspace.
  • AC0.3 — Zero broken affordances. Playwright conformance-affordances.spec.ts (suite-E slice) + adapted resource-tree-polish assert zero disabled Open in/Reveal in/Go to controls.
  • AC0.4 — No placeholder. stage0-shell.spec.ts asserts no StartHere after opening a file.
  • AC0.5 — Deactivated views still compile. tsc/vite build green with the full component map still importing every gated view.

Risks / notes

  • Stale saved dockview layouts referencing gated components hit the fromJSON recovery; layout-store key bumped to discard them. ✓
  • Gate is reversible per view — Stages 2–4 re-enable redesigned views by flipping a viewRegistry flag. ✓

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).

Activity

  1. moved this to Backlog in Typhon devon May 23, 2026
  2. self-assigned this
    on May 23, 2026
  3. moved this from Backlog to In Progress in Typhon devon May 23, 2026
  4. nockawa commented on May 23, 2026

    @nockawa
    CollaboratorAuthor

    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; remove StartHere; reduce buildDefaultLayout to shell zones only (neutral center); gate the profiler/top-spans safety nets.
    • MenuBar.tsx — guard zone-D View items with isViewActive; remove Edit→Find… and Help→About stubs.
    • commands/baseCommands.ts + profilerCommands.ts — viewId tag + filter; remove no-op about; DEBUG-gate debug-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 key v4 → v5.

    Tests (per AC)

    • Vitest: viewRegistry, commandRegistry, DetailPanel.affordances, ResourceTreeContextMenu.affordances, MenuBar (View menu).
    • Playwright: 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 #372 once all AC are green + code-review passes.

  5. moved this from In Progress to Done in Typhon devon May 23, 2026
  6. added a commit that references this issue on May 26, 2026
    763b475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions