-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Functions: Show Preview only when requested from MMUX #7948
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] Functions: Show Preview only when requested from MMUX #7948
Conversation
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 adjusts the frontend to show only the pipeline preview for functions when requested from the MMUX service, rather than displaying full template details.
- Updated the persistent iframe handler to open a preview-only window for functions.
- Modified study preview to wait for the workbench to be deserialized before rendering.
- Enhanced resource details to treat “function” as a resourceType and restrict its details to the preview tab.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js | Open a function preview window directly and set a static caption. |
| services/static-webserver/client/source/class/osparc/study/StudyPreview.js | Wrap preview widget creation in a deserialization check. |
| services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js | Add support for a “function” resourceType and limit it to preview. |
services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/study/StudyPreview.js
Outdated
Show resolved
Hide resolved
…dyPreview.js Co-authored-by: Copilot <[email protected]>
|
|
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 5b16b42 |
…7948) Co-authored-by: Copilot <[email protected]>
|
@JavierGOrdonnez said this was tested |
|
Yes it was @pcrespov |



What do these changes do?
From the MMUX service one can request some extra information about a function. In that situation, osparc would pop up that function's underlaying template information, similar to a template info details. Now, this behaviour needs to be changed to only show the pipeline preview.
Since I can't start the MMUX service, I had to the frontend to make this animation. @JavierGOrdonnez test this once it gets deployed in master.

Related issue/s
How to test
Dev-ops