Commit graph

288 commits

Author SHA1 Message Date
133dd2cc0e
Fix integer overflow risk in duration parsing
- Added validation for trail_duration values (1, 6, 12, 24, 48, 168 hours)
- Added validation for historical_hours values (1, 3, 6, 12, 24 hours)
- Created parse_trail_duration and parse_historical_hours helper functions
- Functions return safe defaults (1 hour) for invalid input
- Prevents potential integer overflow from unchecked String.to_integer calls
- Fixed all compilation warnings by properly grouping handle_event clauses

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 10:08:00 -05:00
6026c0f888
Fix failing tests and improve movement tracking
- Fixed PHG parsing test to match actual parser behavior
- Fixed movement test to properly handle batch loading behavior
- Movement test now sets bounds and uses higher zoom level
- Added helper function to flush events during test setup
- All tests now passing with clean compilation

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 10:03:04 -05:00
93c3fe0f19
feat: improve APRS map with beacon filtering, error handling, and performance optimizations
- Filter APRS built-in beacon patterns (WIDE, TRACE, RELAY, etc.) from RF paths
- Add comprehensive error recovery for database query failures
- Implement memory management with packet limits to prevent unbounded growth
- Add loading state indicators with progress tracking
- Increase debounce timing and add generation-based request cancellation
- Refactor code to use pattern matching instead of conditionals
- Add input validation for callsigns
- Fix all credo and compilation warnings

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-14 09:42:29 -05:00
766a1301e0
fix stations that heard call 2025-07-13 18:55:51 -05:00
610a5b8949
refactor 2025-07-13 16:49:20 -05:00
fa89712587
main map improvements 2025-07-13 14:58:13 -05:00
532a81c0b4
integrate /:call to main page 2025-07-13 10:36:58 -05:00
93b298ab9f
add more info on info page 2025-07-13 10:12:59 -05:00
184ca52a8c
cleanup 2025-07-13 09:35:40 -05:00
8ca4ea2e2b
add link to calls on path 2025-07-13 09:21:26 -05:00
4348d34f62
fix weather 2025-07-12 10:53:11 -05:00
ac415368e8
remove extra line above PHG 2025-07-12 10:26:55 -05:00
c09f9175f4
add PHG parsing 2025-07-12 10:22:43 -05:00
68f0e77f37
add comment on info page 2025-07-12 09:47:09 -05:00
ad88e34ab6
account for gps drift 2025-07-12 09:40:28 -05:00
76c871ff39
make marker come to front view when clicked 2025-07-12 09:24:59 -05:00
15c8aa1d25
more permissive callsign parsing 2025-07-12 09:10:49 -05:00
628495fc76
badpackets formatting 2025-07-12 08:02:51 -05:00
d88adf4293
reduce caching 2025-07-11 14:42:01 -05:00
b71ae879e9
debug cleanup 2025-07-11 14:05:42 -05:00
c40e85d47a
geolocation debug 2025-07-11 14:00:50 -05:00
55b1a771e2
geolocation debug 2025-07-11 13:57:32 -05:00
96e4c305f0
staging fix 2025-07-11 13:48:14 -05:00
d76006c2ae
fix locate me arrow 2025-07-11 13:40:00 -05:00
aaad32c683
geolocation fix 2025-07-11 13:34:54 -05:00
80602bf2a6
deploy to staging dokku fix 2025-07-11 13:12:52 -05:00
1b428cbf78
add spider cluster 2025-07-11 13:00:32 -05:00
1a52bf4baf
geolocation tweak 2025-07-10 17:54:35 -05:00
13ac1731fd
wip 2025-07-10 17:49:38 -05:00
0785ef954b
geolocation tweak 2025-07-10 17:28:10 -05:00
e6c0bb740b
geolocation tweak 2025-07-10 17:25:32 -05:00
4b38c8f601
geolocation tweak 2025-07-10 17:23:42 -05:00
3d21e9bc77
geolocate debug 2025-07-10 17:20:06 -05:00
f5e0f33ac2
fix geolocation hopefully 2025-07-10 17:12:49 -05:00
4f0fa59be8
ip lookup on page load 2025-07-10 16:45:21 -05:00
7da91f5ccb
fix some accidental weather decoded packets 2025-07-10 16:30:48 -05:00
38920e9f3d
add callsign to users 2025-07-10 16:07:05 -05:00
a1ac8abc1e
fix some tests 2025-07-10 15:44:28 -05:00
b1ee1f92f9
dont parse device identifiers on each insert 2025-07-10 15:16:01 -05:00
38f240b3eb
fix info/neighbor page loading 2025-07-10 14:43:00 -05:00
aaf92d9045
add heatmap on zoom out 2025-07-10 14:26:01 -05:00
d45aed256d
fix historical packet loading 2025-07-10 13:15:16 -05:00
48447ab42e
refactor and performance improvements 2025-07-10 10:53:34 -05:00
3286b6852b
fix compile warnings 2025-07-09 16:58:07 -05:00
8eb1e90622
use postgis for testing 2025-07-09 16:48:55 -05:00
ef95f597b0
format 2025-07-09 16:22:58 -05:00
514d1b66d5
fix all the main map display issues 2025-07-09 16:20:29 -05:00
57fe2b0182
Remove all delays from historical packet loading for maximum speed
Server-side optimizations:
- Remove all Process.send_after delays - use immediate send()
- High zoom (10+): Load everything in single batch (up to 500 packets)
- Low zoom: Load all batches immediately without delays
- Remove debug logging for performance

Client-side optimizations:
- Remove chunking delays and requestAnimationFrame
- Process all packets immediately without setTimeout
- Remove 10-packet chunk limit - process everything at once

Result: Historical packets now load as fast as possible
without artificial delays or chunking bottlenecks.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-09 09:33:21 -05:00
a9414823f1
Fix spurious bounds_changed events and event loops
Key fixes:
- Combine bounds_changed and update_map_state into single event
- Remove duplicate sendBoundsToServer() calls
- Add programmaticMove flag to prevent event loops
- Only process bounds updates when bounds actually change
- Debounce events with 300ms timeout

This eliminates:
- Duplicate server events for same user action
- Event loops when server updates URL
- Unnecessary bounds processing
- Excessive server load

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-09 09:30:05 -05:00
c873614bf1
Fix compilation error by importing push_patch
- Add push_patch to Phoenix.LiveView imports
- Fix trailing whitespace issue
- App now compiles successfully with URL functionality
2025-07-09 09:25:52 -05:00