* add ADSB areas to GPS map#2569
* add ADSB areas to GPS map#2569error414 wants to merge 3 commits intoiNavFlight:maintenance-10.xfrom
Conversation
101344e to
ce1c791
Compare
b118ba2 to
f870324
Compare
f870324 to
49de051
Compare
a7cf4ea to
1bf80b2
Compare
Review Summary by QodoAdd ADSB warning system and vehicle table to GPS map
WalkthroughsDescription• Add ADSB warning/alert system with distance-based circular zones • Implement ADSB vehicle table displaying all tracked aircraft details • Expand GPS map to full screen with improved layout and styling • Add MSP protocol support for ADSB limits and warning vehicle data • Color-code ADSB table rows for alert/warning/normal/stale states Diagramflowchart LR
A["MSP Protocol<br/>New Codes"] -->|MSP2_ADSB_LIMITS| B["ADSB Limits<br/>Distance Config"]
A -->|MSP2_ADSB_WARNING_VEHICLE_ICAO| C["Warning Vehicle<br/>ICAO Data"]
B --> D["GPS Map<br/>Alert/Warning Circles"]
C --> E["ADSB Vehicle Table<br/>Color-coded Rows"]
D --> F["Enhanced GPS Tab<br/>Full Screen Display"]
E --> F
File Changes1. js/fc.js
|
Code Review by Qodo
|
| [ | ||
| i18n.getMessage('adsbCallsign'), | ||
| 'ICAO', | ||
| i18n.getMessage('gpsLat'), | ||
| i18n.getMessage('gpsLon'), | ||
| i18n.getMessage('adsbAlt'), | ||
| i18n.getMessage('adsbHeading'), | ||
| 'TSLC', | ||
| 'TTL', | ||
| i18n.getMessage('adsbEmitter') | ||
| ].forEach(function(col) { | ||
| $headerRow.append($('<th>').addClass('adsb-table__header').text(col)); | ||
| }); | ||
| $thead.append($headerRow); | ||
| $table.append($thead); | ||
| $table.append($('<tbody>').addClass('adsb-table__body')); | ||
|
|
||
| var $wrapper = $('<div>').addClass('adsb-table__wrapper').append($table); | ||
| $('.adsbVehicleList').empty().append($wrapper); | ||
| } | ||
|
|
||
| var $tbody = $('.adsb-table__body'); | ||
|
|
||
| if (FC.ADSB_VEHICLES.vehicles.length === 0) { | ||
| $tbody.empty(); | ||
| $tbody.append( | ||
| $('<tr>').append( | ||
| $('<td>').attr('colspan', 9).addClass('adsb-table__empty').text('No vehicles') | ||
| ) |
There was a problem hiding this comment.
1. icao/tslc headers hardcoded 📘 Rule violation ⚙ Maintainability
The ADSB vehicle table UI introduces multiple user-facing strings as hardcoded literals (e.g., ICAO, TSLC, TTL, No vehicles, —, unit suffixes), bypassing i18next translation keys. This breaks internationalization coverage and violates the project requirement to avoid hardcoded UI text.
Agent Prompt
## Issue description
The ADSB list table renders user-facing strings as hardcoded literals (e.g., `ICAO`, `TSLC`, `TTL`, `No vehicles`, `—`, and unit suffixes like `m`, `°`, `s`) instead of using i18next translation keys.
## Issue Context
Per i18n compliance requirements, all UI-visible text must be localizable via i18next (commonly `data-i18n` in HTML or `i18n.getMessage()` in JS for dynamically created elements).
## Fix Focus Areas
- tabs/gps.js[142-170]
- locale/en/messages.json[6201-6236]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|



#PR related to iNavFlight/inav#11346
New: