Skip to content
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

✨ / 🎨 Add Component Icons + Node Appearance #339

Merged
merged 13 commits into from
Jul 11, 2024

Conversation

MFA-X-AI
Copy link
Member

@MFA-X-AI MFA-X-AI commented Jul 10, 2024

Description

This PR adds icons to certain component types.
image

You can set the type via decorator.

@xai_component(type='function')

The following types are supported:

  • Start - automatically set for the Start and Finish nodes.
  • workflow / xircuits_workflow - automatically set for workflow components
  • branch
  • function
  • library_component / debug - the default icon for library components.
  • context_get, context_set, variable

The icons are also displayed on the tray widget.

image

This PR also updates the node color scheme so that the component header will be colored, while the body will be gray.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

Tested on?

  • Windows
  • Linux Ubuntu
  • Centos
  • Mac
  • Others (State here -> xxx )

Notes

Library components have been typed as debug before v1.12. This PR sets the type to be library_component.

Copy link

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/fahreza/custom-node-icons

@MFA-X-AI MFA-X-AI merged commit 13605d2 into master Jul 11, 2024
8 checks passed
@MFA-X-AI MFA-X-AI deleted the fahreza/custom-node-icons branch July 11, 2024 08:32
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.

2 participants