-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Enh: Visible input ports #7891
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
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
Enhance the dynamic input port visibility to support any port type and extend resource details controls (e.g., billing, open, preview) to work for both study and template resource types.
- PropForm: generalized the “hideable ports” logic from data-only to any type and renamed helper methods/variables for clarity.
- ResourceDetails: replaced repeated
resourceType === "study"checks with["study","template"].includes(...)and unified page enablement logic.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js | Generalized hideable-input detection to all port types and renamed methods/vars. |
| services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js | Added template support to resourceType checks; simplified page enablement calls. |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js:168
- [nitpick] The method name
__getVisibleEmptyLastPortis a bit ambiguous; consider renaming it to__getLastVisibleHideablePortto clearly pair with__getHideablePorts.
__getVisibleEmptyLastPort: function() {
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js:508
- You’ve removed the
resourceType === "study"guard, so this now runs for all resource types; verify thatcanShowPreviewhandles templates/services correctly or reintroduce a check to avoid enabling the preview page where it’s unsupported.
const enabled = osparc.study.Utils.canShowPreview(studyData);
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 1b1b2a6 |
|



What do these changes do?
Only
datatype ports were hideable in the node input ports view, this PR enhances this feature by supporting any type.Bonus:
Related issue/s
How to test
Dev-ops