Skip to content

feat(ui): persist label filters, sorting, and column visibility across navigation #1801

Description

@metalmatze

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions