Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 13, 2025

What do these changes do?

Only data type ports were hideable in the node input ports view, this PR enhances this feature by supporting any type.

VisibleInputs

Bonus:

  • Enable/Disable sections also for templates

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 13, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 13, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 13, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 13, 2025 09:54
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Enh: visible input ports 🎨 [Frontend] Enh: Visible input ports Jun 13, 2025
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

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 __getVisibleEmptyLastPort is a bit ambiguous; consider renaming it to __getLastVisibleHideablePort to 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 that canShowPreview handles templates/services correctly or reintroduce a check to avoid enabling the preview page where it’s unsupported.
const enabled = osparc.study.Utils.canShowPreview(studyData);

@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 13, 2025
@odeimaiz
Copy link
Member Author

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Jun 13, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 1b1b2a6

@sonarqubecloud
Copy link

@mergify mergify bot merged commit 1b1b2a6 into ITISFoundation:master Jun 13, 2025
58 of 59 checks passed
@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.

3 participants