skyview/assets/static/js/modules
Ole-Morten Duesund 10508c2dc6 fix: Implement dynamic age calculation for aircraft tracking
Resolves issue #3 where aircraft age field was always showing 0 seconds.

Backend Changes:
- Fix MarshalJSON in merger.go to calculate age dynamically using time.Since(a.LastUpdate)
- Add comprehensive tests for age calculation in merger_test.go

Frontend Changes:
- Add calculateAge() utility method to both aircraft-manager.js and ui-manager.js
- Update popup content and aircraft table to use client-side age calculation
- Implement real-time age updates every second in app.js
- Add updateOpenPopupAges() function to refresh popup displays

Key Benefits:
- Aircraft age now shows actual seconds since last transmission
- Real-time updates in UI without requiring new WebSocket data
- Proper data staleness indicators for aviation tracking
- No additional server load - client-side calculation using last_update timestamp

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 10:29:35 +02:00
..
aircraft-manager.js fix: Implement dynamic age calculation for aircraft tracking 2025-09-01 10:29:35 +02:00
callsign-manager.js feat: Enhance web interface with database integration and callsign management 2025-08-31 19:43:58 +02:00
map-manager.js Default range rings to enabled 2025-08-24 21:09:33 +02:00
ui-manager.js fix: Implement dynamic age calculation for aircraft tracking 2025-09-01 10:29:35 +02:00
websocket.js Fix aircraft track propagation issues in web frontend 2025-08-25 10:14:03 +02:00