Expand description
Learn page state: where the learner stands on the roadmap, the question that closes a lesson, and the optional practice behind it.
Everything here is pure (no Dioxus, no browser), so every rule is pinned by unit tests. The page renders these types and forwards clicks and keystrokes to them; it never keeps a second copy of the rules.
Journeywalks the roadmap: which lesson is open and which are done. Any lesson can be opened; finishing one and moving on opens the next in roadmap order.LessonQuizis a lesson’s one question: answer it right, or try once and then ask to see the answer, and the learner may move on.PracticeSessionwalks a lesson’s extra questions in order, bringing a missed one back afterRETRY_GAPothers.
Structs§
- Journey
- Where a learner stands on the roadmap: every lesson in order, the ones done, the one open.
- Lesson
Quiz - A lesson’s one question.
- Practice
Session - A walk through a lesson’s practice questions.
Enums§
- Quiz
State - Where a lesson’s question stands.
Constants§
- RETRY_
GAP - How many other questions come between a missed one and its retry.