aprs.me/lib/aprsme_web/live/map_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
..
bounds_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
data_builder.ex clean up warnings 2025-07-16 08:55:46 -05:00
display_manager.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
historical_loader.ex Fix race condition when zooming map quickly 2025-07-18 12:27:46 -05:00
index.ex Add URL parameter handling for trail duration and historical data 2025-07-21 09:14:46 -05:00
map_helpers.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
navigation.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
packet_manager.ex clean up warnings 2025-07-16 08:55:46 -05:00
packet_processor.ex clean up warnings 2025-07-16 08:55:46 -05:00
packet_store.ex performance improvements 2025-07-14 16:35:58 -05:00
packet_utils.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
popup_component.ex integrate /:call to main page 2025-07-13 10:36:58 -05:00
rf_path.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
url_params.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00
utils.ex major refactor for cleanup 2025-07-14 12:06:10 -05:00