fix(kanban): restore card text editing via double-click and menu #65
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!65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_kanban_card_edit_fix"
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
Two regressions from the card-select/drag work are fixed so kanban cards can be edited again via double-click and via the 3-dot menu Edit action.
Root causes
renderKanban(), which destroys the cardRect between the two clicks of a potential dblclick. Konva's dblclick detector requires the second click to hit the same node as the first, so it never fired.group.childrenlooking for the Konva.Text matching the card, but the card text now lives inside a per-cardcardGroupintroduced for drag-as-a-unit. The search returned nothing.Changes
crates/hero_whiteboard_ui/static/web/js/whiteboard/kanban.js_selectedCardRect) and restored during full re-renders (triggered by state changes), so cross-render un-accenting stays correct.batchDraw()instead ofrenderKanban().showCardMenunow receivescardTextdirectly; the Edit action uses that reference instead of a fragile text-content search.Test Results
cargo check --workspace: passcargo clippy --workspace -- -D warnings: passcargo fmt --check: passManual QA: double-click a card edits text; 3-dot menu Edit edits text; card selection accent still appears/clears on click / bg-click / outside-click / drag; Delete key still removes the selected card; renderKanban-driven re-renders (card add/move/delete/rename) leave the selection accent on the correct card.