-
Notifications
You must be signed in to change notification settings - Fork 29
✨ [Frontend] Templates and Public Projects in Study Browser #7676
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] Templates and Public Projects in Study Browser #7676
Conversation
@Mergifyio queue |
🟠 Waiting for conditions to match
|
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 adds Templates and Public Projects sections to the Study Browser by introducing new store methods, UI contexts, and renaming the existing TemplateBrowser to TutorialBrowser for consistency.
- Added paginated fetch methods for templates in
osparc.store.Templates
- Extended StudyBrowser context and filter components to support
templates
andpublic
- Renamed TemplateBrowser to TutorialBrowser and updated related Dashboard, MainPage, and filter code
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
services/static-webserver/client/source/class/osparc/store/Templates.js | Added fetchTemplatesPaginated and alias for public templates |
services/static-webserver/client/source/class/osparc/store/Store.js | Extended studyBrowserContext enum with templates and public |
services/static-webserver/client/source/class/osparc/jobs/RunsTable.js | Extracted cancel-run logic to __cancelRun and updated listener |
services/static-webserver/client/source/class/osparc/info/ServiceLarge.js | Refactored thumbnail min/max bound calculations |
services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js | Updated pipeline submission callback signature |
services/static-webserver/client/source/class/osparc/desktop/MainPage.js | Switched TemplateBrowser references to TutorialBrowser |
services/static-webserver/client/source/class/osparc/data/Resources.js | Added getPageSorted endpoint for templates |
services/static-webserver/client/source/class/osparc/data/Job.js | Updated job status labels |
services/static-webserver/client/source/class/osparc/dashboard/TutorialBrowser.js | Renamed TemplateBrowser class to TutorialBrowser |
services/static-webserver/client/source/class/osparc/dashboard/StudyBrowserHeader.js | Added icons and titles for templates and public contexts |
services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js | Integrated template/public fetching into StudyBrowser |
services/static-webserver/client/source/class/osparc/dashboard/ResourceContainerManager.js | Adjusted workspace/folder container visibility toggles |
services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js | Added filter buttons for templates and public contexts |
services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js | Renamed "Services..." menu button label to "Apps..." |
services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js | Replaced TemplateBrowser tab with TutorialBrowser |
Files not reviewed (1)
- services/static-webserver/client/source/translation/en.po: Language not supported
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js:153
- [nitpick] In the public projects listener, the variable
templatesEnabled
is misleading. Rename it to something likepublicEnabled
for clarity.
const templatesEnabled = e.getData();
services/static-webserver/client/source/class/osparc/dashboard/Dashboard.js:226
- [nitpick] The local variable
templatesView
is misleading in the__createTutorialBrowser
method. Consider renaming it totutorialView
for consistency.
const templatesView = this.__tutorialBrowser = new osparc.dashboard.TutorialBrowser();
services/static-webserver/client/source/class/osparc/jobs/RunsTable.js
Outdated
Show resolved
Hide resolved
services/static-webserver/client/source/class/osparc/info/ServiceLarge.js
Show resolved
Hide resolved
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.
👍
…Table.js Co-authored-by: Copilot <[email protected]>
…iceLarge.js Co-authored-by: Copilot <[email protected]>
…imaiz/osparc-simcore into feature/templates-in-project-browser
|
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.
This way you can now use pagination for the templates view, right?
Not sure I get the question. Pagination was already being used. The problem with the templates is that some widgets rely on the templates (TIP plus buttons), and in order to populate them all templates were required. My plan is to mark them as Tutorials, and therefore only all Tutorials will be required. |
…imaiz/osparc-simcore into feature/templates-in-project-browser
What do these changes do?
This PR adds the Templates and Public Projects sections to the StudyBrowser. Here the paginated templates will be listed.
Related issue/s
How to test
Dev-ops