aprs.me/lib/aprsme_web/live/map_live
Graham McIntire cf78298f46
Fix trail lines not connecting historical positions
When changing trail duration and historical data settings, historical positions
would show up on the map but trail lines wouldn't connect them. This was caused
by a mismatch between trail ID generation and callsign extraction.

## Changes

- Fix getTrailId() to properly extract base callsigns from historical marker IDs
- Add setTrailDuration() method to TrailManager for dynamic duration updates
- Add LiveView event to synchronize trail duration changes with client
- Add comprehensive tests for historical ID handling

## Problem
Historical markers have IDs like "hist_CALLSIGN_123" but getTrailId() was
returning the full ID while TrailManager.extractBaseCallsign() extracted just
"CALLSIGN", creating separate trails instead of connected ones.

## Solution
Updated getTrailId() to extract base callsigns from historical IDs using the
same logic as TrailManager, ensuring all positions from the same station use
the same trail ID and connect properly.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-21 08:31:16 -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 Fix trail lines not connecting historical positions 2025-07-21 08:31:16 -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