Skip to content

feat(site): add stage 3-6 checkpoints and A1-B1 placement test - #1378

Merged
krambertech merged 3 commits into
mainfrom
t3/checkpoints-and-placement
Nov 25, 2026
Merged

krambertech merged 3 commits into
mainfrom
t3/checkpoints-and-placement

Conversation

@krambertech

Copy link
Copy Markdown
Owner

Summary

Adds the four Stage 3–6 end-of-stage checkpoints (/estonian/learn/kontrolltoo-3 through /estonian/learn/kontrolltoo-6) and the A1→B1 Estonian placement test (/estonian/learn/tasemetest), plus a “Find your level” link on the Estonian course hub.

  • Each checkpoint mixes 20 questions drawn round-robin from every lesson drill bank in its stage (repeats={false}), without explanations, and reports per-rule gaps with direct links back to each lesson section.
  • LessonView hides the “What to remember” block when recap and words are empty so checkpoints stay test-only.
  • The placement test draws 18 questions across Stages 1–6 (3 per stage) and recommends the exact stage and starting lesson based on the first stage below 67%.
  • lesson-isolation.mjs lists LearnPlacementPage alongside the other learn islands so Estonian lesson bundles stay off non-learn pages.

Screenshots

Stage 3 checkpoint (375 px) Placement test (375 px)
Stage 3 checkpoint Placement test

Try it: open /estonian/learn/tasemetest (or /uk/…, /ru/…) to take the 18-question level check, or /estonian/learn/kontrolltoo-3 for a mixed Stage 3 checkpoint.

Instrumentation

Reuses learn_quiz_finished (via DrillRunner with quiz="checkpoint" on stage checkpoints and quiz="placement", lesson="placement" on /estonian/learn/tasemetest) and learn_lesson_finished. Updated docs/analytics.md to document both quiz ids.

Verification

  • pnpm i18n:check, pnpm check, pnpm --filter @lymi/site typecheck, all 80 site test files (4,313 tests) and pnpm --filter @lymi/site build pass.
  • lesson:forms confirmed kontrolltöö in Sõnaveeb.
  • Zero audio credits spent (reuses existing drill clips).
  • Driven at 375 px in en, uk and ru on both /estonian/learn/kontrolltoo-3/ and /estonian/learn/tasemetest/: scrollWidth=375, 0 page errors, 0 bad requests.

Review: lead self-reviewed; CI checks pending.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T00:24:12.873379Z b7ae8c3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7ae8c3d0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +62 to +65
questions={session.questions}
sources={session.sources}
repeats={false}
onFinish={finish}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Suppress drill explanations during checkpoint runs

Every answered checkpoint question currently shows its teaching explanation: DrillRunner delegates to DrillRound, which unconditionally supplies item.explain to the round components. Setting repeats={false} only disables retries; it does not disable that feedback. This contradicts the checkpoint contract in docs/design/estonian-lessons.md:94 (“No explanations”) and teaches rules while the assessment is still measuring them. Add an assessment mode that withholds explanations until the run has finished, while preserving the existing feedback for ordinary drills.

Useful? React with 👍 / 👎.

krambertech and others added 2 commits November 25, 2026 11:10
…ailed stage

Checkpoints now draw at least one question from each lesson of the stage, the placement test takes its three questions per stage from three different lessons, and a learner who passes every stage is not told they handle A1 to B1 well on 18 questions. The analytics doc names the placement lesson key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…acement

# Conflicts:
#	apps/site/src/lib/learn/catalogue.ts
#	apps/site/src/lib/learn/verified-forms.json
#	apps/site/src/locales/learn/Kit/en.po
#	apps/site/src/locales/learn/Kit/ru.po
#	apps/site/src/locales/learn/Kit/uk.po
@krambertech
krambertech merged commit ca39e3f into main Nov 25, 2026
1 of 3 checks passed
@krambertech
krambertech deleted the t3/checkpoints-and-placement branch November 25, 2026 09:26

This branch was successfully deployed

2 active (1 outdated) deployments
app-preview — 1ce3ca8f Deployed Nov 25, 2026 by krambertech via cleanup #946
site-preview — b7ae8c3d Deployed Nov 25, 2026 by krambertech via site preview #4092
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant