mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 15:37:11 +01:00
* fix(chat): Heidi answers the newest message, and starting again is one tap - Render the model prompt ourselves: earlier turns marked as answered context, the newest message set apart. threadkit's flat transcript made «Pire» after three «Le Bilan» turns get a fourth «Le Bilan» sentence in 4 of 6 live runs; none after. - Heidi's past turns carry the dialect line she wrote; the draft route accepts it in history. Context capped at 20 turns on every surface. - Prompt: answer only the newest message; a lone word asks about that word. - decodeAnswer keeps mode 'answer' instead of collapsing it to 'understand'. - One NewChatButton: phone toolbar above the chat, dock header icon, sidebar. - Chats fit above the phone keyboard (interactive-widget + visualViewport). - /chat gets a fresh key per request so the header's Chat link never re-renders the conversation just left; sidebar closes on Escape. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(i18n): Swiss German first, and Heidi explains in it in every conversation - Language menu, footer and settings share MENU_ORDER: dialect first. - A saved conversation follows the page's locale on every message instead of the one it was created in (stored locale is the fallback). - Suggestion labels come from a closed list and render via the dictionary; tones are translated; 'bridge' is no longer printed as a label. - Prompt: every 'english' field is written in the explanation language. - forReader strips translations of dialect suggestions for readers whose locale is the taught variety. - lang on explanation text is the reader's locale, not 'en'. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(i18n): a signed-in learner's language follows them to every device Picking a language in the header, footer or settings saves it to the account (new additive table `preferences`, migration 0006). Every sign-in returns through /api/account/language, which puts the saved language into the page the learner lands on. German stays the default; signed out, nothing is stored. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(chat): the phone toolbar fits 320px in every language «Nouvelle conversation» beside «Conversations» overflowed a 320px phone by 17px (layout audit, fr/chat). Both buttons now shrink to an ellipsis. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
158 B
SQL
6 lines
158 B
SQL
CREATE TABLE "preferences" (
|
|
"actor_id" text PRIMARY KEY NOT NULL,
|
|
"locale" text NOT NULL,
|
|
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
);
|