From 21649d3cf05380354950faab8b0e699ceb5a4428 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 18 Apr 2026 01:08:02 +0200 Subject: [PATCH] feat(dashboard): unify desktop header with the planner toolbar style Brings the dashboard header in line with the Bookings/Lists/Budget/Files toolbars: a single rounded bg-tertiary bar that groups the title, the active/archived trip counters, and the view-toggle + widgets + new-trip actions. Added a border and light shadow so the bar stands out against the dashboard background in both light and dark mode. Mobile header is untouched. --- client/src/pages/DashboardPage.tsx | 119 ++++++++++++++++------------- 1 file changed, 67 insertions(+), 52 deletions(-) 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 */} -
-
-

{t('dashboard.title')}

-

+ {/* Desktop header — unified toolbar */} +

+
+

+ {t('dashboard.title')} +

+
+ {isLoading ? t('common.loading') : trips.length > 0 ? `${t(trips.length !== 1 ? 'dashboard.subtitle.activeMany' : 'dashboard.subtitle.activeOne', { count: trips.length })}${archivedTrips.length > 0 ? t('dashboard.subtitle.archivedSuffix', { count: archivedTrips.length }) : ''}` : t('dashboard.subtitle.empty')} -

-
-
- {/* View mode toggle */} - - {/* Widget settings */} - - {can('trip_create') && } + + +
+ + + {can('trip_create') && ( + + )} +