MM-70359: Show the floating toolbar again after unpinning - #24
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthroughThe formatting bar now synchronises with an existing text selection when it mounts. The pinned toolbar preserves the editor selection during mouse interaction. Tests cover selected and unselected states, with jsdom geometry support. ChangesFormatting bar selection behaviour
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change restores the floating toolbar after unpinning and adds matching selection behavior; no actionable merge-blocking risk remains after normal checks and review. Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Unpinning the toolbar left the floating bar hidden until you selected something else, so it looked like it worked only some of the time.
The pinned toolbar now cancels
mousedownthe way the floating bar does, and the floating bar syncs once on mount against whatever is already selected.QA
Also worth checking that pinned toolbar buttons still apply to the
selection and that the callout menu still opens from the pinned bar.
Ticket Link
https://mattermost.atlassian.net/browse/MM-70359