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

Remove Reset Filters button in Checks selection #2154

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Jan 9, 2024

Description

This PR allows to decide whether the CatalogContainer component should also show a Reset Filters button when an empty catalog is detected.

Needed to be able to have that reset filter in the catalog page, but not in the checks selection.

How was this tested?

Test added. Outdated storybooks fixed.

https://2154.prenv.trento.suse.com/clusters/0eac831a-aa66-5f45-89a4-007fbd2c5714/settings

Stories
https://643fc66e9747e47344899b8c-dbrfuwanza.chromatic.com/?path=/story/layouts-checkscatalog--empty
https://643fc66e9747e47344899b8c-dbrfuwanza.chromatic.com/?path=/story/patterns-checksselection--empty

@nelsonkopliku nelsonkopliku self-assigned this Jan 9, 2024
@nelsonkopliku nelsonkopliku added enhancement New feature or request chore ux javascript Pull requests that update Javascript code env Create an ephimeral environment for the pr branch labels Jan 9, 2024
@nelsonkopliku nelsonkopliku changed the title Remove Reset Filters button in Checks selection when the catalog is empty Remove Reset Filters button in Checks selection Jan 9, 2024
@nelsonkopliku nelsonkopliku marked this pull request as ready for review January 9, 2024 15:51
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.

Just one thing then we are ready to merge.

Thanks for keeping the stories up to date!

assets/js/pages/ChecksCatalog/CatalogContainer.jsx Outdated Show resolved Hide resolved
@nelsonkopliku nelsonkopliku merged commit 983f364 into main Jan 9, 2024
26 checks passed
@nelsonkopliku nelsonkopliku deleted the no-reset-filter-empty-catalog branch January 9, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 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

2 participants