Repository navigation
Description
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
WorkspaceToolbarandArrangementSelectorfromSourceToolbar; introduceSourcePaneHeaderusing existing callbacks. - Present Source only, Source + Model, Model only, retaining internal
code | split | diagramstate. 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
unappliedis 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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity