Skip to content

Drag and drop widget#102

Merged
veronika-tseleva-cleantalk merged 19 commits intodevfrom
drag-and-drop-widget
Apr 30, 2026
Merged

Drag and drop widget#102
veronika-tseleva-cleantalk merged 19 commits intodevfrom
drag-and-drop-widget

Conversation

@veronika-tseleva-cleantalk
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread js/src/widget.js
Comment thread js/src/widget.js
Comment thread styles/doboard-widget.css Outdated
Comment thread js/src/main.js
Comment thread js/src/handlers.js
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js
Comment thread js/src/widget.js Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread js/src/widget.js
Comment thread js/src/widget.js
Comment thread js/src/widget.js Outdated
Comment thread js/src/widget.js Outdated
Comment thread styles/doboard-widget.css
Comment thread js/src/widget.js Outdated
Copilot AI review requested due to automatic review settings April 28, 2026 11:03
@veronika-tseleva-cleantalk veronika-tseleva-cleantalk merged commit f107ae8 into dev Apr 30, 2026
3 checks passed
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.

4 participants