Convert Custom View Builder to modal dialog and improve UX - #7
Merged
Conversation
added 2 commits
July 20, 2026 00:35
- Add ViewBuilderDialogViewModel/View replacing CustomViewBuilderToolViewModel/View - Add MainWindowShell.RenderCustomViewPreview for side-effect-free live preview - Remove docked panel from WorkbenchDockFactory and View menu; wire new 'Custom View Builder...' dialog menu item in MainWindowView - OK commits a brand-new diagram tab via OpenNewCustomPreviewTab + PreviewCustomView with rollback-on-failure; Cancel has zero side effects - Update tests: new ViewBuilderDialogViewModelTests, MainWindowShellTests, DockTests (three-panel layout), AvaloniaTests - Update design/reqstream/verification docs and SysML2 model for the new ViewBuilderDialog unit; update .reviewmark.yaml and user guide
…clear, centered button text - Add a draggable GridSplitter between the preview pane and tabs in ViewBuilderDialogView, with MinWidth guards on both sides. - Add SvgCanvasHost.Clear() to reset SVG/zoom/pan, and call it from ViewBuilderDialogViewModel.RenderPreview's catch block so an invalid definition immediately blanks the stale preview instead of leaving the last valid render visible. - Add HorizontalContentAlignment="Center" to the OK/Cancel buttons in ViewBuilderDialogView and the OK button in AboutDialogView so button text is centered instead of left-aligned. - Add unit tests for SvgCanvasHost.Clear and for the stale-preview-clears- on-invalid-edit scenario, and update the corresponding reqstream/design/ verification docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the documentation to reflect the migration of the custom view builder from a docked panel to a new modal dialog (
ViewBuilderDialog) in the SysML2Workbench AppShellSubsystem. It introduces a new design document forViewBuilderDialog, updates integration and UI composition details, and removes references to the now-deleted docked custom view builder panel throughout the docs. The changes clarify the dialog's role, data flow, error handling, and integration with the shell, ensuring consistency across the design documentation.Major documentation updates:
Introduction of ViewBuilderDialog:
view-builder-dialog.mddetailing the purpose, data model, methods, error handling, and dependencies ofViewBuilderDialog, which replaces the docked custom view builder panel.ViewBuilderDialogin.reviewmark.yaml, including all relevant source, view, and test files.UI and Dock Layout Changes:
ViewBuilderDialogis a modal dialog, not part of the persistent Dock layout. [1] [2] [3] [4] [5] [6]ViewBuilderDialogViewModelinstead of the deletedCustomViewBuilderToolViewModel. [1] [2]Integration and Behavior Updates:
Consistency and Error Handling:
These changes ensure the documentation accurately reflects the current architecture and user flow, focusing on the new
ViewBuilderDialogand its integration into the AppShellSubsystem.