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> |
||
|---|---|---|
| .. | ||
| aprsme | ||
| aprsme_web | ||
| mix/tasks | ||
| aprs_web.ex | ||
| aprsme.ex | ||