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

334 commits

Author SHA1 Message Date
Sean Morley
330fabb3e0 Fix validation in Lodging model to check check-in and check-out dates; update LodgingCard to conditionally display timezone 2025-05-10 13:17:01 -04:00
Sean Morley
1323d91e32 Add timezone support for visits, transportation, and lodging
- Introduced TIMEZONES constant in models.py to store valid timezone options.
- Updated Visit, Transportation, and Lodging models to include timezone fields.
- Modified serializers to include timezone fields in VisitSerializer, TransportationSerializer, and LodgingSerializer.
- Enhanced DateRangeCollapse component to handle timezone selection and formatting.
- Implemented timezone formatting functions in LodgingCard and TransportationCard components.
- Updated LodgingModal and TransportationModal to bind timezone data.
- Added VALID_TIMEZONES to dateUtils for consistent timezone management across the application.
2025-05-10 11:59:56 -04:00
Sean Morley
b30d6df964 Enhance timezone handling in AdventureModal and DateRangeCollapse components; add support for departure and arrival timezones in the TimezoneSelector and update localization for new timezone labels. 2025-05-10 10:47:00 -04:00
Sean Morley
89c4f1058a Fix date formatting for constraint dates in DateRangeCollapse component 2025-05-09 23:33:58 -04:00
Sean Morley
13bc748d0d Merge branch 'development' of github.com:seanmorley15/AdventureLog into development 2025-05-09 23:27:54 -04:00
Sean Morley
c6177c5a05 Refactor DateRangeCollapse component layout and improve styling 2025-05-09 23:27:53 -04:00
Sean Morley
e9c333642f
Merge pull request #589 from lkiesow/sm-hide-al
Move hiding AdventureLog to first Tailwind breakpoint
2025-05-09 23:13:08 -04:00
Sean Morley
a91018d792
Merge pull request #572 from lkiesow/theme-picker
Harmonize language and theme picker interface
2025-05-09 21:32:47 -04:00
Sean Morley
73c664e549
Merge pull request #569 from lkiesow/note-preview
Show Note Preview on Card
2025-05-09 21:29:51 -04:00
Sean Morley
5e1f17fe2e
Merge pull request #591 from lkiesow/menu-text-size
Adjust main menu font size
2025-05-09 21:27:44 -04:00
Sean Morley
ab12a2e7d8
Merge pull request #588 from lkiesow/collection-card-width
Unify collection card width
2025-05-09 21:19:20 -04:00
Sean Morley
04f9227ae6 Add default category icon and improve visit display:
- Set default icon for empty category in AdventureModal
- Enhance layout for visit buttons and validation messages in DateRangeCollapse
- Update localization files to include "no visits" strings in multiple languages
2025-05-09 21:17:11 -04:00
Sean Morley
3caebd37dd Add additional localization strings for itinerary features in Polish, Swedish, and Chinese
- Added "additional_info", "invalid_date_range", "sunrise_sunset", and "timezone" keys to pl.json, sv.json, and zh.json.
- Updated existing strings for consistency across languages.
2025-05-09 15:59:48 -04:00
Sean Morley
2c50ca0b1a Refactor date handling components: Replace DateRangeDropdown with DateRangeCollapse
- Introduced DateRangeCollapse.svelte to manage date range selection with timezone support.
- Removed DateRangeDropdown.svelte as it was redundant.
- Updated LodgingModal and TransportationModal to utilize DateRangeCollapse for date selection.
- Enhanced date conversion utilities to handle all-day events correctly.
- Adjusted TimezoneSelector for improved accessibility and focus management.
- Updated date handling logic in dateUtils.ts to support all-day events.
- Modified test page to reflect changes in date range component usage.
2025-05-09 10:24:29 -04:00
Sean Morley
827b150965 Merge branch 'development' of github.com:seanmorley15/AdventureLog into development 2025-05-06 14:38:33 -04:00
Sean Morley
7442bd70cd Update version to 0.9.0, add DateRangeDropdown component, enhance LodgingModal with price step, and add invalid date range message 2025-05-06 14:38:31 -04:00
Lars Kiesow
5f7bf52758
Adjust main menu font size
This patch slightly adjusts the font size of list items in the main
menu. I probably wouldn't mind making it even a bit bigger, but that's
probably worth a separate discussion.

