Repository navigation
Conversation
- Fade and settle page content on navigation (PageTransition), skipped for first load, same-page visits, keyboard-driven navigation and sibling settings pages. - Highlight the destination in sidebar and settings navs as soon as a GET visit starts. - Transition sidebar button background and text color.
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.
What
Navigating between dashboard pages swapped content with no motion, and the sidebar only highlighted the destination after the server responded, so clicks felt unacknowledged.
Accounts.-.Shoutrrr.-.Aside.Window.2026-11-28.08.14.PM.mp4
Changes
PageTransition): on a page change the content fades in and settles 8px from above (260ms,cubic-bezier(0.23, 1, 0.32, 1)). It uses WAAPI on the existing element instead of a keyed remount, so component state and focus are kept.prefers-reduced-motion(fade only, no movement).useCurrentUrltracks the in-flight GET visit, so the sidebar and settings navs highlight the destination as soon as it is clicked. Partial reloads and non-GET visits are ignored; the real page URL takes over when the visit finishes.background-colorandcolor.progress: false).Notes for review
mainisoverflow-x-hidden, which makes it a scroll container on both axes, so a downwardtranslateY(even 4px) overflows it and flashes a scrollbar that shifts the layout by ~15px. There is a one-line comment atPAGE_ENTER_OFFSET_PX.Testing
tsc --noEmit,oxlintandoxfmt --check: clean.lib/navigation/__tests__/page-transition.test.ts): 15 tests inlib/navigationpass.opacity: 0andtranslateY(-8px), andmainhas no vertical overflow (no scrollbar flash).vitestrun: 967 of 969 pass. The 2 failures are unrelated to this change:inertia-cache-policyhit its 5s timeout on a slow bind mount (no offending code found), andbuild-feedback-payloadexpectsapplication/jsonbut getsapplication/json;charset=utf-8.