feat: Add detailed park and ride pages with HTMX integration

- Implemented park detail page with dynamic content loading for rides and weather.
- Created park list page with filters and search functionality.
- Developed ride detail page showcasing ride stats, reviews, and similar rides.
- Added ride list page with filtering options and dynamic loading.
- Introduced search results page with tabs for parks, rides, and users.
- Added HTMX tests for global search functionality.
This commit is contained in:
pacnpal
2025-12-19 19:53:20 -05:00
parent bf04e4d854
commit b9063ff4f8
154 changed files with 4536 additions and 2570 deletions

View File

@@ -54,6 +54,47 @@ urlpatterns = [
ParkDistanceCalculatorView.as_view(),
name="roadtrip_htmx_distance",
),
# Additional HTMX endpoints for client-driven route management
path(
"roadtrip/htmx/add-park/",
views.htmx_add_park_to_trip,
name="htmx_add_park_to_trip",
),
path(
"roadtrip/htmx/remove-park/",
views.htmx_remove_park_from_trip,
name="htmx_remove_park_from_trip",
),
path(
"roadtrip/htmx/reorder/",
views.htmx_reorder_parks,
name="htmx_reorder_parks",
),
path(
"roadtrip/htmx/optimize/",
views.htmx_optimize_route,
name="htmx_optimize_route",
),
path(
"roadtrip/htmx/calculate/",
views.htmx_calculate_route,
name="htmx_calculate_route",
),
path(
"roadtrip/htmx/saved/",
views.htmx_saved_trips,
name="htmx_saved_trips",
),
path(
"roadtrip/htmx/save/",
views.htmx_save_trip,
name="htmx_save_trip",
),
path(
"roadtrip/htmx/clear/",
views.htmx_clear_trip,
name="htmx_clear_trip",
),
# Park detail and related views
path("<slug:slug>/", views.ParkDetailView.as_view(), name="park_detail"),
path("<slug:slug>/edit/", views.ParkUpdateView.as_view(), name="park_update"),