Reasons for this adjustment:

1. Don't use different font sizes in the same lement.
   While the buttons rendered at 14px, the search text rendered at 16px.
   They should have the same font-size.

2. The buttons were below the base text size controlled by Tailwind CSS.
   This means, it also puts the font size below the recommended
   font-size for mobile devices (Google/Apple guidelines). This patch
   puts them at the base level.
2025-04-27 16:08:03 +02:00
Lars Kiesow
911ce67d9f
Remove Invisible MapMarker
This patch removes the map marker from the adventures list item of the
main menu dropdown. It is not being rendered and given that all other
elements do not have an icon, it is probably a remnant of old code and
left by accident.
2025-04-27 16:03:16 +02:00
Lars Kiesow
932036bc8b
Move hiding AdventureLog to first Tailwind breakpoint
This is a slight improvement to pull request #576. I noticed that on a
tablet, the AdventureLog in the navigation bar would not render, even
though there would be enpugh free space. This patch moves the breakpoint
for hiding the text one step further towards smaller devices.
2025-04-27 15:41:43 +02:00
Lars Kiesow
cd494fefee Unify collection card width
The width of collection cards can vary quite a bit. Additionally, the
cards look different than the cards within a collection. It would be
nice if the design would be more or leyy the same for all of them.

This patch adjusts the collection card design by adapting the classes
from the cards within the collection (I literally just copied the
classes from ChecklistCard). This is another step in making the user
interface more homogeneous.
2025-04-27 15:30:12 +02:00
Lars Kiesow
3a8776c000
Show AdventureLog icon instead of text in mobile mode
This patch makes AdventureLog hide the text but show the app icon in
the navigation bar when in mobile mode.
2025-04-25 15:56:30 +02:00
Lars Kiesow
b8aa96b5b3
Improve overlapping on navbar on mobile devices
This patch makes it less likely for elements of the navigation bar to
overlap each other on mobile devices. It also makes spacing a bit more
homogeneous.

The patch basically just adjust some spacing as and hides the map icon
on mobile devices.
2025-04-25 15:56:20 +02:00
Sean Morley
85b4db87ec refactor: Simplify date handling by replacing updateLocalDates and updateUTCDates with updateLocalDate and updateUTCDate functions 2025-04-19 21:53:17 -04:00
Sean Morley
c12f94855d feat: Refactor date handling in TransportationModal and add utility functions for date conversion and validation 2025-04-19 21:44:40 -04:00
Sean Morley
6942f5e1bb feat: Add TimezoneSelector component and integrate Luxon for date handling 2025-04-18 23:06:36 -04:00
Sean Morley
233d2be63f
Merge pull request #574 from lkiesow/transportation-card-badges
Prevent UI overlaps in transportation card
2025-04-18 11:49:52 -04:00
Lars Kiesow
ea85c5fc5a Prevent UI overlaps in transportation card
Similar to #552 (658764f) the card title and badges of the
transportation card can overlap. This patch adjusts the transportation
card to list the badges below the title similar to the other cards.
2025-04-18 00:22:50 +02:00
Lars Kiesow
9a825e56e4 Harmonize language and theme picker interface
This patch adjusts the theme picker to more look and feel like the
language picker right next to it.
2025-04-16 00:45:29 +02:00
Lars Kiesow
44a260b5b6 Show Note preview on Card
Often, you end up having short notes or even just a simple link and it
is somewhat tedious to go into the details to retrieve the additional
information.

This patch displays a preview of the note content and a maximum of three
links on the notes card directly. This makes accessing information much
faster.

This fixes #562.
2025-04-15 01:05:02 +02:00
Lars Kiesow
49f7bf27e8 Fix rendering issue in adventure dropdown
This is a very simple patch fixing the rendering issue of the “Remove
from collection” option in the adventure dropdown.-

Together with #552, this should fix #539.
2025-04-14 18:44:15 +02:00
Sean Morley
15d34c88dc
Merge pull request #552 from lkiesow/lodging-card
Prevent UI overlaps in lodging card
2025-04-06 20:25:11 -04:00
Sean Morley
af2778ff61
Merge pull request #548 from lkiesow/users-reedirect
Prevent unnecessary redirect when requesting users
2025-04-06 20:23:53 -04:00
Lars Kiesow
658764fb58
Prevent UI overlaps in lodging card
This patch prevents overlapping UI eelements in the ledging card. It
adjusts the UI to be more like the adventure cards when it comes to font
size and element placing.

This partly fixes #539
2025-04-07 01:42:12 +02:00
Lars Kiesow
af8a9acbae
Prevent unnecessary redirect when requesting users
Opening the share dialog, the frontend is requesting `/auth/users/`
which is always redirected to `/auth/users`. That's an unnecessary extra
step.

This patch makes the front-end request `/auth/users` in the first place.
2025-04-06 14:37:37 +02:00
Sean Morley
cd833884e8
Merge pull request #546 from eidsheim98/nb-locale
Norwegian translations
2025-04-01 16:41:26 -04:00
Nikolai Eidsheim
47c219affd Added Norwegian translation 2025-04-01 22:35:03 +02:00
Sean Morley
04c3402e14 fix: Remove duplicate file extension validation for md and pdf formats 2025-03-23 16:40:55 -04:00
Sean Morley
b4c5e22662 fix: Correct file extension validation for gpx, md, and pdf formats 2025-03-23 16:40:08 -04:00
Sean Morley
794df82ec6 feat: Enhance AdventureModal date handling for all-day events and improve localization in collections page 2025-03-21 16:30:03 -04:00
Sean Morley
f79b06f6b3 feat: Add troubleshooting guide for unresponsive login and registration, enhance collection modal alerts, and improve localization for itinerary features 2025-03-20 22:28:23 -04:00
Sean Morley
f554bb8777 feat: Enhance date handling in AdventureModal and related components for improved localization and all-day event support 2025-03-18 21:07:34 -04:00
Sean Morley
1dc8e10758 feat: Add "all day" localization strings for multiple languages and enhance transportation date handling 2025-03-18 17:40:32 -04:00
Sean Morley
9fd2a142cb feat: Update Visit model to use DateTimeField for start and end dates, and enhance AdventureModal with datetime-local inputs 2025-03-18 14:04:31 -04:00
Sean Morley
b82e4b6f0d feat: Add country name to Region serializer and update RegionCard component 2025-03-17 14:23:10 -04:00
Sean Morley
4e543fad55 feat: Enhance City and Lodging components with region and country names, and improve password disable functionality 2025-03-17 10:38:41 -04:00
Sean Morley
7fbcf170d0 feat: Add file type validation and sanitize markdown input in adventure components 2025-03-15 12:29:12 -04:00
Sean Morley
3c9aec4bfb refactor: Simplify location name assignment logic in LocationDropdown component 2025-02-23 17:15:37 -05:00
Sean Morley
b1068d27b0 refactor: Update API endpoint paths from "_allauth" to "auth" for consistency 2025-02-23 17:04:20 -05:00
Sean Morley
d80805a181 feat: Add current timezone and airport description fields to localization files 2025-02-22 17:00:40 -05:00
Sean Morley
ea36b104b6 feat: Add Transportation and Lodging models to AdventureViewSet; update Avatar and TransportationModal components for improved user experience 2025-02-22 10:37:22 -05:00