Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
Polish autosync to be less warning (#1792)
sarah451cfe87e0b8
diff --git a/.changeset/calmer-auto-sync-warning.md b/.changeset/calmer-auto-sync-warning.mdnew file mode 100644index 000000000..5a1ef7e90--- /dev/null+++ b/.changeset/calmer-auto-sync-warning.md@@ -0,0 +1,5 @@+---+"@inkeep/open-knowledge": patch+---++Soften the git auto-sync enable warning. The dialog shown before turning on auto-sync (onboarding and the settings/badge toggle) previously presented its caveats as an amber alert box with a bulleted "Before you enable it" list — alarming for what is a routine, reversible choice. It now reads as a calm "Heads up" section: three titled rows (Uncommitted changes, Commits happen automatically, Shared repositories), each with an icon and a short muted description. Same information, friendlier delivery; screen readers also no longer treat it as an interruption-priority alert.diff --git a/packages/app/src/components/AutoSyncEnableWarning.tsx b/packages/app/src/components/AutoSyncEnableWarning.tsxindex d7630d233..7e6d3d6d2 100644--- a/packages/app/src/components/AutoSyncEnableWarning.tsx+++ b/packages/app/src/components/AutoSyncEnableWarning.tsx@@ -1,4 +1,5 @@import { Trans } from '@lingui/react/macro';+import { ArrowRightLeft, Eye, GitCommitVertical } from 'lucide-react';import { DialogDescription, DialogTitle } from '@/components/ui/dialog';export function AutoSyncEnableDialogIntro() {@@ -19,30 +20,58 @@ export function AutoSyncEnableDialogIntro() {export function AutoSyncEnableWarning() {return (- <div- role="alert"- className="rounded-md border border-amber-300 bg-amber-50 px-3 py-2.5 text-sm text-amber-900 dark:border-amber-700 dark:bg-amber-950 dark:text-amber-200"- >- <p className="mb-2 font-medium">- <Trans>Before you enable it</Trans>+ <div role="note" className="text-sm space-y-5">+ <p className="flex items-center gap-1.5 text-xs font-semibold font-mono uppercase tracking-wider text-primary">+ <span aria-hidden="true" className="mb-[3px] flex items-center justify-center">+ ◇+ </span>+ <Trans>Heads up</Trans></p>- <ul className="list-disc space-y-1.5 pl-5">- <li>- <Trans>Pulls may overwrite uncommitted local file changes.</Trans>- </li>- <li>- <Trans>- Open Knowledge will create commits and push them to your remote automatically. If you do- not want automatic commits in your git history, you should not enable auto-sync.- </Trans>- </li>- <li>- <Trans>- If this repo is shared, your in-progress edits become visible to collaborators as soon- as they sync.- </Trans>- </li>- </ul>+ <div className="space-y-5">+ <div className="flex items-start gap-3">+ <ArrowRightLeft+ aria-hidden="true"+ className="mt-0.5 size-4 shrink-0 text-muted-foreground"+ />+ <div className="space-y-0.5">+ <p className="font-medium">+ <Trans>Uncommitted changes</Trans>+ </p>+ <p className="text-muted-foreground">+ <Trans>Pulls may overwrite uncommitted edits in your local files.</Trans>+ </p>+ </div>+ </div>+ <div className="flex items-start gap-3">+ <GitCommitVertical+ aria-hidden="true"+ className="mt-0.5 size-4 shrink-0 text-muted-foreground"+ />+ <div className="space-y-0.5">+ <p className="font-medium">+ <Trans>Commits happen automatically</Trans>+ </p>+ <p className="text-muted-foreground">+ <Trans>+ Open Knowledge will create commits and push them to your remote automatically. If+ you do not want automatic commits in your git history, you should not enable+ auto-sync.+ </Trans>+ </p>+ </div>+ </div>+ <div className="flex items-start gap-3">+ <Eye aria-hidden="true" className="mt-0.5 size-4 shrink-0 text-muted-foreground" />+ <div className="space-y-0.5">+ <p className="font-medium">+ <Trans>Shared repositories</Trans>+ </p>+ <p className="text-muted-foreground">+ <Trans>Collaborators see your in-progress edits as soon as they sync.</Trans>+ </p>+ </div>+ </div>+ </div></div>);}diff --git a/packages/app/src/components/AutoSyncOnboardingDialog.dom.test.tsx b/packages/app/src/components/AutoSyncOnboardingDialog.dom.test.tsxindex b498841d4..fe56c982a 100644--- a/packages/app/src/components/AutoSyncOnboardingDialog.dom.test.tsx+++ b/packages/app/src/components/AutoSyncOnboardingDialog.dom.test.tsx@@ -52,7 +52,7 @@ describe('AutoSyncOnboardingDialog runtime behavior', () => {expect(screen.getByRole('button', { name: 'Enable auto-sync' })).not.toBeNull();expect(screen.getByRole('button', { name: 'Keep disabled' })).not.toBeNull();expect(screen.queryByRole('button', { name: /close/i })).toBeNull();- expect(screen.getByRole('alert').textContent).toContain('Before you enable it');+ expect(screen.getByRole('note').textContent).toContain('Heads up');});test('disables both choices until the project-local sync writer is ready', async () => {diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex b93b790a5..b99a75698 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -149,7 +149,6 @@"48uGTI": ["Failed to load docs. Press Escape and re-open to retry."],"4A3Yzu": ["Code block"],"4CfgPM": ["Project folder created, but git init failed. Try again."],- "4DLo0T": ["Before you enable it"],"4KmEoC": ["Hotkeys"],"4NC2Ym": ["Move to the next or previous table cell."],"4PYsOz": ["Hide Files (", ["sidebarShortcutLabel"], ")"],@@ -251,6 +250,7 @@"6ki7F2": [["0", "plural", { "one": ["#", " item"], "other": ["#", " items"] }]],"6m_7We": ["Open this settings dialog."],"6q0rnH": ["writing"],+ "6s7LXO": ["Heads up"],"6u9LvN": [["days", "plural", { "one": ["#", " day ago"], "other": ["#", " days ago"] }]],"6vEr3W": ["Link target"],"74-bX-": ["A pull quote stands out from the surrounding text."],@@ -273,7 +273,6 @@"Open Knowledge is using a GitHub account provided by the gh CLI. There's no separate Open Knowledge credential to disconnect."],"7qRHf0": ["Install for Claude Chat & Cowork"],- "7rQXBC": ["Pulls may overwrite uncommitted local file changes."],"80c4-P": ["Code copied to clipboard"],"81H_23": ["Add properties"],"881Uwh": ["Delete selected table"],@@ -309,6 +308,7 @@"8_brI5": ["Name is required"],"8cS0nH": ["Config sharing unavailable: ", ["0"], "."],"8cpOa8": ["Couldn't disconnect — please try again."],+ "8cpeU3": ["Shared repositories"],"8eW0WQ": ["No matching repositories."],"8fRyLo": ["Invalid patch payload"],"8fc_3j": ["Protected branch — cannot push"],@@ -342,6 +342,7 @@],"9fhQRL": ["Beta channel"],"9fvog2": ["Preview unavailable: ", ["errorDetail"]],+ "9i21pa": ["Commits happen automatically"],"9jnjV0": ["Embed an audio file with native player controls."],"9npOH9": ["Open file"],"9o1bIV": [["behind"], " behind"],@@ -434,6 +435,7 @@"D4H2N6": ["Remove ", ["tag"]],"D8OV7J": ["Only collaborators"],"DDTdLl": ["Code block settings"],+ "DELNQk": ["Collaborators see your in-progress edits as soon as they sync."],"DF1MtZ": ["Loading conflict for ", ["filePath"]],"DFfRbX": ["Sync status: ", ["syncStateLabel"], " — git identity unset"],"DId6MT": ["Project-level pages with no outgoing graph edges."],@@ -824,9 +826,6 @@],"R0jJzV": ["Paste URL, owner/repo, or search your repos"],"R3y75Z": ["Edit source"],- "R4RGjs": [- "If this repo is shared, your in-progress edits become visible to collaborators as soon as they sync."- ],"RDrXh4": ["Configure user, project, and integration settings."],"RFQ1Yx": ["Restore this version"],"RGCCrg": ["Copy share link"],@@ -1014,6 +1013,7 @@"YTLmTM": ["Remove the parent <0>.git</0> folder"],"YW7Q86": ["Search settings not yet loaded — try again in a moment"],"Y_kL7X": ["Customize how the editor looks and behaves."],+ "YaeyFh": ["Pulls may overwrite uncommitted edits in your local files."],"YeQufb": ["Share with my team"],"Yea-K5": ["Restore to this point"],"Yi0VMG": ["Upload ", ["keyName"]],@@ -1174,6 +1174,7 @@"cZGNlb": ["Add another pattern"],"cZI5AL": ["OK Desktop"],"cdm00A": ["No Incoming"],+ "cdmk8A": ["Uncommitted changes"],"cklVjM": ["Timeline"],"cnGeoo": ["Delete"],"cqQyPB": ["Folder name"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 352cc87df..e01ace5e9 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -768,10 +768,6 @@ msgstr "Becomes the document's content when someone creates a doc from this tempmsgid "Before syncing, set your identity for git commits:"msgstr "Before syncing, set your identity for git commits:"-#: src/components/AutoSyncEnableWarning.tsx-msgid "Before you enable it"-msgstr "Before you enable it"-#: src/editor/slash-command/items.tsxmsgid "Below"msgstr "Below"@@ -1118,6 +1114,10 @@ msgstr "Code copied to clipboard"msgid "Code expired — please try again"msgstr "Code expired — please try again"+#: src/components/AutoSyncEnableWarning.tsx+msgid "Collaborators see your in-progress edits as soon as they sync."+msgstr "Collaborators see your in-progress edits as soon as they sync."+#: src/components/GraphPanel.tsxmsgid "Collapse"msgstr "Collapse"@@ -1168,6 +1168,10 @@ msgstr "Commands"msgid "Commit or stash changes to switch:"msgstr "Commit or stash changes to switch:"+#: src/components/AutoSyncEnableWarning.tsx+msgid "Commits happen automatically"+msgstr "Commits happen automatically"+#: src/components/CloneDialog.tsxmsgid "Complete"msgstr "Complete"@@ -2593,6 +2597,10 @@ msgstr "Heading suggestions"msgid "heading-slug"msgstr "heading-slug"+#: src/components/AutoSyncEnableWarning.tsx+msgid "Heads up"+msgstr "Heads up"+#: src/editor/slash-command/embed-starter-items.tsxmsgid "Hello, world!"msgstr "Hello, world!"@@ -2706,10 +2714,6 @@ msgstr "Hubs"msgid "I already have it locally →"msgstr "I already have it locally →"-#: src/components/AutoSyncEnableWarning.tsx-msgid "If this repo is shared, your in-progress edits become visible to collaborators as soon as they sync."-msgstr "If this repo is shared, your in-progress edits become visible to collaborators as soon as they sync."-#: src/components/ConsentDialogBody.tsx#: src/components/settings/OkignoreSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -4354,8 +4358,8 @@ msgid "Pulling"msgstr "Pulling"#: src/components/AutoSyncEnableWarning.tsx-msgid "Pulls may overwrite uncommitted local file changes."-msgstr "Pulls may overwrite uncommitted local file changes."+msgid "Pulls may overwrite uncommitted edits in your local files."+msgstr "Pulls may overwrite uncommitted edits in your local files."#: src/components/SyncStatusBadge.tsxmsgid "Push"@@ -4999,6 +5003,10 @@ msgstr "Share URL"msgid "Share with my team"msgstr "Share with my team"+#: src/components/AutoSyncEnableWarning.tsx+msgid "Shared repositories"+msgstr "Shared repositories"+#: src/components/PublishToGitHubDialog.tsxmsgid "Sharing a doc needs a GitHub repository. Create one for this project."msgstr "Sharing a doc needs a GitHub repository. Create one for this project."@@ -5707,6 +5715,10 @@ msgstr "Type a query, then press ↵ to search your pages by meaning."msgid "Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."msgstr "Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."+#: src/components/AutoSyncEnableWarning.tsx+msgid "Uncommitted changes"+msgstr "Uncommitted changes"+#: src/lib/keyboard-shortcuts.tsmsgid "Underline"msgstr "Underline"diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex ce7c8c6c3..350724e74 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -149,7 +149,6 @@"48uGTI": ["Ƒàĩĺēď ţō ĺōàď ďōćś. Ƥŕēśś Ēśćàƥē àńď ŕē-ōƥēń ţō ŕēţŕŷ."],"4A3Yzu": ["Ćōďē ƀĺōćķ"],"4CfgPM": ["ƤŕōĴēćţ ƒōĺďēŕ ćŕēàţēď, ƀũţ ĝĩţ ĩńĩţ ƒàĩĺēď. Ţŕŷ àĝàĩń."],- "4DLo0T": ["ßēƒōŕē ŷōũ ēńàƀĺē ĩţ"],"4KmEoC": ["Ĥōţķēŷś"],"4NC2Ym": ["Ḿōvē ţō ţĥē ńēxţ ōŕ ƥŕēvĩōũś ţàƀĺē ćēĺĺ."],"4PYsOz": ["Ĥĩďē Ƒĩĺēś (", ["sidebarShortcutLabel"], ")"],@@ -251,6 +250,7 @@"6ki7F2": [["0", "plural", { "one": ["#", " ĩţēḿ"], "other": ["#", " ĩţēḿś"] }]],"6m_7We": ["Ōƥēń ţĥĩś śēţţĩńĝś ďĩàĺōĝ."],"6q0rnH": ["ŵŕĩţĩńĝ"],+ "6s7LXO": ["Ĥēàďś ũƥ"],"6u9LvN": [["days", "plural", { "one": ["#", " ďàŷ àĝō"], "other": ["#", " ďàŷś àĝō"] }]],"6vEr3W": ["Ĺĩńķ ţàŕĝēţ"],"74-bX-": ["À ƥũĺĺ ǫũōţē śţàńďś ōũţ ƒŕōḿ ţĥē śũŕŕōũńďĩńĝ ţēxţ."],@@ -273,7 +273,6 @@"Ōƥēń Ķńōŵĺēďĝē ĩś ũśĩńĝ à ĜĩţĤũƀ àććōũńţ ƥŕōvĩďēď ƀŷ ţĥē ĝĥ ĆĹĨ. Ţĥēŕē'ś ńō śēƥàŕàţē Ōƥēń Ķńōŵĺēďĝē ćŕēďēńţĩàĺ ţō ďĩśćōńńēćţ."],"7qRHf0": ["Ĩńśţàĺĺ ƒōŕ Ćĺàũďē Ćĥàţ & Ćōŵōŕķ"],- "7rQXBC": ["Ƥũĺĺś ḿàŷ ōvēŕŵŕĩţē ũńćōḿḿĩţţēď ĺōćàĺ ƒĩĺē ćĥàńĝēś."],"80c4-P": ["Ćōďē ćōƥĩēď ţō ćĺĩƥƀōàŕď"],"81H_23": ["Àďď ƥŕōƥēŕţĩēś"],"881Uwh": ["Ďēĺēţē śēĺēćţēď ţàƀĺē"],@@ -309,6 +308,7 @@"8_brI5": ["Ńàḿē ĩś ŕēǫũĩŕēď"],"8cS0nH": ["Ćōńƒĩĝ śĥàŕĩńĝ ũńàvàĩĺàƀĺē: ", ["0"], "."],"8cpOa8": ["Ćōũĺďń'ţ ďĩśćōńńēćţ — ƥĺēàśē ţŕŷ àĝàĩń."],+ "8cpeU3": ["Śĥàŕēď ŕēƥōśĩţōŕĩēś"],"8eW0WQ": ["Ńō ḿàţćĥĩńĝ ŕēƥōśĩţōŕĩēś."],"8fRyLo": ["Ĩńvàĺĩď ƥàţćĥ ƥàŷĺōàď"],"8fc_3j": ["Ƥŕōţēćţēď ƀŕàńćĥ — ćàńńōţ ƥũśĥ"],@@ -342,6 +342,7 @@],"9fhQRL": ["ßēţà ćĥàńńēĺ"],"9fvog2": ["Ƥŕēvĩēŵ ũńàvàĩĺàƀĺē: ", ["errorDetail"]],+ "9i21pa": ["Ćōḿḿĩţś ĥàƥƥēń àũţōḿàţĩćàĺĺŷ"],"9jnjV0": ["Ēḿƀēď àń àũďĩō ƒĩĺē ŵĩţĥ ńàţĩvē ƥĺàŷēŕ ćōńţŕōĺś."],"9npOH9": ["Ōƥēń ƒĩĺē"],"9o1bIV": [["behind"], " ƀēĥĩńď"],@@ -434,6 +435,7 @@"D4H2N6": ["Ŕēḿōvē ", ["tag"]],"D8OV7J": ["Ōńĺŷ ćōĺĺàƀōŕàţōŕś"],"DDTdLl": ["Ćōďē ƀĺōćķ śēţţĩńĝś"],+ "DELNQk": ["Ćōĺĺàƀōŕàţōŕś śēē ŷōũŕ ĩń-ƥŕōĝŕēśś ēďĩţś àś śōōń àś ţĥēŷ śŷńć."],"DF1MtZ": ["Ĺōàďĩńĝ ćōńƒĺĩćţ ƒōŕ ", ["filePath"]],"DFfRbX": ["Śŷńć śţàţũś: ", ["syncStateLabel"], " — ĝĩţ ĩďēńţĩţŷ ũńśēţ"],"DId6MT": ["ƤŕōĴēćţ-ĺēvēĺ ƥàĝēś ŵĩţĥ ńō ōũţĝōĩńĝ ĝŕàƥĥ ēďĝēś."],@@ -824,9 +826,6 @@],"R0jJzV": ["Ƥàśţē ŨŔĹ, ōŵńēŕ/ŕēƥō, ōŕ śēàŕćĥ ŷōũŕ ŕēƥōś"],"R3y75Z": ["Ēďĩţ śōũŕćē"],- "R4RGjs": [- "Ĩƒ ţĥĩś ŕēƥō ĩś śĥàŕēď, ŷōũŕ ĩń-ƥŕōĝŕēśś ēďĩţś ƀēćōḿē vĩśĩƀĺē ţō ćōĺĺàƀōŕàţōŕś àś śōōń àś ţĥēŷ śŷńć."- ],"RDrXh4": ["Ćōńƒĩĝũŕē ũśēŕ, ƥŕōĴēćţ, àńď ĩńţēĝŕàţĩōń śēţţĩńĝś."],"RFQ1Yx": ["Ŕēśţōŕē ţĥĩś vēŕśĩōń"],"RGCCrg": ["Ćōƥŷ śĥàŕē ĺĩńķ"],@@ -1014,6 +1013,7 @@"YTLmTM": ["Ŕēḿōvē ţĥē ƥàŕēńţ <0>.ĝĩţ</0> ƒōĺďēŕ"],"YW7Q86": ["Śēàŕćĥ śēţţĩńĝś ńōţ ŷēţ ĺōàďēď — ţŕŷ àĝàĩń ĩń à ḿōḿēńţ"],"Y_kL7X": ["Ćũśţōḿĩźē ĥōŵ ţĥē ēďĩţōŕ ĺōōķś àńď ƀēĥàvēś."],+ "YaeyFh": ["Ƥũĺĺś ḿàŷ ōvēŕŵŕĩţē ũńćōḿḿĩţţēď ēďĩţś ĩń ŷōũŕ ĺōćàĺ ƒĩĺēś."],"YeQufb": ["Śĥàŕē ŵĩţĥ ḿŷ ţēàḿ"],"Yea-K5": ["Ŕēśţōŕē ţō ţĥĩś ƥōĩńţ"],"Yi0VMG": ["Ũƥĺōàď ", ["keyName"]],@@ -1174,6 +1174,7 @@"cZGNlb": ["Àďď àńōţĥēŕ ƥàţţēŕń"],"cZI5AL": ["ŌĶ Ďēśķţōƥ"],"cdm00A": ["Ńō Ĩńćōḿĩńĝ"],+ "cdmk8A": ["Ũńćōḿḿĩţţēď ćĥàńĝēś"],"cklVjM": ["Ţĩḿēĺĩńē"],"cnGeoo": ["Ďēĺēţē"],"cqQyPB": ["Ƒōĺďēŕ ńàḿē"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex f757182ab..089ed45dd 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -763,10 +763,6 @@ msgstr ""msgid "Before syncing, set your identity for git commits:"msgstr ""-#: src/components/AutoSyncEnableWarning.tsx-msgid "Before you enable it"-msgstr ""-#: src/editor/slash-command/items.tsxmsgid "Below"msgstr ""@@ -1113,6 +1109,10 @@ msgstr ""msgid "Code expired — please try again"msgstr ""+#: src/components/AutoSyncEnableWarning.tsx+msgid "Collaborators see your in-progress edits as soon as they sync."+msgstr ""+#: src/components/GraphPanel.tsxmsgid "Collapse"msgstr ""@@ -1163,6 +1163,10 @@ msgstr ""msgid "Commit or stash changes to switch:"msgstr ""+#: src/components/AutoSyncEnableWarning.tsx+msgid "Commits happen automatically"+msgstr ""+#: src/components/CloneDialog.tsxmsgid "Complete"msgstr ""@@ -2588,6 +2592,10 @@ msgstr ""msgid "heading-slug"msgstr ""+#: src/components/AutoSyncEnableWarning.tsx+msgid "Heads up"+msgstr ""+#: src/editor/slash-command/embed-starter-items.tsxmsgid "Hello, world!"msgstr ""@@ -2701,10 +2709,6 @@ msgstr ""msgid "I already have it locally →"msgstr ""-#: src/components/AutoSyncEnableWarning.tsx-msgid "If this repo is shared, your in-progress edits become visible to collaborators as soon as they sync."-msgstr ""-#: src/components/ConsentDialogBody.tsx#: src/components/settings/OkignoreSection.tsx#: src/components/settings/SettingsDialogShell.tsx@@ -4349,7 +4353,7 @@ msgid "Pulling"msgstr ""#: src/components/AutoSyncEnableWarning.tsx-msgid "Pulls may overwrite uncommitted local file changes."+msgid "Pulls may overwrite uncommitted edits in your local files."msgstr ""#: src/components/SyncStatusBadge.tsx@@ -4994,6 +4998,10 @@ msgstr ""msgid "Share with my team"msgstr ""+#: src/components/AutoSyncEnableWarning.tsx+msgid "Shared repositories"+msgstr ""+#: src/components/PublishToGitHubDialog.tsxmsgid "Sharing a doc needs a GitHub repository. Create one for this project."msgstr ""@@ -5702,6 +5710,10 @@ msgstr ""msgid "Type to edit; <0>⌘ Enter</0> saves, <1>Esc</1> cancels."msgstr ""+#: src/components/AutoSyncEnableWarning.tsx+msgid "Uncommitted changes"+msgstr ""+#: src/lib/keyboard-shortcuts.tsmsgid "Underline"msgstr ""