Skip to content

Fix 61019 - #140

Merged
veronika-tseleva-cleantalk merged 3 commits into
devfrom
fix_61019
Nov 9, 2026
Merged

veronika-tseleva-cleantalk merged 3 commits into
devfrom
fix_61019

Conversation

@veronika-tseleva-cleantalk

Copy link
Copy Markdown
Contributor

Copilot AI balanced review requested due to automatic review settings November 9, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Retry handling can expose private descriptions by reusing a public task after visibility changes and falsely report success without a valid comment ID, risking lost drafts and skipped attachments.

2 open issues
What changed in this PR

This PR updates the Spotfix widget’s task creation, sharing, and navigation flows for task 61019.

Changes:

  • Adds description validation, initial-comment retries, and draft cleanup after successful creation.
  • Adds direct spot links and improves page-link display and menu navigation.
  • Normalizes editor iframe sizing and updates the distribution bundle.
File Description
styles/​doboard-widget.css Adds sizing and positioning overrides for editor iframes.
js/​src/​widget.js Updates task metadata, draft cleanup, links, and menu handling.
js/​src/​main.js Supports opening spots from task-level URL fragments.
js/​src/​loaders/​SpotFixTemplatesLoader.js Adds spot links to menus and updates page-link tooltips.
js/​src/​handlers.js Adds validation, comment retries, and shared link helpers.
dist/​doboard-widget-bundle.js Includes the corresponding source and style changes.

Review effort: Balanced

Comment thread js/src/handlers.js Resolved
Comment thread js/src/handlers.js
for (let attempt = 1; attempt <= SPOTFIX_INITIAL_COMMENT_ATTEMPTS; attempt++) {
try {
result.initialComment = await addTaskComment(commentParams, result.taskId, taskDetails.taskDescription + sign);
if (result.initialComment) {
Copilot AI balanced review requested due to automatic review settings November 9, 2026 15:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Comment retries can duplicate saved descriptions after ambiguous failures, while treating a missing comment ID as success can clear drafts and skip attachments even though the description was not saved.

2 open issues
1 resolved since last review

Review effort: Balanced

Comment thread js/src/handlers.js
Comment on lines +156 to +158
for (let attempt = 1; attempt <= SPOTFIX_INITIAL_COMMENT_ATTEMPTS; attempt++) {
try {
result.initialComment = await addTaskComment(commentParams, result.taskId, taskDetails.taskDescription + sign);
@veronika-tseleva-cleantalk
veronika-tseleva-cleantalk merged commit 6bc44ba into dev Nov 9, 2026
2 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.

3 participants