mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-06-09 07:43:59 +02:00
feat: enrich military aircraft with ICAO country/force and East Asia model classification
Infer country and military force (PLA, JSDF, ROK, ROC) from ICAO hex address blocks when the flag field is Unknown. Extract and extend aircraft model classification to cover East Asian fighters, cargo, recon, and tanker types with hyphen-normalized matching. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -427,7 +427,12 @@ function NewsFeedInner({ data, selectedEntity, regionDossier, regionDossierLoadi
|
||||
let airline = "UNKNOWN";
|
||||
|
||||
if (selectedEntity.type === 'military_flight') {
|
||||
airline = "MILITARY ASSET";
|
||||
const mil = flight as import('@/types/dashboard').MilitaryFlight;
|
||||
const milCountry = mil.country;
|
||||
airline = mil.force
|
||||
? `${milCountry} ${mil.force}`.trim()
|
||||
: (milCountry && milCountry !== 'Military Asset' && milCountry !== 'Unknown'
|
||||
? milCountry : "MILITARY ASSET");
|
||||
} else if (selectedEntity.type === 'private_jet') {
|
||||
airline = "PRIVATE JET";
|
||||
} else if (selectedEntity.type === 'private_flight') {
|
||||
|
||||
@@ -44,6 +44,7 @@ export interface PrivateJet extends FlightBase {
|
||||
export interface MilitaryFlight extends FlightBase {
|
||||
type: "military_flight";
|
||||
military_type?: "heli" | "fighter" | "tanker" | "cargo" | "recon" | "default";
|
||||
force?: string;
|
||||
}
|
||||
|
||||
export interface TrackedFlight extends FlightBase {
|
||||
@@ -68,6 +69,7 @@ export interface UAV extends FlightBase {
|
||||
uav_type?: string;
|
||||
aircraft_model?: string;
|
||||
wiki?: string;
|
||||
force?: string;
|
||||
}
|
||||
|
||||
export type Flight = CommercialFlight | PrivateFlight | PrivateJet | MilitaryFlight | TrackedFlight | UAV;
|
||||
|
||||
Reference in New Issue
Block a user