Skip to content

feat(site): add timed Harno A2 and B1 Estonian mock exams - #1379

Merged
krambertech merged 3 commits into
mainfrom
t3/estonian-mock-exams
Nov 25, 2026
Merged

krambertech merged 3 commits into
mainfrom
t3/estonian-mock-exams

Conversation

@krambertech

Copy link
Copy Markdown
Owner

Summary

Adds the two timed Estonian mock exams modelled on Estonia’s official Harno format:

  • A2 mock exam (/estonian/learn/eksam-a2, end of Stage 5): 30-minute ExamTimer, 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).
  • B1 mock exam (/estonian/learn/eksam-b1, end of Stage 6): 40-minute ExamTimer, 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).
  • ExamTimer component: accessible countdown with Start/Pause/Reset, tabular-nums, progress bar, and polite aria-live announcements at 5 minutes and 0:00.

Screenshots

A2 mock exam (375 px) B1 mock exam (375 px)
A2 mock exam B1 mock exam

Try it: open /estonian/learn/eksam-a2 or /estonian/learn/eksam-b1 (or /uk/…, /ru/…), start the timer, and play a plays={2} listening part.

Instrumentation

Reuses learn_quiz_finished and learn_lesson_finished from 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 and pnpm --filter @lymi/site build pass.
  • lesson:forms confirmed every Estonian form in Sõnaveeb (191 forms added automatically, 0 hand entries).
  • Audio: 28 clips recorded (3,586 chars + 35 chars re-recording 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-ees flagged for ear-check (kohviku transcribed as kohvikku).
  • Driven at 375 px in en, uk and ru on both /estonian/learn/eksam-a2/ and /estonian/learn/eksam-b1/: 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:34:34.318583Z 640120c 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: 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".

Comment on lines +26 to +28
return prev - 1;
});
}, 1000);

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 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 👍 / 👎.

Comment on lines +288 to +290
before: "Ma pean selle kirja",
after: "ära saatma.",
answer: "reedeks",

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 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 👍 / 👎.

krambertech and others added 2 commits November 25, 2026 11:17
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
@krambertech
krambertech merged commit e519d15 into main Nov 25, 2026
1 of 3 checks passed
@krambertech
krambertech deleted the t3/estonian-mock-exams branch November 25, 2026 09:23
krambertech added a commit that referenced this pull request Nov 25, 2026
## 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.

![Lesson list with new names and a final challenge closing each
stage](https://github.com/user-attachments/assets/5fb5bdce-2bed-4840-bdef-4e3e0f883a48)

![Stage 5 final challenge at 375 px, mixed questions
first](https://github.com/user-attachments/assets/c91be380-7160-4a22-9169-81c0007d20ca)

![Stage 1 final
challenge](https://github.com/user-attachments/assets/8e5424df-d3ca-40df-8a4a-e17931bc0ae1)

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>

This branch was successfully deployed

1 active deployment
app-preview — c9c8b7ee Deployed Nov 25, 2026 by krambertech via cleanup #945
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