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

refactor(UI): generify Select component #1519

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

axel7083
Copy link
Contributor

@axel7083 axel7083 commented Aug 9, 2024

What does this PR do?

The SelectModel component used in the CreateService, PlaygroundCreate, StartRecipe was adding all the css/classes required to style the svelte-select component.

For #1462 we need to expose a new select, allowing the user to select the connection when multiple are available.

Therefore we need to make the Select more generic so the styling can be reused.

Screenshot / video of UI

N/A

What issues does this PR fix or reference?

Fixes #1518

How to test this PR?

  • unit tests has been provided

Testing manually

  • Go to AI Lab
  • Go to the CreateService page
  • Select any model from the list
  • Start it
  • assert => the selected model has been properly selected

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Copy link

@gastoner gastoner left a comment

Choose a reason for hiding this comment

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

Tested and works great!

@axel7083 axel7083 merged commit db402e4 into containers:main Aug 12, 2024
4 checks passed
Copy link
Contributor

@jeffmaury jeffmaury left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Generify the SelectModel svelte component
5 participants