8.4. VM Layer Map¶
This page is the fast tour of how the Notes Workspace scenario composes VMx primitives into the flagship app shape.
8.4.1. Canonical Hierarchy¶
The language-neutral VM hierarchy diagram lives in the examples tree: examples/assets/notes-showcase-vm-hierarchy.svg. Use that diagram for node names and host-agnostic structure; use the local map above for the VMx primitive-to-scenario routing.
The Rust TUI showcase has its own VM-layer map because its terminal host is a Rust-specific adapter rather than one of the four UI-backed flagship hosts: Rust TUI Notes Showcase.
8.4.2. Layer Walk¶
WorkspaceVMis the composition root. It wraps anAggregateVM6over the six primary children.NotebooksRootVMandNotebookVMproject the notebook tree. TypeScript usesHierarchicalVMnodes and aTreeSelection. C#, Python, and Swift use flatComponentVM-based adapters that keep theTreeStructureChangedMessagebehavior.NotesViewVMowns selection, filtering, and paging over notes.NoteFormVMowns edit/revert, validation, tag suggestions, and edit-versus-preview mode.NotificationsVM,StatusBarVM, and capability actions wire the supporting surfaces around the editor core.
8.4.3. Where To Verify¶
- Parity matrix: examples/notes-showcase-parity.md
- Flavor READMEs:
C# (
examples/csharp/avalonia/NotesShowcase/README.md), Python (examples/python/textual/notes_showcase/README.md), TypeScript (examples/typescript/react/notes-showcase/README.md), Swift (examples/swift/notes-showcase/README.md)