-
-
Notifications
You must be signed in to change notification settings - Fork 192
Description
Issue submitter TODO list
- I've searched for an already existing issues here
- I'm running a supported version of the application which is listed here and the feature is not present there
Is your proposal related to a problem?
No response
Describe the feature you're interested in
Prerequisites
Currently CEL filters can be saved using a small checkbox, which is not very user-friendly (people just don't see it)
User story
I as a user of Kafbat UI want CEL filters in topics to be saved by default.
Acceptance criteria
Scenario 1: Applying and Persisting a Filter
Given I am on the 'Messages' tab for a specific Kafka topic.
When I enter a valid CEL filter expression into the filter input field and apply it.
Then the filter is applied to the messages list.
And the filter expression is automatically saved for that specific topic without any extra steps (like checking a box).
Scenario 2: Re-visiting a Topic with a Saved Filter
Given I have previously applied a CEL filter to 'topic-A'.
When I navigate away from 'topic-A' to another page (e.g., 'topic-B' or the Brokers list) and then navigate back to 'topic-A'.
Then my previously saved filter is automatically populated in the filter input field.
And the filter is automatically applied to the messages list.
Scenario 3: Session Persistence
Given I have previously applied a CEL filter to a topic.
When I close my browser tab/window and open Kafbat UI in a new session.
And I navigate to that same topic.
Then the previously saved filter is pre-populated in the input field and applied to the messages.
Scenario 4: Updating a Saved Filter
Given a saved filter already exists for 'topic-A'.
When I enter a new, different CEL filter expression and apply it.
Then the new filter expression overwrites the previously saved filter for 'topic-A'.
Scenario 5: Clearing a Saved Filter
Given a saved filter is active for a topic.
When I clear the text from the filter input field and apply the empty filter.
Or I delete the filter
Then the saved filter for that topic is removed.
And when I navigate away and back to the topic, the filter input field remains empty.
Scenario 6: Filter Isolation Between Topics
Given I have saved a filter for 'topic-A'.
When I navigate to 'topic-B' (which has no saved filter).
Then the filter input field for 'topic-B' is empty.
And no filter is applied to 'topic-B' messages.
Scenario 7: UI Element Removal
Given the new default save behavior is implemented.
When I view the filtering section on the 'Messages' tab.
Then the old 'Save filter' checkbox is no longer visible.
Describe alternatives you've considered
No response
Version you're running
Additional context
No response