Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jul 22, 2025

What do these changes do?

This PR connects the Functions Browser to the backend.

  • In case of the PROJECT function classes, the frontend also fetches the underlying template so that the preview is build with its workbench.
  • Patch name and description are also exposed to users with write permission.
  • Backend: include access_rights and thumbnail in get_function and update_function response

FuncionsBrowser

Bonus:

  • PO center: Use different dates depending on the user's pending state

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz requested a review from Copilot July 23, 2025 08:52
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 connects the frontend functions browser to the backend by implementing API endpoints and updating the client-side code to use real backend data instead of dummy responses. The changes enable full functionality for managing functions in the UI, including creating, reading, updating, and displaying function details with access rights and thumbnails.

  • Removes dummy/mock data from frontend and connects to real backend endpoints
  • Adds support for including access rights and thumbnails in function responses
  • Updates the function data model and UI components to handle real data structures

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
services/web/server/src/simcore_service_webserver/functions/_controller/_functions_rest.py Adds helper function to include access rights and thumbnails in project function responses
services/static-webserver/client/source/class/osparc/store/Functions.js Removes dummy response logic and adds patch function endpoint
services/static-webserver/client/source/class/osparc/data/model/Function.js Updates function model with proper properties and backend integration
services/static-webserver/client/source/class/osparc/data/Resources.js Adds function endpoints configuration with pagination support
services/static-webserver/client/source/class/osparc/info/FunctionUtils.js New utility class for creating function UI components
services/static-webserver/client/source/class/osparc/info/FunctionLarge.js Updates function details view to use new utilities and backend integration
services/static-webserver/client/source/class/osparc/dashboard/ResourceDetails.js Enhances resource details handling for functions with template data
services/static-webserver/client/source/class/osparc/dashboard/ListButtonItem.js Updates list item display logic for functions
services/static-webserver/client/source/class/osparc/dashboard/GridButtonItem.js Updates grid item display logic for functions
services/static-webserver/client/source/class/osparc/dashboard/CardBase.js Adds function-specific logic for access rights and icons
services/static-webserver/client/source/class/osparc/po/UsersPending.js Improves date handling for pending user requests
services/static-webserver/client/source/class/osparc/data/Permissions.js Removes development-only function permission check

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

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jul 23, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at ba45277

Copy link
Contributor

@giancarloromeo giancarloromeo left a comment

Choose a reason for hiding this comment

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

Full STAAAACK 🚀

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.

👀

@giancarloromeo giancarloromeo added 🤖-do-not-merge (optional) blocks Mergify from merging the PR and removed 🤖-automerge marks PR as ready to be merged for Mergify labels Jul 23, 2025
@giancarloromeo
Copy link
Contributor

Solving an issue when updating a function.

@giancarloromeo giancarloromeo added 🤖-automerge marks PR as ready to be merged for Mergify and removed 🤖-do-not-merge (optional) blocks Mergify from merging the PR labels Jul 23, 2025
@sonarqubecloud
Copy link

@mergify mergify bot merged commit ba45277 into ITISFoundation:master Jul 23, 2025
94 of 97 checks passed
@odeimaiz odeimaiz deleted the enh/connect-functions-browser branch July 23, 2025 13:09
@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.

6 participants