aprs.me/lib/aprsme_web/live
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
..
bad_packets_live clean up warnings 2025-07-16 08:55:46 -05:00
components fix compile warnings 2025-07-09 16:58:07 -05:00
info_live Fix incorrect icon display for "Other SSIDs" on info page 2025-07-19 17:55:42 -05:00
map_live Add URL parameter handling for trail duration and historical data 2025-07-21 09:14:46 -05:00
packets_live clean up warnings 2025-07-16 08:55:46 -05:00
shared clean up warnings 2025-07-16 08:55:46 -05:00
status_live clean up warnings 2025-07-16 08:55:46 -05:00
weather_live clean up warnings 2025-07-16 08:55:46 -05:00
about_live.ex en español 2025-07-05 15:51:39 -05:00
about_live.html.heex en español 2025-07-05 15:51:39 -05:00
api_docs_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
locale_hook.ex clean up warnings 2025-07-16 08:55:46 -05:00
theme_manager.ex more performance improvements/cleanup 2025-07-14 16:49:55 -05:00
user_confirmation_instructions_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_confirmation_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_forgot_password_live.ex clean up warnings 2025-07-16 08:55:46 -05:00
user_login_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_registration_live.ex add more translations 2025-07-18 11:18:04 -05:00
user_reset_password_live.ex add user auth 2025-07-09 08:53:50 -05:00
user_settings_live.ex clean up warnings 2025-07-16 08:55:46 -05:00