Cotton code
192 lines · 3.6 KB · JSONRaw
{  "format_version": 1,  "id": "project",  "name": "Project",  "plural": "Projects",  "picture": {    "photo": "photo:1543383086d9de6a22d41378f943efcbb87b76cfbd76a28f94cbe9bb97e042a5",    "object": "tool-projects",    "link_object": "cap"  },  "builtin": true,  "delete": false,  "engine": "projects",  "role": "project",  "views": [    {      "face": "links",      "name": "links",      "sizes": [        "medium",        "large"      ],      "each": true    },    {      "face": "databases",      "name": "Your databases",      "sizes": [        "small",        "medium",        "large"      ],      "everywhere": true    }  ],  "voice_words": [    "name"  ],  "columns": [    {      "key": "name",      "type": "text",      "required": true,      "name": "Name"    },    {      "key": "slug",      "type": "text",      "name": "Short name",      "readonly": true    },    {      "key": "description",      "name": "About",      "type": "longtext"    },    {      "key": "status",      "type": "choice",      "choices": [        "active",        "archived"      ],      "name": "Status",      "labels": {        "active": "Active",        "archived": "Archived"      }    }  ],  "title": "name",  "scope_by": "slug",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": "description",    "trailing": null,    "photo": null,    "toggle": null  },  "tile": {    "face": "cap-grid"  },  "page": [    {      "heading": null,      "columns": [        "name",        "description"      ]    },    {      "heading": "Details",      "columns": [        "slug",        "status"      ]    }  ],  "group": {    "column": "status",    "sections": [      {        "heading": null,        "values": [          "active"        ]      },      {        "heading": "Archived",        "values": [          "archived"        ]      }    ]  },  "instructions": "A project is a working context: records of every kind are linked to it, and its page shows them in sections. Start a session by reading the project, and link new records to the project they belong to rather than copying them. Its About says what the project is in a few sentences.",  "add": false,  "tables": [],  "parts": {    "shape": "desk",    "head": {      "facts": [],      "state": "status"    },    "links": [],    "body": "description",    "lists": [      {        "table": "project_item",        "match": {          "column": "project",          "parent": "slug"        },        "heading": "Filed records"      }    ],    "acts": {      "more": [        "rename",        "archive"      ]    },    "strip": []  },  "tool": {    "name": "Projects",    "key": "projects",    "icon": "folder",    "route": "/lists/project",    "tables": [      "project",      "project_feedback",      "project_item"    ]  ,"purpose":"Your projects and the records filed in them."},  "commands": [    {      "id": "rename",      "label": "Rename",      "kind": "update",      "verb": "update_project",      "bindings": {        "slug": "slug"      },      "pick": {        "kind": "text",        "argument": "name"      },      "receipt": "Renamed project"    },    {      "id": "archive",      "label": "Archive",      "kind": "update",      "verb": "update_project",      "bindings": {        "slug": "slug"      },      "data": {        "status": "archived"      },      "when": {        "status": "active"      },      "receipt": "Archived {name}",      "does": "puts-away"    }  ]}