-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Conversation: Listen to WebSocket #7976
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] Conversation: Listen to WebSocket #7976
Conversation
…ancarloromeo/osparc-simcore into feature/listen-to-conv-ws
Codecov ReportAttention: Patch coverage is
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
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…ancarloromeo/osparc-simcore into feature/listen-to-conv-ws
…ancarloromeo/osparc-simcore into feature/listen-to-conv-ws
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at aa71ed3 |
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 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.Conversationsfor conversation lifecycle events and dynamically add, rename, or remove conversation pages. - Modularize ResourceDetails pages by replacing
__getXPagemethods with__addXPagefunctions 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 {
services/static-webserver/client/source/class/osparc/study/Conversations.js
Outdated
Show resolved
Hide resolved
|
👀 |
pcrespov
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?
In a similar fashion to #7963, this PR listens to the events related to conversations:
created,updatedanddeletedRelated issue/s
How to test
Dev-ops