From 9eb218076409712e2153f6b96f6e6d59a714c6b7 Mon Sep 17 00:00:00 2001 From: itsrubberduck Date: Tue, 16 Sep 2025 13:17:25 +0200 Subject: [PATCH] feat(pm): add VATSIM integration and demo mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces two major features to the Pilot Monitoring (PM) page: 1. VATSIM integration: - Allows users to enter their VATSIM CID to load their filtered flight plans. - Provides a button to fetch the user's flight plans from VATSIM. - Displays an error message if there's an issue fetching the flight plans. 2. Demo mode: - Adds a section for users to start a demo flight plan (DLH39A EDDF→EDDM) without needing to log in. - Provides a button to initiate the demo flight plan. These changes aim to enhance the user experience by offering more flexibility and options for accessing and testing the Pilot Monitoring functionality. --- app/pages/pm.vue | 352 +++++++++++++++++++++++++++++++---------------- 1 file changed, 230 insertions(+), 122 deletions(-) diff --git a/app/pages/pm.vue b/app/pages/pm.vue index 70abe46..45da4f7 100644 --- a/app/pages/pm.vue +++ b/app/pages/pm.vue @@ -6,18 +6,131 @@

OpenSquawk

Pilot Monitoring

-

Decision Tree • PTT • Enhanced LLM

+

Decision Tree • Enhanced LLM • VATSIM

- {{ currentState?.id }} + {{ currentState?.id || 'INIT' }} -
{{ currentState?.phase }}
+
{{ currentState?.phase || 'Setup' }}
- -
+ +
+ + +
+

VATSIM Integration

+

Gib deine CID ein um deine gefilterten Flugpläne zu laden

+
+ + + Flugpläne abrufen + + + {{ error }} + +
+
+ + + + +
+

Demo Mode

+

Starte mit einem Beispiel-Flugplan zum Testen

+
+ + Demo starten (DLH39A EDDF→EDDM) + +
+
+
+ + +
+
+ + mdi-arrow-left + +

Verfügbare Flugpläne

+ {{ vatsimId }} +
+ +
+ +

Lade Flugpläne von VATSIM...

+
+ +
+ mdi-airplane-off +

Keine Flugpläne gefunden

+ + Zurück + +
+ +
+ + +
+

{{ plan.callsign }}

+ {{ plan.aircraft?.split('/')[0] }} +
+
+
+ + {{ plan.dep }} → {{ plan.arr }} +
+
+ + FL{{ Math.floor(parseInt(plan.altitude) / 100) }} +
+
+ + Squawk: {{ plan.assignedsquawk }} +
+
+
+
+
+
+ + +
+
@@ -80,46 +193,22 @@

Transmissions

+ + + + Neuen Flug wählen +
-
- -
- - -
-

VATSIM Integration

-

Lade deinen Flugplan von VATSIM

-
-
- - - Laden - -
-
- Plan: {{ selectedPlan.callsign }} • {{ selectedPlan.dep }}→{{ selectedPlan.arr }} • Alt {{ selectedPlan.altitude }} -
-
-
-
- - -
+
@@ -176,11 +265,9 @@
-
- -
- + +

Erwartete Kommunikation

@@ -204,10 +291,8 @@
-
- -
+

Push to Talk

@@ -266,10 +351,8 @@
-
- -
+

Quick Actions

@@ -280,6 +363,7 @@ @click="performRadioCheck" :loading="radioCheckLoading" prepend-icon="mdi-radio" + density="comfortable" > Radio Check @@ -288,16 +372,15 @@ variant="outlined" @click="resetCommunications" prepend-icon="mdi-refresh" + density="comfortable" > - Reset + Reset Log
-
- -
+
@@ -319,11 +402,9 @@

-
- -
- + +

Debug: Next States

@@ -344,10 +425,8 @@
-
- -
+
@@ -396,23 +475,27 @@
-
- -
- + +
Letzte Übertragung

{{ lastTransmission }}

+
+ + Score: {{ lastEvaluation.score }}% + + + {{ lastEvaluation.recommendation }} + +
-
- -
+

Settings

@@ -461,7 +544,6 @@