Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 4, 2025

What do these changes do?

This PR makes some icons point to their new sources. Affected icons: Hypertools, More, New Folder

OtherHypertools_dark
OtherHypertools_light

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 4, 2025
@odeimaiz odeimaiz changed the title Enh/new icons [Frontend] New icons Jun 4, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 4, 2025
@odeimaiz odeimaiz added this to the Bazinga! milestone Jun 4, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 4, 2025 07:55
@odeimaiz odeimaiz requested a review from Copilot June 4, 2025 07:56
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 updates the icon sources for several frontend elements by replacing hardcoded paths with externally hosted URLs. Key changes include:

  • Replacing the old hardcoded "diagram.png" icon in study utilities with a constant reference to the new pipeline icon.
  • Updating the StudyUI model to define new constant URLs for Hypertool and Pipeline icons.
  • Adjusting icon sizes and alignment in dashboard components (SearchBarFilter, ResourceBrowserFilter, and NewPlusMenu) to match the updated assets.

Reviewed Changes

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

Show a summary per file
File Description
services/static-webserver/client/source/class/osparc/study/Utils.js Replaced hardcoded pipeline icon path with a constant from StudyUI.
services/static-webserver/client/source/class/osparc/data/model/StudyUI.js Updated Hypertool icon from a function to a constant URL and added the Pipeline icon URL.
services/static-webserver/client/source/class/osparc/dashboard/SearchBarFilter.js Adjusted icon size and usage for the Hypertools filter button.
services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js Updated Hypertools icon and applied explicit padding adjustments for alignment.
services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js Introduced new constants for More and Folder icons; updated usage in menu button creation.
Comments suppressed due to low confidence (4)

services/static-webserver/client/source/class/osparc/data/model/StudyUI.js:97

  • Consider if converting HYPERTOOL_ICON from a function to a constant meets all use cases; if dynamic sizing is required for different contexts, a functional approach might be preferable.
HYPERTOOL_ICON: "https://raw.githubusercontent.com/ZurichMedTech/s4l-assets/refs/heads/main/app/icons/hypertool.png",

services/static-webserver/client/source/class/osparc/dashboard/SearchBarFilter.js:281

  • Ensure that the new size (18) for the Hypertools icon aligns with the overall dashboard design specifications and does not introduce layout inconsistencies.
osparc.utils.Utils.replaceIconWithThumbnail(hypertoolTypeButton, osparc.data.model.StudyUI.HYPERTOOL_ICON, 18);

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserFilter.js:426

  • [nitpick] Validate that the explicit padding adjustments for the Hypertools button provide consistent alignment across different screen sizes and icon assets.
button.set({ paddingLeft: 5, paddingTop: 0, paddingBottom: 0, });

services/static-webserver/client/source/class/osparc/dashboard/NewPlusMenu.js:159

  • Confirm that passing null for the icon in createMenuButton is safe and that the subsequent explicit icon setting via setIcon fully covers all UI scenarios.
control = this.self().createMenuButton(null, this.tr("New Folder"));

@odeimaiz odeimaiz changed the title [Frontend] New icons 🎨 [Frontend] New icons: Hypertools, More, New Folder Jun 4, 2025
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 4, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jun 4, 2025

@Mergifyio queue

@mergify
Copy link
Contributor

mergify bot commented Jun 4, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 071b9ec

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 4, 2025

@mergify mergify bot merged commit 071b9ec into ITISFoundation:master Jun 4, 2025
59 checks passed
@odeimaiz odeimaiz deleted the enh/new-icons branch June 4, 2025 08:48
@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