Repository navigation
feat(site): add timed Harno A2 and B1 Estonian mock exams - #1379
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 640120c3f6
ℹ️ 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".
| return prev - 1; | ||
| }); | ||
| }, 1000); |
There was a problem hiding this comment.
Measure elapsed time instead of counting interval callbacks
When the browser throttles timers in a background tab or suspends the page while the device sleeps, this callback subtracts only one second regardless of how much time elapsed. Both mock exams therefore grant extra time without the learner pressing Pause; a callback delayed by 60 seconds leaves 29:59 rather than 29:00 on the A2 timer. Store a deadline while running and derive the remaining time from the current timestamp, preserving the remaining duration when explicitly paused.
Useful? React with 👍 / 👎.
| before: "Ma pean selle kirja", | ||
| after: "ära saatma.", | ||
| answer: "reedeks", |
There was a problem hiding this comment.
Remove the valid alternative from the A2 gap's spare words
The word bank explicitly offers reedel, which makes the valid sentence Ma pean selle kirja reedel ära saatma. (“I have to send this letter on Friday”). Nothing in the prompt or surrounding sentences requires “by Friday” rather than “on Friday”, but GapPassage grades by exact equality with reedeks, so a learner receives an incorrect mark for a valid answer. Replace this spare word with an invalid option or add context that unambiguously requires a deadline.
Useful? React with 👍 / 👎.
Timer counts from a deadline. A2 and B1 timings and recap state the real Harno test lengths. Remove the spare words that fit a gap, fix unnatural Estonian in the readings, the voice message and the interview, replace the unnatural loetud fix item, accept more correct typed answers and add 'usually' to rules with exceptions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # apps/site/public/audio/estonian-lessons/manifest.json # apps/site/src/lib/learn/clips.ts # apps/site/src/lib/learn/near-forms.json # 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
## Summary - **Plain lesson names.** 46 lessons are renamed to say what the learner will be able to say or do, in about four words, with no colons, endings or Estonian: Negation becomes Saying no, and Practice: looking for a flat becomes Looking for a flat. All in en, uk and ru. - **A final challenge (Proovikivi) ends every stage.** Stages 1 and 2 get new ones. The stage 3 and 4 checkpoints are renamed. For stages 5 and 6, the checkpoint and the A2 or B1 mock exam become one untimed lesson: 20 mixed questions first, then reading, gaps, fixing and writing sentences, two recordings and a piece of writing. There's no timer and no Harno framing, and `ExamTimer` is removed. - Kateryna's direction: prepare people for the gist rather than reproduce the exam format, end each module with a "final boss", and use streamlined names. ## Screenshots New surfaces and new names, so there's no before image. The current names are live at lymi.app/estonian/learn.    Try it: `pnpm --filter @lymi/site dev`, open `/estonian/learn` (or `/uk/…`, `/ru/…`), then `/estonian/learn/kontrolltoo-1` and `/estonian/learn/kontrolltoo-5`. No sign-in. ## Instrumentation No new event. The question stays whether learners finish a stage. The existing lesson and quiz events already fire from `LessonView` and `DrillRunner` for every lesson slug, so they cover `kontrolltoo-1` and `kontrolltoo-2` with no change. ## Verification - `pnpm --filter @lymi/site typecheck`: 0 errors. - `vitest run src/lib/learn src/components/learn`: 57 files, 4853 tests pass, including the per-lesson form, clip and catalogue checks for the new slugs. - `lesson:forms`: clean. `proovikivi` was added after a Sõnaveeb check (EKI ühendsõnastik 2026). - I drove the local dev server and took the screenshots above. - `lesson:audio:check` was skipped, because it would re-transcribe all 5,584 clips. No clip was re-recorded: the exam audio was moved with `git mv` and its manifest keys renamed in place. - The `eksam-a2` and `eksam-b1` URLs are dropped without redirects. They merged today in #1379 and haven't been deployed. Review: Claude (lead) reviewed the full diff, and one round fixed 12 weak uk and ru names from the Sonnet translation pass. The Codex connector reviewed de947b4 and found nothing (PASS). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Kateryna <10474869+krambertech@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Adds the two timed Estonian mock exams modelled on Estonia’s official Harno format:
/estonian/learn/eksam-a2, end of Stage 5): 30-minuteExamTimer, two readings (everyday notices and Mari’s email), drag-gap language structure, 6 typed sentence fixes, 6 typed translations, two listening parts played twice (plays={2}: Kati’s voice message and a two-voice hotel booking), and a short reply writing task with model and 5 checks (44 marked items)./estonian/learn/eksam-b1, end of Stage 6): 40-minuteExamTimer, two readings (local news report and housing association notice), drag-gap B1 structure, 6 typed sentence fixes, 6 typed translations, two listening parts played twice (plays={2}: morning radio news and a two-voice studio interview), and a formal letter writing task with model and 5 checks (44 marked items).ExamTimercomponent: accessible countdown with Start/Pause/Reset,tabular-nums, progress bar, and politearia-liveannouncements at 5 minutes and 0:00.Screenshots
Try it: open
/estonian/learn/eksam-a2or/estonian/learn/eksam-b1(or/uk/…,/ru/…), start the timer, and play aplays={2}listening part.Instrumentation
Reuses
learn_quiz_finishedandlearn_lesson_finishedfrom the kit. Quiz ids:a2-notices,a2-email,a2-gaps,a2-fix,a2-write,a2-listen-1,a2-listen-2,a2-writing,b1-article,b1-notice,b1-gaps,b1-fix,b1-write,b1-listen-1,b1-listen-2,b1-writing. No new event.Verification
pnpm i18n:check,pnpm check,pnpm --filter @lymi/site typecheck, all 80 site test files andpnpm --filter @lymi/site buildpass.lesson:formsconfirmed every Estonian form in Sõnaveeb (191 forms added automatically, 0 hand entries).koju-jalutades-kuulasin-ma-raadiot).lesson:audio:check: all 4 long passages (p-a2-voice,c-a2-trip,p-b1-radio,c-b1-interview) matched word-for-word;eksam-a2/me-kohtume-laupa2eval-kell-kolm-kohviku-eesflagged for ear-check (kohvikutranscribed askohvikku)./estonian/learn/eksam-a2/and/estonian/learn/eksam-b1/:scrollWidth=375, 0 page errors, 0 bad requests.Review: lead self-reviewed; CI checks pending.