Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 25, 2025

What do these changes do?

In a similar fashion to #7963, this PR listens to the events related to conversations: created, updated and deleted

Conversations

Related issue/s

How to test

Dev-ops

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

codecov bot commented Jun 25, 2025

Codecov Report

Attention: Patch coverage is 84.61538% with 10 lines in your changes missing coverage. Please review.

Project coverage is 89.68%. Comparing base (bfb683d) to head (e1dff3b).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7976      +/-   ##
==========================================
+ Coverage   87.89%   89.68%   +1.78%     
==========================================
  Files        1841     1445     -396     
  Lines       70996    59892   -11104     
  Branches     1227      476     -751     
==========================================
- Hits        62401    53712    -8689     
+ Misses       8241     6059    -2182     
+ Partials      354      121     -233     
Flag Coverage Δ
integrationtests 64.29% <66.66%> (+0.02%) ⬆️
unittests 88.01% <84.61%> (+1.52%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_celery_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 93.27% <100.00%> (+<0.01%) ⬆️
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration 69.92% <ø> (ø)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.05% <ø> (ø)
agent 96.29% <ø> (ø)
api_server 92.64% <ø> (ø)
autoscaling 96.03% <ø> (ø)
catalog 92.29% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 92.35% <ø> (+0.56%) ⬆️
datcore_adapter 97.94% <ø> (ø)
director 76.73% <ø> (-0.10%) ⬇️
director_v2 91.12% <ø> (ø)
dynamic_scheduler 96.69% <ø> (ø)
dynamic_sidecar 90.09% <ø> (ø)
efs_guardian 89.65% <ø> (ø)
invitations 93.60% <ø> (ø)
payments 92.57% <ø> (ø)
resource_usage_tracker 89.10% <ø> (+0.10%) ⬆️
storage 86.23% <ø> (-0.37%) ⬇️
webclient ∅ <ø> (∅)
webserver 87.62% <83.33%> (-0.01%) ⬇️

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 bfb683d...e1dff3b. 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 marked this pull request as ready for review June 26, 2025 07:46
@odeimaiz odeimaiz requested a review from Copilot June 26, 2025 08:18
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 26, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 26, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at aa71ed3

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 refactors the ResourceDetails pop-up API across the front end to return both the detail widget and its window, updates all callers accordingly, and enhances the Conversations widget to listen and react to WebSocket events (created, updated, deleted).

  • Refactor ResourceDetails.popUpInWindow to accept raw data, instantiate internally, and return { resourceDetails, window }; update all consumers to destructure and use the new API.
  • Implement WebSocket event handlers in osparc.study.Conversations for conversation lifecycle events and dynamically add, rename, or remove conversation pages.
  • Modularize ResourceDetails pages by replacing __getXPage methods with __addXPage functions and track injected widgets for proper destruction.

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js Use new popUpInWindow API and destructure result
services/static-webserver/client/source/class/osparc/ui/window/Window.js Simplify shorthand property syntax
services/static-webserver/client/source/class/osparc/study/Conversations.js Add studyData property, refactor fetch logic, and register WS events
services/static-webserver/client/source/class/osparc/share/ShareePermissions.js Destructure popUpInWindow result and rename metadata variable
services/static-webserver/client/source/class/osparc/notification/NotificationUI.js Destructure popUpInWindow, update close callback
services/static-webserver/client/source/class/osparc/desktop/organizations/TutorialsList.js Use new popUpInWindow API
services/static-webserver/client/source/class/osparc/desktop/organizations/ServicesList.js Use new popUpInWindow API
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Rewrite popUpInWindow, replace getters with adders, track widgets
services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js Destructure popUpInWindow and update close/open callbacks
services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js Destructure popUpInWindow and update close callback
services/static-webserver/client/source/class/osparc/dashboard/CardBase.js Destructure popUpInWindow and update close/open callbacks
services/static-webserver/client/source/class/osparc/conversation/MessageUI.js Remove legacy padding props
services/static-webserver/client/source/class/osparc/conversation/Conversation.js Rename methods/buttons, extract rename logic
Comments suppressed due to low confidence (3)

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js:344

  • [nitpick] The local variable name 'window' shadows the global window object, which can be confusing; consider renaming it (e.g., 'popupWindow').
              } = osparc.dashboard.ResourceDetails.popUpInWindow(functionData);

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js:942

  • [nitpick] Destructuring a variable named 'window' shadows the global window; consider renaming (e.g., 'popupWindow').
      const {

services/static-webserver/client/source/class/osparc/dashboard/CardBase.js:1027

  • [nitpick] Destructuring a variable named 'window' shadows the global window; consider renaming (e.g., 'popupWindow').
      const {

@pcrespov
Copy link
Member

👀

Copy link
Member

@pcrespov pcrespov 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

@mergify mergify bot merged commit aa71ed3 into ITISFoundation:master Jun 27, 2025
60 checks passed
@odeimaiz odeimaiz deleted the feature/listen-to-conv-ws branch June 27, 2025 10:37
@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

🤖-automerge marks PR as ready to be merged for Mergify 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.

5 participants