fix(comments): popover position, rubber-band inclusion, Escape to close #35
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!35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_comment_ux_fixes"
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
Three small UX fixes on the comment tool, closing #32, #33, #34.
Related Issues
Changes
crates/hero_whiteboard_ui/static/web/js/whiteboard/comments.jspositionPopover: stopped double-counting the stage transform.getAbsolutePositionalready returns stage-container pixels, so usestageBox.left/top + markerPos.x/ydirectly instead of multiplying bystage.scaleX()and addingstage.x/yon top. Fixes the popover landing far from the marker at zoom-out.installEscHandler/removeEscHandlerhelpers that attach a document-level keydown listener for Escape while any comment popover is open;hidePopoverremoves it. Both the thread popover and the new-comment popover now dismiss on Esc.crates/hero_whiteboard_ui/static/web/js/whiteboard/tools.jsonMouseUpnow also walkslayer.find('.comment-marker')after the.objectpass, so comment markers intersecting the rubber band are included in the transformer selection and move with a group drag.Test Results
cargo check --workspace: passcargo clippy --workspace -- -D warnings: passcargo fmt --check: passManual verification