From 94fbd017cb58eceaee70d358cd465adec12449e1 Mon Sep 17 00:00:00 2001 From: AI Agent Date: Tue, 24 Feb 2026 22:19:31 +0000 Subject: [PATCH 1/2] trips) refresh dashboard header and map --- e2e/dashboard.test.ts | 3 + src/routes/(protected)/dashboard/+page.svelte | 63 +- static/world-map.svg | 855 ++++++++++++++++++ 3 files changed, 876 insertions(+), 45 deletions(-) create mode 100644 static/world-map.svg diff --git a/e2e/dashboard.test.ts b/e2e/dashboard.test.ts index 66ea581..225eaf1 100644 --- a/e2e/dashboard.test.ts +++ b/e2e/dashboard.test.ts @@ -32,6 +32,7 @@ test.beforeEach(async ({ context }) => { }); test('dashboard surfaces map stops, stats, and trip status', async ({ page }) => { + const screenshotPath = test.info().outputPath('dashboard.png'); const suffix = uniqueSuffix(); const pastStart = formatDate(-18); const pastEnd = formatDate(-15); @@ -72,4 +73,6 @@ test('dashboard surfaces map stops, stats, and trip status', async ({ page }) => await expect(page.getByTestId('stat-past-trips')).toHaveText('1'); await expect(page.getByTestId('stat-countries')).toHaveText('1'); + + await page.screenshot({ path: screenshotPath, fullPage: true }); }); diff --git a/src/routes/(protected)/dashboard/+page.svelte b/src/routes/(protected)/dashboard/+page.svelte index 97c587c..5276a85 100644 --- a/src/routes/(protected)/dashboard/+page.svelte +++ b/src/routes/(protected)/dashboard/+page.svelte @@ -79,26 +79,16 @@ Dashboard — Trips - - -
-
-
-
-
-

Overview

-

Dashboard

-

- Welcome back, {data.session.user?.name ?? data.session.user?.email}. Here’s a quick pulse on - your travel story. -

-
+
+

Overview

+

Dashboard

+

+ Welcome back, {data.session.user?.name ?? data.session.user?.email}. Here’s a quick pulse on your + travel story. +

@@ -106,23 +96,15 @@ class="relative overflow-hidden rounded-3xl border border-slate-200 bg-slate-950/90 p-6 text-white" data-testid="trip-map" > -
-
-
-
+
+
+ - - - - - - - - + />
@@ -325,24 +307,15 @@