From f53416528c6e2f0269f973fa39a134fd2633b7e0 Mon Sep 17 00:00:00 2001 From: Avi Date: Wed, 26 Aug 2026 14:49:52 -0500 Subject: [PATCH] frontend: remove redundant Profiles sidebar tab The Profiles screen is still reachable via Home's 'Manage profiles' button, so the left-nav Profiles tab was redundant. Dropped the 'profiles' entry from the sidebar NAV_ITEMS and updated App.test.tsx to navigate to the screen via 'Manage profiles' instead. --- frontend/src/components/Sidebar.tsx | 1 - frontend/src/test/App.test.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index cce4bca..5a4aab7 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -9,7 +9,6 @@ import logoUrl from '../assets/logo.png'; const NAV_ITEMS: { id: Screen; label: string; icon: IconName }[] = [ { id: 'home', label: 'Home', icon: 'home' }, { id: 'feed', label: 'Feed', icon: 'list' }, - { id: 'profiles', label: 'Profiles', icon: 'users' }, { id: 'compose', label: 'Compose', icon: 'edit' }, { id: 'relays', label: 'Relays', icon: 'relay' }, { id: 'signer', label: 'Signer', icon: 'key' }, diff --git a/frontend/src/test/App.test.tsx b/frontend/src/test/App.test.tsx index aeb665b..69beb1e 100644 --- a/frontend/src/test/App.test.tsx +++ b/frontend/src/test/App.test.tsx @@ -40,7 +40,7 @@ describe('App', () => { render(); await screen.findByRole('heading', { name: 'Home' }); - await user.click(screen.getByRole('button', { name: 'Profiles' })); + await user.click(screen.getByRole('button', { name: 'Manage profiles' })); await screen.findByRole('heading', { name: 'Profiles' }); const body = document.body.textContent ?? '';