Drag and drop widget#102
Merged
veronika-tseleva-cleantalk merged 19 commits intodevfrom Apr 30, 2026
Merged
Conversation
# Conflicts: # dist/doboard-widget-bundle.js # dist/doboard-widget-bundle.min.js # dist/doboard-widget-bundle.min.js.map # js/src/widget.js # styles/doboard-widget.css
There was a problem hiding this comment.
Pull request overview
Adds drag-and-drop positioning and side (left/right) placement controls to the doBoard/SpotFix widget, plus some UX improvements around selection-based “review” and comment draft persistence.
Changes:
- Introduces draggable wrap handle and persists vertical position in
localStorage. - Adds a user-menu option to choose left vs right side placement (persisted in
localStorage). - Persists per-task comment drafts and wires editor change events to draft storage.
Reviewed changes
Copilot reviewed 7 out of 10 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| styles/doboard-widget.css | Adds drag-handle styles and user-menu button styling; adjusts widget positioning CSS. |
| js/src/widget.js | Reads/saves widget position & side, initializes drag behavior, adds selection UX and comment draft persistence. |
| js/src/main.js | Changes selection behavior to show wrap_review first and auto-open wrap after a timeout. |
| js/src/handlers.js | Adds initSpotfixWidget + drag/drop event wiring and persistence. |
| js/src/loaders/SpotFixTemplatesLoader.js | Adds “screen side” selector UI to the user menu; tweaks wrap_review styling. |
| js/src/loaders/SpotFixSVGLoader.js | Adds new SVG icons (drag handle + left/right arrows). |
| js/src/iframe/MessageEditorIframe.js | Forwards editor change events to provided handlers. |
| dist/doboard-widget-bundle.js | Rebuilt bundle reflecting the above source changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 10 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
svfcode
approved these changes
Apr 30, 2026
Glomberg
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://app.doboard.com/1/task/46076
https://app.doboard.com/1/task/48302