feat(client): calm page changes on the desktop and sections loaded ahead

The desktop now runs the View Transition the phone already had: one short cross-fade under a navbar that stands still. The route fallback holds the previous page until the new one is ready (at most 350 ms), so the full-screen spinner no longer flashes. Once signed in, the main sections' code loads in the background, so the first switch to one does not wait for it. The shared transition helpers move to utils/viewTransition.ts. The navbar tabs lose their title tooltips; their aria-label stays.
This commit is contained in:
Maurice
2026-11-29 10:04:14 +01:00
parent f8a7d674f9
commit 7e3ce20e6b
7 changed files with 193 additions and 66 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ export default function Navbar({ tripTitle, tripId, onBack, showBack, onSettings
const isActive = location.pathname === tab.path
return (
<Link key={tab.id} to={tab.path}
title={tab.label} aria-label={tab.label}
aria-label={tab.label}
className="flex items-center gap-1.5 whitespace-nowrap transition-colors"
style={{
padding: '5px 16px', borderRadius: 9, fontSize: 'calc(13.5px * var(--fs-scale-body, 1))', fontWeight: 500,