Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 30, 2025

What do these changes do?

This PR implement the Search of Templates and Search of Public Projects.

Search

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz added this to the Engage milestone Jun 30, 2025
@odeimaiz odeimaiz self-assigned this Jun 30, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 30, 2025
@odeimaiz odeimaiz marked this pull request as ready for review July 1, 2025 09:41
@odeimaiz odeimaiz requested a review from Copilot July 1, 2025 09:41
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jul 1, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jul 1, 2025

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2025

queue

🟠 Waiting for conditions to match

  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • any of: [🛡 GitHub branch protection]
        • check-neutral = deploy to dockerhub
        • check-skipped = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-neutral = system-tests
        • check-skipped = system-tests
        • check-success = system-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
        • check-success = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-neutral = integration-tests
        • check-skipped = integration-tests
        • check-success = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
        • check-success = build-test-images (frontend) / build-test-images
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • label=🤖-automerge
      • any of: [🛡 GitHub branch protection]
        • check-success = unit-tests
        • check-neutral = unit-tests
        • check-skipped = unit-tests
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

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 adds search functionality for templates and public projects, standardizes template fetching methods, and extends the study browser to support new search contexts.

  • Introduces searchTemplatesPaginated and consolidates template fetching via fetchTemplatesPaginated
  • Extends the store and UI to handle three new contexts: searchProjects, searchTemplates, and searchPublicTemplates
  • Adjusts the resource container manager and filters to display context-appropriate “no resources” labels

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ColorLight.js Removed a stray “OM here” comment
Templates.js Renamed private fetch, added searchTemplatesPaginated
Store.js Updated check list with new context keys
StudyLarge.js Removed length limit from description markdown
ServiceUtils.js Added “No description” fallback
Resources.js Reordered query params and added search endpoint
WorkspaceButtonItem.js Updated context check to use searchProjects
TutorialBrowser.js Removed manual no‐resources label call
StudyBrowserHeader.js Mapped new context keys to icons and titles
StudyBrowser.js Overhauled context handling to include search contexts
ResourceContainerManager.js Renamed evaluate method and switched label logic to __resourceType
ResourceBrowserFilter.js Renamed “public” events to “publicTemplates”
FolderButtonItem.js Updated context checks for rename and open-location in search view
ContextBreadcrumbs.js Changed breadcrumb rendering condition
AppBrowser.js Removed manual no‐resources label call
Comments suppressed due to low confidence (1)

services/static-webserver/client/source/class/osparc/store/Templates.js:38

  • New method searchTemplatesPaginated and its integration with the backend endpoint should have dedicated unit or integration tests to verify correct pagination, filtering, and resourceType assignment.
    searchTemplatesPaginated: function(params, options) {

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 1, 2025

Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like the improvement of showing the search context.

@odeimaiz
Copy link
Member Author

odeimaiz commented Jul 1, 2025

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 19a64fb

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@mergify mergify bot merged commit 19a64fb into ITISFoundation:master Jul 1, 2025
111 of 113 checks passed
@odeimaiz odeimaiz deleted the feature/search-templates branch July 1, 2025 12:37
@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.

Allow users search Templates and Public Projects

4 participants