Mindmap title editor overlaps the existing title text while typing #221
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#221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
When editing a mindmap's title, the inline text editor overlaps the existing on-canvas title, so the text being typed is unreadable.
Steps to reproduce
Expected
While editing, only the editor text should be visible — the underlying canvas title should be hidden (or the editor should have an opaque background that fully occludes it), as is done for other inline text editors.
Root cause
crates/hero_whiteboard_admin/static/web/js/whiteboard/mindmap.js, functioneditMindmapTitle(around line 638):<input>is created withinput.style.background = 'transparent'(around line 655).titleNode) is not hidden while the editor is open.As a result the on-canvas title shows through behind the transparent input, producing the overlap.
Proposed fix
Mirror the pattern used by
objects.jseditText, which hides the Konva text node while the HTML editor is open:titleNodeduring editing (titleNode.visible(false)+ object-layerbatchDraw()), and/or give the input an opaque, theme-aware background.renderMindmap(group), so no explicit restore of the hidden node is required.Acceptance criteria
Implementation Spec for Issue #221
Objective
While a mindmap title is being edited inline, the existing on-canvas title must not be visible behind the editor, so the typed text stays legible.
Root cause
editMindmapTitle(crates/hero_whiteboard_admin/static/web/js/whiteboard/mindmap.js, ~line 638) opens a transparent-background<input>over the title but never hides the underlying Konva title text node (titleNode), so the old title shows through.Files to Modify
crates/hero_whiteboard_admin/static/web/js/whiteboard/mindmap.js-editMindmapTitleImplementation Plan
Step 1: Hide the title node while editing, restore on the non-rebuild path
Files:
crates/hero_whiteboard_admin/static/web/js/whiteboard/mindmap.js<input>is created and appended, hide the canvas title:titleNode.visible(false)followed byWhiteboardCanvas.getObjectLayer().batchDraw().renderMindmap(group)on blur rebuilds the title from scratch, so the hidden node is replaced — no explicit restore needed.renderMindmap; restoretitleNode.visible(true)+batchDraw()there so the title cannot stay hidden.objects.jseditText, which hides the Konva text node while its HTML editor is open.Dependencies: none
Acceptance Criteria
Notes
Implementation Summary
Change
crates/hero_whiteboard_admin/static/web/js/whiteboard/mindmap.js-editMindmapTitle:titleNode.visible(false)+ object-layerbatchDraw()), so the old title no longer shows through the transparent editor.renderMindmap()rebuilds the title fresh (no explicit restore needed).Scope was confirmed to be the title editor only: the node-text editor (
editMindmapNode) already uses an opaque background, so it has no overlap.Verification
node --check— all pass.Acceptance criteria