Aside state persisted in query params#189
Merged
theosiemensrhodes merged 5 commits intomainfrom Mar 9, 2026
Merged
Conversation
Contributor
Greptile SummaryThis PR persists aside/detail-panel state in the URL via Key issues found:
Confidence Score: 2/5
Last reviewed commit: 45463e4 |
Collaborator
Author
|
@greptile re-review |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Aside (detail panel) state is now persisted in the URL via query parameters. Opening an aside updates the URL, and refreshing the page or sharing the link reopens the same aside.
What changed
Controlled PageLayout
PageLayoutnow supports an optional Radix-style controlled pattern withopen/onOpenChangeprops. When provided, the aside open/close state is driven externally. Pages without asides are unaffected.Classes page (
?classId=)Clicking a class adds
?classId=xxxto the URL. On load, if the param is present, the aside opens and the correct term is automatically selected.Schedule page (
?shiftId=)Clicking a shift adds
?shiftId=xxxto the URL. On load, the aside opens and the view navigates to the shift's month so it appears in the list/calendar.Coverage page (
?coverageId=)Clicking a coverage request adds
?coverageId=xxxto the URL. A newcoverage.byIdbackend route was added so the aside can fetch its data independently (previously it read from the in-memory list). Next/prev navigation updates the URL param accordingly.Calendar view fix
The calendar view now respects
selectedDateon initial render, fixing an issue where switching from list to week view would reset the visible date.