Original post from ldariom: https://forum.berachain.com/t/proposal-to-persist-text-filters-when-returning-to-the-list-in-berahub-tables/100
The proposal is to improve table filters once entering text in the filter in the Validators, Pools, or Vaults sections (for example, “BearValidator” in Validators) is maintained if:
You filter the list, go to an item (such as a specific validator, pool, or vault), and return to the main list for that same section.
The filter should be automatically cleared if you switch to another section (for example, from Validators to Pools).
There should be an “X” at the end of the text field so the user can quickly clear the filter text and reset the table to its unfiltered state.
This only applies to text filters (strings in inputs) in those three sections.
How do we do it?
We’ll use a temporary buffer in the browser to save the filter text while you’re in the same section, clearing it when you switch sections. Additionally, we will add an “X” (button) in the text field to clear the filter manually.