fix(sync): resolve conflicts against the versions shown, isolate failures, renders on request
- Conflicts are settled against the versions the user was shown; a later change on
either side refuses the choice and compares again. Title, tags, rating and notes
changed differently on both sides are a conflict too (no silent tag union).
- Links are written under the engine's gate and forgotten only after a 404; linked
local copies are read by id; unlinked copies with the same originals are linked
by content.
- A failure on one sequence is recorded on its link; the others are still compared.
- Downloads hash unverified local copies first and restore originals missing here.
- Background proxy downloads give way to the user's requests; "Keep proxies offline"
refreshes the caches of sequences opened with proxies, checks free space and backs
off after a failure.
- Renders travel on request: Send exports (chunked, hash-verified upload keeping the
render id; new POST /sequences/{id}/renders endpoints) and Get exports.
- Server screen: stable row buttons, mockup column grid, Tab through rows, conflict
rows first on the card colour, localised conflict detail, Save both confirmation,
Pause metered uploads, culture switch, Library one-word sync glyphs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
48 files changed
+2498
-465
No files matched your search
@@ -1,5 +1,6 @@
|
||||
-- Client sync state (BRIEF §4.4, §14.5): one row per sequence of a server this client has listed, linked to the local
|
||||
-- copy when there is one. Versions are the counters both sides agreed on at the last sync. Mirrors sqlite/0004_sync.sql.
|
||||
-- copy when there is one. Versions are the counters both sides agreed on at the last sync; conflict_remote is the
|
||||
-- server's side (title, tags, rating, notes, settings) of an unresolved conflict as JSON. Mirrors sqlite/0004_sync.sql.
|
||||
|
||||
CREATE TABLE sync_links (
|
||||
server text COLLATE "C" NOT NULL,
|
||||
@@ -17,13 +18,20 @@ CREATE TABLE sync_links (
|
||||
base_remote_settings integer,
|
||||
diff_local_frames integer,
|
||||
diff_remote_frames integer,
|
||||
diff_local_renders integer,
|
||||
diff_remote_renders integer,
|
||||
missing_remote integer NOT NULL DEFAULT 0,
|
||||
missing_local integer NOT NULL DEFAULT 0,
|
||||
exports_to_get integer NOT NULL DEFAULT 0,
|
||||
exports_to_get_bytes bigint NOT NULL DEFAULT 0,
|
||||
exports_to_send integer NOT NULL DEFAULT 0,
|
||||
exports_to_send_bytes bigint NOT NULL DEFAULT 0,
|
||||
conflict_local_settings integer,
|
||||
conflict_remote_settings integer,
|
||||
conflict_settings text,
|
||||
conflict_remote text,
|
||||
proxies_cached integer NOT NULL DEFAULT 0,
|
||||
proxies_frames_version integer,
|
||||
error text,
|
||||
synced_at timestamptz,
|
||||
PRIMARY KEY (server, remote_id)
|
||||
);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
-- Client sync state (BRIEF §4.4, §14.5): one row per sequence of a server this client has listed, linked to the local
|
||||
-- copy when there is one. Versions are the counters both sides agreed on at the last sync. Mirrors postgres/0004_sync.sql.
|
||||
-- copy when there is one. Versions are the counters both sides agreed on at the last sync; conflict_remote is the
|
||||
-- server's side (title, tags, rating, notes, settings) of an unresolved conflict as JSON. Mirrors postgres/0004_sync.sql.
|
||||
|
||||
CREATE TABLE sync_links (
|
||||
server TEXT NOT NULL,
|
||||
@@ -17,13 +18,20 @@ CREATE TABLE sync_links (
|
||||
base_remote_settings INTEGER,
|
||||
diff_local_frames INTEGER,
|
||||
diff_remote_frames INTEGER,
|
||||
diff_local_renders INTEGER,
|
||||
diff_remote_renders INTEGER,
|
||||
missing_remote INTEGER NOT NULL DEFAULT 0,
|
||||
missing_local INTEGER NOT NULL DEFAULT 0,
|
||||
exports_to_get INTEGER NOT NULL DEFAULT 0,
|
||||
exports_to_get_bytes INTEGER NOT NULL DEFAULT 0,
|
||||
exports_to_send INTEGER NOT NULL DEFAULT 0,
|
||||
exports_to_send_bytes INTEGER NOT NULL DEFAULT 0,
|
||||
conflict_local_settings INTEGER,
|
||||
conflict_remote_settings INTEGER,
|
||||
conflict_settings TEXT,
|
||||
conflict_remote TEXT,
|
||||
proxies_cached INTEGER NOT NULL DEFAULT 0,
|
||||
proxies_frames_version INTEGER,
|
||||
error TEXT,
|
||||
synced_at TEXT,
|
||||
PRIMARY KEY (server, remote_id)
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user