From 270c0e44d6afc6d58d537015a6210eb8fae10c89 Mon Sep 17 00:00:00 2001
From: Remi <73385395+itsrubberduck@users.noreply.github.com>
Date: Mon, 22 Sep 2025 08:29:26 +0200
Subject: [PATCH] Adjust frequency change lesson call sign
---
app/pages/learn.vue | 44 -------------------------------------
shared/data/learnModules.ts | 25 ++-------------------
2 files changed, 2 insertions(+), 67 deletions(-)
diff --git a/app/pages/learn.vue b/app/pages/learn.vue
index 3c2d6d8..a952d42 100644
--- a/app/pages/learn.vue
+++ b/app/pages/learn.vue
@@ -941,13 +941,6 @@
{{ Math.round(result.sim * 100) }}%
-
-
-
{{ field.label }}
-
{{ field.answer || '—' }}
-
Expected: {{ field.expected }}
-
-
@@ -5538,43 +5531,6 @@ onMounted(() => {
letter-spacing: normal;
}
-.field-checks {
- margin-top: 12px;
- display: grid;
- gap: 10px;
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
-}
-
-.field-check {
- border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
- padding: 12px;
- border-radius: 14px;
- background: color-mix(in srgb, var(--text) 4%, transparent);
- box-shadow: 0 12px 26px rgba(2, 6, 23, .28);
-}
-
-.field-check.ok {
- border-color: color-mix(in srgb, var(--accent) 40%, transparent);
- background: color-mix(in srgb, var(--accent) 10%, transparent);
-}
-
-.field-name {
- font-size: 12px;
- letter-spacing: .08em;
- color: var(--t3);
- text-transform: uppercase;
- margin-bottom: 4px;
-}
-
-.field-answer {
- font-weight: 600;
-}
-
-.field-expected {
- font-size: 12px;
- color: var(--t3);
-}
-
.hint.secondary {
opacity: 0.8;
}
diff --git a/shared/data/learnModules.ts b/shared/data/learnModules.ts
index babaed7..e3f90a8 100644
--- a/shared/data/learnModules.ts
+++ b/shared/data/learnModules.ts
@@ -410,6 +410,7 @@ const fundamentalsLessons = [
key: 'freq-contact-frequency',
label: 'Frequency',
expected: scenario => scenario.handoff.frequency,
+ threshold: 0.99,
alternatives: scenario => {
const freq = scenario.handoff.frequency
const trimmed = freq.replace(/\.?0+$/, '')
@@ -439,34 +440,12 @@ const fundamentalsLessons = [
},
placeholder: '125.35',
width: 'md'
- },
- {
- key: 'freq-contact-callsign',
- label: 'Callsign',
- expected: scenario => scenario.radioCall,
- alternatives: scenario => {
- const variants = new Set()
- const add = (value?: string) => {
- if (!value) return
- variants.add(value)
- variants.add(value.toLowerCase())
- }
- add(scenario.radioCall)
- add(`${scenario.airlineCall} ${scenario.flightNumber}`)
- add(`${scenario.airlineCall} ${scenario.flightNumberWords}`)
- add(scenario.callsign)
- add(`${scenario.airlineCode} ${scenario.flightNumber}`)
- add(`${scenario.callsignNato} ${scenario.flightNumberWords}`)
- return Array.from(variants)
- },
- width: 'lg'
}
],
readback: [
{ type: 'text', text: scenario => `Contact ${scenario.handoff.facility} on ` },
{ type: 'field', key: 'freq-contact-frequency', width: 'md' },
- { type: 'text', text: ', ' },
- { type: 'field', key: 'freq-contact-callsign', width: 'lg' }
+ { type: 'text', text: scenario => `, ${scenario.radioCall}` }
],
defaultFrequency: 'TWR',
phrase: scenario => `${scenario.radioCall}, contact ${scenario.handoff.facility} on ${scenario.handoff.frequencyWords}.`,