Frame move up/down buttons are ambiguous — clarify they reorder frames #162
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#162
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?
Frames have move up / move down buttons in the floating toolbar but the labels/icons dont communicate that they reorder the frame in the slide list (z-order / presentation order). Users see them as arbitrary up/down. Either rename the tooltips to
Move frame earlier/Move frame later(orBring frame forward/Send frame backward) and use clearer icons (e.g.bi-arrow-up-square/bi-arrow-down-squareorbi-list-ol-like icons), or replace with explicit Reorder controls. Apply only to frames; the rest of the bring-to-front / send-to-back actions on other shapes are unaffected.Spec
Root cause
In
_renderFrame(selection_toolbar.js ~L1141–1150) the two buttons use genericbi-arrow-up/bi-arrow-downicons withMove up/Move downtooltips. Their handlers actually callWhiteboardFrames.moveFrameUp/moveFrameDown, which reorder the frame in the slide deck / presentation order (viaframeOrderattribute + slide-number badges + syncdata.order). They are NOT canvas z-order operations — those live intools.js(bringToFront/sendToBack) and usebi-front/bi-back.The context menu already labels the same actions clearly (
Move slide up/Move slide down— contextmenu.js L80–81). Only the toolbar surface uses the ambiguous wording.Files to Modify
crates/hero_whiteboard_ui/static/web/js/whiteboard/selection_toolbar.js— only file (only the two_buildIconBtncalls in_renderFrame).Implementation Plan
Step 1 — update icons + tooltips on the two frame reorder buttons
bi-arrow-up-squareMove slide earlier (in presentation order)bi-arrow-down-squareMove slide later (in presentation order)No handler changes. The square-arrow variants visually differ from the bare arrows used elsewhere in the toolbar, pairing well with the slide-number badge already on each frame.
"Bring forward / Send backward" was rejected — overlaps with canvas z-order (
Bring to Front/Send to Back) used on other shapes and would deepen, not resolve, the confusion.Acceptance Criteria
Move slide earlier (in presentation order). Icon:bi-arrow-up-square.Move slide later (in presentation order). Icon:bi-arrow-down-square.WhiteboardFrames.moveFrameUp/moveFrameDown, slide badges re-number, sync round-trip viadata.order.bringToFront/sendToBackicons / labels / context-menu entries) untouched.What NOT to break
WhiteboardFrames.moveFrameUp/moveFrameDownbodies andcontextmenu.jscallers.WhiteboardObjects.redrawAllFrameBadges/.order-badgerendering.tools.jsactions, keyboard shortcuts, context-menu "Bring to Front / Send to Back" entries._renderFramecontrols (title edit)._buildIconBtnhelper signature.Done
Commit
7faf8ccondevelopment. Icons + tooltips updated; handlers unchanged.cargo check --workspace: pass