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

Improved catalog filtering #2035

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Improved catalog filtering #2035

merged 2 commits into from
Nov 30, 2023

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Nov 27, 2023

Description

This PR introduces the possibility to feed the Select component with a list of objects as options, where the value and disabled properties can be defined.

As a result disabled options can also be handled.
Currently unsupported filters have been disabled (target type host and cluster type hana scale out and ascs/ers)

Enabling disabled options needs a pr to do so.
Further automatism to rely on the catalog to determine enabled/disabled options needs further refactoring on the catalog state. Tracking an item in the backlog

How was this tested?

Automated tests/storybook.

https://2035.prenv.trento.suse.com/catalog
Catalog Story
Select Story

@nelsonkopliku nelsonkopliku self-assigned this Nov 27, 2023
@nelsonkopliku nelsonkopliku added enhancement New feature or request ux javascript Pull requests that update Javascript code labels Nov 27, 2023
@nelsonkopliku nelsonkopliku added the env Create an ephimeral environment for the pr branch label Nov 27, 2023
@nelsonkopliku nelsonkopliku force-pushed the improved-catalog-filtering branch 4 times, most recently from 089dd43 to b661f64 Compare November 29, 2023 12:55
Copy link
Contributor

@jagabomb jagabomb left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

Some tiny stuff then we can merge 👍

assets/js/components/ChecksCatalog/ChecksCatalog.jsx Outdated Show resolved Hide resolved
assets/js/components/ChecksCatalog/ChecksCatalog.jsx Outdated Show resolved Hide resolved
assets/js/components/Select/Select.jsx Outdated Show resolved Hide resolved
assets/js/components/Select/Select.jsx Outdated Show resolved Hide resolved
@nelsonkopliku
Copy link
Member Author

Thanks @dottorblaster. Addressed the feedbacks!

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

LGTM

@nelsonkopliku nelsonkopliku merged commit c81d3dc into main Nov 30, 2023
26 checks passed
@nelsonkopliku nelsonkopliku deleted the improved-catalog-filtering branch November 30, 2023 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request env Create an ephimeral environment for the pr branch javascript Pull requests that update Javascript code ux
Development

Successfully merging this pull request may close these issues.

None yet

3 participants