Skip to content

Redirect / to the gallery; delete the roadmap - #54

Merged
dauglyon merged 5 commits into
mainfrom
fix/no-roadmap-landing
Sep 24, 2026
Merged

dauglyon merged 5 commits into
mainfrom
fix/no-roadmap-landing

Conversation

@dauglyon

@dauglyon dauglyon commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Signing in falls back to / when there is no other destination: the default nextRequest in src/routes/login/continue.tsx, safeRedirect's fallback, and the login page's "Continue to KBase" link. / rendered the roadmap for a signed-in user.

  • The / route throws Route.redirect({ to: '/portals' }) from its own beforeLoad, for everyone.
  • / is in the root gate's public routes, so the gate makes no /me or /token request for it.
  • The roadmap page and its .page-hero styles are deleted.
  • The sidebar's Roadmap icon is removed.

Checks

npm run lint, npm run format:check, npm run typecheck, npm run build (no route-tree diff), npx vitest run --dir src: exit 0, 236 tests. index.test.tsx checks that a signed-in user on / ends on /portals; __root.test.tsx checks the signed-out case and that / makes no /token request.

Every sign-in path that falls back to '/' landed on the roadmap. The '/'
route now redirects to /portals for everyone; the roadmap component is
kept, and its sidebar icon is removed.
The root route's beforeLoad runs before the index route's, so a
signed-in visitor fetched /me and /token before the index redirect.
The redirect now runs first in the root gate. The roadmap moves to
src/routes/-roadmap.tsx, which the router plugin's '-' ignore prefix
keeps out of the route tree.
redirect() belongs in the beforeLoad of the route being redirected. The
root gate treats / as public and no longer redirects it.
@dauglyon dauglyon changed the title Redirect / to the gallery for signed-in users too Redirect / to the gallery; delete the roadmap Sep 24, 2026
@dauglyon
dauglyon merged commit 20e61b9 into main Sep 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant