Cotton code
111 lines · 2.0 KB · JSONRaw
{  "format_version": 1,  "id": "kitchen_review",  "name": "Review",  "plural": "Reviews",  "picture": null,  "builtin": false,  "engine": null,  "visibility": "public",  "columns": [    {      "key": "name",      "name": "Reviewer",      "type": "text",      "required": true,      "placeholder": "Ananya R."    },    {      "key": "dish",      "name": "Dish",      "type": "link",      "link_to": "kitchen_dish",      "required": true,      "contributes": {        "label": "Reviews"      }    },    {      "key": "rating",      "name": "Stars",      "type": "number",      "required": true,      "reading": "★ {value}"    },    {      "key": "text",      "name": "Review",      "type": "longtext"    },    {      "key": "on",      "name": "On",      "type": "date"    }  ],  "title": "name",  "date": "on",  "project": null,  "order": null,  "slip": {    "title": "name",    "photo": null,    "toggle": null,    "subtitle": [      "rating",      "dish"    ],    "trailing": "on"  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "dish",        "rating",        "on"      ]    },    {      "heading": "Review",      "columns": [        "text"      ]    }  ],  "sort": {    "column": "on",    "descending": true,    "tie": "name"  },  "empty": {    "title": "No reviews",    "message": "Reviews of each dish come here."  },  "card": {    "face": "plain",    "fields": [      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "rating"      },      {        "slot": "body",        "column": "text"      },      {        "slot": "date",        "column": "on"      }    ]  },  "instructions": "One row per review of a dish: the reviewer as they want to be shown (a first name and initial), the stars out of five, the words and the day. Public: anyone admitted reads them, so a review names no customer record."}