Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with an MCP server so an agent can draft a deck from your material. Local-first, no account.</p>

<p align="center">
<img alt="version 0.46.1" src="https://img.shields.io/badge/version-0.46.1-eef0f4?style=flat-square">
<img alt="version 0.46.3" src="https://img.shields.io/badge/version-0.46.3-eef0f4?style=flat-square">
<img alt="TypeScript and Vite" src="https://img.shields.io/badge/TypeScript-Vite-3178c6?style=flat-square&logo=typescript&logoColor=white">
<img alt="Python and FastAPI" src="https://img.shields.io/badge/Python-FastAPI-009688?style=flat-square">
<img alt="macOS, Windows, Linux" src="https://img.shields.io/badge/macOS%20%C2%B7%20Windows%20%C2%B7%20Linux-native-2f7bf5?style=flat-square">
Expand Down
2 changes: 1 addition & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.46.1"
__version__ = "0.46.3"
22 changes: 22 additions & 0 deletions frontend/HASHOUT_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1371,3 +1371,25 @@ Checked with the app's stylesheets in index.html order and its own `applyTheme`,
The quick start in Help (the About block) had one step that stayed in English in every language: "Connect Claude Code, Codex, Cursor or Antigravity from Review > Agents. ...". The key scanner leaves out any string with `<` or `>` (it cannot tell text from markup), so the sentence never got a key. It is a new key part (43) written by hand, with an entry in all 25 tables; each names the Review tab and the Agents button with the words that language's tables already use for them and keeps the four program names as they are. The runtime matches the text node exactly, so nothing in the code changed. No native speaker has read the translations. The step above it, "Change it any time with Slide > Apply Template. Your content follows.", has no key for the same reason and was left as it is.

Checked: all 1,118 key and locale tables parse; `python3 setup/i18n_tool.py check` reports no missing entry in any language before and after, and the same 172 strings in the code with no key (none of them this one).

## 227. The i18n check passes: every sentence in the code has a key · _v0.46.2 (i18n keys part44 and every locale; setup/i18n_tool.py NOT_TEXT, NOT_TEXT_RE, FILL_TEMPLATE)

