Cotton code
84 lines · 1.8 KB · JSONRaw
{  "views": [    {      "id": "new",      "label": "New",      "is_default": true,      "visibility": "staff",      "read": {        "table": "app_report",        "where": {          "status": "new"        }      },      "face": "cards",      "sort": {        "column": "made_at",        "descending": true      }    },    {      "id": "replied",      "label": "Replied",      "is_default": false,      "visibility": "staff",      "read": {        "table": "app_report",        "where": {          "status": "replied"        }      },      "face": "cards",      "sort": {        "column": "made_at",        "descending": true      }    },    {      "id": "fixed",      "label": "Fixed",      "is_default": false,      "visibility": "staff",      "read": {        "table": "app_report",        "where": {          "status": "fixed"        }      },      "face": "cards",      "sort": {        "column": "made_at",        "descending": true      }    },    {      "id": "all",      "label": "All",      "is_default": false,      "visibility": "staff",      "read": {        "table": "app_report"      },      "face": "cards",      "sort": {        "column": "made_at",        "descending": true      }    }  ],  "id": "app_reports",  "name": "Feedback",  "picture": "tool-feedback",  "card_stock": "rose",  "tables": [    "app_report"  ],  "instructions": "Feedback is what people report from any Cotton app's Report a problem screen (app_report): New until someone answers, then Replied, Fixed or Closed. Change a report's status when it moves; never write a report by hand.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null,  "purpose": "What people report from every Cotton app: a sentence, the screen and its log."}