From 7a02ea364ff9b5e8d26f95c485f65d16fe1ae6e5 Mon Sep 17 00:00:00 2001 From: Yves Gugger Date: Fri, 12 Dec 2025 06:52:42 +0100 Subject: [PATCH] feat(watchlist): add tabs for Watching vs My Portfolio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Sidebar: treat Portfolio as sub-view of WATCHLIST instead of separate nav item - WATCHLIST header: add tab switcher (Watching ↔ My Portfolio) to match Terminal concept - PORTFOLIO header: mirror the same tabs so users can jump back to Watchlist --- frontend/src/app/terminal/portfolio/page.tsx | 50 +++++++++++++++----- frontend/src/app/terminal/watchlist/page.tsx | 49 ++++++++++++++----- frontend/src/components/Sidebar.tsx | 6 --- 3 files changed, 76 insertions(+), 29 deletions(-) diff --git a/frontend/src/app/terminal/portfolio/page.tsx b/frontend/src/app/terminal/portfolio/page.tsx index 39b6dbb..7c881f4 100644 --- a/frontend/src/app/terminal/portfolio/page.tsx +++ b/frontend/src/app/terminal/portfolio/page.tsx @@ -392,21 +392,47 @@ export default function PortfolioPage() {

Portfolio

- Track your domain investments, valuations, and ROI. Your personal domain asset manager. + Track your owned domains, valuations, and ROI. Switch back to your Watchlist anytime.

- {canUsePortfolio && ( - - )} +
+ {/* View Tabs: Watching vs My Portfolio */} +
+ + + Watching + + +
+ + {canUsePortfolio && ( + + )} +
{/* Messages */} diff --git a/frontend/src/app/terminal/watchlist/page.tsx b/frontend/src/app/terminal/watchlist/page.tsx index 511a03e..c613afa 100755 --- a/frontend/src/app/terminal/watchlist/page.tsx +++ b/frontend/src/app/terminal/watchlist/page.tsx @@ -376,21 +376,48 @@ export default function WatchlistPage() {

Watchlist

- Monitor availability, health, and expiration dates for your tracked domains. + Monitor external domains you care about and manage your own portfolio in one place.

- {/* Quick Stats Pills */} -
- {stats.available > 0 && ( -
- - {stats.available} Available! + {/* Tabs + Quick Stats */} +
+ {/* View Tabs: Watching vs My Portfolio */} +
+ + + Watching + + + + My Portfolio +
- )} -
- - Auto-Monitoring + + {/* Quick Stats Pills */} +
+ {stats.available > 0 && ( +
+ + {stats.available} Available! +
+ )} +
+ + Auto-Monitoring +
diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 2df82f4..497ec18 100755 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -106,12 +106,6 @@ export function Sidebar({ collapsed: controlledCollapsed, onCollapsedChange }: S icon: Eye, badge: availableCount || null, }, - { - href: '/terminal/portfolio', - label: 'PORTFOLIO', - icon: Briefcase, - badge: null, - }, { href: '/terminal/listing', label: 'FOR SALE',