fix(mindmap): refresh transformer outline on direction change #31
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard!31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mindmap_direction_outline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fix for issue #30: flipping a mindmap between vertical and horizontal left the transformer outline at the previous orientation's bounding box. Also fixes a silent bug where changing direction via the properties-panel select was never persisted (no
WhiteboardSync.onUpdatecall), so the flip disappeared on reload.Related Issue
Closes #30
Changes
crates/hero_whiteboard_ui/static/web/js/whiteboard/mindmap.jsflipDirection: afterrenderMindmap, calltransformer.forceUpdate()if the group is currently selected. Covers the in-widget toggle icon and the L keyboard shortcut.crates/hero_whiteboard_ui/static/web/js/whiteboard/properties.jsprop-mm-directionchange handler: addedtransformer.forceUpdate()andWhiteboardSync.onUpdate(currentNode)so the new direction both shows the correct outline immediately and survives reload.Test Results
cargo check --workspace: passcargo clippy --workspace -- -D warnings: passcargo fmt --check: passManual verification