Skip to content

fix(ui): restore dashboard filters from the URL on navigation - #6025

Merged
SteKoe merged 2 commits into
codecentric:masterfrom
Aminark:fix/restore-dashboard-filters-from-history
Nov 28, 2026
Merged

SteKoe merged 2 commits into
codecentric:masterfrom
Aminark:fix/restore-dashboard-filters-from-history

Conversation

@Aminark

@Aminark Aminark commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Open an applications link with ?q=007-orders: the query decoder turns the search term into the number 7, so the dashboard loses the filter on reload. Navigating back to an earlier filter also leaves the controls showing the old value because the route watcher replaces a local variable while the component keeps the original reactive object.

Keep text filters as strings and update the existing state when the route query changes. Restore defaults when a filter disappears from the URL and preserve unrelated parameters when editing a control.

The tests exercise deep links, back navigation, subsequent edits, and multi-value query parameters. The component test helper now gives each render a fresh memory history so a filter typed in one test cannot leak into the next one through the browser hash.

@Aminark
Aminark requested a review from a team as a code owner November 28, 2026 14:52
@SteKoe
SteKoe enabled auto-merge (squash) November 28, 2026 21:20
@SteKoe
SteKoe merged commit 8c596b5 into codecentric:master Nov 28, 2026
2 checks passed
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.

2 participants