From 1ca5ca108a88a701cf93dd8a7decba292f718028 Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Sun, 10 May 2026 14:41:46 +0000 Subject: [PATCH] Header: consolidate My Account/Profile into one link; group 9 admin tools into TOOLS dropdown Top-bar nav changes: - Authenticated user previously saw two separate links 'My Account' (-> /account) and 'My Profile' (-> /profile/{userId}). Replaced with a single 'My Profile' link -> /account. - Admin block previously rendered 14 inline links (WP Import, Articles, Editorial, Users, Analytics, Audit Log, Notifications, Newsletter, Forum Seed, Company Tracker, Show Calendar, AI Console, Banned Terms, Dashboard) which sprawled horizontally past the available width. 9 of those are now grouped under a single TOOLS hover dropdown matching the existing NEWS/GEAR/SHOW COVERAGE/TECHNOLOGY pattern (Tailwind group-hover + group-focus-within for keyboard accessibility, role=menu / menuitem, aria-haspopup=true). - Inline admin links retained per spec: WP Import, Articles, Editorial, Newsletter. - TOOLS submenu: Users, Analytics, Audit Log, Notifications, Forum Seed, Company Tracker, Show Calendar, AI Console, Banned Terms. The whole admin tier (inline + dropdown) remains gated by the existing isAdmin check, so anonymous and non-admin users see nothing. --- src/components/Header.tsx | 65 ++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 35 deletions(-) diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 84f99b0..bf0604c 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -275,14 +275,9 @@ export default function Header() { )} {currentUserId && ( - <> - - My Account - - - My Profile - - + + My Profile + )} {isAdmin && ( <> @@ -295,36 +290,36 @@ export default function Header() { Editorial - - Users - - - Analytics - - - Audit Log - - - Notifications - Newsletter - - Forum Seed - - - Company Tracker - - - Show Calendar - - - AI Console - - - Banned Terms - + + {/* TOOLS dropdown — admin tools consolidated */} +
+ +
+ Users + Analytics + Audit Log + Notifications + Forum Seed + Company Tracker + Show Calendar + AI Console + Banned Terms +
+
Dashboard