From 17d382e2b40c08d94194e4dbba940458db0bb67b Mon Sep 17 00:00:00 2001 From: leubeem Date: Tue, 30 Jun 2026 16:18:13 +0200 Subject: [PATCH] feat(pm): send ICAO for taxi-route compute + show start spinner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useRadioBackend.createSession: forward airport_icao / destination_icao so the backend can compute the real OSM taxi route for taxi flows. - pm.vue: pass the resolved airport ICAO from startMonitoring, and show a full-screen overlay ("Calculating taxi route…") while the session is being created — the backend computes taxi routes synchronously for taxi-only training, so the create call can take a few seconds. Co-Authored-By: Claude Opus 4.8 --- app/composables/useRadioBackend.ts | 11 ++++++++++- app/pages/pm.vue | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/app/composables/useRadioBackend.ts b/app/composables/useRadioBackend.ts index 6f1320f..0dd6476 100644 --- a/app/composables/useRadioBackend.ts +++ b/app/composables/useRadioBackend.ts @@ -48,10 +48,19 @@ export function useRadioBackend() { flowSlug: string, variables?: Record, noChain: boolean = false, + airportIcao?: string, + destinationIcao?: string, ): Promise { return await $fetch(`${baseUrl()}/api/radio/session`, { method: 'POST', - body: { flow_slug: flowSlug, variables: variables ?? null, no_chain: noChain }, + body: { + flow_slug: flowSlug, + variables: variables ?? null, + no_chain: noChain, + // Lets the backend compute the real OSM taxi route for taxi flows. + airport_icao: airportIcao ?? null, + destination_icao: destinationIcao ?? null, + }, }) } diff --git a/app/pages/pm.vue b/app/pages/pm.vue index b0ea726..67052cf 100644 --- a/app/pages/pm.vue +++ b/app/pages/pm.vue @@ -1,5 +1,16 @@