The problem
A child should move from a lesson to speaking without a flash, a stalled control, or an unexplained result. My work includes both the learning interaction and the lifecycle bugs introduced while smoothing it.
What I worked on
Remove the blank frame between screens
Sequential fade-out and screen replacement exposed a white flash during navigation.
I kept the screens mounted and crossfaded their opacity and position concurrently. Pointer events follow the active screen, and a transition guard prevents overlapping navigation requests.
The tradeoff Mounted screens retain state and run effects. I later restricted the speaking and results screens to the active flow to prevent speech playback on app launch.
Handle the empty session that mounting revealed
Once the speaking screen stayed mounted, it could render before session words existed and read stageId from an undefined item.
I added a bounded fallback item and guarded the last-question calculation. The screen can mount safely while the session is being prepared; the selected words still drive the actual practice flow.
Be precise about what speech feedback measures
My initial implementation explored aliases, phonetic keys, and edit distance. A later team change uses normalized exact text matching. The current validator compares a transcript with a target word; it does not measure phoneme-level pronunciation.
The tradeoff The simpler current rule rejects some conversational answers. The portfolio should describe that behavior honestly rather than imply a pronunciation score.
What I take forward
Keeping a screen mounted changes more than its animation. I now review its initial state and side effects whenever I change a navigation transition.