Thanks to @sebastiangaiser for bringing this up!
Currently the label filters and search are stored in the URL via nuqs, which is great for browser history. However, navigating to a detail page and back doesn't preserve the filter state, and sorting plus column visibility are not persisted at all.
The ideal behavior: on load, read filters, sorting, and column visibility from localStorage and apply them, writing filters and sorting back into the URL so deep links still work. Column visibility doesn't need to be in the URL, only in localStorage.
Things to investigate:
- Does nuqs have a localStorage sync story or a custom adapter? The goal is that URL params win when present, but localStorage fills in the defaults on a fresh visit.
- Sorting (
SortingState) is currently only in React state, not URL-persisted, so that needs to move into URL + localStorage too.
- Column visibility is only in React state today, so that goes to localStorage only.
If you want to, feel free to send a PR!
Thanks to @sebastiangaiser for bringing this up!
Currently the label filters and search are stored in the URL via nuqs, which is great for browser history. However, navigating to a detail page and back doesn't preserve the filter state, and sorting plus column visibility are not persisted at all.
The ideal behavior: on load, read filters, sorting, and column visibility from
localStorageand apply them, writing filters and sorting back into the URL so deep links still work. Column visibility doesn't need to be in the URL, only inlocalStorage.Things to investigate:
SortingState) is currently only in React state, not URL-persisted, so that needs to move into URL + localStorage too.If you want to, feel free to send a PR!