-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Filter and patch template types #7690
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
…ak66/osparc-simcore into enh/filter-types
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7690 +/- ##
==========================================
- Coverage 87.57% 87.21% -0.36%
==========================================
Files 1804 1559 -245
Lines 70181 62206 -7975
Branches 1137 608 -529
==========================================
- Hits 61462 54254 -7208
+ Misses 8409 7789 -620
+ Partials 310 163 -147
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
…ak66/osparc-simcore into enh/filter-types
…nto enh/filter-types
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 pull request refactors and extends the handling of template types by replacing legacy template methods with new ones for tutorials and hypertools while also modifying UI components to support the changes. Key updates include:
- Removal of legacy template functions from the store and corresponding updates in NotificationUI and StudyLarge.
- Renaming and refactoring of components and methods to handle Tutorials and Hypertools (e.g. TutorialsList, NewStudies, AppBrowser).
- Endpoint and controller updates to support new filtering and caching mechanisms for template types.
Reviewed Changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/store/Store.js | Removed obsolete functions (setTemplateState, getTemplate) in favor of new methods. |
| services/static-webserver/client/source/class/osparc/notification/NotificationUI.js | Updated the source of template data to use the new Templates API. |
| services/static-webserver/client/source/class/osparc/info/StudyLarge.js | Replaced legacy __isTemplate checks with usage of getTemplateType for UI adjustments. |
| services/static-webserver/client/source/class/osparc/desktop/organizations/TutorialsList.js | Renamed TemplatesList to TutorialsList and updated filtering and fetching logic. |
| services/static-webserver/client/source/class/osparc/dashboard/* | Updated several dashboard components to use hypertools and tutorials instead of legacy templates. |
| services/static-webserver/client/source/class/osparc/data/model/* | Extended model properties and statics to support new templateType values. |
| services/static-webserver/client/source/class/osparc/data/Resources.js | Updated API endpoint to include the new template_type filter. |
| eslint.config.js | Added ignore paths for client resource output directories. |
Files not reviewed (1)
- .eslintignore: Language not supported
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/desktop/organizations/TutorialsList.js:118
- [nitpick] The variable name 'orgTemplates' is still used in a context handling tutorials; consider renaming it to 'orgTutorials' for improved clarity.
const orgTemplates = tutorials.filter(template => groupId in template["accessRights"]);
services/static-webserver/client/source/class/osparc/dashboard/CardBase.js:165
- [nitpick] The comparison in the 'hypertool' branch directly compares resourceType with appType, which might be confusing. Consider using a comparison against metadata (if available) or clarifying the intent of this check to avoid any potential logic issues.
else if (resourceType === "hypertool") { const matches = (resourceType === appType); return !matches; }
services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js
Outdated
Show resolved
Hide resolved
|
@Mergifyio queue |
🛑 The pull request has been synchronized by a user |
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.
💯
services/static-webserver/client/source/class/osparc/data/model/StudyUI.js
Show resolved
Hide resolved
|
This pull request has been removed from the queue for the following reason: The pull request #7690 has been manually updated. If you want to requeue this pull request, you can post a |
|



What do these changes do?
template_typefilterRelated issue/s
How to test
Dev-ops