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

Value breakdowns: maintain filters between value changes #609

Merged
merged 14 commits into from
Jul 18, 2024

Conversation

matyax
Copy link
Contributor

@matyax matyax commented Jul 16, 2024

Summary of changes:

  • Moved the filtering code from BreakdownSearchScene to ByFrameRepeater.
  • Added the previously used filter to ByFrameRepeater
  • ByFrameRepeater if has a filter, applies it after "repeating".
  • Added a missing UI state for when there are no values matching your search:
    message

Closes #559

@matyax matyax requested a review from a team as a code owner July 16, 2024 16:51
@gtk-grafana
Copy link
Contributor

Wondering if we want to add an action to clear the search in the alert like we have when filters have removed all results?
image

@matyax
Copy link
Contributor Author

matyax commented Jul 17, 2024

Oh, definitely. Good idea.

Copy link
Contributor

@gtk-grafana gtk-grafana left a comment

Choose a reason for hiding this comment

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

Works well, good addition, great work!

@matyax matyax force-pushed the matyax/value-search-improvements branch from f556760 to a329c22 Compare July 17, 2024 15:51
@matyax
Copy link
Contributor Author

matyax commented Jul 17, 2024

I managed to update this PR with the route changes, to support keeping filters between value changes. Next, I would like to double check the combination of sorting + filtering + value changes + layout switcher (single, grid, row) to be sure we're not introducing (or carrying over) any inconsistency.

@matyax
Copy link
Contributor Author

matyax commented Jul 18, 2024

Double checked for inconsistencies and looks good to go.

@matyax matyax enabled auto-merge (squash) July 18, 2024 09:43
@matyax matyax merged commit 2fc2ffa into main Jul 18, 2024
4 checks passed
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.

nit: In-tab search doesn't get applied when you change fields
2 participants