Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ OpenMBEE View Editor brings source editing, named model views and reviewed graph

<p align="center"><em>Inspection rover: connected assemblies, declared component values and typed interfaces.</em></p>

Explorer has independent Files, Views and Model sections. Fold a section to make room without losing its state; the Explorer activity button at the left edge toggles the sidebar. New view and model expand/collapse actions remain separate from section toggles. Diagram selection reveals the Model owner chain without moving keyboard focus away from the diagram. Section expansion lasts for the current session and is not saved in project files. Model representation labels wrap to the pane width. High-contrast mode retains a selection marker separate from keyboard focus; reduced motion follows system preferences. See [verification](docs/verification.md) for targeted accessibility coverage and limits.

## Features

- **Edit highlighted SysML source.** CodeMirror provides line numbers, bracket matching/closing, indentation, find/replace and draft undo/redo. Apply or discard changes, undo/redo accepted source transactions, and keep the last valid model when a draft fails validation.
Expand Down
36 changes: 22 additions & 14 deletions docs/architecture/workbench-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ Tables/matrices are explicitly labeled Project-wide requirements. Their search,

Lucide icons use the shared shadcn Button sizes, theme roles and focus indicators. Compact history and mode actions use `ui/IconButton.tsx`: each has an explicit accessible name, a Tooltip and a decorative SVG. The root supplies one delayed Tooltip provider, and hints pass pointer events through to the underlying UI.

| Action | Icon |
| ------------------------------------------ | --------------------------------------------------------- |
| Source undo / redo | Undo2 / Redo2 |
| Source only / Source + Model / Model only | CodeXml / Columns2 / Layers |
| New project / Open / Download | FilePlus2 / FolderOpen / Download |
| Apply / discard draft | Check / X |
| Appearance | Palette |
| New part / connection | SquarePlus / Cable |
| Source reveal / reviewed rename / new view | CodeXml / Pencil / Eye |
| Diagram zoom / fit / lock | ZoomIn / ZoomOut / Scan / LockKeyhole variants |
| Panel visibility | PanelLeft, PanelRight and PanelBottom open/close variants |
| Panel options / reset layout | Ellipsis / RotateCcw |
| Action | Icon |
| ------------------------------------------ | -------------------------------------------------------------- |
| Source undo / redo | Undo2 / Redo2 |
| Source only / Source + Model / Model only | CodeXml / Columns2 / Layers |
| New project / Open / Download | FilePlus2 / FolderOpen / Download |
| Apply / discard draft | Check / X |
| Appearance | Palette |
| New part / connection | SquarePlus / Cable |
| Source reveal / reviewed rename / new view | CodeXml / Pencil / Eye |
| Diagram zoom / fit / lock | ZoomIn / ZoomOut / Scan / LockKeyhole variants |
| Panel visibility | Explorer Folder activity; contextual panel close/open variants |
| Panel options / reset layout | Ellipsis / RotateCcw |

Apply and Download retain visible labels; frequent compact actions retain precise names such as Undo source. CodeMirror draft undo/redo is distinct from accepted source transaction history. Standard editor/search shortcuts are documented in the README; Tab retains focus navigation. Existing kind labels remain visible alongside Explorer icons; those icons do not establish SysML notation support.

Expand All @@ -75,12 +75,20 @@ Apply and Download retain visible labels; frequent compact actions retain precis