The check had failed since before the sprint with 172 strings in the code and no key. Each was read in its place in the code. 147 are sentences or labels a person reads (the extensions pane and its permission prompt, the tab and window commands, the Preferences sections, the video player switches, the paste and copy-slides commands, the extension API's refusals, which an extension shows its author, and the like); they are key part 44 with an entry in all 25 tables, together with the Help step "Change it any time with Slide > Apply Template. Your content follows." (the scanner skips it for its `>`, as it did the agent step of entry 226) and three sentences the dock shows filled in (below). Each table uses the words it already has for the app's own names (deck, slide, Slide Show, Set Up Show, speaker notes, Agents, Undo Agent Turn, Quick Access Toolbar, Video Playback, Poster Frame, ribbon) and keeps placeholders, numbers with units, file and command names (FormPortal, form.ext, extensions_list, app.commands, docs/FORMAT.md, set, ins, del, move) as they are; a `{1}` after a word is the English plural ending, which the runtime drops in every other language. No native speaker has read the translations.

25 are not sentences, and the scanner now leaves them out by its own rules rather than by a key: two fragments the quote matcher pairs across code (`), s.getPropertyValue(` and `: still ? '' :`); Tauri's own menu item ids and accelerator key name (Separator, Services, Quit, Minimize, Maximize, Fullscreen, Plus: the system draws their words); product and licence names (Antigravity, Apache License 2.0, Apache-2.0, the two copyright lines), the brand line "by nodemode.ai" (already `translate="no"` in the page) and the titles of the three demo decks, whose slides stay in English (`NOT_TEXT`); key chords and key codes (Shift+Mod+N, Mod+W, KeyJ), the window key's header name and a font's unicode range (`NOT_TEXT_RE`); and two dock fill templates, "Ask about your {noun} (Enter to send)" and the tour line with `{example}` and `{app}` (`FILL_TEMPLATE`): the page shows them filled in, so a key with `{noun}` would never match, and the filled sentences ("Ask about your deck (Enter to send)", "Ask about your deck", "Type what you want in this line, for example "tighten the wording on this slide", and press Enter. Your assistant does it in formdeck.") are what part 44 keys, as the dock's own module (skipped as a folder) is keyed by what it shows.

Checked: `python3 setup/i18n_tool.py check` prints "i18n check passed", exit 0 (172 unkeyed strings before); all 1,144 key and locale tables parse; every entry of part 44 in every language keeps the English placeholders. In the built window, with the language set in Preferences, the Help step and the Preferences sections and sentences ("Language and Density", "Theme and accent are shared with the other Form apps on this device.", Interface, Tools, New Decks, Plugins, Reset All Preferences...) show in German, Japanese and Russian, and in English for en. Not keyed, because the scanner does not see it (it is markup around a `<kbd>`): the Help line "to see every keyboard shortcut, or open Help > Keyboard Shortcuts."

## 228. The engine toast waits out a normal start, and a refused window is told why · _v0.46.2 (app.ts startApp useSettings, settleSettings, ENGINE_GRACE_MS; i18n keys part45 and every locale)

`startApp` asks the engine for the settings once (`GET /api/settings`) and, on any failure, showed "The formdeck engine is not answering yet; retrying." at once and never asked again. Two different failures led there. A browser window opened while another window holds the engine's one window key gets 409 for the key and 403 for the settings: the engine answered, so the sentence was wrong; this is what the throttled Light and AMOLED loads of the wave 12 check saw (each was a new browser context on the same engine, so only the first one, Studio Dark, held the key), not a slow first contact. A window that asks before its engine is up gets a network failure. Now the first answer is used as before; on a refusal by the window key the toast says "Another window holds the formdeck engine's key, so this one cannot change anything. Use that window, or restart formdeck." (key part 45, 25 tables, no native speaker has read them); on a network failure the window asks again every 0.5 s (claiming the window key first if it has none) and only after `ENGINE_GRACE_MS` (20 s from the first ask; the engine answered 4 s after its start on this two-processor machine, the shell itself waits up to 90 s) shows the "not answering" toast, then keeps asking every 2 s and uses the settings when they come, so "retrying" is true. The toast root is fixed and zero-sized, so nothing moves when it shows.

Checked, built window, Chromium, 4x CPU throttle, cache off: a cold load on a fresh engine in Studio Dark, Light and AMOLED (ground #111111, #ecebe6, #000000) draws Home at 1.3 to 1.8 s and shows no toast in 14 s; a second window without the key gets the key sentence at 1.7 s; with the engine stopped (page served apart, API calls refused) Home draws at 2.3 to 2.9 s and the "not answering" toast shows at 22.7 to 23.4 s in all three themes, with Home's box the same before and at the toast (0, 0, 1440, 900). Not settled: a window that starts 6 s before its engine got the key sentence at 9.6 s instead of claiming the key once the engine was up (seen only through the test's proxy; the desktop shell does not show the window before the engine's key line).

## 229. The Help line about keyboard shortcuts is translated · _v0.46.3 (i18n keys part46 and every locale)

The Help dialog's last line is "Press [key cap] to see every keyboard shortcut, or open Help > Keyboard Shortcuts."; the scanner does not see the text after the `<kbd>` (markup, and a `>`), so it never had a key. The text node after the key cap, "to see every keyboard shortcut, or open Help > Keyboard Shortcuts.", is key part 46, written by hand with an entry in all 25 tables, as parts 43 and 44 were. Each entry continues the word its table already has for "Press" before the key cap and uses its own words for Help and Keyboard Shortcuts. No native speaker has read them.

Checked: i18n check passed; all 1,196 tables parse; in the built window the line reads in German, Japanese and Russian ("Drücken Ctrl+/ und Sie sehen alle Tastenkombinationen, ...", "押す: Ctrl+/ ですべてのキーボードショートカットを表示できます。...", "Нажмите Ctrl+/ и вы увидите все сочетания клавиш, ...").

The case entry 228 left open (a window started before its engine) was the test's own proxy: run directly, with the built window served by `vite preview` on localhost:5297 and the real engine started on 8197 six seconds later, the page's key claim and settings calls get 502 from the preview's proxy every 0.5 s until the engine is up, then `POST /api/window/key` 200 and `GET /api/settings` 200 at 7.8 s, a stream ticket at 8.6 s, and no toast in 35 s. Nothing in the page changed for it. A page opened at 127.0.0.1:5297 instead is refused by the engine's local guard for every call (that origin is not in the default list, `localhost:5297` is: "formdeck answers this computer's own window and agents only"), and in that run the page showed the key sentence at 8.8 s; why that refusal reached the key branch was not found.
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "formdeck",
"private": true,
"version": "0.46.1",
"version": "0.46.3",
"description": "formdeck · presentations and decks in the form family",
"license": "Apache-2.0",
"type": "module",
Expand Down
24 changes: 21 additions & 3 deletions frontend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Color } from './engine/model';
import { getCurrentWebview } from '@tauri-apps/api/webview';
import { getCurrentWindow } from '@tauri-apps/api/window';
import { api, removedHere } from './io/api';
import { loadWindowKey, windowKey } from './io/window-key';
import { LiveClient } from './live/socket';
import { ensureFonts, fontsOfDeck } from './render/fonts';
import { PLAYER_EVENT } from './render/slide';
Expand Down Expand Up @@ -115,6 +116,8 @@ ${EXT_PANE_HTML}
</footer>
</div>`;

const ENGINE_GRACE_MS = 20000;

export async function startApp(): Promise<void> {
applyTheme();
const host = document.getElementById('app') as HTMLElement;
Expand Down Expand Up @@ -1010,15 +1013,30 @@ export async function startApp(): Promise<void> {
}

enhanceAllSelects(document);
try {
const settings = await api.settings();
const useSettings = (settings: Record<string, unknown>): void => {
agentsAllowed = !!settings.agentsAllowed;
live.setAgents(agentsAllowed);
if (settings.sealBroken === true) dialogs.noteSealBroken();
const keys = settings.keys && typeof settings.keys === 'object' ? settings.keys as Record<string, unknown> : {};
for (const [id, combos] of Object.entries(keys)) if (Array.isArray(combos)) commands.setKeys(id, combos.map(String));
setMarqueeRule(settings.marquee);
} catch { toast('The formdeck engine is not answering yet; retrying.', 'error'); }
};
const askedAt = performance.now();
const settleSettings = async (): Promise<void> => {
let told = false;
for (;;) {
try {
if (!windowKey()) await loadWindowKey();
useSettings(await api.settings());
return;
} catch (err) {
if (!(err instanceof TypeError) && err instanceof Error && /formdeck window/.test(err.message)) { toast('Another window holds the formdeck engine\'s key, so this one cannot change anything. Use that window, or restart formdeck.', 'error'); return; }
}
if (!told && performance.now() - askedAt >= ENGINE_GRACE_MS) { told = true; toast('The formdeck engine is not answering yet; retrying.', 'error'); }
await new Promise((done) => window.setTimeout(done, told ? 2000 : 500));
}
};
try { useSettings(await api.settings()); } catch { void settleSettings(); }
const params = new URLSearchParams(location.search);
const want = params.get('deck');
const files = params.getAll('open').filter(Boolean);
Expand Down
153 changes: 153 additions & 0 deletions frontend/src/i18n/keys/part44.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
[
"Notes",
"Settings",
"Open decks",
"Show or hide the speaker notes",
"Edits are not saved yet. Reload when the connection is back.",
"The extension host is still starting.",
"{0} was deleted in another window.",
"The view could not be loaded. Check your connection, then reload formdeck.",
"Reload",
"Menus in Window",
"The menus stay in the window from the next start.",
"The menus go to the menu bar from the next start.",
"New Window",
"Move Deck to New Window",
"Close Tab",
"Close Other Tabs",
"Next Tab",
"Previous Tab",
"Extensions",
"Ran on deck \"{0}\" ({1}).",
"The question was withdrawn before the person answered it.",
"Use when slides copied from another open deck should keep that deck's master, layouts, colours and fonts instead of taking this deck's look; the slides are scaled if the slide sizes differ.",
"Use when the selected slides should be copied to the end of another open deck; the label names that deck.",
"Agents edit live: you see every change as it happens on the slides.",
"Every agent turn can be undone at once with Edit, Undo Agent Turn.",
"You can turn this off any time in Agents.",
"create and change decks",
"tighten the wording on this slide",
"Ask about your deck (Enter to send)",
"Ask about your deck",
"Type what you want in this line, for example \"tighten the wording on this slide\", and press Enter. Your assistant does it in formdeck.",
"Paste with Source Formatting",
"A deck needs at least one slide.",
"Copy Slides To",
"A deck needs at least one slide. The slides were copied instead.",
"Copied {0} slide{1} to the end of {2}.",
"Paste slides with source formatting",
"Player in Editor",
"Player in Slide Show",
"Show the video player in the slide show",
"Hide the video player in the slide show",
"This text box was changed from outside while you were typing. Your wording was kept.",
"Video Player",
"In Editor",
"In Slide Show",
"Video player is on: videos cannot be moved or edited. Click to turn it off.",
"this extension has used its 256 KB of storage",
"storage is not available",
"{0} was not allowed to run",
"{0}: {1} stopped answering for 120 s",
"{0} is not in API 1",
"{0} does not have the {1} permission",
"message must be text",
"command must be text",
"name and data are required",
"Read and change the open document",
"Open files you choose",
"Save files where you choose",
"Reach the internet",
"Use local models",
"Run native code",
"No extensions yet. Find them in FormPortal or make one with form.ext.",
"Manage in FormPortal",
"Reload Extensions",
"Close the extensions pane",
"Catalogue",
"Development",
"Document",
"Open files",
"Save files",
"Internet",
"Local models",
"Native code",
"Allow this extension?",
"Not Now",
"Allow {0}?",
"{0} {1} ({2}) is an extension for formdeck.",
"{0} extensions.",
"formdeck has no extension {0}. extensions_list shows them.",
"{0} is refused: {1}.",
"{0} has no command {1}. It has {2}.",
"Extensions Panel",
"Shows the Form extensions formdeck found, with their permissions and state.",
"Use when you want to see, allow or open the Form extensions installed for formdeck.",
"Reads the installed and development extensions again.",
"Use when an extension was installed, changed or run from a folder and formdeck should pick it up now.",
"Extensions reloaded.",
"Opens FormPortal on formdeck's extensions.",
"Use when you want to install, update or remove Form extensions.",
"Open FormPortal and choose Extensions ({0}).",
"{0}, from the {1} extension.",
"Use when you want the {0} extension to {1}{2}.",
"{0} names a panel it does not contribute",
"Refused",
"Needs Permission",
"Allow...",
"The deck has no slides.",
"Apply Deck Ops",
"Raw deck ops: set, ins, del, move (docs/FORMAT.md)",
"formdeck could not apply those ops: a path does not exist or the deck is locked for review.",
"{0} op{1} applied",
"formdeck has no command {0} for extensions. app.commands lists them.",
"{0} cannot be undone, so extensions may not run it.",
"{0} is not available right now: it needs an open deck, a selection or a view where it applies.",
"{0} takes no args",
"Extension",
"no file was chosen",
"The files are larger than 200 MB together.",
"no place was chosen",
"Save to your Downloads folder",
"the save was cancelled",
"This deck was deleted.",
"The window received {0} after the engine stopped waiting, so it did not run it.",
"That custom show has no slides, so the slide range plays.",
"The slide range in Set Up Show has no slides to play, so the whole deck plays.",
"The slide range or custom show no longer has any slides, so the whole deck plays.",
"Clean copy to share",
"A clean copy leaves out the path this deck was saved to, agent handoff notes, and pictures and videos no slide uses. Comments and speaker notes stay.",
"Interface",
"Tools",
"New Decks",
"Plugins",
"Every preference kept in this window, the ribbon and toolbar arrangement included, goes back to how formdeck comes. Decks and the library are kept.",
"Reset All Preferences...",
"Theme and accent are shared with the other Form apps on this device.",
"Language and Density",
"Ribbon and Toolbars",
"Menus in the window",
"The ribbon tabs, their groups and buttons, the Quick Access Toolbar and the keyboard shortcuts are kept on this device. Menus in the window applies to the macOS desktop app, whose menus otherwise sit in the system menu bar.",
"Template and Size",
"Fonts and Author",
"Units and Selection",
"Poster Frames",
"Use the second frame as the poster of an added video",
"On, every video added to a slide gets its second frame as its poster frame, so the picture does not jump when it starts to play (a clip's first frame is often black or a fade). Off, added videos keep the first frame. Poster Frame on the Video Playback tab still sets any frame.",
"Video player in the editor",
"On, a video's own play, pause and seek controls work on the slide and the video cannot be moved; the Video Playback tab stays open. Double-click a video to turn the player off; Shift and double-click a video to turn it on.",
"Expand tabs",
"Collapse tabs",
"Reset all preferences?",
"Every preference kept in this window, the ribbon, the Quick Access Toolbar, panel sizes and the theme go back to how formdeck comes. Decks and the library are kept. formdeck reloads.",
"Resize the side panel",
"Hide the side panel",
"Show the side panel",
"About formdeck",
"Window",
"New tab",
"Close tab",
"AMOLED Black",
"the browser blocked the new window. Allow pop-ups for formdeck and try again.",
"Change it any time with Slide > Apply Template. Your content follows."
]
3 changes: 3 additions & 0 deletions frontend/src/i18n/keys/part45.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"Another window holds the formdeck engine's key, so this one cannot change anything. Use that window, or restart formdeck."
]
3 changes: 3 additions & 0 deletions frontend/src/i18n/keys/part46.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
"to see every keyboard shortcut, or open Help > Keyboard Shortcuts."
]
Loading
Loading