Add optional sync: SyncClient with optimistic concurrency, settings UI, Django DELETE and 409, dev proxy, e2e with real backend

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-16 17:24:58 +02:00
parent aa2fd84352
commit 4689d25700
20 changed files with 949 additions and 16 deletions
+27 -1
View File
@@ -93,5 +93,31 @@
"backup.import": "Import progress",
"backup.imported": "Progress imported: {n} new level(s).",
"backup.importFailed": "This file is not a valid PyQuest progress file.",
"backup.exported": "Progress exported."
"backup.exported": "Progress exported.",
"sync.title": "Sync between devices (optional)",
"sync.help": "Find your progress on another device. No account: a secret token is enough. Needs a PyQuest server with sync; the app works fine without it.",
"sync.enable": "Turn on sync",
"sync.linkLabel": "Or paste the token from another device",
"sync.link": "Link this device",
"sync.tokenLabel": "Your secret token",
"sync.tokenHelp": "Keep it like a password: it gives access to your progress. If lost, it cannot be recovered (also use the file export).",
"sync.copy": "Copy the token",
"sync.copied": "Token copied.",
"sync.copyFailed": "Could not copy: select the token and copy it by hand.",
"sync.now": "Sync now",
"sync.disable": "Turn off (keep the server data)",
"sync.erase": "Turn off and erase the server data",
"sync.erased": "Sync turned off, server data erased.",
"sync.disabled": "Sync turned off.",
"sync.enabled": "Sync turned on.",
"sync.linked": "Device linked: progress merged.",
"sync.invalidToken": "This token is not valid (at least 32 characters: letters, digits, - and _).",
"sync.status.syncing": "Syncing…",
"sync.status.last": "Last sync: {when}.",
"sync.status.never": "Not synced yet.",
"sync.error.offline": "Offline: will retry when the connection is back. Your local progress is safe.",
"sync.error.unauthorized": "The server refuses this token.",
"sync.error.unavailable": "No sync server available here. Your local progress is safe.",
"sync.error.rejected": "The server rejected the data sent.",
"sync.error.invalid": "The data received from the server is invalid and was ignored."
}