Skip to content

refactor: remove BatchSelectionBar and BatchHotspotBar overlays - #5

Merged
trmquang93 merged 2 commits into
mainfrom
fix/batch-toolbar-overlay
Mar 16, 2026
Merged

trmquang93 merged 2 commits into
mainfrom
fix/batch-toolbar-overlay

Conversation

@trmquang93

Copy link
Copy Markdown
Collaborator

Summary

  • Deletes BatchSelectionBar and BatchHotspotBar component files
  • Removes the floating action bars that appeared at the bottom-center when multi-selecting canvas items or hotspots, which overlaid the persistent ToolBar
  • Reverts the hidden prop added to ToolBar in the previous workaround commit
  • Cleans up hotspotClipboard ref from useHotspotInteraction (only served the now-removed copy/paste feature)

Why

The bars were redundant — all their actions are already available via keyboard shortcuts (Delete/Backspace to delete, Cmd+G to group, Escape to cancel). The overlay conflict with ToolBar was the root symptom; this removes the cause rather than hiding one over the other.

Test plan

  • npm run lint — no errors
  • npm test — all 229 tests pass
  • Multi-select screens on canvas: confirm ToolBar stays visible and Delete, Cmd+G, Escape still work
  • Shift-click hotspots: confirm Delete/Backspace deletes them and Escape clears selection

BatchSelectionBar and BatchHotspotBar render at position:fixed bottom-center
at zIndex 900, directly overlapping the ToolBar at the same position. Hide
ToolBar when canvasSelection or selectedHotspots are non-empty so the batch
bar has clean screen space with no stale toolbar artifact beneath it.
All actions provided by these floating bars (delete, group, escape) are
already accessible via keyboard shortcuts, making the bars redundant.
Removing them eliminates the visual conflict with the persistent ToolBar.
@vercel

vercel Bot commented Mar 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-forge Ready Ready Preview, Comment Mar 16, 2026 2:40am

@trmquang93
trmquang93 merged commit 18d5032 into main Mar 16, 2026
3 checks passed
@github-actions
github-actions Bot deleted the fix/batch-toolbar-overlay branch March 16, 2026 02:41

This branch was successfully deployed

1 active deployment
Preview 3d0e6818 Deployed Mar 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant