This commit is contained in:
team3
2026-06-21 15:38:10 +02:00
parent 20831e1399
commit 1910f730d2
15 changed files with 835 additions and 172 deletions

View File

@@ -87,9 +87,14 @@ const fortschritt = computed(() => {
return { total: bausteine.value.length, absolviert: a, verstanden: v, gemeistert: g }
})
// Cap pro Baustein folgt den erstellten Formaten: Guide vorhanden → bis 10, FullGuide → bis 25.
const tier2 = computed(() => !!props.doneByFormat?.Guide)
const tier3 = computed(() => !!props.doneByFormat?.FullGuide)
// 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
})
// --- Chat (Mechanik in useChat; Kontext-Extraktion bleibt hier) ---
const chat = useChat((msgs) => {
@@ -205,8 +210,7 @@ function extractContext() {
mode="trigger"
:baustein="s.title"
:status="lernstand[s.title]"
:tier2="tier2"
:tier3="tier3"
:cap="cap"
:topic="previewGuide.topic"
@open-fokus="(tab) => openFokus(s, tab)"
/>
@@ -231,8 +235,7 @@ function extractContext() {
:provider="provider"
:fortschritt="fortschritt"
:status="lernstand[fokusBaustein.title]"
:tier2="tier2"
:tier3="tier3"
:cap="cap"
:tab="fokusTab"
:ansicht="ansichtModus"
:has-prev="fokusIndex > 0"