Cotton code
213 lines · 4.0 KB · JSONRaw
{  "format_version": 1,  "id": "project",  "name": "Project",  "plural": "Projects",  "visibility": "owner",  "title": "name",  "columns": [    {      "key": "slug",      "type": "text",      "required": true,      "indexed": true,      "readonly": true,      "name": "Short name"    },    {      "key": "name",      "type": "text",      "required": true,      "name": "Name"    },    {      "key": "repos",      "name": "Repos",      "type": "text",      "multiple": true    },    {      "key": "description",      "type": "longtext",      "name": "About"    },    {      "key": "summary_by",      "name": "Summary by",      "type": "text"    },    {      "key": "summary_updated_at",      "name": "Summary updated at",      "type": "text"    },    {      "key": "status",      "type": "choice",      "choices": [        "active",        "archived"      ],      "default": "active",      "name": "Status",      "labels": {        "active": "Active",        "archived": "Archived"      }    },    {      "key": "brand",      "name": "Brand",      "type": "longtext"    },    {      "key": "trashed_at",      "name": "Trashed at",      "type": "text"    }  ],  "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.",  "tables": [],  "picture": {    "photo": "photo:1543383086d9de6a22d41378f943efcbb87b76cfbd76a28f94cbe9bb97e042a5",    "object": "tool-projects",    "link_object": "cap"  },  "builtin": true,  "engine": "projects",  "voice_words": [    "name"  ],  "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"      ]    }  ],  "add": false,  "scope_by": "slug",  "role": "project",  "group": {    "column": "status",    "sections": [      {        "heading": null,        "values": [          "active"        ]      },      {        "heading": "Archived",        "values": [          "archived"        ]      }    ]  },  "delete": false,  "commands": [    {      "id": "rename",      "label": "Rename",      "kind": "update",      "verb": "update_project",      "bindings": {        "slug": "slug"      },      "receipt": "Renamed project",      "pick": {        "argument": "name",        "kind": "text"      }    },    {      "id": "archive",      "label": "Archive",      "kind": "update",      "verb": "update_project",      "data": {        "status": "archived"      },      "bindings": {        "slug": "slug"      },      "when": {        "status": "active"      },      "receipt": "Archived {name}",      "does": "puts-away"    }  ],  "tool": {    "views": [      {        "id": "all",        "label": "All",        "visibility": "owner",        "is_default": true,        "read": {          "table": "project"        }      }    ],    "name": "Projects",    "purpose": "Your projects and the records filed in them.",    "tables": [      "project",      "project_feedback",      "project_item"    ],    "key": "projects",    "icon": "folder",    "route": "/lists/project"  },  "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": []  }}