-
Notifications
You must be signed in to change notification settings - Fork 32
✨ [Frontend] Feature: Localized conversations #7999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ [Frontend] Feature: Localized conversations #7999
Conversation
…simcore into feature/localized-chats
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7999 +/- ##
==========================================
- Coverage 87.87% 87.60% -0.28%
==========================================
Files 1853 1448 -405
Lines 71491 59909 -11582
Branches 1258 477 -781
==========================================
- Hits 62821 52481 -10340
+ Misses 8306 7307 -999
+ Partials 364 121 -243
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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 a new “conversation” annotation type to the workbench, allowing users to drop conversation bubbles, open a dedicated conversation panel, and sync with a backend store.
- Adds
drawAnnotationConversationin the SVG wrapper and exposes it in theSvgWidget. - Refactors WorkbenchUI to drive all annotation types (note, rect, text, conversation) through a single
__annotatingstate and consolidates annotation logic. - Introduces a singleton
osparc.store.Conversationsfor all conversation‐related API calls and hooks up conversation events across the UI.
Reviewed Changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/wrapper/Svg.js | New drawAnnotationConversation + updated updateText to handle groups. |
| services/static-webserver/client/source/class/osparc/workbench/WorkbenchUI.js | Unified annotation state, added conversation handling and popup logic. |
| services/static-webserver/client/source/class/osparc/store/Conversations.js | Brand-new singleton store for conversation endpoints. |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/wrapper/Svg.js:277
- The new drawAnnotationConversation method has complex layout and truncation logic without accompanying unit or integration tests. Consider adding tests for various title lengths, positioning, and click handler behavior.
drawAnnotationConversation: function(draw, x = 50, y = 50, title = "Conversation") {
services/static-webserver/client/source/class/osparc/store/Conversations.js:156
- The __addToCache and __addPricingUnitToCache methods appear unrelated to conversations (they deal with pricing plans) and likely were copy-pasted here by mistake. Consider removing or moving these methods to their correct store to avoid runtime errors.
__addToCache: function(pricingPlanData) {
services/static-webserver/client/source/class/osparc/workbench/WorkbenchUI.js
Show resolved
Hide resolved
giancarloromeo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍



What do these changes do?
This PR brings the localized?pinned?positioned?
PROJECT_ANNOTATIONtype conversations.Users can now add annotations that reference a conversation. These annotations can be moved around and are bound to their conversation: they can be renamed and when the conversation gets removed the annotations is also removed.
Related issue/s
How to test
Dev-ops