Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/remove-legacy-register-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dashboard": patch
---

Removed the legacy session-aware `/register` compatibility flow. Stale links now redirect directly to `/sign-up`.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* CenteredPage — the shell for full-viewport, standalone pages rendered outside
* the main app layout: auth (login/register/signup), demo redirects, access
* the main app layout: auth (login/signup), demo redirects, access
* requests, not-found, policy acknowledgements.
*
* These already share two shells; this names them as the canonical choice so a
Expand Down
104 changes: 0 additions & 104 deletions client/dashboard/src/pages/login/Register.test.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions client/dashboard/src/pages/login/Register.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cn } from "@/lib/utils";

// Legal footer shared by every auth surface (login/register shell and the
// Legal footer shared by every auth surface (login/signup shell and the
// demo-gate AuthLayout) so the links and copy stay in one place.
export function TermsFooter({
className,
Expand Down
5 changes: 2 additions & 3 deletions client/dashboard/src/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Icon, IconProps } from "@/components/ui/Icon";
import { IconName } from "@/components/ui/Icon/names";
import React, { useMemo } from "react";
import { Link, useLocation, useNavigate } from "react-router";
import { Link, Navigate, useLocation, useNavigate } from "react-router";
import { ReleaseStage } from "./components/release-stage-badge";
import { useSlugs } from "./contexts/Sdk";
import { cn } from "./lib/utils";
Expand Down Expand Up @@ -42,7 +42,6 @@ import Home from "./pages/home/Home";
import { ProjectGuidePage } from "./components/project-guide/ProjectGuidePage";
import Integrations from "./pages/integrations/Integrations";
import Login from "./pages/login/Login";
import Register from "./pages/login/Register";
import ExploreDemo from "./pages/demo/ExploreDemo";
import SignUp from "./pages/login/SignUp";
import { LogsRoot } from "./pages/logs/Logs";
Expand Down Expand Up @@ -236,7 +235,7 @@ const ROUTE_STRUCTURE = {
register: {
title: "Register",
url: "/register",
component: Register,
component: () => <Navigate to="/sign-up" replace />,
unauthenticated: true,
},
exploreDemo: {
Expand Down
Loading