You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes move versions modal state and filters into URL query parameters. Closing the distribution modal now also clears grouping, recent and lowUsage query parameters. The composable replaces local state with route-derived values: grouping is read via useRouteQuery with a transform mapping to major/minor, and showRecentOnly/showLowUsageVersions are backed by a new useBooleanRouteQuery helper that serialises booleans as true/false in the URL.
The PR successfully implements the core requirement from issue #1588: adding URL query parameters (grouping, recent, lowUsage) to the Versions modal, enabling URL stability and state preservation similar to the chart modal.
Out of Scope Changes check
✅ Passed
All changes are directly scoped to the Versions modal feature: modifications to Versions.vue and useVersionDistribution.ts composable remain within the stated objectives of adding query parameters for modal state persistence.
Description check
✅ Passed
The PR description accurately describes the changeset, explaining that query parameters (grouping, recent, lowUsage) are being added to the Versions modal using useRouteQuery to maintain state.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches🧪 Generate unit tests (beta)
Create PR with unit tests
Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
danielroe
changed the title
feat: keep versions modal options in query params (resolves #1612)
fix: keep versions modal options in query params
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
partially resolves #1612
🧭 Context
Other modals have query params for state inside them, so the url is stable.
Versions modale didn't have query params for that!
📚 Description
This PR adds
grouping,recentandlowUsagequery params, using VueuseuseRouteQuerycomposable.Reloading or sharing the url while the Versions modal is open now works :)