Navigation follows the [WAI-ARIA tree pattern](https://www.w3.org/WAI/ARIA/apg/patterns/treeview/): arrows move through visible rows and fold/unfold branches, Home/End reach the visible extremes, typed prefixes find visible names, and Enter/Space select the focused declaration. Focus and selection are separate. One treeitem participates in Tab order; shared focus styling distinguishes it from the inspected row.

Diagram selection opens the selected declaration's owner chain without taking focus from the diagram. A UI request counter handles a second selection of the same symbol after its branch has been folded. These are reveal requests, not semantic revisions or identity reconciliation. Selecting a tree row retains the existing Inspector behavior; source-range reveal still requires diagram correspondence. Expansion is not portable project data or automatic work recovery.
ExplorerSection owns independent session-only Files/Views/Model disclosure state. Section bodies stay mounted while hidden/inert, preserving tree expansion and focus state. New view and tree-wide actions are separate header targets. ActivityRail exposes only the implemented Explorer destination and delegates visibility to the existing panel controller; it owns no layout preferences. It replaces the adjacent collapsed Explorer rail, retaining the Inspector reopen control. Existing sidebar visibility preferences and `sysml-workbench-layout-v1` remain unchanged.

Diagram selection opens the Model section and the selected declaration's owner chain without taking focus from the diagram. A UI request counter handles a second selection of the same symbol after its branch has been folded. These are reveal requests, not semantic revisions or identity reconciliation. Selecting a tree row retains the existing Inspector behavior; source-range reveal still requires diagram correspondence. Expansion is not portable project data or automatic work recovery.

## Entry and session lifetime

The public landing lives at `/`; `/app` starts with a project launcher. Source/diagram panels are created on first successful project opening and remain mounted while the launcher or landing is displayed. Inactive workbench surfaces are hidden and inert, retaining the live source editor, history and camera. Appearance state belongs to one application provider. Modal controls close when their owning route becomes inactive, and focus returns to visible controls or the current route heading. A full browser reload is a new session with an explicit recovery choice.

## Shell code ownership

`Workbench.tsx` retains the live session, project-opening validation, selection and reviewed-command orchestration. `ProjectHeader.tsx` and `SourceToolbar.tsx` render shell controls through explicit callbacks. `projectFiles.ts` owns local bundle construction, file reading and browser download preparation; workspace validation and saved-state tracking retain their existing contracts. Panel controls and preferences remain in `WorkbenchPanels.tsx` and `layout.ts`. Surface CSS is imported through `ui/theme.css`; see the [design-system ownership table](../design-system.md#ownership).
`Workbench.tsx` retains the live session, project-opening validation, selection and reviewed-command orchestration. `ProjectHeader.tsx`, `WorkspaceToolbar.tsx`, `SourcePaneHeader.tsx` and `ModelPaneHeader.tsx` render shell controls through explicit callbacks. `projectFiles.ts` owns local bundle construction, file reading and browser download preparation; workspace validation and saved-state tracking retain their existing contracts. Panel controls and preferences remain in `WorkbenchPanels.tsx` and `layout.ts`. Surface CSS is imported through `ui/theme.css`; see the [design-system ownership table](../design-system.md#ownership).

## Responsive and accessibility integration

Pane-local controls use intrinsic wrapping; Model representation buttons can wrap their labels within narrow panes even beside Inspector. Existing 900 px vertical Split and below-600 mutually exclusive side tools are retained. Opening a collapsed tool first releases its reopen rail before requesting space, avoiding a narrow-panel constraint deadlock. Hidden panels and sections remain mounted/inert. Projects and Workspace layout have distinct Folders/PanelsTopLeft icons; forced-color representation/arrangement selection has a persistent border separate from the focus outline. Reduced-motion behavior remains the shared rule in `base.css`.

`workbench-chrome.spec.ts` checks actual pane extremes, viewport transitions, exact drafts/bundle/editor/camera preservation, minimum-height canvas control access and forced-color focus/selection. Targeted accessibility-tree and screen-reader observations are recorded in [verification](../verification.md); they do not establish comprehensive assistive-technology support.
2 changes: 1 addition & 1 deletion docs/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The [visualization example library](../examples/README.md) records representativ

The read-only requirements table inspects all applied requirement declarations, identifiers, owned documentation and declared satisfaction/verification links. It supports search, name sorting and CSV export. The traceability matrix uses requirements as rows and linked satisfiers/verifiers as columns, retaining exact declaration identities and negation. It does not infer missing relationships, compute verification verdicts or edit model content. Unknown/incomplete extraction is unavailable rather than an empty result. Source reveal requires that file's draft to match applied source. [Requirements data contract](architecture/requirements-data.md).

Workspace arrangement is independent of Model representation: **Source only**, **Source + Model** and **Model only** choose visible slots. Source history and Apply/Discard live in the Source header; the filename’s Draft badge is per-file while those transactions affect all project sources. The Model header combines visibly labeled representation, revision status and diagram-only target/authoring controls. Tables and matrices state their project-wide scope; canvas controls remain on the Diagram. Activity rail and broader responsive/accessibility integration remain staged in the [product design](design/workbench-product-decisions.md).
Workspace arrangement is independent of Model representation: **Source only**, **Source + Model** and **Model only** choose visible slots. Source history and Apply/Discard live in the Source header; the filename’s Draft badge is per-file while those transactions affect all project sources. The Model header combines visibly labeled representation, revision status and diagram-only target/authoring controls. Tables and matrices state their project-wide scope; canvas controls remain on the Diagram. A sparse Explorer activity rail toggles the sidebar. Files, Views and Model fold independently while preserving mounted navigation state. Representation labels wrap to actual Model pane width, with a separate persistent selection cue in forced colors. See the [product design](design/workbench-product-decisions.md) and [verification record](verification.md) for tested coverage and limits.

The optional **Guide** in the project header introduces Explorer, layout, source application, model representations and project download for any open project. It can be dismissed and restarted, and does not alter project data.

Expand Down
2 changes: 1 addition & 1 deletion docs/design-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This is a working foundation, not a claim of complete keyboard/screen-reader cer

Resizable, Tooltip and Popover are owned official registry primitives. `react-resizable-panels` 4.14.8 supplies resizing; the existing Radix package supplies popover/tooltip behavior. `ui/IconButton.tsx` composes the shared Button and Tooltip rather than introducing a second button style. Icons use Lucide and decorative SVGs remain hidden from accessibility names. Apply and Download keep visible labels.

The global arrangement bar selects Source only, Source + Model or Model only with CodeXml/Columns2/Layers icons, explicit tooltips and mutually exclusive pressed states. It is separate from Model representation. Pane-local Source controls use the existing buttons and tokens, keep Apply/Discard labeled, and wrap based on actual pane width. The active filename’s draft badge is per-file; the adjacent transaction status and Apply/Discard remain workspace-scoped. The Model header uses Network/Table2/Grid3X3 with visible representation labels and retains separate applied/draft/busy status. Diagram target and authoring controls occur once; data representations state project scope. Activity-rail and broader integration remain staged in the [product design](design/workbench-product-decisions.md).
The global arrangement bar selects Source only, Source + Model or Model only with CodeXml/Columns2/Layers icons, explicit tooltips and mutually exclusive pressed states. It is separate from Model representation. Pane-local Source controls use the existing buttons and tokens, keep Apply/Discard labeled, and wrap based on actual pane width. The active filename’s draft badge is per-file; the adjacent transaction status and Apply/Discard remain workspace-scoped. The Model header uses Network/Table2/Grid3X3 with visible representation labels and retains separate applied/draft/busy status. Diagram target and authoring controls occur once; data representations state project scope. The sparse 48 px activity rail contains only Explorer, with a persistent active border distinct from keyboard focus. Files/Views/Model use Folder/Network/ListTree identities and independent disclosure buttons. Header actions remain separate. Representation buttons wrap to their actual pane width, and a bottom border marks selection in forced colors independently of the focus outline. Projects uses Folders, distinct from the PanelsTopLeft workspace-layout control. Existing 900/600 responsive behavior is retained; see the [product design](design/workbench-product-decisions.md) and [verification](verification.md) for observed coverage.

Tool headers, dividers, collapse controls and preference handling live in the workbench, outside semantic workspace state. Focus transfer follows committed visibility, hidden tools are inert, and panel geometry is a browser preference. See [panel contracts](architecture/workbench-layout.md).

Expand Down
4 changes: 4 additions & 0 deletions docs/design/workbench-product-decisions.md
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,7 @@ Every result must distinguish observed baseline behavior, the implemented change
The #42 slice composes ModelPaneHeader with DiagramTargetControls using the existing `dataMode`, workspace handlers and Diagram identity key. Header controls and the renderer remain mounted when data representations hide them. The renderer’s original capability gate is shared with the header, so successful native evaluation is distinguished from a UI renderer being available. Tables/matrices state project-wide scope and retain their own query/filter/export/inspection ownership.

`model-header.spec.ts` covers single control ownership, keyboard focus through representation changes, unchanged arrangement/drafts/bundles, stable renderer/editor DOM, unavailable sequence rendering, busy/applied status and constrained-header keyboard reachability. Existing authoring, exploration, requirement inspection, source reveal and preservation cases retain semantic assertions. Four composed-header visual cases add diagram/table captures at desktop/phone sizes in both themes. Results are recorded in the verification log; this map does not mark #43/#44 complete.

### Stage 3/4 implementation map — 2026-11-17

ExplorerSection and ActivityRail implement #43 with mounted disclosure bodies and the existing panel controller. Inspector opening releases its reopen rail before width allocation, preventing the new activity bar from blocking phone inspection. Stage #44 retains the existing breakpoints and storage schema, adds intrinsic representation-label wrapping and forced-color selection cues, distinguishes Projects, updates guide language and checks actual pane extremes. Screen-reader observations are bounded to the recorded Orca/Chromium workflow in [verification](../verification.md), rather than a general compatibility claim. Engine behavior and portable data are outside these chrome changes.
2 changes: 2 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,5 @@ The critical recovery restore scenario now writes distinguishable successive dra
`recovery-error-lifetime.spec.ts` restores a real IndexedDB copy whose source parses cleanly but fails exploration origin validation. It retains that current operational error across another parse-clean failing revision, verifies recovery no longer owns the accepted replacement’s visualization failure, and clears the obsolete error only after a later model actually explores successfully. It compares exact accepted source and retains desktop/390px light/dark captures. This is separate from rejected project validation, which the recovery suite still checks as a pending recovery action.

The inherited-member critical regression imports a positioned project captured with the previous real engine. It checks exact inherited declaration/context identities, legacy IDs and displayed positions, keyboard Properties/source navigation, independent inherited-node movement, both view layouts, rejected draft preservation and fresh-context portable reopen. Automatic layout alone does not write presentation positions; the test explicitly moves nodes before requiring saved geometry.

`explorer-sections.spec.ts` covers independent disclosure and sidebar state, separate New view activation, preserved drafts/camera/bundle and diagram-to-tree reveal without focus transfer. `workbench-chrome.spec.ts` exercises width transitions and actual minimum pane widths rather than viewport width alone, plus vertical-minimum canvas access and forced colors. `chrome-accessibility.spec.ts` records role/name/state snapshots and keyboard operation; an optional `WORKBENCH_ORCA_LOG` enables checks against an isolated real Orca utterance log. An accessibility tree alone does not prove a screen reader announced it correctly. Retain exact AT/browser versions, setup limitations and observed output in verification records.
Loading
Loading