Skip to content

Private task link and screenshots#115

Open
veronika-tseleva-cleantalk wants to merge 3 commits into
devfrom
private-task-link-screenshot
Open

Private task link and screenshots#115
veronika-tseleva-cleantalk wants to merge 3 commits into
devfrom
private-task-link-screenshot

Conversation

@veronika-tseleva-cleantalk

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings June 18, 2026 09:14

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.

Pull request overview

This PR adds handling for doBoard “PRIVATE” tasks in the SpotFix widget UI and task-loading pipeline, and improves screenshot generation to avoid transparent backgrounds and to exclude the widget itself from captures.

Changes:

  • Hide/disable task title, comments/actions, and other UI elements when the active task is PRIVATE; exclude PRIVATE tasks from the “All spots” list.
  • Add task_type propagation through task detail aggregation so the UI can branch on PRIVATE.
  • Improve screenshot capture by forcing a non-transparent background color and filtering out the widget element.

Reviewed changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
js/src/widget.js Filters PRIVATE tasks from lists and hides/locks down UI for PRIVATE task view.
js/src/main.js Adds task_type to the object returned by getTaskFullDetails().
js/src/handlers.js Ensures task details aggregation can proceed even when access is denied.
js/src/fileuploader.js Sets screenshot background color and ignores the widget during capture.
js/src/api.js Adds access-denied handling for task fetches and extends task_get API parameters.
dist/doboard-widget-bundle.js Rebuilt bundle reflecting the source changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread js/src/api.js
Comment thread js/src/handlers.js
Comment thread js/src/widget.js
Comment thread js/src/widget.js
Comment on lines +1748 to +1752
if(taskDetails.task_type === 'PRIVATE'){
issuesCommentsContainer.innerHTML = `<span style="text-align: center">
This Spot is not available for public viewing. To share it publicly, enable public access in doBoard.com →
Project → Board → Task Settings. Once enabled, the Spot will be accessible to anyone on the Internet.</span>`
}
Comment thread js/src/api.js Outdated
Comment on lines +256 to +260
const result = await spotfixApiCall(data, 'task_get', accountId);
const tasks = result.tasks.map((task) => ({
taskId: task.task_id,
taskTitle: task.name,
userId: task.user_id,
task_type: task.task_type,
commentsCount: task.comments_count,
taskLastUpdate: task.updated,
taskCreated: task.created,
taskCreatorTaskUser: task.creator_user_id,
taskMeta: task.meta,
taskStatus: task.status,
viewers: task.comments_viewers,
taskToken: task.token
}));
await spotfixIndexedDB.clearPut(SPOTFIX_TABLE_TASKS, tasks);
storageSaveTasksCount(tasks);
return tasks;

if(result.operation_message === 'Access is denied'){
await spotfixIndexedDB.put(SPOTFIX_TABLE_TASKS, {taskId: taskId, task_type: 'PRIVATE', taskMeta:"{}"});
return [];
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.

2 participants