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:
adust09
2026-03-16 01:05:44 +09:00
parent 05de14af9d
commit 4b9765791f
4 changed files with 127 additions and 17 deletions
+6 -1
View File
@@ -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') {
+2
View File
@@ -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;