{ "format_version": 1, "id": "copy", "role": "copies", "list_route": "/lists/copy", "setup": true, "name": "Copy", "plural": "Copies", "picture": null, "builtin": true, "voice_words": [], "engine": "sync", "columns": [ { "key": "not_answering", "name": "Sync", "type": "text", "readonly": true, "fact": false }, { "key": "database", "name": "Database", "type": "text", "readonly": true, "fact": false }, { "key": "name", "name": "Device", "type": "text", "required": true, "readonly": true }, { "key": "kind", "name": "Kind", "type": "choice", "choices": [ "phone", "tablet", "mac", "linux", "windows", "other" ], "readonly": true, "labels": { "phone": "Phone", "tablet": "Tablet", "mac": "Mac", "linux": "Linux machine", "windows": "Windows machine", "other": "A device" } }, { "key": "role", "name": "Role", "type": "choice", "choices": [ "this_device", "serving", "copy" ], "readonly": true, "labels": { "this_device": "This device", "serving": "Serves this database", "copy": "Holds a copy" } }, { "key": "keeps", "name": "Keeps", "type": "choice", "choices": [ "records_only", "records_and_media", "whole_file" ], "readonly": true, "labels": { "records_only": "Records only", "records_and_media": "Records and pictures", "whole_file": "The whole database" } }, { "key": "behind", "name": "Behind", "type": "number", "readonly": true, "units": { "one": "1 change not yet here", "other": "{n} changes not yet here", "zero": "Up to date" } }, { "key": "behind_at_least", "name": "Behind", "type": "number", "readonly": true, "units": { "one": "at least 1 change not yet here", "other": "at least {n} changes not yet here" } }, { "key": "doing_now", "name": "Now", "type": "choice", "choices": [ "idle", "pulling_changes", "fetching_bytes", "sending", "catching_up", "paused" ], "readonly": true, "labels": { "idle": "Idle", "pulling_changes": "Reading changes", "fetching_bytes": "Fetching pictures", "sending": "Sending changes", "catching_up": "Catching up", "paused": "Waiting for the Mac" } }, { "key": "reach", "name": "Reachable", "type": "choice", "choices": [ "reachable", "unreachable" ], "readonly": true, "red_when": [ "unreachable" ], "labels": { "reachable": "Reachable", "unreachable": "Not reachable" } }, { "key": "unreachable_since", "name": "Not reachable since", "type": "date", "readonly": true, "fact": true, "reading": "not reachable since {datetime}" }, { "key": "ambient", "name": "Sync", "type": "choice", "readonly": true, "choices": [ "up_to_date", "waiting_for_mac" ], "labels": { "up_to_date": "Up to date", "waiting_for_mac": "Mac not heard yet" } }, { "key": "mac_heard_at", "name": "Mac heard", "type": "date", "readonly": true, "fact": true, "format": "ago", "units": { "one": "Mac heard {n}", "other": "Mac heard {n}" } }, { "key": "waiting_since", "name": "Mac not heard since", "type": "date", "readonly": true, "fact": true, "reading": "Mac not heard since {datetime}" }, { "key": "last_heard_at", "name": "Last heard", "type": "date", "readonly": true, "format": "ago", "units": { "one": "heard {n}", "other": "heard {n}" } }, { "key": "synced_at", "name": "Synced", "type": "date", "readonly": true, "format": "ago", "units": { "one": "synced {n}", "other": "synced {n}" }, "shown_when": { "column": "role", "values": [ "this_device" ] } }, { "key": "changes_waiting", "name": "Waiting to send", "type": "number", "readonly": true, "units": { "one": "1 change waiting to send", "other": "{n} changes waiting to send" }, "shown_when": { "column": "role", "values": [ "this_device" ] } }, { "key": "moving_database", "name": "Updating", "type": "text", "readonly": true, "fact": true, "reading": "Updating {value}'s tables", "shown_when": { "column": "role", "values": [ "this_device" ] } }, { "key": "databases_moved", "name": "Databases updated", "type": "number", "readonly": true, "units": { "zero": "0 of {databases_to_move} databases", "one": "1 of {databases_to_move} databases", "other": "{n} of {databases_to_move} databases" }, "shown_when": { "column": "role", "values": [ "this_device" ] } }, { "key": "databases_to_move", "name": "Databases to update", "type": "number", "readonly": true, "fact": false }, { "key": "bytes_wanted", "name": "Still to fetch", "type": "bytes", "readonly": true, "fact": true, "shown_when": { "column": "role", "values": [ "this_device" ] } } ], "title": "name", "date": null, "project": null, "order": null, "slip": { "title": "name", "title_fallback": "kind", "subtitle": [ "moving_database", "databases_moved", "not_answering", "behind", "behind_at_least", "ambient", "mac_heard_at", "changes_waiting", "waiting_since", "doing_now" ], "with_names": false, "trailing": null, "photo": null, "toggle": null, "caption": { "columns": [ "role", "synced_at", "unreachable_since", "last_heard_at" ] } }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "name", "not_answering", "ambient", "waiting_since", "role", "keeps", "behind", "behind_at_least", "doing_now", "reach", "unreachable_since", "last_heard_at", "synced_at", "changes_waiting", "bytes_wanted" ] } ], "add": false, "empty": { "title": "No device holds a copy yet" }, "delete": false, "instructions": "Every device holding a copy of this database, one line each: the Mac that serves it, this device, and each member's devices. A line says what the device keeps (the records only, the records and pictures, or the whole database), how far behind it is (changes the serving Mac has that it has not read yet), what it is doing now, whether it can be reached and when it was last heard from. This device's line also says when it last synced, or how many of its own changes wait to send — one state — and what is not fetched yet; what it holds is Storage's. Everything is read from this device's own copy, so it answers offline; a fact this device has not observed is left unsaid, never guessed. The list is read only; Sync now on this device's line asks the serving Mac at once.", "parts": { "shape": "sheet", "head": { "facts": [ "role", "kind" ], "state": "reach" }, "links": [], "lists": [], "acts": { "main": "sync_now", "more": [] }, "cards": [ { "column": "ambient", "object": "words" }, { "column": "waiting_since", "label": "Mac away since" }, { "column": "not_answering", "when": { "column": "ambient", "present": false } }, { "column": "behind", "when": { "column": "behind_at_least", "present": false } }, { "column": "behind_at_least" }, { "column": "synced_at" }, { "column": "changes_waiting" }, { "column": "doing_now", "when": { "column": "doing_now", "values": [ "pulling_changes", "fetching_bytes", "sending", "catching_up", "paused" ] }, "object": "words" }, { "column": "keeps", "object": "archive" }, { "column": "unreachable_since", "label": "Away since" }, { "column": "last_heard_at" }, { "column": "bytes_wanted", "object": "figure" } ] }, "tables": [], "commands": [ { "id": "sync_now", "label": "Sync now", "object": "loop", "kind": "update", "method": "sync.now", "when": { "role": "this_device" }, "receipt": "Syncing" } ], "card": { "face": "plain", "fields": [ { "slot": "title", "column": "name" }, { "slot": "subtitle", "column": "kind" }, { "slot": "facts", "column": "role", "also": ["keeps", "reach", "synced_at", "last_heard_at", "changes_waiting", "behind"] } ] } }