Skip to content

Separate workspace arrangement from Source pane controls #41

Closed

Description

@rororowyourboat

Design stage 1 of 4

Implement toolbar extraction from the agreed SysML View Editor — Product, Navigation, and Toolbar Design Decisions, v1.0 (2026-11-16), supplied as sysml-view-editor-workbench-product-design-decisions.md.

The workbench must distinguish navigate, represent, arrange and operate. Source transaction commands currently share a toolbar with the outer editor arrangement.

Scope

  • Extract WorkspaceToolbar and ArrangementSelector from SourceToolbar; introduce SourcePaneHeader using existing callbacks.
  • Present Source only, Source + Model, Model only, retaining internal code | split | diagram state. Use distinct arrangement icons: CodeXml, Columns2, Layers.
  • Keep arrangement/layout controls global. Put filename, source history/status, Apply source and Discard beside Source.
  • Compare the active file's draft and applied text for its badge; workspace-level unapplied is not a per-file dirty flag. Apply/Discard remain workspace operations with clear scope.
  • Keep Apply/Discard labeled and wrapping. Name accepted transaction history actions Undo source and Redo source, distinct from CodeMirror's local draft history.
  • Remove the old toolbar only after its replacement is integrated.

Acceptance

  • Arrangement changes preserve active file/view, representation, draft text, editor-local history and saved split ratio; hiding a pane keeps content mounted and inert.
  • No silent apply/discard, semantic revision, project dirtiness or undo entry from layout changes.
  • Another file's draft does not mark the active file dirty.
  • Source actions remain reachable by showing Source; selected arrangement and keyboard focus are independently visible and accessible.
  • Focused toolbar/source-editor/panel regressions and reviewed desktop/narrow light/dark captures pass.
  • Document actual checks and update relevant toolbar documentation.

Dependencies and boundaries

Build on #38 after it lands, or explicitly stack on that work. Preserve its 100% reading action, explicit inspection/source-navigation guards and camera preservation. Keep the panel library, engine interfaces, portable bundle and sysml-workbench-layout-v1 schema unchanged.

Related requirement: #32. No docking, independent editor tabs, search destination or representation framework in this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions