Skip to content

Real diagram view type; README with light and dark viewer captures - #8

Merged
superWorldSavior merged 3 commits into
mainfrom
feat/view-types
Oct 25, 2026
Merged

superWorldSavior merged 3 commits into
mainfrom
feat/view-types

Conversation

@superWorldSavior

Copy link
Copy Markdown
Owner

Summary

SysON draws every SysML view through one diagram description, so every diagram's metadata reads "General View". The view type the user chose is the definition of the ViewUsage SysON creates with the diagram (checked on the live audit project: StandardViewDefinitions::ActionFlowView, StateTransitionView, InterconnectionView).

  • syson_diagram_snapshot returns viewDefinition; syson_diagram_create returns the viewUsageId and viewDefinition it created. The requested type was always honoured; only the "General View" label suggested otherwise.
  • The diagram viewer names the real type in its eyebrow ("State Transition View"), current-view line and rendering details.
  • README: the action flow in the automatic layout leads the page; a Viewers section shows the state machine, the interconnection and the requirements viewer, each in light and dark following the reader's theme. Defensive captions removed.
  • Documentation harness and capture: one fixture per diagram view, ?theme=dark, ?capture, automatic layout chosen through the viewer's menu; captures over the DevTools protocol once the viewer is ready (ELK runs in a worker).

Verification

  • deno task fmt, lint, check, ui:check, ui:build, ui:verify: green; deno task test: 274 passed (create/snapshot view definition with a mocked SysON, viewTypeLabel, the three diagram fixture sessions).
  • Live: snapshots of the three audit views return their view definitions; a probe Action Flow View created with the tool returns StandardViewDefinitions::ActionFlowView.
  • Captures checked visually in both themes.

🤖 Generated with Claude Code

superWorldSavior and others added 3 commits October 25, 2026 09:21
…ures

SysON draws every SysML view through one diagram description, so every
diagram's metadata reads "General View". The view type the user chose is
the definition of the ViewUsage SysON creates with the diagram.

- syson_diagram_snapshot returns viewDefinition (read by AQL on the
  diagram's ViewUsage; left out when the target is not a typed ViewUsage).
- syson_diagram_create returns the viewUsageId and viewDefinition it
  created (ViewUsages listed before and after the creation), and its
  description explains the mechanism. The requested type was always
  honoured; only the "General View" label suggested otherwise.
- The diagram viewer's eyebrow, current-view line and rendering details
  name the real type ("State Transition View").
- README: the Fly action flow in the automatic layout leads the page; a
  Viewers section shows the state machine and interconnection captures
  side by side and the requirements viewer, each served in light or dark
  with the reader's theme. The defensive captions are gone.
- Documentation harness: one fixture per diagram view, ?theme=dark,
  ?capture (no legend, overview map folded), automatic layout chosen
  through the viewer's menu (options carry data-option, toolbar buttons a
  per-control class). The capture script drives headless Chrome over the
  DevTools protocol and waits for the harness's ready mark, since ELK runs
  in a worker that a fixed delay would race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- tests: the SysON fetch mock is no longer async without await, which
  failed `deno task lint` and would have stopped the release job.
- capture script: every DevTools call and the socket opening share the
  capture deadline; a closed or failed socket rejects the calls waiting
  on it; Chrome exiting before DevTools fails fast; Chrome is stopped
  with SIGTERM then SIGKILL, and the temporary profile removal retries.
  An explicit FFMPEG_BIN that does not exist is an error again.
- harness: the page is ready only once the viewer shows its title and,
  for a diagram, its layout; otherwise it reports data-viewer-error and
  the capture fails instead of writing a wrong image.
- syson_diagram_create: the ViewUsage listing never throws after the
  creation (a created diagram is never reported as a failure), and when
  several ViewUsages appear the one named after the representation wins.
- viewTypeLabel drops SysML name quotes ('Thermal Budget').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Version 0.9.1 in deno.json, the App manifests (and the bundles that embed
them), the server identity test, the README and the getting-started guide;
the CHANGELOG entry covers the real diagram view type and the README
captures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@superWorldSavior
superWorldSavior merged commit ae23f93 into main Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant