39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
---
|
|
type: quick
|
|
task: 260329-tv5
|
|
description: "Uebungsanleitung dauerhaft statt Titel anzeigen"
|
|
date: "2026-03-29"
|
|
commit: bbb1edb
|
|
files_modified:
|
|
- src/ui/screens.ts
|
|
key-decisions:
|
|
- "Instruction text placed in phase indicator via setPhase() labels map, not companionText, so it stays visible for entire phase duration"
|
|
tags: [ui, lesson, ux, phase-indicator]
|
|
---
|
|
|
|
# Quick Task 260329-tv5: Uebungsanleitung dauerhaft statt Titel anzeigen
|
|
|
|
**One-liner:** Replaced "Ueben"/"Woerter" phase titles with full instruction texts and removed the 2.5s delay so children always see what to do throughout practice and words phases.
|
|
|
|
## What Was Done
|
|
|
|
- `setPhase()` labels map updated: `practice` now shows "Jetzt kannst du ueben! Druecke die Taste zu dem Buchstaben, der herunterfaellt." and `words` now shows "Jetzt kommen ganze Woerter! Tippe die Buchstaben nacheinander ein."
|
|
- `runPracticePhase()` simplified: removed `companionText.textContent` assignment, `companionArea.style.display = "flex"`, the `setTimeout 2500ms` delay, the `cancelled` check after delay, and `companionText.textContent = ""` clearing
|
|
- `runWordsPhase()` simplified: same pattern removed — only `setPhase("words")` remains before the word count logic
|
|
|
|
## Verification
|
|
|
|
- `npx tsc --noEmit`: passed (no errors)
|
|
- `npx vitest run`: 92 tests passed across 8 test files
|
|
|
|
## Deviations from Plan
|
|
|
|
None - plan executed exactly as written.
|
|
|
|
## Self-Check: PASSED
|
|
|
|
- [x] `src/ui/screens.ts` modified
|
|
- [x] Commit `bbb1edb` exists
|
|
- [x] TypeScript compiles clean
|
|
- [x] All tests pass
|