From f42e37489b9c723dd1c3680194dffa5a790d8586 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 5 Jun 2026 23:34:30 -0400 Subject: [PATCH] fix: table prompt in French, tab title shows filename "Nombre de colonnes/lignes" prompts. Tab title now shows "Title - ObsiGate Forge" when file loaded, "ObsiGate Forge - Demo" in demo mode. --- frontend/editor-poc.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/editor-poc.html b/frontend/editor-poc.html index 271415b..7738e02 100644 --- a/frontend/editor-poc.html +++ b/frontend/editor-poc.html @@ -458,6 +458,7 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig // Demo mode ta.value = '# Demo Document\n\nType **/** for commands. Select text for formatting.\n\n## Features\n\n- Slash commands: type / at start of line\n- Bubble menu: select text\n- AI actions: use the sparkle button or slash /ai\n- Preview: click the eye button\n'; statFile.textContent = 'Demo mode'; + document.title = 'ObsiGate Forge — Demo'; originalContent = ta.value; updateStats(); schedulePreview(); @@ -478,6 +479,7 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig if (m) title = m[1]; document.getElementById('poc-title').value = title; statFile.textContent = fileVault + '/' + filePath; + document.title = title + ' — ObsiGate Forge'; updateStats(); schedulePreview(); }) @@ -736,8 +738,8 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig } // Table: prompt for dimensions if (action === 'table') { - var cols = parseInt(prompt('Number of columns?', '3')); - var rows = parseInt(prompt('Number of rows?', '3')); + var cols = parseInt(prompt('Nombre de colonnes ?', '3')); + var rows = parseInt(prompt('Nombre de lignes ?', '3')); if (!cols || !rows || cols < 1 || rows < 1) { ta.focus(); return; } var hdr = '|'; var sep = '|'; for (var c = 1; c <= cols; c++) { hdr += ' Col ' + c + ' |'; sep += '-------|'; }