Skip to content

Author's avatar#112

Open
veronika-tseleva-cleantalk wants to merge 6 commits into
devfrom
authors-avatar
Open

Author's avatar#112
veronika-tseleva-cleantalk wants to merge 6 commits into
devfrom
authors-avatar

Conversation

@veronika-tseleva-cleantalk
Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings June 2, 2026 01:19
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

Updates the doBoard SpotFix widget UI to surface the reporting user’s avatar/name (with a guest fallback) and tightens some caching behavior to account for session changes.

Changes:

  • Add guest avatar SVG assets and wire them into template variables.
  • Update templates/CSS to show an avatar in the header and a “Reporting as …” block above the login accordion.
  • Adjust cache validity to consider session ID, and tweak task fetching logic.

Reviewed changes

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

Show a summary per file
File Description
styles/doboard-widget.css Styles for the new “Reporting as …” block and revised login accordion header layout
js/src/widget.js Supplies avatar/name template variables; updates cache validity based on session ID
js/src/loaders/SpotFixTemplatesLoader.js Template changes to render avatar and “Reporting as …” UI
js/src/loaders/SpotFixSVGLoader.js Adds guest avatar SVG generators
js/src/handlers.js Changes task-loading condition in getAllTasks()
dist/doboard-widget-bundle.js Rebuilt bundle reflecting the above source changes
Files not reviewed (1)
  • js/src/loaders/SpotFixSVGLoader.js: Language not supported

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

Comment thread js/src/handlers.js Outdated
Comment thread js/src/widget.js
Comment thread js/src/widget.js Outdated
Comment thread styles/doboard-widget.css Outdated
Comment on lines +390 to +393
.doboard_task_widget-logined-user-name {
display: flex;
align-items: center;
}
Comment thread styles/doboard-widget.css
Comment thread styles/doboard-widget.css
Comment thread styles/doboard-widget.css
Comment on lines +441 to 445
display: inline-flex;
position: relative;
width: stretch;
padding-right: 24px;
cursor: pointer;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

flex-grow and 100% don't work

Copilot AI review requested due to automatic review settings June 2, 2026 01:57
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 4 out of 8 changed files in this pull request and generated 6 comments.

Files not reviewed (1)
  • js/src/loaders/SpotFixSVGLoader.js: Language not supported

Comment thread js/src/handlers.js
Comment thread js/src/widget.js
Comment thread styles/doboard-widget.css
Comment thread styles/doboard-widget.css
Comment thread styles/doboard-widget.css
Comment thread js/src/widget.js Outdated
Copilot AI review requested due to automatic review settings June 2, 2026 04:59
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 4 out of 8 changed files in this pull request and generated 6 comments.

Files not reviewed (1)
  • js/src/loaders/SpotFixSVGLoader.js: Language not supported

Comment thread js/src/handlers.js
let tasksData = await spotfixIndexedDB.getAll(SPOTFIX_TABLE_TASKS);

if (!nonRequesting && (!tasksData || !tasksData.length) && !wsSpotfix.isActive()) {
if ((nonRequesting && (!tasksData || !tasksData.length)) || (!nonRequesting && (!tasksData || !tasksData.length) && !wsSpotfix.isActive())) {
Comment thread styles/doboard-widget.css
Comment on lines +390 to +393
.doboard_task_widget-logged-user-name {
display: flex;
align-items: center;
}
Comment thread styles/doboard-widget.css
Comment on lines 440 to 444
.doboard_task_widget-login .doboard_task_widget-login-icon {
display: block;
display: inline-flex;
position: relative;
width: stretch;
padding-right: 24px;
Comment thread styles/doboard-widget.css
}
.doboard_task_widget-login .doboard_task_widget-login-icon::after {

.doboard_task_widget-login .doboard_task_widget-login-icon span::after {
Comment thread styles/doboard-widget.css
transition: all 0.2s ease-in-out;
}
.doboard_task_widget-login.active .doboard_task_widget-login-icon::after {
.doboard_task_widget-login.active .doboard_task_widget-login-icon span::after {
Comment thread styles/doboard-widget.css
}

.doboard_task_widget-login-icon.doboard_task_widget-login-icon-hidden::after {
.doboard_task_widget-login-icon.doboard_task_widget-login-icon-hidden span::after {
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