Cotton code
27 lines · 1.2 KB · JSONRaw
{  "id": "quota_reading",  "name": "Reading",  "plural": "Readings",  "picture": null,  "builtin": false,  "engine": null,  "columns": [    { "key": "name", "name": "Reading", "type": "text", "required": true, "placeholder": "62% week · 34% window" },    { "key": "quota", "name": "Account", "type": "link", "link_to": "quota" },    { "key": "week_pct", "name": "Week used (%)", "type": "number" },    { "key": "session_pct", "name": "Window used (%)", "type": "number" },    { "key": "sampled_at", "name": "Read", "type": "date", "format": "ago" }  ],  "title": "name",  "date": "sampled_at",  "project": null,  "order": null,  "slip": { "title": "name", "subtitle": null, "trailing": "sampled_at", "photo": null, "toggle": null },  "tile": { "face": "slip-list" },  "sort": { "column": "sampled_at", "descending": true },  "empty": { "title": "No readings yet", "message": "One is kept each hour an account is read." },  "page": [    { "heading": null, "columns": ["name", "quota", "week_pct", "session_pct", "sampled_at"] }  ],  "instructions": "One reading per account per hour, kept for thirty days: the week's and the window's percentage used when it was read."}