feat(desktop): two-way cloud sync with mobile and web

Rewrites the desktop mirror as services/sync/SyncEngine: a persistent
outbox, per-account server-clock keyset cursors with paging, pulls that never
overwrite unsent local edits, deletions both ways through sync_tombstones and
per-row failure isolation. It now covers history titles and favorites,
dictionary, every meeting's memos and documents, memo tags, user commands and
dictation/meeting templates, and registers the desktop as a device that the
phone can disconnect.

Fixes shipped defects: the first pull after sign-in fetched nothing, only
the first meeting's children were pushed, team meetings leaked into the
personal database and lost team_id on re-push, and Realtime never connected
because Electron's Node 20 has no global WebSocket (ws is now the transport).
Anonymous local-mode records are imported into the first account that signs
in. The settings sync section is translated and shows pending/rejected
changes; synced screens reload on app:dataChanged.
This commit is contained in:
Yun Chan 2026-09-27 14:04:49 +09:00
parent b5c9ff9f31
commit 0a4f5aee64
49 changed files with 3940 additions and 1033 deletions

View file

@ -522,5 +522,24 @@
"settings.captionRefine.desc": "Die lokale KI korrigiert Leerzeichen, Satzzeichen und falsch verstandene Wörter anhand der umgebenden Zeilen.",
"settings.captionModel": "Modell für Live-Untertitel",
"settings.captionModel.same": "Wie beim Diktieren",
"settings.captionModel.desc": "Live-Untertitel werden mit einem eigenen Modell erkannt, das zusätzlich zum Diktiermodell geladen wird."
"settings.captionModel.desc": "Live-Untertitel werden mit einem eigenen Modell erkannt, das zusätzlich zum Diktiermodell geladen wird.",
"history.favorite": "Favorit",
"history.unfavorite": "Favorit entfernen",
"cloudSync.title": "Cloud-Synchronisierung",
"cloudSync.description": "Hält Verlauf, Wörterbuch, Meetings, Memo-Tags, Befehle und Vorlagen mit Mobil und Web abgeglichen. Was du auf einem Gerät löschst, wird überall gelöscht.",
"cloudSync.signIn": "Anmelden",
"cloudSync.signedInAs": "Angemeldet als {{email}}",
"cloudSync.noEmail": "keine E-Mail",
"cloudSync.lastSync": "Zuletzt synchronisiert: {{time}}",
"cloudSync.never": "noch nicht",
"cloudSync.upToDate": "Alle Änderungen sind hochgeladen",
"cloudSync.pending": "{{count}} Änderung(en) warten auf Upload",
"cloudSync.failed": "{{count}} Änderung(en) vom Server abgelehnt – „Jetzt synchronisieren“ versucht es erneut",
"cloudSync.syncNow": "Jetzt synchronisieren",
"cloudSync.syncing": "Wird synchronisiert…",
"cloudSync.signOut": "Abmelden",
"cloudSync.browserPending": "Schließe die Anmeldung im Browser ab.",
"cloudSync.signedOut": "Abgemeldet. Die Einträge auf diesem Computer bleiben erhalten.",
"cloudSync.done": "Synchronisierung abgeschlossen ({{count}} übernommen)",
"cloudSync.doneWithErrors": "Synchronisierung abgeschlossen ({{count}} übernommen, {{errors}} fehlgeschlagen – nächster Lauf versucht es erneut)"
}