Cotton code
110 lines · 2.2 KB · JSONRaw
{  "id": "landing",  "name": "Landing hour",  "plural": "Landings",  "picture": {    "photo": "photo:c6e7cbc4fa8c86874d5b43fe469b6cc47d82775ca5be4aa116e941128e2ef80d"  },  "builtin": false,  "engine": null,  "title": "name",  "date": "hour_at",  "project": null,  "order": null,  "columns": [    {      "key": "name",      "name": "Hour",      "type": "text",      "required": true,      "placeholder": "14 Oct 15:00"    },    {      "key": "hour_at",      "name": "Hour",      "type": "date"    },    {      "key": "hour",      "name": "Hour of day",      "type": "number"    },    {      "key": "landings",      "name": "Landings",      "type": "number"    },    {      "key": "lanes",      "name": "Lanes that landed",      "type": "number"    },    {      "key": "red_minutes",      "name": "Minutes main was red",      "type": "number"    }  ],  "slip": {    "title": "name",    "subtitle": [      "lanes"    ],    "trailing": "landings",    "photo": null,    "toggle": null  },  "views": [    {      "face": "chart",      "name": "Landings by hour",      "sizes": [        "medium",        "large"      ],      "chart": {        "kind": "bar",        "x": "hour_at",        "y": "landings",        "by": "hour",        "hour": "hour",        "timezone": "Asia/Kolkata",        "periods": 48      }    }  ],  "tile": {    "face": "slip-list",    "summary": [      {        "op": "sum",        "column": "landings",        "label": "landed"      }    ]  },  "sort": {    "column": "hour_at"  },  "empty": {    "title": "No landings counted yet",    "message": "A row per hour is written from main's history."  },  "create": {    "label": "Add an hour"  },  "page": [    {      "heading": null,      "columns": [        "name",        "hour_at",        "hour",        "landings",        "lanes",        "red_minutes"      ]    }  ],  "instructions": "One row per hour (IST): hour_at is the day, hour the hour of day 0–23; landings are commits landed on main in that hour, lanes the distinct lanes that landed, red_minutes the minutes main was red. Written every ten minutes from main history; the chart shows the last 48 hours."}