fix(kanban): refresh transformer handles after content-driven re-renders #59

Merged
AhmedHanafy725 merged 1 commit from development_kanban_transformer_refresh into development 2026-04-22 13:04:42 +00:00
Member

Summary

When a kanban board is selected (transformer handles visible), adding a card/column now grows both the board background and the transformer handles together. Previously the handles stayed at the pre-add size.

Closes #49

Changes

  • crates/hero_whiteboard_ui/static/web/js/whiteboard/kanban.js — at the end of renderKanban(group), if the group is attached to the active transformer, call transformer.forceUpdate() and batchDraw the transformer's layer. Guarded so there is zero effect when the kanban is not selected or when no transformer is available.

Test Results

  • cargo check --workspace: PASS
  • cargo clippy --workspace -- -D warnings: PASS
## Summary When a kanban board is selected (transformer handles visible), adding a card/column now grows both the board background and the transformer handles together. Previously the handles stayed at the pre-add size. ## Related Issue Closes https://forge.ourworld.tf/lhumina_code/hero_whiteboard/issues/49 ## Changes - `crates/hero_whiteboard_ui/static/web/js/whiteboard/kanban.js` — at the end of `renderKanban(group)`, if the group is attached to the active transformer, call `transformer.forceUpdate()` and `batchDraw` the transformer's layer. Guarded so there is zero effect when the kanban is not selected or when no transformer is available. ## Test Results - `cargo check --workspace`: PASS - `cargo clippy --workspace -- -D warnings`: PASS
fix(kanban): refresh transformer handles after content-driven re-renders
All checks were successful
CI / build (pull_request) Successful in 2m9s
dd1e15693e
#49
AhmedHanafy725 merged commit de08513560 into development 2026-04-22 13:04:42 +00:00
AhmedHanafy725 deleted branch development_kanban_transformer_refresh 2026-04-22 13:04:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_whiteboard!59
No description provided.