Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 27, 2025

What do these changes do?

This PR brings the localized?pinned?positioned? PROJECT_ANNOTATION type 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.

LocalizedConversations

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 27, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 27, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 27, 2025
@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.60%. Comparing base (61a124a) to head (6821022).
Report is 1 commits behind head on master.

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     
Flag Coverage Δ
integrationtests 64.28% <ø> (+0.06%) ⬆️
unittests 85.77% <100.00%> (-0.72%) ⬇️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_celery_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 93.27% <100.00%> (ø)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration 69.92% <ø> (ø)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.10% <ø> (-0.06%) ⬇️
agent 96.29% <ø> (ø)
api_server 92.64% <ø> (ø)
autoscaling 96.03% <ø> (ø)
catalog 92.21% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 91.79% <ø> (-0.57%) ⬇️
datcore_adapter 97.94% <ø> (ø)
director 76.73% <ø> (ø)
director_v2 91.01% <ø> (+0.01%) ⬆️
dynamic_scheduler 96.69% <ø> (ø)
dynamic_sidecar 90.09% <ø> (ø)
efs_guardian 89.65% <ø> (ø)
invitations 93.60% <ø> (ø)
payments 92.57% <ø> (ø)
resource_usage_tracker 88.89% <ø> (-0.11%) ⬇️
storage 86.36% <ø> (+0.08%) ⬆️
webclient ∅ <ø> (∅)
webserver 81.66% <ø> (-5.98%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 61a124a...6821022. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@odeimaiz odeimaiz requested a review from Copilot July 3, 2025 09:47
@odeimaiz odeimaiz marked this pull request as ready for review July 3, 2025 09:47
Copy link
Contributor

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

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 drawAnnotationConversation in the SVG wrapper and exposes it in the SvgWidget.
  • Refactors WorkbenchUI to drive all annotation types (note, rect, text, conversation) through a single __annotating state and consolidates annotation logic.
  • Introduces a singleton osparc.store.Conversations for 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) {

Copy link
Contributor

@giancarloromeo giancarloromeo left a comment

Choose a reason for hiding this comment

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

🚀

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 3, 2025

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

👍

@odeimaiz odeimaiz merged commit fbde76d into ITISFoundation:master Jul 3, 2025
59 checks passed
@odeimaiz odeimaiz deleted the feature/localized-chats branch July 3, 2025 13:53
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants