diff --git a/.gitignore b/.gitignore index bfaa629a..14638f00 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ client/public/icons/*.png # User data server/data/* -!server/data/airports.json server/uploads/ # Environment diff --git a/client/src/pages/DashboardPage.test.tsx b/client/src/pages/DashboardPage.test.tsx index 5effca39..4aac3121 100644 --- a/client/src/pages/DashboardPage.test.tsx +++ b/client/src/pages/DashboardPage.test.tsx @@ -416,15 +416,10 @@ describe('DashboardPage', () => { expect(screen.getAllByText('Paris Adventure').length).toBeGreaterThan(0); }); - // Find settings button — it's the gear icon button without title or text + // Find settings button — the gear icon button (icon-only, no visible label) const allBtns = screen.getAllByRole('button'); - const settingsButton = allBtns.find( - btn => { - const title = btn.getAttribute('title'); - const text = btn.textContent?.trim() || ''; - // Settings gear: no title, no meaningful text, not the notification bell - return !title && !text && btn.querySelector('.lucide-settings'); - } + const settingsButton = allBtns.find(btn => + btn.querySelector('.lucide-settings') && !btn.textContent?.trim() ); expect(settingsButton).toBeDefined(); @@ -646,14 +641,10 @@ describe('DashboardPage', () => { expect(screen.getAllByText('Paris Adventure').length).toBeGreaterThan(0); }); - // Open widget settings + // Open widget settings — gear icon button (icon-only, no visible label) const allBtns = screen.getAllByRole('button'); - const settingsButton = allBtns.find( - btn => { - const title = btn.getAttribute('title'); - const text = btn.textContent?.trim() || ''; - return !title && !text && btn.querySelector('.lucide-settings'); - } + const settingsButton = allBtns.find(btn => + btn.querySelector('.lucide-settings') && !btn.textContent?.trim() ); expect(settingsButton).toBeDefined(); diff --git a/client/src/pages/DashboardPage.tsx b/client/src/pages/DashboardPage.tsx index 96c8375f..47063034 100644 --- a/client/src/pages/DashboardPage.tsx +++ b/client/src/pages/DashboardPage.tsx @@ -897,61 +897,76 @@ export default function DashboardPage(): React.ReactElement { - {/* Desktop header */} -
+ {/* Desktop header — unified toolbar */} +
{t("journey.frontpage.subtitle")}
-{t('vacay.subtitle')}
-