Repository navigation
fix(v6.52.4): canvas text is readable (ADR-260) - #317
Merged
Merged
Conversation
Canvases built through MCP stored the right JSON but rendered with unreadable notes, cut-off titles, empty UML classes and collapsed boundaries. - Notes: 12px text (the header was 9px). - Titles: wrap to three lines instead of one, with the full name as a tooltip. - UML classes: the creation prompts now ask for data.attributes and data.operations. normalize_canvas_data lifts data.compartments into those keys on save and on read, and keeps the data keys of a flat node. Hydration no longer wipes node-level members the element does not define. - Boundaries: keep their stored height on load. - MCP: create_diagram, update_diagram and patch_diagram describe the node size rules, the class member keys and the edge label and waypoint keys. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CGz89TSr9RHvWuGQtgcjFv
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.
Fixes #315.
Problem
Canvases built through MCP stored the right JSON but rendered with unreadable notes, cut-off titles, empty UML classes and collapsed boundaries. The MCP tool descriptions did not say which keys the canvas reads.
Fix
visual.fontSizeoverride still wins, and the header scales with it.data.attributesanddata.operations.normalize_canvas_dataliftsdata.compartmentsinto those keys on save, on read and inpatch_diagram, so existing diagrams are fixed when opened, with no data migration. Hydration no longer wipes node-level members the element does not define.create_diagram,update_diagramandpatch_diagramshare one block of guidance: node size rules, class member keys, anddata.label,data.labelOffsetX,data.labelOffsetY,data.waypoints.ADR-260, SPEC-260-A, changelog, user guide section, and version bump to 6.52.4. No schema change, no new endpoint.
Not done
Behaviour to know about
Tests
canvas-text-readable.spec.tsagainst the running app: note font sizes of 12px or more, a wrapped title with its tooltip, a boundary at 520 by 300, and class members shown for both member shapes after hydration. The compartments case failed before the backend change.patch_diagram) and the prompt keys. All 15 failed before the change.main. Surface parity and genericness scripts: clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01CGz89TSr9RHvWuGQtgcjFv