Commit Graph
390 Commits
Author SHA1 Message Date
Claude 4072d8cfe6 Access history on Team; the weekly mail reaches OrangeCat admins through the owner mailbox
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
2026-11-30 19:16:16 +00:00
Claude bf0d7b293e WIP: German and English texts for Team, Geld, Qualität and the invitation page
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
2026-11-30 18:58:37 +00:00
Claude c6ec069a67 WIP: access history, weekly digest and remaining back-office texts (helpers still working; not for review)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
2026-11-30 18:57:12 +00:00
Claude 7c166d4714 Back office that prepares the work: drafted replies sent from inside, a one-line health verdict, the way in in plain German and English
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r
2026-11-30 18:53:37 +00:00
CatoandClaude da9d9560ec Back office, made safe: a link grants nothing until a button is pressed; removal sticks; invitations die with their inviter (#408)
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 08:32:56 +01:00
CatoandClaude 19f3218543 Back office: role-based access, invitations, and five screens in place of the owner page (#407)
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 07:37:14 +01:00
CatoandClaude Opus 5.5 47acaca6a6 Owner link and reminder mails signed with nothing; three chat misreadings; lighter photos (#406)
* Chat: weekdays, spelling-tolerant lookup, two-meaning words, answer language, Zurich messages explained not translated

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

* Phones get the page photo at the size they show it, half the bytes

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

* Read the session secret the way sign-in does: owner links and reminder mails signed with nothing

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-30 06:38:54 +01:00
CatoandClaude Opus 5.5 c89a240672 Owner: one button mails a link to the owner address; no file to edit on the server (#405)
* 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

* Health: the schema check covers the tables added this month

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 21:21:48 +01:00
CatoandClaude 7144eea4cf Chat: a plural verb form is never "he"; no note about the answer's own buttons (#404)
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 19:16:50 +01: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 266b2c8f4f First visit: verb forms caught from the tables, a tap question first, the home button lands in the box (#402)
Claude-Session: https://claude.ai/code/session_019MDtmtfseicWGK2CMC2U5r

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 17:47:36 +01:00
CatoandClaude 304338c617 Benchmark on request only: no background job spends the free AI allowance (#401)
Each run is about thirteen calls of the free model allowance the chat lives
on, and the fleet's rule forbids background AI spend. It runs from a button
on /owner; /models says so. The hourly call keeps the reminders.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 17:17:44 +01:00
CatoandClaude Opus 5.5 9d10b7ecd9 Chat grounded in Heidi's material; ask the reader's German level before the first exercise (#400)
* Chat: what Heidi's material says about a message, before the model explains it

The chat misread lines that are in Heidi's own situations («Ab zähni isch
Nachtrueh» as a person named Zähni). The model now gets the matching
situation lines and vocabulary with their meanings first. The home example
it misread is replaced with a line from the care material.

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

* Ask once how good the reader's German is, in front of the first exercise

Readers in English and the other non-German languages went straight into
exercises with German-only answers: the question lived on /practice alone.

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 11:35:31 +01:00
CatoandClaude ec296f7e32 Cron: the hourly call the box makes now runs reminders and the benchmark (#399)
The box calls only /api/cron/channels for heidi. Reminders and the nightly
benchmark rode on /api/cron/reminders, which nothing calls, so neither ever
ran. Both now run after the channels sweep; the first benchmark runs at once.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-29 10:55:32 +01:00
CatoandClaude Fable 5.2 c450fa1d4a Ready-to-demo pass: team path, no typing in first sittings, paper and roadmap current (#398)
* Ready-to-demo pass: no typing in first sittings, paper and roadmap current

Nobody is asked to type in their first two practice sittings (it was 55%
of first sittings). The paper's counts come from the pack; the roadmap is
dated today and lists what is actually in progress. A long account address
no longer overflows the owner page.

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

* Teams: a path from the organisations page to a first situation

Create a team leads through sign-up to the team section; opening a group
goes into it; the invite names the team and its focus; a team with a focus
opens with its first situation.

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 19:53:09 +01:00
CatoandClaude Opus 5.5 3879d58823 Owner door, team QR poster, the visitor's path counted, counts from the pack (#397)
* Owner: one page that always says the next step; counts come from the pack

/owner never answers 404: it says whether you are signed out, signed in
with another address, unconfirmed, or the owner, and what to do. The check
asks whether the address is the owner's before asking if it is confirmed.
The investor room's question and review counts and the warm-up's promised
length are tied to the content.

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

* Team QR poster, the visitor's path counted, care page follows the pack

The team invite shows a QR code and opens a printable poster for the staff
room. Anonymous totals now count the visitor's path from home page to
answer, and from organisations page to pilot request; /owner lists them.
The care page lists every care scene the pack has.

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 16:15:01 +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 b52d8073e7 Owner: a page that sends the confirmation mail for the owner address (#395)
The owner pages need a confirmed owner address and nothing could confirm
one. /owner/confirm sends the mail, to an OWNER_EMAILS address only.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 14:54:51 +01:00
CatoandClaude 52a5003e52 Situations: a word spelled like another is asked only where it means what is taught (#394)
«Si hät d Nacht guet gschlafe» asked for «si» and marked «sein» right. The
pack lists such words with the German that shows the taught meaning.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 13:15:28 +01:00
CatoandClaude bb1119bd85 Home: the chat's full-screen panel is no longer painted over on phones (#393)
The section holding the chat had the scroll-in animation, whose transform
trapped the panel's position: fixed inside the section.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 12:34:37 +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 20d27513a6 Home, investor room and care offer for launch visitors (#391)
The opener's one button is the chat; a section says why the Zurich German
can be trusted, with two words the check caught live run through the real
repair; organisations get a section with the care scenes counted from the
pack. The investor room is recounted, states what is not there yet, and
cites the statistics office. The source link points at the public mirror.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 11:25:28 +01:00
CatoandClaude 738bd05d47 Situations ask from the German too; say-aloud names the language and shows what a machine understood (#390)
The German as the question and three lines of the scene as answers, in
place of most true-or-false claims. The say-aloud step names the language
to speak, and on a tap sends the one take to be written down and shows the
Standard German that came back as what a machine understood.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 10:14:15 +01:00
CatoandClaude 5c6e1dd1a5 Review: a welcome, a fourth answer, invitations and standings (#389)
A reader who was sent the link is told why, is not asked about themselves
before the lines, and can say 'fine, but I say it differently' without
calling a line wrong. Several readers of one line give it a standing for
the owner; ?via= tells one invitation's readers from another's.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 09:54:06 +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 Fable 5.2 64d66af612 Near misses: read all of them, keep the safe kinds, add what care lines need (#385)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 04:26:41 +01:00
CatoandClaude Fable 5.2 070d317c88 Exercises: reviews in another form; situations ask the word that matters (#382)
* 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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 03:45:02 +01:00
CatoandClaude d462e1c800 Owner check: why the owner pages do not open, for the person asking (#381)
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.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 03:21:17 +01:00
CatoandClaude a3c0d080fa House forms are put right in the finished line; dr and möglech join them (#380)
Live 2026-11-28 the chat wrote «dr Zug hät Verspötig» and «möglech si», shown as clean: dispreferred forms never fail the gate, so nothing corrected them. polishLine swaps the one-word house forms the pack names (het, nid, goht, …) and keeps the line only if it has fewer such findings and is no worse at the gate. «dr» (lower case, not before a full stop) and «möglech» are added as house forms, on what the pack itself writes. gsw copy had «weiss dr Server».


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 02:14:04 +01:00
CatoandClaude Fable 5.2 30ff73da06 Translate on a quarter of the prompt; keep-the-conversation line; one «Nur übersetzen» (#379)
* A capped paid fallback when every free model is busy; turn outcomes in health

HEIDI_FALLBACK_MODELS names models on the OpenRouter key that answer for everybody after the named free models and before the weak routed one. Off until named; then under ai-kit's kill switch, Heidi's opt-in and the daily paid caps, like the pass model. Its own provider id, because ai-kit drops a vendor's remaining links after a daily refusal, which is exactly when this row is needed. Never pickable or preferred. /api/health adds ai.turns: answered and failed since restart.

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

* Dock: offer to keep the conversation after three messages

A dock conversation lives only in the browser, and the open chat stores nothing, so a learner who returns cannot be told from a new one and loses the thread on another device. After three learner messages one line says so and links to the full chat, which already adopts a draft into the account or offers sign-in. Measured on a Pixel 7 viewport in de, fr, ru: no overflow.

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

* Translate: a compact prompt and a smaller reply budget

A free model accepts ~8,000 tokens a minute and a request counts its prompt plus the reply it reserves. With the full 16,700-character prompt and 2,400 reply tokens that is one request per model per minute. translatePrompt keeps the forms never to mix in, the spelling convention, the auxiliaries and the same JSON envelope, and drops what a translation never offers (grammar topics, next moves, tones, the written standard as a second variety): 2,767 characters plus the 1,345-character instruction, with a 1,400-token reply.

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

* «Nur übersetzen» under the newest answer only

Seen on a phone-sized screenshot: the button repeated under every earlier answer of the dock, each one resending an old line.

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

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 01:14:23 +01:00
CatoandClaude Fable 5.2 03b69362c3 Owner numbers: weekly chatters, retention, passes sold and held (#378)
From conversation_messages (each row keeps its own time, so every week is exact): distinct accounts that wrote per week, and per first-week cohort how many wrote again one and four weeks later (null while a cohort is too young). From pay_checkouts and entitlements: passes settled per week and held now. Read-only, counts only.


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

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-28 00:53:36 +01:00
CatoandClaude Opus 5.5 6a32d7b76d Health: whether the OpenRouter key is free tier, and whether an owner is named (#376)
The owner opened /owner/models signed in and got 404: the server does not recognise the account as owner (OWNER_EMAILS / OWNER_ACTOR_IDS unset, or the address unverified). /api/health now answers the two bits needed without that page: ai.openrouter (unset / free-tier / credit / unknown; no amount, no key; asked every 10 minutes, 3 s cap) and owner.configured (a boolean, never who).


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 21:53:56 +01:00
CatoandClaude Opus 5.5 a3c8b86aeb Mark answers from the last-resort fallback model (#375)
Live 2026-11-27, with every stronger model busy, openrouter/free translated «Chunnsch au no verbi hüt Abig?» as "Das Kind arbeitet auch noch heute Abend?". The owner chose to keep it and warn: such answers carry fallback: true (set on the server, decoded strictly) and show a note asking the reader to check before sending. The model is still not named in the answer view.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 19:34:20 +01:00
CatoandClaude Opus 5.5 245b69d0b7 Repair the -ung ending the pack names (Heizung → Heizig) (#374)
Live after #373, a translation read «d'Heizung i üsem Wohnig», flagged «Heizung → -ig» and left marked: the repair only swapped whole words. It now applies the pack's suffix fix to «-ung»/«-ungen» and, as before, keeps the line only if the gate then passes it.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:53:59 +01:00
CatoandClaude Opus 5.5 629dbe6981 Chat capacity: visual instructions on demand, cooldown, one brief wait (#373)
Measured live 2026-11-26: after about three turns every free model was rate-limited and later turns failed in 0.3 s. Visual-block instructions (~4,100 chars, a fifth of a Talk request) now go only with a request for structure; ai-kit's cooldown skips models still cooling; when all are cooling and the first returns within 20 s, the turn waits once instead of failing.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:34:12 +01:00
CatoandClaude Opus 5.5 72e2192077 /owner/models: what OpenRouter says about our key, and each model's last refusal (#372)
Measured live: every OpenRouter link was skipped with a daily refusal, the shape of an account that never bought credit, while the owner says the account holds $10. The owner page asks OpenRouter's GET /api/v1/key about OPENROUTER_API_KEY (free tier or not, usage, limit) and shows each model's last refusal, redacted. The key itself is never shown.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:54:04 +01:00
CatoandClaude Opus 5.5 5b21f35905 /models: one counter per process, shared by the chat route and the page (#371)
Next bundles the chat route and the /models page separately, so the module-level map existed twice and the page read an empty copy: «Noch nichts gemessen» right after eight live turns. Kept under a process-wide symbol, like the database pool.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 19:24:09 +01:00
CatoandClaude Opus 5.5 46542ad98f Chat reliability: lighter Translate prompt, quoted text, per-model failures (#370)
Measured live: 4 of 8 messages answered; Talk failed in under a second with every free model rate-limited, and the last fallback declined a Translate. Translate drops the visual-block instructions (~1,200 tokens) and wraps the reader's message as a quoted text to translate. ai-kit's onLinkFailure now records each skipped model and why; /models shows how often each answers. Fixed /models counting answers under provider-prefixed ids.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:54:16 +01:00
CatoandClaude Opus 5.5 e3bfd83d09 Translate: shorter replies, and repair before asking twice (#369)
Measured live after #368: the same message on Translate took 2 s, 40 s or failed after 94 s, while on Talk it answered in about 2 s each time. Translate now drops the replies prompt and asks for at most two glosses, no suggestions, one move. The one-word repair runs before the second request; when it makes the line clean the model is not asked again. Tests cover both paths.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:33:54 +01:00
CatoandClaude Opus 5.5 982387bdbf Repair a one-word Standard German leak the gate can name (#368)
After the gate's second request a live translation still read «Welches
Bündnis …», marked "do not send" with «Welches → weles» printed under it.
Where every finding's suggestion is a single word, `repairLine` puts the
pack's form in (keeping the capital) and checks again; the line is used
only if it now passes. Multi-word fixes («ha gha») stay marked.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:54:02 +01:00
CatoandClaude Opus 5.5 9a2a713fd1 Translate: catch more Standard German in Zurich lines, keep meaning exact (#367)
- Leaks: welche/welcher/welches, vermeiden, machen, gemacht, zwischen,
  keine, keinen now count as Standard German in a Zurich line, so the gate
  asks once more instead of passing them. Seen live: «Welche Instanz …»
  shown as clean. Heidi's own copy had «keine isch gänderet» (now «keini»).
  «möglich» stays allowed: Heidi's own Zurich copy uses it.
- Translate instruction: keep the meaning exact (no «verzichte» for
  "avoid"), and a reminder of the pack's own standard → Zurich pairs.
- A suggestion that repeats the dialect line word for word is dropped.


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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:15:57 +01:00
8499d54ab5 Use chatkit 0.46.0 and paykit 0.4.0 instead of Heidi's own copies (#366)
* Use paykit 0.4.0's Stripe provider and chatkit 0.46.0's failure action

lib/pay/stripe-provider.ts was a copy of @bitbaum/paykit/stripe, kept until 0.4.0 was published; its tripwire test said to delete it then. service.ts and card.test.ts import the package.

"Get a pass" under a spent allowance is now chatkit's ChatFailure.action (with retry: false: Retry cannot help before tomorrow). A failure stored before this has no action and keeps the old link.

Heidi's own ModelSheet/ModelChip stay: chatkit's lack the free-model choice (tap a free model to ask it first) and the chip's last-served name.

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

* Use chatkit's ModelSheet and ModelChip

Heidi's model window and button were their own copies. They are now chatkit's (0.46.0), which gained what Heidi had: the free models as a choice, a comparison link, short ids, and a button naming the picked model or the one that last answered. Heidi keeps its words, its vendor list, /api/model/check, /api/model/free and where the pick is stored.

Checked in Chrome at 320, 390 and 1280 px: tapping a free model checks it and the button then names it; nothing in the sheet overflows.

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

* Lockfile: chatkit 0.46.0, paykit 0.4.0 from npm

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

---------

Co-authored-by: Cato <cato@orangecat.ch>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:47:25 +01:00
CatoandClaude Opus 5.5 df3796b9b6 Photos that follow the theme, better openers, R2-ready media (#365)
* Photos: theme-aware scenes, and served from R2 with no image work on the box

- Scenes follow the theme the way Solon's do: a day photograph for light,
  an evening one of the same kind of place for dark where one is worth it,
  shown by CSS (lazy, neither preloaded when paired). The words stand on a
  veil of the theme's own page colour, ink >= 4.5:1 over any picture.
- New station pair (hall at eye level / against the light), the tram at
  the blue hour, a bakery without a label, a rowing club for the Verein;
  the Stadthaus courtyard with its art installation removed.
- lib/media/: fixed-width AVIF and WebP variants keyed by content hash,
  a manifest, and a next/image loader that is on only with
  NEXT_PUBLIC_MEDIA_BASE. scripts/media/ensure.mjs makes the deploy's build
  upload what the bucket lacks and turn the base on only after a probe;
  it never fails the build. Shaped like Solon's for the sitekit move.

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

* Photos: the deploy's build uploads to R2 itself; restaurant and city pairs

- scripts/media/ensure.mjs runs first in `pnpm run build` when SELF_HOST=1:
  with PHOTOS_S3_* and MEDIA_PUBLIC_BASE it uploads only the variants the
  bucket lacks (one image at a time, sharp on one thread), probes one through
  the public base, and only then writes NEXT_PUBLIC_MEDIA_BASE into
  .env.production.local. Anything missing or failing: one line, local
  serving, exit 0. An explicit NEXT_PUBLIC_MEDIA_BASE is the override.
- Same widths, key scheme (photos/<name>.<hash12>/<w>.<fmt>), manifest
  shape and env names as Solon's src/lib/media/, for the sitekit move.
- Restaurant and the situations index: the guild houses on the Limmatquai
  by day and lit at night. The tram is the blue-hour Bahnhofstrasse in both
  themes, wearing the dark theme (scene-night). The old-town lane with a
  restaurant's name is gone; the city default is the Schipfe and the Limmat
  on a winter evening. Apéro and small talk open on the lake.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:53:47 +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 d4e9a58580 Pay in francs (card, TWINT), visible models, a daily limit with a way on (#362)
- A second way to pay for a pass: Swiss francs on Stripe's hosted page,
  where the Stripe account's methods (card, TWINT, wallets) are offered.
  Off until STRIPE_SECRET_KEY and a CHF price are set; each rail is on or
  off by itself. Stripe is told nothing about the Heidi account. Own
  webhook path, /api/pay/webhook/stripe. The provider is paykit's (PR
  bitbaum/paykit#19), copied in lib/pay/stripe-provider.ts until 0.4.0 is
  released, with a test that fails the day the package has it.
- /pass: one card per pass, a price and button per rail; buying is the one
  filled action. A failed checkout no longer prints "fetch failed".
- /owner/payments: each rail, what is set (names only), what is missing,
  and the webhook addresses to paste.
- Chat: a Model button for everyone; the sheet names the free models.
- A daily allowance of free turns (100, HEIDI_FREE_TURNS_PER_DAY), three
  times with a pass, none with an own key; the chat says so and links /pass.
- /pass added to the layout audit.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 07:13:14 +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