Cotton code
81 lines · 1.7 KB · JSONRaw
{  "id": "quota_reading",  "name": "Reading",  "plural": "Readings",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "name",      "name": "Reading",      "type": "text",      "required": true,      "readonly": false,      "placeholder": "20% week · 36% window"    },    {      "key": "quota",      "name": "Account",      "type": "link",      "link_to": "quota",      "readonly": false    },    {      "key": "week_pct",      "name": "Week used, %",      "type": "number",      "readonly": false    },    {      "key": "session_pct",      "name": "Window used, %",      "type": "number",      "readonly": false    },    {      "key": "sampled_at",      "name": "Sampled",      "type": "date",      "readonly": false,      "format": "ago"    }  ],  "title": "name",  "date": "sampled_at",  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": [      "sampled_at"    ],    "trailing": "week_pct",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "quota",        "week_pct",        "session_pct",        "sampled_at"      ]    }  ],  "sort": {    "column": "sampled_at"  },  "empty": {    "title": "No readings yet",    "message": "Readings arrive every hour from each Mac."  },  "instructions": "One row per hourly read of an account's allowance, linked to its quota row; rows older than 30 days are removed by the writer. Never edit a reading; it is history. Readings are written only by the Macs' hourly script; a person never adds one by hand."}