Author's avatar#112
Open
veronika-tseleva-cleantalk wants to merge 6 commits into
Open
Conversation
There was a problem hiding this comment.
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 on lines
+390
to
+393
| .doboard_task_widget-logined-user-name { | ||
| display: flex; | ||
| align-items: center; | ||
| } |
Comment on lines
+441
to
445
| display: inline-flex; | ||
| position: relative; | ||
| width: stretch; | ||
| padding-right: 24px; | ||
| cursor: pointer; |
Contributor
Author
There was a problem hiding this comment.
flex-grow and 100% don't work
| 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 on lines
+390
to
+393
| .doboard_task_widget-logged-user-name { | ||
| display: flex; | ||
| align-items: center; | ||
| } |
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; |
| } | ||
| .doboard_task_widget-login .doboard_task_widget-login-icon::after { | ||
|
|
||
| .doboard_task_widget-login .doboard_task_widget-login-icon span::after { |
| 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 { |
| } | ||
|
|
||
| .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 { |
Glomberg
approved these changes
Jun 2, 2026
AntonV1211
approved these changes
Jun 2, 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/50000