13 Commits
Author SHA1 Message Date
Claude d428900eff Owner: one button mails a link to the owner address; no file to edit on the server
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
2026-11-29 19:39:05 +00:00
CatoandClaude Opus 5.5 bf9e2afa64 Understanding test, word pages, sharing, what brings learners back, demo fixes, native-reader invitations (#403)
* Understanding test: does the chat get the meaning right, beside the same models without Heidi

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* A page for every word of the course, findable by the question people search

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Share an answer from the phone: the explanation and a link to Heidi, nothing stored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* End of a sitting: what is due tomorrow, and the one step that brings this person back

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Demo fixes: options in one language when one has no gloss; verb forms repaired in place

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Owner page: where the native reading stands, and a message ready to send per place readers come from

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 18:37:26 +01:00
CatoandClaude 87ce804fe3 A landing page for every business type, with a pilot request form (#396)
One template for all six sectors: the moment, the cost, what exists today,
the situations from the pack that fit, a pilot for that sector and a form
that is kept and mailed to the owner. The home page names more of what the
product covers and opens a door for organisations.


Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 15:35:31 +01:00
CatoandClaude Opus 5.5 cb94dcbaaa Daily chat benchmark on /models; home page second pass (#392)
* Daily chat benchmark, and what the check is worth, on /models

Eight fixed messages through the real chat every night, and the texts to
be said in Zurich German also through the same models without Heidi; both
face the same rule check. The last seven nights are public on /models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Changelog: the benchmark entry, above the pages entry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Changelog: the home page's second pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Home, second pass: show the message in the hero, name the reader, shorten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 12:02:17 +01:00
CatoandClaude 7a7d9317f5 Native speakers check the situations line by line (#388)
None of the 793 scene lines had been read by a native speaker. A reader now
goes through a scene with three buttons per line and an optional better
wording, without an account; the owner reads the verdicts and corrects the
pack. Linked from the organisations page and from each scene's line list.


Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 05:54:32 +01:00
CatoandClaude Fable 5.2 d2c9559ef5 Which one is Zurich German? Look-alikes with the reason; anonymous totals (#387)
* Owner check: why the owner pages do not open, for the person asking

The owner was named on the server and still got 404 on the numbers, with nothing to tell a missing sign-in from an unconfirmed address from a different address. /api/owner/check answers that about the caller only, and never says who the owner is.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Exercises: a review comes back in another form

Simulated over twelve daily sittings, a learner who got everything right met 52 different questions in 96: half of every sitting was the identical question on its review day. What is due is the subject, so where the scope has a never-answered question about the same subject in a different form, that one takes the review's seat (Plan.reviewOf) and its answer moves the card that was due (recordAnswer, siblings), so a subject keeps one schedule. New questions also prefer subjects not met yet. After: 83 different questions in 96; with half the answers wrong, 48 subjects instead of 30.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Situations: ask the word that matters, near-miss options, claims last

Reported from a phone on 2026-11-28 as useless: a heard line asked as a whole is read off its German cognates, with wrong options that are unrelated lines, or as a claim that is the German read back. Now the line is asked through its least German-looking pack word, in its sentence, with the pack's own four meanings (WordAsk; once per run; no cognates), else as three meanings whose wrong ones are near misses (negation out, day moved, number changed; German word tables with the packs), and as a claim only when neither is possible. Recorded against the line's own item, as pickOf is. Also: pagesFor for chat wayfinding, and no second printing of the German after a true claim.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Situations: a right answer moves on by itself, as in a sitting

Reported from a phone: the situation run waited for «Wiiter» after a right answer while a sitting moved on by itself. The pulse and the beat lived inside Verdict; they are now useAnswered, used by both. Touching the answer holds it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* wip: build your own sentence in the chat

* Chat: build your own sentence; a link to the page a question asks for

The moment a learner cares most about a Zurich sentence is when they asked for it, and the chat let them copy it without one act of recall. «Selber bauen» hides the line, deals its words out of order and has them rebuild it by tapping (build-own.ts; only lines the check passed; nothing stored). And a question that is really asking for a page gets a link to it under the answer (pagesFor, drawn; answers to questions only). Measured on a Pixel 7 viewport in de and ru: the line is hidden while building, no overflow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Situations: take your turn by tapping or by writing, your choice

How much effort is the learner's choice: the turn opens on the word tiles, and «Lieber schreiben» swaps in the same line as the pack's typed, self-marked exercise (BuildStep.write). Recorded against the built item either way; kept for the run. Played through on a Pixel 7 viewport: toggle present, field shown, no overflow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Near misses: read all of them, keep the safe kinds, add the ones care lines need

Measured: 57 of 156 heard lines in the care scenes fell back to unrelated wrong options. Added guarded swaps (noch nicht/schon, nicht mehr/noch, zweimal/dreimal, Nachmittag/Vormittag, gut before a participle, colours and heiss/kalt with their endings). Then read all 235 generated options: about a third were broken German or gave themselves away, so kein→ein, heute/morgen/gestern, früher/später and einmal are gone and the negation, schon and gut are guarded. 128 remain; a test pins nineteen rejects and checks every option in the pack is tidy.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Anonymous totals: what is started, finished and answered wrong

Practice lives in the browser, so nobody could say whether people finish a situation or which question everybody gets wrong. Decided by the owner on 2026-11-28: count it, anonymously. usage_counts holds a day, a key and a count; a key is built from a closed vocabulary and checked on the server against the scenes and questions that exist (usage/keys.ts), so nothing a client types is stored. /api/usage always answers 204. Runs, sittings, each first answer and the chat's own-sentence exercise report; the owner's numbers show 28 days and the hardest questions. The privacy page declares the flow in seven languages.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* One care word that cannot be guessed, and why four others were not added

The care scenes were mined for opaque words. «Strähl» (Kamm) is one; «Dokter», «Hämp», «Rugge» and «parat» are read off their German, and asking about them made the runs measurably worse. Recorded in the pack so the next attempt starts from the measurement.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

* Situations: which one is the variety? The line among its look-alikes, with the reason

The promise is the right dialect, and no exercise trained telling it from what is almost it. A look-alike is the line with one word changed, made only from a pack rule read backwards (a leak for the written standard, a regional or house rule for elsewhere), and kept only if the gate refuses it. The German is the question; after the answer the screen says why each wrong option is wrong (Which.notes). 312 of 491 heard lines have one; unrelated-option questions fall from 96 to 56 (everyday) and 41 to 23 (care). Recorded against the line's own item. Checked on a Pixel 7 viewport in de and ru.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 05:05:01 +01:00
CatoandClaude 37edcd8b99 Round two: situations, reading, dialects map, photographs, R2-ready media (#364)
* feat(dialects): one sourced register of dialect forms, and the language map's data

The same twelve everyday items in seven Swiss German dialects, each form
with the atlas map or article section it was read in (accessed 2026-11-26),
Zurich's column read from the pack, and a cell nobody could read safely
left «nicht belegt». The register lives with the pack (`family.register`),
so the leak gate holds; `lib/dialects/` only resolves, compares and narrows.

Re-reading the Kleiner Sprachatlas maps at full resolution corrected five
cells: Basel and Chur say «eppis», Lucerne «mier», St. Gallen «hend» and
«Chend»; Chur's butter shows Schmaalz beside Butter.

The language map: swissBOUNDARIES3D (©swisstopo) coloured by the BFS
typology «Sprachgebiete 2020»; the language figures moved to
`lib/config/languages.ts`, with the Italian region counted correctly
(121 municipalities, not 114).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(dialects): an interactive language map opens the area, with profiles, comparison and a helper

/dialect opens with one map of Switzerland: every Swiss German dialect area
links to its page, the Romandie, Italian Switzerland and the Romansh region
to a new language page each (/languages/fr, /it, /rm, one template: where,
in BFS figures, what Heidi offers today, what is planned without a date, and
the interest form). Under the map: the seven dialects a learner meets (where,
three forms to recognise by ear against Zurich, what that means for
following), the same words side by side, «which dialect am I hearing?», the
message reader and every area by branch.

Each area page opens with the same map, its area in red, and for the seven
compared dialects the profile and the comparison with Zurich. The home page
shows the map instead of the town dots and links it from its ways in; the
languages page opens the language pages; both new kinds of page are in the
sitemap and the responsive audit.

Dictionary text was checked against the sources: claims without one
(«Lucerne sounds between Bern and Zurich», «asking again is normal») are gone,
the superlative about Valais German is softened to what Wikipedia says.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(practice): the stretch in a sitting stays a stretch

A new question may be one band above the learner's level, and which kinds
take the first seats is luck. With more kinds that have nothing on level 1
than kinds that do, luck alone could deal a beginner a sitting that was
mostly one band too high: seventeen new situations moved the scene items
around and one seed of the "fit" setting came out 3 of 8 on the level.

While a kind still has a question on the nearest level, at most half of
what one deal seats is above it. Seats are never left empty for it: once
the nearest level runs out, the next band is the nearest.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(situations): a purity gate over every line, and seventeen new situations

THE GATE. `lib/variety/purity.ts` holds what we publish in the taught
variety to three things the chat gate does not check, all read out of the
pack: no Standard German word where the pack gives the Zurich form (leaks,
correspondences, every one-word pair of the word list); no marked form of
another dialect (the regional rules, each with a source); one spelling per
word, the pack's. A test runs it over every scene line, the template
validator over every hand-written sentence, and a third test holds the pack
to its own spelling.

What it finds in the 412 lines of 2026-11-25: 37 lines — 29 spellings
(«gschlaafe», «sii», «staa», «umstiege», «laufed», «nüüt» …), 5 Standard
German words («Hauswart» twice, «Nachbar», «redet», «weg»), 4 Weinland «üs»
— four words spelled two ways across scenes, and the pack itself writing
seven words two ways (nüt/nüüt, gä/gää, lüted/lüüted, Aabig/Abig,
blibe/bliibe, blibed/bliibed, gärn/gern) plus «do» for «hier» where every
line says «da». Fixed at the cause: the pack's examples and leak
suggestions, then the lines, then 29 hand-written question sentences.
«gäng» was a Zurich word in the list; German Wikipedia names it a Bernese
speciality and it is now a regional rule. «schwierig» is «schwirig» in the
line and wherever the copy quotes it.

THE SCENES, all `reviewed: false` with the pack: relative on the phone, pain
in more detail, medication round, a new resident's first day, washing and
dressing, the night round, the doctor's round and — new in this commit — a
resident at the front door who wants to go home (care); pharmacy, post
office, a repair with the Abwart, bank, Coiffeur, bakery, asking the way,
Badi, a first evening at a Verein (everyday). The municipality scene gains a
second beat, the permit renewal. Every beat now falls between two exchanges,
not inside one. Words outside the pack were looked up in the Idiotikon
register; the at-the-door scene records the columns.

THE ORDER. The care list runs the way a day runs (handover, morning care,
washing, meals, medication, pain, the doctor, visitors, the phone, the new
resident, the evening, the door, the night); everyday runs the way settling
in does, so a learner who says "I have just moved" is handed the way to the
station, the municipality and the bank first.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(reading): texts to read in Zurich German, held to one purity gate

- /reading: a shelf of texts, easiest first. The course's own situation
  lines composed into short exchanges, and passages from the Alemannic
  Wikipedia's Zurich German pages, verbatim, each with page, revision,
  history link and licence (CC BY-SA 4.0). No text claims a review.
- One gate for reading texts, purityProblems(text, pack): standard forms
  derived from the pack (paradigm rows, cognate headwords,
  correspondences, the article mapping, small leaks with a dialect
  ending, st where the course writes scht); other dialects' marked forms,
  each sourced; one spelling (house rules, shapes of other conventions,
  letters the course never writes, and words that fold onto the course's
  own written another way). A shelf-wide check keeps every word to one
  spelling across texts.
- scripts/reading-harvest.ts lists and fetches all 375 pages of
  «Artikel uf Züritüütsch», gates every sentence and prints the counts
  the page shows; --verify checks each shipped passage verbatim against
  the revision it names.
- A text is read in large type with pressable words (meanings only from
  the vocabulary, none guessed), then three to five questions, then the
  shared ending. Reachable from the menu, home, Mein Bereich and the end
  of a situation with a text of its own.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(dialects): area pages lead with where the dialect is spoken; a thinner, legible map

The map draws thin muted borders instead of white gaps, so its areas read in
the dark theme too; a hovered area gets a red edge, a focused one a thick
one; on the dialects page it is no wider than 56rem. An area page states
where the dialect is spoken under its name rather than repeating the name in
a profile below. «Not attested» is a quiet status rather than a form, and
the Russian label is «нет данных»: the long one ran out of its column at
320 and 390px on the Basel and Graubünden pages (responsive audit).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(glosses): every new scene line in English, French, Italian and Russian

HEIDI.md says these four exist for every word, scene line and hand-written
question text. The new situations arrived without theirs: 381 lines, 54%
coverage of the phrases. All four are now at 792 of 792, drafted from the
Zurich line and its German together, unreviewed like the rest of the set —
and a test now fails the day a line is added without them, so the sentence
in HEIDI.md is a gate rather than a hope.

«Und wie chume ich dänn an See?» was answered «Nei, nur über d Brugg» —
a no to a how. It is «Eifach über d Brugg».

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(reading): the opener names the texts, and a number keeps its unit

The /reading opener said «Alle Situationen», borrowed from the situations
page; it now says «Alle Texte». In a text, «8 km» no longer breaks between
the number and its unit; the words themselves are untouched.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(design): legible in both themes, sharper openers, and a list of 37 situations that reads

THE LIST. The short list of a learner's own situations (practice, Mein
Bereich) printed every one a reason gives — fourteen for somebody in care —
above the rest of the page. It shows five, from where the learner is
(`previewOf`): finished ones drop off the front, the order never reshuffles,
the one recommended next is always there. The full list opens with one line
of links to its two domains, so the ward is not twenty-three rows down.

THE OPENERS. A 16:9 photograph covering a phone screen is drawn about 1500
pixels wide; `sizes` said 150vw, so a DPR-2 phone was served 1200 pixels at
quality 75 and it looked soft. It says 200vw and the quality is 85, one step
each (`images.qualities` allows it). Bytes at 390px, DPR 2 / DPR 3:
home 130 KB / 225 KB → 272 KB / 272 KB, practice 127 / 215 → 257 / 257,
listen 99 / 194 → 240 / 240 — the whole 1600-pixel file at DPR 2 now.

LIGHT AND DARK, measured at 390px over sixteen pages (solid text against its
real background, focus on the first tab stops): every token pair passes. What
did not: controls that cannot be used yet were drawn at 40–60% opacity —
«Leichter» 2.7:1, a disabled «Prüfen» 2.7:1 in dark — and an answer that is
out of the running was muted ink at 60%, grey on grey. They are muted ink at
full strength now (4.5:1 or more on every surface). A wrong answer's words
were flag red on its own tint, 4.4:1; they take the deep red ink
(`--color-incorrect-ink`, 7.1:1; dark keeps its lifted red, 5.8:1).

ALSO. The listening opener's button said «Zwanzig Minuten»; it says what it
leads to, «Drei für heute», in seven languages. The six sectors on
/organisations were a ragged stack of chips on a phone; they are a list
there, chips from `sm`, in their own component. The Badi opens on the
Strandbad picture already in the register. The responsive audit measures two
of the new scenes.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* docs(situations): the short list and the domain links in HEIDI.md, and where each new word was looked up

HEIDI.md §4 says how the list of situations reads with thirty-seven of them.
The new scenes now name, beside the lines, the Idiotikon register entries
their words outside the pack were checked against (volume, column), the way
the at-the-door scene already did.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* merge: dictionaries keep the dialects and the reading namespaces; one entry per source

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(purity): one gate for every line the course prints

The reading gate and the situations' gate become one module,
lib/variety/purity.ts, with one API used by the situations, the reading
shelf and the authored questions. It keeps the stronger checks of each:
paradigm, cognate and inflection-derived standard forms, the scht rule,
letters and diacritics the course never writes, the shelf-wide
one-spelling check, the leaks, correspondences and word pairs, and the
sourced regional rules.

- The other-dialect list is one list in the pack's rules: the Bern and
  Basel forms the reading pack carried move there, deduplicated; the
  shapes of the standard language and of another spelling convention are
  the pack's houseMarks; the distinct spellings are one list.
- The pack gave «Aache» as Wallis/Fribourg butter citing SDS 5/179.
  Kleiner Sprachatlas map 28 (SDS 5/179), opened today, prints no such
  form: Wallis «Aichu», «Aihu», «Öi(c)hu»; Sense «Ou(c)he»; «Aahe» in the
  south-west Bernese Oberland. The rule now says so.
- The pack wrote «gsee» and «gseh» for one word; it now writes «gseh».
- Reading: one situation text per scene from the current lines (36; the
  post-office scene has no word to ask about and waits); the harvest was
  run again against the one gate; «Villa Liebegg» lost one sentence
  («nachhär»), and --verify found all eight passages verbatim.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(dialects): a readable map in dark, the map on the first screen, a row of sections that says it scrolls

- The language map has its own colour roles (land, edge, hatch, water,
  hover) in globals.css; in dark the land is lifted off the page and the
  edges and hatches are light enough to count twenty areas.
- From lg the dialect area's map sits beside its title (PageHeader
  `aside`), so 1280×900 opens on it; the area rows follow (MapAreaList).
- The section rail fades the end that has more behind it and keeps the
  current chip in view, so a cut-off chip no longer looks like the last.
- «Welche Mundart?»: on a phone the verdict rides along the bottom of the
  clues once one is ticked, with a way down to the reasoning (reduced
  motion respected).
- Mein Bereich offers reading from the start, not only after a text.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(photos): stronger openers, places for everyday scenes, and photographs ready for object storage

Every photograph was rendered where it is used, at 390 and 1280, light and
dark. Replaced:
- station (practice, asking the way): the front was crossed by tram wires
  and parked cars; now the main hall (Dining Car from Wien, CC BY-SA 2.0).
- the lake (reading, Mein Bereich, care): a strip of hills and grey water on
  a phone; now the Glarus Alps over Lake Zurich (Roland zh, CC BY-SA 3.0).
- the dawn lake (dark of the same pages): an empty orange gradient on a
  phone; those pages now use the city at night already on the site.
- the night sky on Über Heidi: haze over a dark strip; now the Blüemlisalp
  glacier under stars (Deralpinbergsteiger, CC BY-SA 4.0).
New places: the Seebad Utoquai for the Badi, Butterzöpfe for the bakery,
the Fraumünsterpost for the post office, the Erismannhof courtyard for
neighbours, the laundry room and the Bünzli. Author and licence from each
file's record at Wikimedia Commons; alt text in all seven languages.

Served bytes: next/image now prefers AVIF; every opener at 390px DPR 2 is
58-162 KB (WebP at the same quality was up to 272 KB). A test holds each
registered width and height to the file's own header.

Object storage: NEXT_PUBLIC_MEDIA_BASE (lib/config/media.ts) makes every
photo resolve to <base>/photos/<file> and gives next/image the host;
unset, nothing changes. scripts/media/upload-photos.mjs uploads
public/photos to an S3-compatible bucket with PHOTOS_S3_* settings named
like Solon's: dry run by default, skips objects already there, SigV4 signed
with node:crypto (checked against AWS's published example).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 10:39:16 +01:00
CatoandClaude Opus 5.5 e8018631cb Chat: translate or talk in one tap, a model you can see and pick, /models (#363)
- Two pills in the composer, «Übersetzen» and «Gespräch» (chatkit's
  `modes`), remembered in `heidi.chat.prefs.v1` and sent with every message.
  On Translate the turn gets an instruction that the text is to be carried
  across, never answered, and never declined for its topic
  (lib/domain/chat/intent.ts). Reported from a phone: four sentences about
  tariffs, pasted to be translated, were declined as political analysis.
- Under an answer in mode "answer": «Nur übersetzen» resends the line as a
  translation and leaves the composer on Translate.
- The dock gets the model chip (it mounted the sheet with no button). The
  chip names the model: own key, the free one picked, or the one that wrote
  the last answer.
- The sheet's free-model list is a picker; the pick only reorders the chain
  (`preferred`), and an id the deployment does not run is ignored.
- /models: each free model with what it did here, from every turn since the
  restart (lib/domain/model/stats.ts) and stored answers of 30 days.
- Privacy page declares the new store; /models in the layout audit,
  noindex and out of the sitemap.


Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 09:52:45 +01:00
CatoandClaude 59419a1063 release: places on every page, situations as guided runs, profile and Mein Bereich, modular code (#361)
* feat(profile): a learner profile, and a personal page that answers three questions

One profile model as a view over the stores that already hold each answer;
the setup «Dein Profil einrichten», one question per screen; the profile
card on the personal page; «Wo stehe ich?» and «Nutze ich Heidi gut?»;
progress kept with the account by default; reminders only when behind the
learner's own weekly goal.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* docs(profile): record the new sync default and the profile; audit the setup screen

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(profile): interests lead the listening

One more profile question, «Was interessiert dich?»: nine choices that name
the topics every row of the listening register already carries. The
listening page opens with the rows that fit, each saying which choice it is
there for and how much can be asked about it; «Nutze ich Heidi gut?» names
one of them when the thing to do is listen. Chosen in the browser, so the
page stays cached; stored as a field of the profile record.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix: an eight-character password floor, a localised investors door, page titles and four layout leftovers

- A new password needs eight characters (sign-up, change, reset), through a
  plugin the account package accepts; signing in with an older, shorter
  password still works. The message is in all seven languages.
- The investors door says «Passwort / Öffnen» in the reader's language.
- A failed sign-in, the unsubscribe page and the signed-in personal page
  have their own titles; a test holds every page to one.
- The kept sentence under a saved word is no longer hyphenated
  («Schlüs- / sel» at 320px).
- «Warum die Übungen so gebaut sind» is a closed row with a chevron.
- The account forms' primary button is black, like every other.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(sync): the merge policy is a tested function; the profile says when sync failed

What one pull changes in this browser moved out of a useEffect into
lib/domain/progress/merge.ts (planMerge, decodeDevices, statusAfter), with
tests for every rule. The runner only fetches and writes.

A failed request and a 401 used to be swallowed; the personal page went on
saying progress was stored with the account. They are now reported through an
in-memory status, and the sync line shows when it last got through, that it
did not (with a retry), or that this browser is signed out (with the way in).

One deliberate difference: a device that holds no bridge/difficulty choice
no longer hides an older device's choice from a third one.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(practice): one recordAnswer, a tested and resumable test run, exercise words by context

Items 2, 3, 7, 13, 16 and the practice and test screens of 12, which share files.

recordAnswer (lib/domain/practice/record.ts) is the one place an answer is
written into history, model, memory and the day. The sitting and the warm-up
wrote it out twice with different rules and the test a third time. Decided:
the first answer teaches (the sitting's rule); the day counts from the first
answer, so a warm-up left half way now counts (the sitting's rule won); a
test answer counts for the day only, kept on purpose and said why.

The test's draw and its stored shape are lib/domain/practice/test-run.ts,
tested. A run survives a reload (heidi.practice.test.v2, per course, on the
privacy page), keyed by sitting, with the clock held as a deadline.

practice-session.tsx 620 -> 217 and test-session.tsx 427 -> 146: state and
rules to use-sitting.ts, use-test-run.ts and lib/domain/practice/sitting-run.ts
(tested); LevelRow, UsedUp, the test's start and result screens, and the
warm-up's result are their own files.

The six dictionary slices every exercise read as props come from one
provider (exercises/words.tsx); the pages build them with exerciseWords().

heidi.voice.v1 is on the privacy page, so 'delete everything on this device'
removes it; privacy.test.ts now checks both directions.

The warm-up and the home page's speech bubble take the variety from the pack
instead of writing 'gsw', and the leak ratchet covers app/.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* revert(auth): accounts stay the package's; no password rule of Heidi's own

Sign-up and sign-in behave exactly as @bitbaum/accountkit defines them. The
eight-character floor added here as a local plugin is removed, with its
message and note; a rule about passwords belongs in the package, for every
app at once, or nowhere.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(model): one chain, a tested judgeTake, and the speaking check says why it has nothing

Items 4 and 8.

lib/domain/model/chain.ts: modelChain() and ownChain() replace four copies of
usableChain(freeChain("HEIDI")), and hold the health tracker three routes
imported from the chat's route file. A test fails on a fifth copy.

lib/domain/speaking/judge.ts: the take's judgement (request reading, the
bridge/target gate, the model call, the gate on the suggestion) with tests
and an injectable model. api/speaking/take/route.ts 222 -> 45 lines.

The route's answer now says which kind of nothing it is (opinion), and the
screen reads the status too: a rate limit, a model that could not be reached
and a model with nothing to add each have their own sentence, in seven
languages. Before, all three printed 'Heidi has nothing to add right now'.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(shell): an error screen inside the site, and loading states where they cannot change a status code

Item 5.

app/[locale]/error.tsx: a page that throws keeps the header, footer and chat,
says so in the reader's language, and offers retry and the way home. Its five
words come from the layout through a small context, so the dictionaries are
not shipped to the browser.

loading.tsx is NOT at app/[locale]/, on purpose. It was added and measured: a
loading file starts the response before the page runs, so 9 of 22 probed
addresses changed status (every unknown page 404 -> 200, /account and /portal
307 -> 200). The same screen is instead the loading state of the six routes
that can only answer 200 (vocabulary, speaking, listen, profile, settings,
warmup), and a test fails if a loading file is put above a page that calls
notFound() or redirect().

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(a11y): the two modal sheets are real modals, and an accessibility pass over existing screens

Item 6.

The sitting's settings and the model connection claimed aria-modal on a plain
div with no focus trap. Both are now chatkit's Sheet (a native dialog opened
with showModal): focus stays inside, the page behind is inert, Escape closes,
and the opener gets focus back. A test fails on aria-modal anywhere else.

The pass, in code:
- the model sheet's close button was labelled with a multiplication sign; it
  is the package's labelled 44px button now (model.close, 7 languages)
- tap targets under 44px raised: the settings chip, saved words' export and
  clear, a take's delete, a failed chat bubble's retry, the word popover's
  button, the invite link's rotate
- a listening question marked the right option by outline colour alone; it
  carries the drill's tick and cross
- seven error lines appeared without role=alert (topics, rounds, recorder)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(chat): one way to follow a conversation, and the dock in three files

Items 10 and 12 (dock).

chat.tsx, the dock and the group chat each scrolled a marker into view on
every change of the messages. That is now chatkit's useStickToBottom behind
one small hook (chat/use-follow.ts): the thread is followed until the reader
scrolls up, so a token or a message from someone else no longer pulls them
away from an older answer.

chat/dock.tsx 577 -> 235: the panel is chat/dock-panel.tsx (242), and the two
facts only a browser knows about the launcher (is it lying on a control, how
tall is it) are chat/use-dock-launcher.ts.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor: answer view, round list and chat workspace under 300 lines, with their logic in lib

Item 12, the remaining three.

chat/answer-view.tsx 421 -> 185: the glosses, the suggestions and the row of
buttons are their own files; what the row holds (ownRowItems) moved to
lib/domain/chat/row.ts with tests.

round-list.tsx 415 -> 216: the form to open a round is round-open.tsx; what a
viewer may do with a round (roundChoices) and the request a host's form
becomes (newRoundBody) are lib/domain/speaking/round-view.ts with tests.

chat/workspace.tsx 415 -> 263: the transport is a hook, the words handed to
chatkit's ChatApp are workspace-words.ts (tested in all seven languages), and
the offer to keep a browser conversation is adopt-prompt.tsx.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(http): one id pattern, one organiser check, one audio-upload guard

Item 11.

The UUID pattern was defined in eleven files; it is lib/http/ids.ts.
organiserGroup was written out in the invite and the team route; it is in
lib/domain/groups/store.ts beside groupById. The bounded read of an uploaded
recording, copied between the two transcription routes, is
lib/http/audio-upload.ts with tests. A test fails on a second definition of
any of the three.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* chore: remove dead code and dictionary keys nothing reads

Item 15.

scripts/responsive-audit.mjs is superseded by scripts/audit/responsive.mjs,
which package.json's audit:responsive runs; nothing referenced the old one.

Exports with no reader anywhere (code, tests or scripts), found with knip and
confirmed by search: draftTransport, CowLockup, useHistoryView, recordFor,
Prose, countNewSince, isChannelId, isVideoId, lastChanged, moveId,
forgetInterest (account deletion removes those rows in erase.ts),
isObjective, stretchOf, essaysAbout. useTheme is used only in its own file
and is no longer exported.

36 dictionary keys whose name appears nowhere outside the dictionaries, in
all seven languages: home.{trustTitle,trustBody,trustLink,pillarsTitle,
methodLink,researchLink,contributeTitle,contributeCta}, pillars,
check.{failShort,noteTitle}, technology.directionLabel, privacy.updatedLabel,
contribute.{needTitle,needList}, auth.{portalLead,notSignedIn},
streak.goalLabel, practice.{correctIs,buildPrompt,verifyPrompt,typeLabel,
testAnswer,testDone}, essays.notTranslated, review.noneHint,
organisations.momentLabel, shell.{wordsTitle,wordsDue,wordsNone,wordsOpen,
courseSteady,resumeTitle,resumeProgress,resumeNone,resumeStart}.
Keys read by id (privacy.flows.*, chat.learn.*Label, feedback reasons) were
checked and kept.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(a11y): the modal sheet gives focus back to what opened it

Found in the browser: closing the model sheet with its close button left
focus on <body>. The opener was read in an effect, which runs after the
sheet's own effect has already moved focus into the dialog. It is read while
rendering now.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(shell): no focus ring round the error screen's heading

It is focused by the page so a screen reader starts there; the ring drawn
round it read as a text field.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(components): one folder per feature under _components

The flat folder of 131 files is sorted the way chat/, exercises/, profile/,
session/ and speaking/ already were: shell, shared, home, languages, dialect,
dashboard, vocabulary, listening, channels, groups, rounds, sync, practice,
situations, warmup, voice, byok, auth, essays. Files moved with git mv; no
barrel files, as before.

The stores that are storage and nothing else (practice, focus, streak, warm-up,
video), the one write path for an answer and the API error wording moved to
lib/browser and lib/http. Tests that scanned or named the old paths follow, and
the two that read 'this folder' still read every component.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(listen): «Für dich» is the first thing under the title

The rows that fit a learner's interests, or the one card that asks for them,
sat below the diglossia warning. They now come straight after the title and its
lead; the warning, the day's picks and the whole register stay below.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* chore(i18n): drop footer.varietyName, which nothing reads

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* chore: remove four exports and three types nothing references

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(listen, profile): the interest tiles stay under the finger; the sync choice is one column on a phone

Found walking the release at 390px.

/listen: the first tile tapped in the invite card already makes a pick, and the
card turned into the list at that moment, with the tiles pushed below three
rows. The card now stays a card until «Fertig», and then the list is brought to
the top of the screen.

Mein Bereich, signed in: the two answers to the sync notice sat side by side
inside the profile card, some 130px each, and «Nur auf diesem Gerät behalten»
stood four lines tall. One column below sm.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(situations): the logic of a guided run through one situation

A situation was a reference list, and practising it was a random draw of
eight questions. This adds what a guided five-minute run needs, as pure
functions with typed results and no screens.

lib/domain/situations:
- planRun: every heard line in pack order with one question about its
  meaning, then up to two lines built from their words and said aloud,
  then the whole exchange again. Deterministic for a seed; a stored run is
  rebuilt from its step ids (heidi.situation.run.v2, per course, declared
  on the privacy page).
- situationProgress: followed x of y and new / started / followed / due,
  read from the learner model's line traces and the memory's due dates.
  A run's answers are recorded by recordAnswer; nothing else is stored.
- nextSituation, orderSituations: one recommendation with its reason, and
  the list with the learner's own situations first.

lib/situations: optional speaker, addressee, register, answers, reviewed
on a line and beats on a scene, with a validator test. Read from what the
packs and the reply questions already state (lines.ts); beats are written
for the fourteen scenes that were deepened by ten appended lines.

Fixes at the cause:
- a sitting on a scene no longer takes a quarter of its questions from
  the neighbouring scenes, and no longer asks a word inside a line of
  another scene;
- a wrong meaning in «Stimmt das?» is the same sentence type as the right
  one wherever the scene has such a line;
- the speaking task list can be held to one scene.

Strings for the future screens are under situationRun in all seven
dictionaries.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(design): every main page opens with a place, lists are rows, and a sitting ends as a moment

Shared primitives in _components/shared: Scene (a full-height photograph
with the page's one headline, one line and one action on it, white on a
shade in both themes), RowList/RowLink (lists as rows with hairlines, no
cards), SectionHeading, and Ending (one full-screen ending for practice,
the warm-up, the test and a used-up scope). The type scale is three roles
in globals.css: headline, subhead, kicker.

Home, practice, listening, speaking, the situations list, languages, about
and Mein Bereich each open with their own Swiss place, by day and by
night: 16 photographs from Wikimedia Commons, author and licence read on
each file's page and listed in lib/config/photos.ts (credits on the
Impressum). During an exercise the question stands alone, without a box.
Motion is CSS only and off under prefers-reduced-motion.

Removes hero-photo.tsx and the card boxes around lists on these pages.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(situations): a situation is a guided run, and every ending hands on to one

A situation page was a reference list with «Üben» at the bottom. It is now
the opener of a five-minute run, one thing per screen:

- /situations/<id>: a photograph of the place, one sentence, lines and
  minutes, one button (start, or pick up at the step it was left on); the
  review state said once; the old list one quiet link away (./lines).
- /situations/<id>/run: each heard line alone with its one question, then the
  German; two lines to build and to say aloud with the speaking recorder held
  to this scene (played back, never marked); the whole exchange again without
  German, by speaker and paced; the shared ending with ONE next situation and
  its reason. Every answer goes through the one ledger; the place is kept.
- /situations: a run left half way pinned on top, the learner's own
  situations, then each domain, as rows with their state. The twenty-chip
  picker on /practice and the board of figures are this list now.
- The endings of practice, the test and the warm-up offer a situation when
  one is the learner's next step; the home page leads a new visitor to the
  warm-up; «Weiter: <situation>» on the home card and the personal page.
- The warm-up's pointer now holds: its own answers made the scene it points
  at read "started", so it was never recommended.

Design: during an exercise only close, progress and the question remain (the
sitting's name and choices are behind one button in the bar); kickers and
actions on one line at 390px; rows instead of boxes on listening, speaking,
grammar and vocabulary; on a wide screen the shade is only where the words
are. Openers with a crane, a scaffold or a flat sky are replaced, and the
situations open with their own places (Wikimedia Commons, credited in
lib/config/photos.ts).

The responsive audit walks a run through every kind of step to its ending.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(photos): the care briefs open on the lake, and the night opener has no cranes

The two pictures of the hospital were a dark office front behind a parked
car, and they opened every care situation. No better licensed picture of the
place was found, so the care scenes open on the lake by day and at dawn,
both already in the register. The blue-hour picture on the home page, the
practice page and the tram brief is replaced by one without building cranes
(Dark Blue Zurich, kuhnmi, CC BY 2.0, read on the file's page at Wikimedia
Commons). The tram brief keeps the tram's front on a phone and leaves the
car beside it out. The three unused files and their entries are removed.

The alt texts of the removed pictures go with the next commit, which
touches the same dictionaries.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(situations): a run is one part of a situation, about five minutes

A run through a whole situation was twenty-two steps, seventeen of them the
same «Stimmt das?». A run now takes one part: a beat where the scene has
one, about eight heard lines otherwise, with up to two lines to build, one
to say aloud and the replay of that part. The next run goes on with the next
part, read from the ledger (no second record); once every part has been gone
through, a run revisits the part with the most lines missed or due.

The brief says what the next run is (heard lines, minutes, part n of m), the
ending counts the part and, while a part is ahead, its one next step is that
part. Progress on the list still reads across the whole situation.

Questions vary: a «Stimmt das?» can be asked the other way round as three
meanings of the same scene, recorded against the same item, so one shape
does not come three times running where the line can be asked another way,
and the claims put to the learner are wrong about as often as right. The
claim is drawn as a claim, in its own labelled frame, not as the line's
translation.

Stored runs keep their shape; the replay's step id now names its part, so a
run stored before this is planned afresh.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(model): the free chain is built in one place, pass model included

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 03:58:15 +01:00
CatoandClaude 28e9950014 Pass codes, a pass that buys a stronger model, and passes for organisations (#360)
A pass changed one number nobody reaches, was sold only for Bitcoin, and
was switched off. This makes a pass worth having and gives an organisation
a way to get one for each of its people.

- Pass codes (lib/pay/codes.ts, drizzle/0020_pass_codes.sql): the owner
  issues one code per person at /owner/pass-codes, each person redeems
  theirs on /pass. A code grants once, through paykit's extendEntitlement,
  and only its hash is stored. Needs no price and no OrangeCat.
- /pass takes a code whether or not passes are sold for Bitcoin; a pass is
  a pass without a price being set (hasPass no longer depends on one).
- The model a pass buys (lib/domain/model/pass-model.ts): one paid row in
  front of the free chain, named by HEIDI_PASS_MODELS, gated by ai-kit's
  spend rules. Off until configured; /pass promises it only then.
- Fixed: a pass tripled the allowance only in /api/chat. Saved
  conversations, where a pass holder writes, counted at the open rate.
- /organisations: a card for passes for a team, with a mail link.
- Wording in all seven interface languages; privacy page names pass_codes;
  account deletion keeps a redeemed code used and unattributed.


Claude-Session: https://claude.ai/code/session_019MDtmteJuDGFouA1itJ5tM

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 00:31:37 +01:00
CatoandClaude edf2cd32c5 release: informal address everywhere, engine clean-up, account limits, owner numbers (#358)
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 18:07:34 +01:00
CatoandClaude 38efcba8ed release: calmer shell, exercises that stay fresh, and the languages of Switzerland (#357)
* feat(practice): sittings that stay fresh, a level the learner moves, and a summary worth reading

Half of every sitting is new while the scope has anything new; reviews
that find no seat lead the next one. A question answered and not yet due
is not asked again, and a used-up scope says so and offers the wider
sitting. One question per word or line per sitting. The level of new
questions follows the learner's own setting (easier, just right, harder)
and moves by itself on a run of right answers or repeated misses, said in
a line with the way back. Five named modes over the existing kinds. The
end of a round names what was new, one thing to take away, tomorrow's
reviews and how far through the course.

Also: «Pack» is gone from what a learner reads, a typed answer is told
whether it counts with only the differing words marked, picked tiles are
outlined instead of filled, and the session screen cannot be double-tap
zoomed.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(shell): a calmer header, menu, footer and personal page; the languages of Switzerland; du in Swiss German

Header: on a phone the bar is the brand, the account and one menu control,
as plain glyphs. Language and light/dark moved into the menu sheet (and stay
in the settings and the footer); from 1024px the language stays in the bar
and its panel carries the appearance. site-header.tsx is 166 lines; the wide
bar is header-nav.tsx.

Menu sheet: rows with a line saying what is behind each page, one filled
action, language and theme at the foot. Footer: the menu's groups, said once.

Personal page: one action that names what it starts, one due line, three
facts (where you left off, course progress, your words) and everything else
behind one disclosure. Situations show their name, started ones only;
channels are grouped with dates as people write them; no filled status pills.

Languages: /languages and a home section from lib/config/languages.ts — one
available, the rest planned, no dates. A 'tell me' form stores address,
language, optional region, locale and time in language_interest (migration
0016, additive), rate-limited, listed on the privacy page, erased with the
account whose address it is. No confirmation mail is sent, and the form says so.

Feedback widget: drawn by the page (footer and menu entry, the widget's
data-fc-place=host contract) instead of a tab floating over the text.

Copy: Swiss German says du throughout; the German white paper and changelog
too. 'Pack' is gone from learner-facing text in all seven dictionaries.
French, Italian, Romansh and Russian still address the reader formally.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* fix(practice): a takeaway that is true on its own, the answered states in the responsive audit

The summary's takeaway and its list of new things read a pair that holds
by itself (a gap's word is no longer shown beside its whole sentence's
meaning) and prefer the line furthest from German. A wrong answer keeps
one short part in sight (the reason, else the rule, else the word) and
folds the rest under «more on this». «Stimmt» is outlined like every
other picked answer. The responsive audit now opens a typed answer, its
comparison and a revealed gap, the states a phone reported cut off.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 16:53:18 +01:00
CatoandClaude 083dd52f0d feat(engine): courses in data, pack-declared forms, level sources, and meanings in the learner's language (#355)
* feat(course): every stored record names its course, and today's progress is the Zurich course's

A course registry (lib/course/registry.ts) lists the one course there is;
lib/variety/active.ts resolves its pack. Browser stores that hold course
progress move to an envelope keyed by course under .v2 keys, and a value
under the old .v1 key is read as the default course without being rewritten.
progress_devices, certificates and entitlements gain a course column that
defaults to the Zurich course. Item ids are unique across courses, and the
default course's ids are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(variety): the pack declares its articles, persons, respellings, voices and prompt lines

Article, FormLabel and VocabularyGroup were closed unions of the Zurich
values, the answer comparison folded Zurich respellings for every language,
word distance lower-cased as German, the voice ranking named two German tags
and the prompt builder carried Swiss spelling advice. Each is now a field of
the pack, read by the engine; a contract test over every pack refuses a value
the pack did not declare, and the leak test also looks for the taught
language's own words in engine code. The Ukrainian pack gains one verb with
its own pronouns and no articles. The 2,956 published items and the system
prompt are byte-identical.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(practice): an item's level comes from a source the course chooses

A course entered from a sibling language measures each item's distance from
that language, exactly as before; a course entered from zero reads a declared
CEFR band on the word, the line or the topic. levels.ts exposes both as
LevelSource and picks by Course.entry. Every published item keeps its level.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* feat(meaning): a meaning can be shown in the learner's language

A meaning is the bridge form plus an optional gloss in the interface
language. One pure rule (lib/domain/meaning/meaning.ts) decides what is
printed from the learner's answer to «Wie gut ist dein Deutsch?»: good shows
German only, as before and by default; some shows German and the gloss; none
shows the gloss; without a gloss German is always shown. Every exercise, the
word list and the scene pages print meanings through one component. The
answer is a course store, set in the settings and asked once after the start
card, only in an interface language that has glosses. Gloss sets are one
file per course and language, loaded on demand.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* content(glosses): English and Russian meanings for every word and scene line; French and Italian for every word

Machine drafts from the Zurich form and its German meaning together, marked
unreviewed in the data. One file per language beside the pack, keyed by the
German the course gives. Tests refuse a key no entry carries, an empty gloss
and two glosses for one German form; pnpm run glosses:coverage prints what
is covered.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* content(glosses): French and Italian meanings for every scene line

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* docs: courses, pack-declared forms, level sources and glosses, as they now are

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

* refactor(variety): the pack says which grammatical person each of its labels is

The gloss check and the prompt's auxiliary table, both new on main, matched
the Zurich labels «ich» and «er» by name. The forms pass of the leak test
caught it on rebase. The pack now declares personOf, and both read it; the
system prompt and the published items are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-25 14:17:35 +01:00