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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ static/vendor/
!.env.example
*.tsbuildinfo
.DS_Store

# Local Vercel project metadata and prebuilt deployment output
.vercel/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.vercel
build
sandbox
static/vendor
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ OpenMBEE View Editor brings source editing, named model views and reviewed graph
**Source owns model semantics. Presentation owns geometry.** Renaming a part or connecting ports produces a reviewed source transaction; moving a symbol changes its position. The application runs locally in browser workers and requires no application backend.

<p align="center">
<img src="tests/e2e/visual.spec.ts-snapshots/workbench-light-visual-linux.png" width="1200" alt="The editor showing the Inspection rover architecture, with files and named views on the left and an Inspector on the right" />
<img src="tests/e2e/visual.spec.ts-snapshots/workbench-light-visual-linux.png" width="1200" alt="The editor showing the Inspection rover architecture, with files and named views in the left Explorer and the model in the central workspace" />
</p>

<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.
Explorer has independent Files, Views, Documents and Model sections. Fold a section to make room without losing its state; the header Explorer toggle shows or hides 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

Expand All @@ -55,19 +55,23 @@ Explorer has independent Files, Views and Model sections. Fold a section to make
- **Open source-defined views.** Navigate named SysML views independently of the active source file. Inspect nested and inherited parts, typed inherited ports and resolved connection endpoints.
- **Read generated documents.** Open document definitions (`part def` specializations of `DocumentQueries::Document`) next to named views. The embedded OpenSysML engine plans, evaluates and renders them; headings, table rows and inline references reveal their source declarations, and `Diagram` blocks mount the editor’s native view renderer.
- **Navigate source issues.** Open an issue’s reported file and line in the source editor. Missing or stale locations are explained while drafts and the last valid diagram are retained.
- **Browse the model hierarchy.** Expand packages, definitions and declared members in the Model tree. Selection opens Inspector details. Inspect type/kind labels; use arrow keys, type-ahead and Enter/Space to navigate and select.
- **Browse the model hierarchy.** Expand packages, definitions and declared members in the Model tree. Selection updates the current element; **Inspect selection** opens the bottom inspection panel. Inspect type/kind labels; use arrow keys, type-ahead and Enter/Space to navigate and select.
- **Review graphical changes.** Rename parts, create native views, add typed part usages and connect compatible directed ports through an exact source-change preview.
- **Preserve compatible layouts.** Keep verified symbol positions across supported edits, including inactive views. Unsafe identity mappings are reported and arranged again.
- **Keep projects portable.** Download applied source, unfinished drafts and compatible diagram positions together; reopen the bundle or import multiple SysML files.
- **Recover unfinished work.** Inspect the saved copy’s time, files, draft status and source sizes before restoring or discarding local browser recovery. Competing-tab conflicts explain that Retry only inspects the saved copy and keeps the current project open.
- **Arrange your workspace.** Resize or collapse Explorer, Inspector, source/diagram panes and Issues using dividers, keyboard controls or panel options.
- **Arrange your workspace.** Keep the model central, open source on the right and inspection below, or focus a single surface. Independent panel toggles, maximise/restore and keyboard-resizable dividers preserve editor and camera state. Properties, Relationships and Issues share the bottom dock.
- **Choose your appearance.** Use Light, Dark or Follow system, six diagram palettes and custom muted element colors. Theme and panel preferences stay in the browser.

Structural, native requirement and bounded action/state workflows have real-engine browser coverage. Use-case, mixed, sequence and geometry renderers remain unavailable; behavior diagrams do not execute or simulate models. Generated documents are read-only: there is no inline text editing, publication or Flexo MMS export, and PDF/AsciiDoc output is unavailable in the browser. See [capabilities and limits](docs/capabilities.md) and [local verification](docs/verification.md) for the implemented scope.

In the source editor, use **Ctrl+F** / **Cmd+F** for find/replace and **Ctrl+Z** / **Cmd+Z** for draft editing undo; **Ctrl+Y** / **Cmd+Shift+Z** redo draft edits. **Tab** moves focus out of the editor. Toolbar **Undo source** / **Redo source** operate on accepted model revisions. Highlighting is lexical; the pinned engines still validate source when you apply it. Use **Ctrl+Space** for engine-backed completion, **F1** for symbol information and **F12** for project-file definitions; pointing at a symbol also requests hover information. Queries use the complete current draft source set. Unsupported completion edits and stale replies are rejected. **Format source** updates the current draft; applying remains explicit. Inline diagnostics remain future work.

**Arrange Source and Model:** the global arrangement controls choose **Source only**, **Source + Model** or **Model only**. The Model representation remains independent. Its header labels the representation, applied/draft status and diagram target. Requirements tables/matrices cover the project, independently of the named view. Source history, Apply/Discard and language actions live in the Source header; show Source to reach them. A **Draft** badge beside the filename describes that file only, while Apply/Discard affect all project source drafts.
**Arrange Source and Model:** the panel controls independently toggle Explorer, right-side Source and bottom inspection. Focus model temporarily hides supporting panels; Restore workspace returns to the previous layout. Each panel can maximise, restore and close. Source only / Source + Model / Model only remain available. At narrow widths source stacks below the model and Explorer yields space while source is open. Panel preferences stay in the browser, independently of portable project files.

**Browse with tabs:** named views, temporary explorations, requirements representations and documents open workspace tabs. Source files have their own tab strip. Closing a tab retains project drafts; one tab remains open in each strip. Switching source files retains their draft undo and scroll state until source is replaced or the project changes. Workspace tabs and model back/forward history are session-local. Project overview and Explore selection use the existing supported exploration scopes; no hidden view declarations are authored. Use the scope breadcrumb to choose another package or part; the adjacent Ownership overview/Structure control changes its presentation. Scope details are shown once, and the chooser opens on demand. The home icon opens Project overview. Source history, Apply/Discard and language actions remain in the Source header. A Draft badge beside a filename describes that file only, while Apply/Discard affect all project source drafts.

**Read inspection values:** select an element and choose **Inspect selection**. Declared expressions are visible in value cards; expand **Declaration details** for their declaration and provider. These are authored expressions, not evaluated values. Explorer section counts include collapsed model descendants.

**Read large views:** large authored trees and interconnections open at a readable scale when fitting the whole graph would reduce zoom below 60%. Pan to continue, choose **Fit view** for an overview, or select a diagram occurrence and choose **100%** to read it. These camera actions preserve source and saved symbol positions.

Expand All @@ -94,8 +98,8 @@ Choose **Load example** to open the **Inspection rover** in **Model only** arran

Explore the named views **architecture → mission → lifecycle → requirements → definitions**. Choose **Guide** in the project header for a tour of the editor controls. The opening diagram includes a 480 Wh battery, two distinct drives, lidar, controller, camera and radio. Declared values, successions and satisfaction links are model content; the app does not execute or simulate them.

1. Select another named view in Explorer or the diagram’s **Named view** selector.
2. Choose **Source + Model** (tooltip: **Show source and model**) to see source; selecting a file keeps the active diagram open.
1. Open a named view in Explorer or use **Open workspace tab** (+). Switch opened views, project-wide Requirements/Traceability, and documents in the single workspace tab strip.
2. Choose **Show Source** to open source on the right; selecting a file keeps the active diagram open. Choose **Inspect selection** when you need element details.
3. Edit source and choose **Apply source**. Invalid drafts retain the applied model and appear in **Issues**.
4. Choose **Download project** to preserve sources and arranged view geometry.

Expand All @@ -114,7 +118,7 @@ Connection creation currently requires explicit compatible directions and identi

### 4. Inspect requirements and source

Choose **Requirements table** above the diagram to browse applied requirement identifiers, documentation and declared links; search or sort the rows and export CSV. **Traceability matrix** shows satisfaction or verification declarations against linked elements, including explicitly negated links. These are read-only views, not executed verification results. Select a requirement or link to open its Inspector details. Choose **Open source** there to navigate to its declaration; apply or discard a changed draft in that file first.
Choose **Requirements table** above the diagram to browse applied requirement identifiers, documentation and declared links; search or sort the rows and export CSV. **Traceability matrix** shows satisfaction or verification declarations against linked elements, including explicitly negated links. These are read-only views, not executed verification results. Inspect a requirement row or select a diagram link and choose **Inspect selection** to open its details. Choose **Open source** there to navigate to its declaration; apply or discard a changed draft in that file first.

In the source pane, **Find references** (also Shift+F12) lists project reference locations. **Format source** formats the current draft with Toolkit. Formatting supports local editor undo; **Apply source** validates and accepts it into source history. Failed or stale queries retain your work.

Expand Down Expand Up @@ -164,7 +168,7 @@ Models without named views open a temporary project overview. Choose **Explore m
| Theme, palette, custom colors and panel arrangement | Browser preferences; separate from project content |
| Undo history, selection and camera | Current session; not restored from the project bundle |

Drag a divider or focus it and use arrow keys to resize a panel. Header options provide button alternatives. Reopen collapsed tools from their edge rails, open **Issues** from the footer, or use **Workspace layout** to adjust/reset the arrangement. Below 900 px, the source/diagram split becomes vertical. [Panel behavior](docs/architecture/workbench-layout.md).
Drag a divider or focus it and use arrow keys to resize a panel. Use the header toggles to reopen collapsed tools, open **Issues** from the footer, or use **Workspace layout** to reset the arrangement. Below 900 px, the source/diagram split becomes vertical. [Panel behavior](docs/architecture/workbench-layout.md).

Use **Appearance** for Light/Dark/System, palettes and custom muted fills. Preferences never modify source, project files or model undo history. [Design system](docs/design-system.md).

Expand Down
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ OpenMBEE View Editor is a sandbox browser workspace for SysML v2 source and name

## Planned work and research

- [Model-first redesign assessment](design/redesign-implementation-plan.md): Stitch reference, existing component reuse, staged panel/tab/navigation changes and preservation gates. [Brand and styling specification](design/DESIGN.md).

- [OpenMBEE brand-guide review](research/openmbee-brand-review.md): PR #53 scope, corrected brand-mark attribution, screenshot inspection and verification limits.

- [November stabilization review](research/stabilization-2026-11.md): open PR dispositions, CubeSat timeout replay, issue reconciliation and remaining investigation boundaries.
Expand Down
2 changes: 1 addition & 1 deletion docs/architecture/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Unit tests exercise workspace interfaces with controlled engine responses. These

## Workbench arrangement

The [panel shell](workbench-layout.md) composes resizable tools and editors, with validated browser layout preferences and accessible icon actions. It owns no semantic transactions or portable-project fields. Divider movement retains camera/model-space geometry; explicit editor mode changes retain the existing fit-to-pane behavior.
The [panel shell](workbench-layout.md) composes resizable tools and editors, with validated browser layout preferences and accessible icon actions. It owns no semantic transactions or portable-project fields. Divider movement and panel visibility changes retain the camera and model-space geometry; fitting remains an explicit action after the initial view layout.

[Source assistance and local recovery](source-assistance-recovery.md) describes draft-bound language queries, supported edits, the independent recovery envelope and concurrency policy.

Expand Down
4 changes: 3 additions & 1 deletion docs/architecture/model-exploration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Agreed direction, 2026-11-01; first bounded implementation, 2026-11-05. Project/

## Current bounded slice

Imports without named views open a project overview; imports with named views retain their existing opening behavior. **Explore model** in the named-view selector opens temporary browsing. Separate **Exploration scope** and **Exploration representation** controls select project roots, a package or an explicit part declaration. Project/package scopes support overview trees; explicit part definitions/usages also support structural projection. Typed usages are not automatically unfolded and show that limit explicitly. No automatic system-root inference is claimed.
Imports without named views open a project overview; imports with named views retain their existing opening behavior. The **Project overview** home action opens temporary browsing. One scope breadcrumb opens an on-demand **Exploration scope** chooser for project roots, packages or explicit parts; the adjacent **Exploration representation** selector chooses the view type. The current scope is not repeated in a second summary. Project/package scopes support overview trees; explicit part definitions/usages also support structural projection. Typed usages are not automatically unfolded and show that limit explicitly. No automatic system-root inference is claimed.

Ownership overviews now draw nested packages and declarations from the native artifact's parent identities. Relationship endpoints do not determine ownership: for example, `Q` owns `Motor`, while `P::System` owns its `primary` and `standby` usages. Parallel declarations retain independent correspondence and keyboard/source inspection. Generated ownership layouts reserve right-side routing gutters within the nearest shared owner, with separate rectilinear tracks and label rows clear of declaration bodies and headers. Cross-root routes use the gaps between roots or space below intervening roots. Camera fitting includes route and label bounds. This routing depends on the generated vertical ownership layout; it is not a general router for arbitrary manually positioned diagrams.

Expand Down Expand Up @@ -58,3 +58,5 @@ Follow-up slices are explicit creation of a named view from exploration, storage
## Engine evidence

The [pinned-engine investigation](../research/automatic-exploration-contract.md) executed the current WASM boundary and native renderer. The investigation originally identified a declaration-free project/package seam; the bounded implementation now exposes it through a separate browser contract. A typed system usage did not automatically unfold its definition’s internals. The first delivered exploration must therefore use an overview until structural subject/usage expansion is proven, rather than promise an inferred full-system diagram.

Temporary exploration publishes exact source correspondence. Native relationships without a recorded source location are omitted with a diagnostic count shown in the exploration header, while declarations and source-backed relationships remain. This bounded projection does not invent origins for implicit typing/subsetting and does not alter authored views.
2 changes: 1 addition & 1 deletion docs/architecture/source-assistance-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The workbench composes a separate Toolkit language adapter in `shell/session.ts`

Completion is explicit with Control+Space. Only supported single plain-text edits are offered; snippets, additional edits and commands are excluded. Hover and F1 display plain text. F12 navigates to one exact project-file definition; unavailable, ambiguous and library-only targets explain their limits. The editor rejects results after draft, session, file or busy-state changes and rechecks completion validity when applying it. Queries do not apply source, change model history or replace views.

Diagram selection can highlight a declaration passively without moving focus away from the diagram. Explicit Open source, issue navigation and definition navigation focus the editor. This distinction prevents the Enter key used to select a diagram relationship from being inserted into the source editor during the same key event.
Diagram selection can highlight a declaration passively without moving focus away from the diagram. Explicit Open source, issue navigation and definition navigation focus the editor. A reveal waits for the mounted editor to have a visible, non-inert container with nonzero dimensions; a ResizeObserver retries after panel sizing, and disconnects after focus succeeds or the request is superseded by a new selection, file or user input. It does not rely on a fixed frame count. This distinction prevents the Enter key used to select a diagram relationship from being inserted into the source editor during the same key event.

## Issue navigation

Expand Down
Loading
Loading