1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00
Commit graph

710 commits

Author SHA1 Message Date
Lucas Zampieri
b114547d9e
Add PT-BR translations (#739)
* Fixed frontend returning corrupt binary data

* fix(adventure): enhance collection ownership validation in AdventureSerializer (#723)

* Add PT-BR translations

Add translation for Brazilian Portuguese to the project;

Signed-off-by: Lucas Zampieri <lzampier@redhat.com>

---------

Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
Co-authored-by: Sean Morley <98704938+seanmorley15@users.noreply.github.com>
Co-authored-by: Christian Zäske <blitzdose@gmail.com>
2025-07-16 13:54:29 -04:00
Sean Morley
c461f7b105
Import and Export Functionality (#698)
* feat(backup): add BackupViewSet for data export and import functionality

* Fixed frontend returning corrupt binary data

* feat(import): enhance import functionality with confirmation check and improved city/region/country handling

* Potential fix for code scanning alert no. 29: Information exposure through an exception

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Refactor response handling to use arrayBuffer instead of bytes

* Refactor image cleanup command to use LocationImage model and update import/export view to include backup and restore functionality

* Update backup export versioning and improve data restore warning message

* Enhance image navigation and localization support in modal components

* Refactor location handling in Immich integration components for consistency

* Enhance backup and restore functionality with improved localization and error handling

* Improve accessibility by adding 'for' attribute to backup file input label

---------

Co-authored-by: Christian Zäske <blitzdose@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-06-26 10:23:37 -04:00
Sean Morley
493a13995c
Rename Adventures to Locations (#696)
* Refactor user_id to user in adventures and related models, views, and components

- Updated all instances of user_id to user in the adventures app, including models, serializers, views, and frontend components.
- Adjusted queries and filters to reflect the new user field naming convention.
- Ensured consistency across the codebase for user identification in adventures, collections, notes, and transportation entities.
- Modified frontend components to align with the updated data structure, ensuring proper access control and rendering based on user ownership.

* Refactor adventure-related views and components to use "Location" terminology

- Updated GlobalSearchView to replace AdventureSerializer with LocationSerializer.
- Modified IcsCalendarGeneratorViewSet to use LocationSerializer instead of AdventureSerializer.
- Created new LocationImageViewSet for managing location images, including primary image toggling and image deletion.
- Introduced LocationViewSet for managing locations with enhanced filtering, sorting, and sharing capabilities.
- Updated ReverseGeocodeViewSet to utilize LocationSerializer.
- Added ActivityTypesView to retrieve distinct activity types from locations.
- Refactored user views to replace AdventureSerializer with LocationSerializer.
- Updated frontend components to reflect changes from "adventure" to "location", including AdventureCard, AdventureLink, AdventureModal, and others.
- Adjusted API endpoints in frontend routes to align with new location-based structure.
- Ensured all references to adventures are replaced with locations across the codebase.

* refactor: rename adventures to locations across the application

- Updated localization files to replace adventure-related terms with location-related terms.
- Refactored TypeScript types and variables from Adventure to Location in various routes and components.
- Adjusted UI elements and labels to reflect the change from adventures to locations.
- Ensured all references to adventures in the codebase are consistent with the new location terminology.

* Refactor code structure for improved readability and maintainability

* feat: Implement location details page with server-side loading and deletion functionality

- Added +page.server.ts to handle server-side loading of additional location info.
- Created +page.svelte for displaying location details, including images, visits, and maps.
- Integrated GPX file handling and rendering on the map.
- Updated map route to link to locations instead of adventures.
- Refactored profile and search routes to use LocationCard instead of AdventureCard.

* docs: Update terminology from "Adventure" to "Location" and enhance project overview

* docs: Clarify collection examples in usage documentation

* feat: Enable credentials for GPX file fetch and add CORS_ALLOW_CREDENTIALS setting

* Refactor adventure references to locations across the backend and frontend

- Updated CategoryViewSet to reflect location context instead of adventures.
- Modified ChecklistViewSet to include locations in retrieval logic.
- Changed GlobalSearchView to search for locations instead of adventures.
- Adjusted IcsCalendarGeneratorViewSet to handle locations instead of adventures.
- Refactored LocationImageViewSet to remove unused import.
- Updated LocationViewSet to clarify public access for locations.
- Changed LodgingViewSet to reference locations instead of adventures.
- Modified NoteViewSet to prevent listing all locations.
- Updated RecommendationsViewSet to handle locations in parsing and response.
- Adjusted ReverseGeocodeViewSet to search through user locations.
- Updated StatsViewSet to count locations instead of adventures.
- Changed TagsView to reflect activity types for locations.
- Updated TransportationViewSet to reference locations instead of adventures.
- Added new translations for search results related to locations in multiple languages.
- Updated dashboard and profile pages to reflect location counts instead of adventure counts.
- Adjusted search routes to handle locations instead of adventures.

* Update banner image

* style: Update stats component background and border for improved visibility

* refactor: Rename AdventureCard and AdventureModal to LocationCard and LocationModal for consistency
2025-06-25 11:49:34 -04:00
Sean Morley
ed11d29d2e fix(package): add missing pnpm overrides for esbuild in package.json 2025-06-23 17:27:19 -04:00
Sean Morley
b6e5e4abc0 refactor(workflows): simplify trigger paths for backend and frontend workflows
fix(dependencies): add overrides for esbuild in frontend package.json
2025-06-23 17:24:27 -04:00
Ycer0n
0723ad778f
Update nl.json
Fix Dutch translations.
2025-06-23 11:06:24 +02:00
Sean Morley
4bc7f3b6c4 Implement code changes to enhance functionality and improve performance 2025-06-20 09:30:25 -04:00
Sean Morley
7a17e0e1d8 feat(calendar): add markdown rendering for event descriptions in modal 2025-06-19 11:53:24 -04:00
Sean Morley
6516bc56ef refactor(lodging): remove unused icon imports and add comment for check-out date logic 2025-06-19 11:40:04 -04:00
Sean Morley
a6b39f64d6 feat(calendar): add adventure detail link in event modal 2025-06-19 11:37:08 -04:00
Sean Morley
36f9022872 fix(lodging): remove console log and improve all-day event checks in lodging modal 2025-06-19 11:33:04 -04:00
Sean Morley
3b0ccdb6d3 feat(DateRangeCollapse): auto-detect all-day setting for transportation and lodging types 2025-06-18 22:29:37 -04:00
Sean Morley
9964398e25 feat(lodging): add check-in and check-out labels and enhance date handling for lodging events 2025-06-18 22:21:34 -04:00
Sean Morley
df24316837 feat(lodging): improve lodging date handling with all-day event support and timezone adjustments 2025-06-18 21:10:10 -04:00
Sean Morley
63e8e96d52 feat(collections): enhance lodging date handling with timezone support and all-day event formatting 2025-06-18 19:57:23 -04:00
Sean Morley
08cd3912c7 fix(config): correct appVersion string formatting 2025-06-18 19:24:51 -04:00
Sean Morley
eef8c92e82 feat(calendar): enhance event handling with timezone support and filtering capabilities 2025-06-18 19:03:32 -04:00
Sean Morley
8b108c5797 refactor(CollectionAllView): enhance mobile responsiveness and clean up unused imports 2025-06-18 14:28:03 -04:00
Sean Morley
93a489a778 feat: add CollectionAllView component for unified display of adventures, transportations, lodging, notes, and checklists with filtering and sorting capabilities
i18n: update translations for collection contents and sorting options in multiple languages

refactor: replace individual sections for adventures, transportations, lodging, notes, and checklists in the collection page with the new CollectionAllView component
2025-06-18 14:05:39 -04:00
Sean Morley
7ec4e5d0f5 fix(adventure): add collection ID to adventure when creating a new adventure 2025-06-18 10:20:30 -04:00
Sean Morley
930c98a607 fix(geocoding): improve error handling and response validation in search_google function 2025-06-16 11:47:36 -04:00
Sean Morley
cee9345bf1 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.
2025-06-15 18:28:48 -04:00
Sean Morley
ab5082317e Add "invalid_credentials" message to multiple language files
- Updated Spanish (es.json) to include "invalid_credentials": "Credenciales no válidas"
- Updated French (fr.json) to include "invalid_credentials": "Des références non valides"
- Updated Italian (it.json) to include "invalid_credentials": "Credenziali non valide"
- Updated Korean (ko.json) to include "invalid_credentials": "잘못된 자격 증명"
- Updated Dutch (nl.json) to include "invalid_credentials": "Ongeldige referenties"
- Updated Norwegian (no.json) to include "invalid_credentials": "Ugyldig legitimasjon"
- Updated Russian (ru.json) to include "invalid_credentials": "Неверные полномочия"
- Updated Swedish (sv.json) to include "invalid_credentials": "Ogiltiga referenser"
- Updated Chinese (zh.json) to include "invalid_credentials": "无效的凭据"
2025-06-15 12:56:53 -04:00
Sean Morley
c2074c1581 fix(collections): ensure linked collections are sorted correctly after fetching 2025-06-14 22:16:39 -04:00
Sean Morley
977843cbc6 fix(collections): remove debug log for API URL fetching 2025-06-14 22:01:56 -04:00
Sean Morley
b0e8000cf8 Refactor UI components for improved localization and styling
- Updated various headings and text elements to utilize localization functions for better internationalization support.
- Simplified gradient styles in headings to enhance readability.
- Adjusted adventure and travel statistics sections to reflect localized titles and descriptions.
- Enhanced filter options and buttons with localized text for clarity.
- Modified Tailwind CSS configuration to include a new color 'dim' for future styling needs.
2025-06-14 18:55:59 -04:00
Sean Morley
b5931c6c23 refactor(worldtravel): remove insert_id fields from city, country, and region models; update related migration
feat(search): enhance search results display with total results count and improved layout
fix(profile): update achievement levels based on adventure count; remove unused quick actions
refactor(shared): delete unused shared collections route and related components
feat(worldtravel): improve interactive map functionality and layout in world travel detail view
2025-06-14 14:05:30 -04:00
Sean Morley
151c76dbd1 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.
2025-06-14 11:10:59 -04:00
Sean Morley
d4c76f8718 feat(map): implement dynamic basemap URL based on theme; update map styles across components 2025-06-13 23:49:14 -04:00
Sean Morley
badeac867d fix(worldtravel): remove unnecessary hover scale effect on country cards 2025-06-13 21:48:35 -04:00
Sean Morley
a99553ba0d refactor: remove archived collections page and related components; enhance world travel pages with improved UI and filtering options 2025-06-13 21:41:10 -04:00
Sean Morley
14eb4ca802 feat(collections): enhance collections page with sorting, filtering, and pagination features
- Updated the collections loading logic to include sorting and pagination parameters from the URL.
- Refactored the collections page to manage owned, shared, and archived collections with a tabbed interface.
- Added sorting functionality to allow users to sort collections by different attributes.
- Implemented a sidebar for filtering and sorting options.
- Improved the UI for better user experience, including a floating action button for creating new collections.
- Added a not found page for collections that do not exist, enhancing error handling.
2025-06-13 12:11:42 -04:00
Sean Morley
7eb96bcc2a
Merge pull request #663 from seanmorley15/dependabot/npm_and_yarn/frontend/npm_and_yarn-6ea9762674
chore(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /frontend in the npm_and_yarn group across 1 directory
2025-06-13 09:50:39 -04:00
Sean Morley
c60ced09c4
Merge branch 'development' into fix-spanish-translations 2025-06-13 09:48:18 -04:00
Antonio Corrales
05db98f968 fix: correct Spanish translations
- Fix incorrect translations and typos
- Fix inconsistent capitalization
- Keep proper names untranslated (Immich)
- Improve consistency in technical terms translation
- Correct 'Campo de golf' to 'Enlaces' (links)
- Change 'Ahorrar' to 'Guardar' (save)
- Fix various grammatical errors
2025-06-13 09:14:28 +02:00
Sean Morley
3f9a6767bd feat: Enhance Adventure and Collection Management
- Added support for multiple collections in AdventureSerializer, allowing adventures to be linked to multiple collections.
- Implemented validation to ensure collections belong to the current user during adventure creation and updates.
- Introduced a signal to update adventure publicity based on the public status of linked collections.
- Updated file permission checks to consider multiple collections when determining access rights.
- Modified AdventureImageViewSet and AttachmentViewSet to check access against collections instead of a single collection.
- Enhanced AdventureViewSet to support filtering and sorting adventures based on collections.
- Updated frontend components to manage collections more effectively, including linking and unlinking adventures from collections.
- Adjusted API endpoints and data structures to accommodate the new collections feature.
- Improved user experience with appropriate notifications for collection actions.
2025-06-12 15:54:01 -04:00
dependabot[bot]
f6b9802ba7
chore(deps): bump brace-expansion
Bumps the npm_and_yarn group with 1 update in the /frontend directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-12 05:57:26 +00:00
Sean Morley
d9070e68bb
Merge pull request #660 from ShalunBdk/patch-1
Added Russian translation
2025-06-11 19:12:42 -04:00
Sean Morley
f72fb50eb0
Update ru.json 2025-06-11 19:11:23 -04:00
José Luis Cánovas
164627b35b
Update es.json
Modified some translations with more contextual ones.
2025-06-11 17:17:47 +02:00
Александр
3f89fad67f
Update +layout.svelte 2025-06-11 14:59:41 +07:00
Александр
871e265001
Update Navbar.svelte 2025-06-11 14:58:55 +07:00
Александр
2cab28e921
Create ru.json 2025-06-11 14:49:55 +07:00
Sean Morley
19baf6ab35 chore: update version to v0.10.0 across Dockerfiles, package.json, and configuration files; add changelog for v0.10.0 release 2025-06-07 11:14:27 -04:00
Sean Morley
20cdc2405f feat: add alert message in AdventureModal for GPX file tips 2025-06-07 10:58:02 -04:00
Sean Morley
27a27545ca fix: update button styles in CategoryModal for improved UI consistency 2025-06-06 18:39:46 -04:00
Sean Morley
06a5bb06b3 feat: enhance CategoryModal with add/edit functionality and improve localization support 2025-06-06 14:20:37 -04:00
Sean Morley
c0f2d060db fix: update marker colors based on visit status for countries, regions, and cities 2025-06-06 11:00:46 -04:00
Sean Morley
2d7b6c85c9 fix: enhance Navbar component with scroll effect and improve layout responsiveness 2025-06-06 10:21:53 -04:00
Sean Morley
39c664ab1a fix: update Dockerfiles with metadata labels and improve build process 2025-06-05 23:29:39 -04:00