Repository navigation
feat(viewer): settings, Mermaid, export as seen - #57
Merged
Merged
Conversation
Markdown typography, a Settings modal (always open examples), a sidebar edge tab, Dictionary and sidebar scroll memory, Mermaid diagrams themed from theme.mermaid, Export HTML of the current view, and a modal focus trap. The modeling skill teaches ## Logic flows inside process bodies. Mermaid ships as a lazily loaded sidecar so models without diagrams pay nothing, and theme values are filtered because Mermaid writes them into the SVG unsanitized.
Diagrams take full-strength entity colours, black outlines, shadows and bold labels, with theme.mermaid stroke_width, radius, shadow and node_fills. The sidebar tab rests as a thin lip and slides out on hover or focus. Palette colours that reach the diagram stylesheet are checked, since Mermaid writes them unescaped. Prose is capped at 72ch.
…Settings Shift+L steps the graph layout back; L/Shift+L flip the flow view; R resets the layout; Cmd/Ctrl+C copies the view link unless text is selected; the Groups dialog and Shift+H hide whole groups as one undo step. Help shows each key as a keycap. Settings is split into sections and takes over the light/dark choice from the header button.
damusix
added a commit
that referenced
this pull request
Oct 28, 2026
Contributor
Author
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.










Seven viewer requests in one change. Contract:
docs/spec/viewer-qol.md; why:docs/design/viewer-qol.md.dist/static/mermaid.js(5.3 MB). Live mode loads it only when a page has a diagram;ignatius exportinlines it only when a body has one. The app bundle grew 7 KB.theme.mermaidaddsstroke_width,radius,shadowandnode_fillsnext to the per-mode Mermaid variables.themeVariablesandthemeCSSinto the SVG unescaped. Everyignatius.ymlvalue that reaches them is checked, palette colours included; a dropped value is aconfig.mermaid_theme_invalidwarning.Shift+Lprevious graph layout,L/Shift+Lflip the flow view,Rreset layout,Cmd/Ctrl+Ccopy link (only with no text selected),Shift+Hhide the selected entities' groups. Groups dialog gets Hide/Show per group. Help shows keycaps.test/visual/theme.tsswitches theme through Settings for the visual scripts.viewer-qol-f-1, a possible React dev build in the shipped bundle.