Cotton code
104 lines · 2.4 KB · JSONRaw
{  "format_version": 1,  "id": "person_source",  "name": "Where a contact came from",  "plural": "Where contacts came from",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "person",      "name": "Contact",      "type": "link",      "link_to": "person",      "required": true,      "readonly": true    },    {      "key": "kind",      "name": "Kind",      "type": "choice",      "choices": [        "address_book",        "whatsapp",        "cotton",        "mail",        "apple_photos",        "health",        "vcard",        "typed"      ],      "labels": {        "address_book": "Phone's contacts",        "whatsapp": "WhatsApp",        "cotton": "Cotton",        "mail": "Mail",        "apple_photos": "Photos",        "health": "Health",        "vcard": "A contacts file",        "typed": "Typed"      },      "required": true,      "readonly": true    },    {      "key": "device",      "name": "Device",      "type": "text",      "hidden": true,      "readonly": true    },    {      "key": "source_id",      "name": "Its id there",      "type": "text",      "required": true,      "hidden": true,      "readonly": true    },    {      "key": "name",      "name": "Name there",      "type": "text",      "readonly": true    },    {      "key": "card_key",      "name": "What the card says",      "type": "text",      "hidden": true,      "readonly": true,      "indexed": true    },    {      "key": "first_seen",      "name": "First seen",      "type": "date",      "format": "calendar-datetime",      "readonly": true    }  ],  "seal": {    "clear": [      "person",      "first_seen"    ]  },  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": "kind",    "trailing": null,    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "instructions": "One original record a contact came from: a card in the phone's contacts (per device), a WhatsApp id, a Cotton account, a mail address, a person in Apple Photos, a Health import, a contacts file, or typed by the owner. Every import and sync looks here first, so a record already seen lands on its contact even after a rename or a merge, and a merge keeps every source so it can be undone. Written by imports only; an assistant reads it and never writes it."}