From 151c76dbd115e56b04e7bf0f9b1d755c2adc94b7 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Sat, 14 Jun 2025 11:10:59 -0400 Subject: [PATCH] Enhance user profile and world travel pages with improved UI and functionality - Updated user profile page to include achievement calculations and enhanced styling for user information and statistics. - Added icons for better visual representation of user stats and achievements. - Improved layout for displaying adventures and collections with conditional rendering for empty states. - Refactored world travel page to include search and filter functionality for cities, with a sidebar for progress and stats. - Implemented completion percentage and progress bars for visited cities. - Enhanced map integration with markers for visited and not visited cities, including toggle options for map labels. --- .../src/lib/components/AdventureModal.svelte | 3 +- frontend/src/lib/components/Avatar.svelte | 188 +++++- frontend/src/lib/components/Navbar.svelte | 414 ++++++------- frontend/src/locales/de.json | 137 +---- frontend/src/locales/en.json | 128 +--- frontend/src/locales/es.json | 135 +---- frontend/src/locales/fr.json | 137 +---- frontend/src/locales/it.json | 137 +---- frontend/src/locales/ko.json | 139 +---- frontend/src/locales/nl.json | 137 +---- frontend/src/locales/no.json | 139 +---- frontend/src/locales/pl.json | 137 +---- frontend/src/locales/ru.json | 139 +---- frontend/src/locales/sv.json | 137 +---- frontend/src/locales/zh.json | 137 +---- frontend/src/routes/+page.svelte | 482 +++++++++++---- frontend/src/routes/adventures/+page.svelte | 8 +- frontend/src/routes/dashboard/+page.svelte | 360 ++++++++---- frontend/src/routes/map/+page.svelte | 547 +++++++++++++----- .../src/routes/profile/[uuid]/+page.svelte | 538 ++++++++++++----- .../routes/worldtravel/[id]/[id]/+page.svelte | 491 ++++++++++++---- 21 files changed, 2209 insertions(+), 2461 deletions(-) diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index 4c2e07a..c097871 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -10,7 +10,6 @@ let fullEndDate: string = ''; let fullStartDateOnly: string = ''; let fullEndDateOnly: string = ''; - let allDay: boolean = true; // Set full start and end dates from collection if (collection && collection.start_date && collection.end_date) { @@ -626,7 +625,7 @@

{wikiError}

- {#if adventure.collections && adventure.collections.length == 0} + {#if !adventureToEdit || (adventureToEdit.collections && adventureToEdit.collections.length === 0)}