feat(nav): remove Mitglieder link from desktop sidebar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #55.
This commit is contained in:
2026-04-10 17:32:37 +02:00
parent 5904102b1a
commit 27163e3d72
4 changed files with 8 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ describe('AppShell', () => {
it('renders all navigation links from all nav variants', () => { it('renders all navigation links from all nav variants', () => {
render(AppShell, { props: defaultProps }); render(AppShell, { props: defaultProps });
const links = screen.getAllByRole('link'); const links = screen.getAllByRole('link');
// Mobile: 4, Tablet: 4, Desktop: 5 = 13 total // Mobile: 4, Tablet: 4, Desktop: 4 = 12 total
expect(links).toHaveLength(13); expect(links).toHaveLength(12);
}); });
}); });

View File

@@ -28,17 +28,17 @@ describe('DesktopSidebar', () => {
expect(screen.getByText('Einkauf')).toBeInTheDocument(); expect(screen.getByText('Einkauf')).toBeInTheDocument();
}); });
it('renders Household section with 2 items', () => { it('renders Household section with Einstellungen', () => {
render(DesktopSidebar, { props: { appName: 'Mealprep', householdName: 'Familie Müller' } }); render(DesktopSidebar, { props: { appName: 'Mealprep', householdName: 'Familie Müller' } });
expect(screen.getByText('Haushalt')).toBeInTheDocument(); expect(screen.getByText('Haushalt')).toBeInTheDocument();
expect(screen.getByText('Mitglieder')).toBeInTheDocument();
expect(screen.getByText('Einstellungen')).toBeInTheDocument(); expect(screen.getByText('Einstellungen')).toBeInTheDocument();
expect(screen.queryByText('Mitglieder')).not.toBeInTheDocument();
}); });
it('has 5 navigation links total', () => { it('has 4 navigation links total', () => {
render(DesktopSidebar, { props: { appName: 'Mealprep', householdName: 'Familie Müller' } }); render(DesktopSidebar, { props: { appName: 'Mealprep', householdName: 'Familie Müller' } });
const links = screen.getAllByRole('link'); const links = screen.getAllByRole('link');
expect(links).toHaveLength(5); expect(links).toHaveLength(4);
}); });
it('marks active item with aria-current="page"', () => { it('marks active item with aria-current="page"', () => {

View File

@@ -34,9 +34,9 @@ describe('nav config', () => {
expect(labels).toEqual(['Planer', 'Rezepte', 'Einkauf']); expect(labels).toEqual(['Planer', 'Rezepte', 'Einkauf']);
}); });
it('Household section has Members, Settings', () => { it('Household section has Settings', () => {
const labels = desktopNavSections[1].items.map((item) => item.label); const labels = desktopNavSections[1].items.map((item) => item.label);
expect(labels).toEqual(['Mitglieder', 'Einstellungen']); expect(labels).toEqual(['Einstellungen']);
}); });
}); });

View File

@@ -37,7 +37,6 @@ export const desktopNavSections: NavSection[] = [
{ {
title: 'Haushalt', title: 'Haushalt',
items: [ items: [
{ href: '/members', label: 'Mitglieder', icon: '👥' },
{ href: '/settings', label: 'Einstellungen', icon: '⚙️', extraPaths: ['/household/staples'] } { href: '/settings', label: 'Einstellungen', icon: '⚙️', extraPaths: ['/household/staples'] }
] ]
} }