feat: Enhance CollectionLink component with search functionality and statistics display

- Implemented search functionality to filter collections based on user input.
- Added statistics display for linked collections and total collections.
- Updated modal layout for better user experience, including a search bar and clear filters option.
- Improved accessibility and visual design of the modal and its components.

refactor: Update localization files for multiple languages

- Removed outdated delete collection warning messages.
- Added new keys for adventures available, collections linked, and other relevant phrases in various languages.
- Ensured consistency across localization files for better user experience.

fix: Adjust styles in worldtravel and collections pages

- Updated styles for quick stats section in worldtravel page for improved visibility.
- Ensured proper handling of sorting parameters in collections page navigation.
This commit is contained in:
Sean Morley
2025-06-15 18:28:48 -04:00
parent ced1f94473
commit cee9345bf1
16 changed files with 560 additions and 73 deletions

View File

@@ -82,6 +82,8 @@
url.searchParams.set('order_direction', direction);
url.searchParams.set('page', '1'); // Reset to first page when sorting changes
currentPage = 1;
orderBy = by;
orderDirection = direction;
await goto(url.toString(), { invalidateAll: true, replaceState: true });
if (data.props.adventures) {
collections = data.props.adventures;

View File

@@ -123,7 +123,7 @@
<!-- Quick Stats -->
<div class="hidden md:flex items-center gap-2">
<div class="stats stats-horizontal bg-base-100 shadow-lg">
<div class="stats stats-horizontal bg-base-200/50 border border-base-300/50">
<div class="stat py-2 px-4">
<div class="stat-title text-xs">{$t('adventures.visited')}</div>
<div class="stat-value text-lg text-success">{visitedCountries}</div>