Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 3, 2025

This PR replaces the template link the with a postMessage that oSPARC is already listening to. On the oSPARC side, the template card will be opened.

SendMessage

@odeimaiz odeimaiz self-assigned this Jun 3, 2025
@odeimaiz odeimaiz changed the title replace link with an info button Enh: replace template link with an info button Jun 3, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 3, 2025 09:28
Copilot AI review requested due to automatic review settings June 3, 2025 09:28
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 enhances the UI by replacing the template link with an info button that sends a postMessage to trigger the opening of the template card on the osparc side.

  • Replaces the anchor link with an IconButton containing an InfoOutlinedIcon.
  • Introduces a postMessage event via the handleInfoClick function to open a function based on the projectId.
Comments suppressed due to low confidence (1)

node/src/components/FunctionList.tsx:107

  • Consider adding an 'aria-label' attribute to the IconButton to improve accessibility and ensure screen readers can identify its purpose.
<IconButton size="small" onClick={handleInfoClick} sx={{ color: "#1976d2" }}>

@odeimaiz odeimaiz added this to the v9 release milestone Jun 3, 2025
@JavierGOrdonnez JavierGOrdonnez merged commit 7728e40 into main Jun 3, 2025
@JavierGOrdonnez JavierGOrdonnez deleted the enh-open-template-card branch June 3, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants