Skip to content

feat: preserve sort/filter state across view refreshes#477

Open
Ppito wants to merge 1 commit into
keidarcy:masterfrom
Ppito:chore/sort-filter-state
Open

feat: preserve sort/filter state across view refreshes#477
Ppito wants to merge 1 commit into
keidarcy:masterfrom
Ppito:chore/sort-filter-state

Conversation

@Ppito
Copy link
Copy Markdown

@Ppito Ppito commented May 28, 2026

Problem

When the auto-refresh triggers a view reload, the current sort order or/and active filters are lost. This forces the user to reapply them manually after each refresh cycle, which degrades the experience significantly when monitoring data over time.

Solution

Introduce an in-memory state that holds the active sort and filter parameters for the duration of the session. This state is initialized once and passed through (or stored at a scope that survives) the refresh loop, so each reload restores the view with the same sort/filter configuration the user had set.

Changes

  • Added a ViewState struct to hold current sort field, sort direction, and active filters
  • Wired the state into the refresh loop so it is read before rendering and preserved after each cycle

@Ppito Ppito force-pushed the chore/sort-filter-state branch from 0e19e28 to 14ff532 Compare May 28, 2026 21:53
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.

1 participant