This commit is contained in:
team3
2026-06-21 22:06:02 +02:00
parent 50b1c81bca
commit b4c686f74f
13 changed files with 41 additions and 57 deletions

View File

@@ -93,14 +93,8 @@ const fortschritt = computed(() => {
return { total: bausteine.value.length, absolviert: a, verstanden: v, gemeistert: g }
})
// Score-Deckel folgt dem höchsten erstellten Format: Mini→6, Guide→12, ProGuide→18, FullGuide→30.
const cap = computed(() => {
const d = props.doneByFormat || {}
if (d.FullGuide) return 30
if (d.ProGuide) return 18
if (d.Guide) return 12
return 6
})
// Ein Format „Guide" → Prüfung läuft voll 030. Ohne fertigen Guide kein Deckel relevant (6).
const cap = computed(() => (props.doneByFormat?.Guide ? 30 : 6))
// --- Chat (Mechanik in useChat; Kontext-Extraktion bleibt hier) ---
const chat = useChat((msgs) => {
@@ -188,7 +182,7 @@ function extractContext() {
<header class="guide-head">
<h1>{{ previewGuide.topic }}</h1>
<span class="guide-format">{{ previewGuide.format }}</span>
<span v-if="themaAbgeschlossen" class="thema-done" title="Alle FullGuide-Bausteine gemeistert (25/25)"> Thema abgeschlossen</span>
<span v-if="themaAbgeschlossen" class="thema-done" title="Alle Bausteine gemeistert (18/18)"> Thema abgeschlossen</span>
</header>
<section
v-for="(ch, ci) in content.chapters"