aprs.me/lib/aprsme_web
Graham McIntire aa168f8dcd
Add URL parameter handling for trail duration and historical data
Implemented URL persistence for map settings to preserve user preferences:

- Added `trail` parameter for trail duration (1, 6, 12, 24, 48, 168 hours)
- Added `hist` parameter for historical data hours (1, 3, 6, 12, 24 hours)
- Parameters only appear in URL when different from default value (1 hour)

Changes:
- Updated handle_url_update to include trail and hist parameters
- Modified mount to parse these parameters on page load
- Updated handle_params to parse parameters on URL changes
- Added update_url_with_current_state helper function
- Modified update_trail_duration and update_historical_hours event handlers
  to update URL when settings change
- Fixed finalize_mount_assigns to preserve parsed values

This allows users to share or bookmark URLs with specific trail duration
and historical data settings, improving the user experience.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 09:14:46 -05:00
..
components Use Sentry Loader script to handle CORS errors gracefully 2025-07-18 15:51:21 -05:00
controllers Implement critical performance optimizations and error handling 2025-07-18 18:19:49 -05:00
live Add URL parameter handling for trail duration and historical data 2025-07-21 09:14:46 -05:00
plugs Configure CSP headers to allow Sentry and CDN scripts 2025-07-18 15:30:36 -05:00
aprs_symbol.ex refactor 2025-07-13 16:49:20 -05:00
endpoint.ex add sentry 2025-07-18 15:07:53 -05:00
gettext.ex more languages 2025-07-06 10:08:58 -05:00
router.ex Implement critical performance optimizations and error handling 2025-07-18 18:19:49 -05:00
telemetry.ex clean up warnings 2025-07-16 08:55:46 -05:00
time_helpers.ex clean up warnings 2025-07-16 08:55:46 -05:00
time_utils.ex refactor and performance improvements 2025-07-10 10:53:34 -05:00
user_auth.ex refactor to use external parser 2025-06-24 14:22:09 -05:00
weather_units.ex fix nil weather units 2025-07-08 12:45:50 -05:00