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

Read-only filter chips #3998

Merged
merged 15 commits into from
Feb 12, 2024
Merged

Read-only filter chips #3998

merged 15 commits into from
Feb 12, 2024

Conversation

ericpgreen2
Copy link
Contributor

@ericpgreen2 ericpgreen2 commented Feb 8, 2024

This PR refactors the filter chips to accommodate the "read-only" mode that we need for the Create Alert dialog in PR #3881.

Here are the normal, interactive chips:
image

Here are the read-only versions:
image

@ericpgreen2 ericpgreen2 self-assigned this Feb 8, 2024
@ericpgreen2 ericpgreen2 marked this pull request as ready for review February 8, 2024 23:15
Copy link
Collaborator

@AdityaHegde AdityaHegde left a comment

Choose a reason for hiding this comment

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

Just a small nit. Otherwise LGTM

let topListQuery: ReturnType<typeof getFilterSearchList> | undefined;

$: if (isOpen) {
topListQuery = getFilterSearchList(StateManagers, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should disable this query if it is readonly. Even though isOpen is not set to true right now we might end up changing it. Perhaps just a comment would be enough to make sure future devs will keep it in mind?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kk, I just added the conditional now.

@ericpgreen2 ericpgreen2 merged commit 44b51b1 into main Feb 12, 2024
4 checks passed
@ericpgreen2 ericpgreen2 deleted the read-only-filter-chips branch February 12, 2024 18:36
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