Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented May 14, 2025

What do these changes do?

In this PR, the "Publish Template" sections gets split into two sections: yes, into "Publish" and "Template".

The difference is that, now, all users will be able to Publish (share with everyone) their own Projects (templates) and also create templates that can be shared.

PublishAndTemplate

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this May 14, 2025
@odeimaiz odeimaiz added this to the Bazinga! milestone May 14, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels May 14, 2025
@odeimaiz odeimaiz marked this pull request as ready for review May 14, 2025 12:14
@odeimaiz odeimaiz requested a review from Copilot May 14, 2025 12:14
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 splits the existing "Publish Template" section into two distinct sections: one for publishing projects and one for creating templates. Key changes include modifying the SaveAsTemplate module to support a new flag for public publishing, updating UI labels in both the study and share modules, and refactoring the dashboard to expose separate pages for publish and template actions.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
services/static-webserver/client/source/class/osparc/study/SaveAsTemplate.js Modified constructor and layout to support a new makeItPublic parameter; renamed publish button logic accordingly.
services/static-webserver/client/source/class/osparc/share/ShareTemplateWith.js Updated text labels to better describe sharing options.
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Split the existing save-as-template page into two pages (__getPublishPage and __getCreateTemplatePage) with corresponding label and id updates.
Comments suppressed due to low confidence (3)

services/static-webserver/client/source/class/osparc/study/SaveAsTemplate.js:143

  • [nitpick] Consider renaming the method getPublishTemplateButton (which returns __createTemplateBtn) to a name that reflects its dual purpose (e.g., getActionButton) to avoid confusion between the 'Publish' and 'Create Template' actions.
return this.__createTemplateBtn;

services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js:788

  • [nitpick] Consider updating the page id to better reflect its purpose (for example, changing it to 'Template') since the functionality now differentiates between publishing and creating a template.
const id = "SaveAsTemplate";

services/static-webserver/client/source/class/osparc/study/SaveAsTemplate.js:134

  • [nitpick] Consider renaming the 'publishTemplate' event to a name that encompasses both actions (such as 'templateAction') to reduce ambiguity between publishing and template creation.
this.fireDataEvent("publishTemplate", {

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

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented May 14, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 5ff7809

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@mergify mergify bot merged commit 5ff7809 into ITISFoundation:master May 14, 2025
59 checks passed
@odeimaiz odeimaiz deleted the enh/publish-and-template branch May 14, 2025 12:46
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jun 6, 2025
92 tasks
@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