From 1aae9882d0b38c5c37d5c2e5d64c640410f3047a Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Thu, 5 Feb 2026 12:11:58 -0800 Subject: [PATCH] feat(nav): remove Get Discovered tab from navigation - Remove "Get Discovered" NavItem from Header navigation - Redirect /app/website and /app/website-data routes to /app/settings to preserve bookmarks - Remove unused WebsiteDataPage import from App.tsx - Discovery functionality is now integrated into Profile/Menu publish flows and the Account page Closes #295 Co-authored-by: Cursor --- client/src/App.tsx | 6 +++--- client/src/components/Header.tsx | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 9acf7e8..83fbec4 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -8,7 +8,6 @@ import { ReservationsPage } from "@/pages/Reservations"; import { TestHarnessPage } from "@/pages/TestHarness"; import { LandingPage } from "@/pages/Landing"; import { SquareCallbackPage } from "@/pages/SquareCallback"; -import { WebsiteDataPage } from "@/pages/WebsiteData"; import { MenuPage } from "@/pages/Menu"; function ProtectedApp(): JSX.Element { @@ -35,8 +34,9 @@ export function App(): JSX.Element { } /> } /> } /> - } /> - } /> + {/* WebsiteData page merged into Account - redirect for bookmarks */} + } /> + } /> {import.meta.env.DEV && ( } /> )} diff --git a/client/src/components/Header.tsx b/client/src/components/Header.tsx index 8470510..627d32d 100644 --- a/client/src/components/Header.tsx +++ b/client/src/components/Header.tsx @@ -41,11 +41,7 @@ function NavItem({ to, label, isComplete }: NavItemProps): JSX.Element { export function Header(): JSX.Element { const profilePublished = useOnboardingProgress((state) => state.profilePublished); const menuPublished = useOnboardingProgress((state) => state.menuPublished); - const discoveryPageUrl = useOnboardingProgress((state) => state.discoveryPageUrl); const restaurantName = useOnboardingProgress((state) => state.restaurantName); - - // Discovery is considered published when we have a URL - const discoveryPublished = discoveryPageUrl !== null; return (
@@ -87,11 +83,6 @@ export function Header(): JSX.Element { Reservations )} - {import.meta.env.DEV && (