Skip to content

feat(site): add a history entry when a filter value is chosen, and restore the view on Back and Forward - #321

Merged
Mearman merged 2 commits into
mainfrom
feat/site-filters-history
Nov 11, 2026
Merged

Mearman merged 2 commits into
mainfrom
feat/site-filters-history

Conversation

@Mearman

@Mearman Mearman commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Choosing or clearing a value in a filter dropdown now adds a history entry, so Back returns to the view before the change and Forward re-applies it. A popstate rebuilds the filters from the address, and when the address already shows the view nothing is written, so Back and Forward do not push entries of their own.

Typing in the search box and the entity bounds still rewrites the current entry. Without that, one typed query would leave an entry per keystroke.

The e2e test picks a kind and expects one new entry, types a search and expects no more, then goes Back and expects the unfiltered view with the same count, and Forward and expects the kind and the search restored.

…store the view on Back

Choosing or clearing a value in a dropdown pushes an entry; typing in the
search box or the entity bounds still rewrites the current one so a query is
not one entry per keystroke. A popstate rebuilds the filters from the URL.
@Mearman
Mearman force-pushed the feat/site-filters-history branch from 047e68c to b3899d3 Compare November 11, 2026 08:18
@Mearman
Mearman merged commit bf1184d into main Nov 11, 2026
10 checks passed
@Mearman
Mearman deleted the feat/site-filters-history branch November 11, 2026 08:20
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.136.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant