-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: button must have a spinner when progress true #189
Conversation
cc @slemeur |
I think that when modifying code duplicated from the core of podman desktop you should first discuss in the upstream before applying what I call 'downstream/ai-studio' library because your manual change will be easily dropped/forgotten when for example ai-studio' would use the podman desktop button component |
here for example you could use an icon for the 'send request' button as well |
I am a bit reluctant to be force to keep some kind of upstream/downstream for the UI, when we usually already modify them a lot when we copy/past the components, as we are trying to limit the duplicate code. I hope, as well that in the future, the podman-desktop library will be more "standard" and such property as "inProgress" will be change, to match for example other component using "loading". They are a lot of inconsistency already, and the day we will have to migrate to the "podman-desktop" shared library will probably not be as easy as just replace the components, because most of them will be probably changed and adapted to be generics.
But why would be want to spinner icon to be displayed if we provide the "inProgress" property to true... Finally, I would prefer we have a clear discussion on the matter, and clearly state, what we want to do, if we want to keep the same components and property (and do not change the implementation) or we can customize them, this is an issue not related to this specific PR and should be addressed as we are already often changing them. cc @jeffmaury |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Refactor model servers
Description
Fixe Button svelte component to have proper spinner when progress true
Screenshots
podman-spinner-progress.mp4
Related issues
Fixes #188
Tests