Cotton code
162 lines · 2.9 KB · JSONRaw
{  "id": "effort",  "name": "Effort",  "plural": "Efforts",  "picture": {    "photo": "photo:3f689d32d5fcacc37fe5aa246e094632095a9baa011938787d1bec2c81a99282"  },  "builtin": false,  "engine": null,  "title": "name",  "date": "started_at",  "project": null,  "order": null,  "columns": [    {      "key": "name",      "name": "Effort",      "type": "text",      "required": true,      "placeholder": "What is being built"    },    {      "key": "outcome",      "name": "What you will see",      "type": "longtext",      "placeholder": "What the owner sees on the phone when it is done"    },    {      "key": "percent",      "name": "Done, %",      "type": "number"    },    {      "key": "state",      "name": "State",      "type": "choice",      "choices": [        "running",        "queued",        "done"      ],      "format": "words"    },    {      "key": "next_step",      "name": "Next step",      "type": "text"    },    {      "key": "started_at",      "name": "Started",      "type": "date",      "format": "ago"    },    {      "key": "done_at",      "name": "Done",      "type": "date",      "format": "ago"    },    {      "key": "lanes_used",      "name": "Lanes used",      "type": "number"    },    {      "key": "notes",      "name": "Notes",      "type": "longtext"    }  ],  "slip": {    "title": "name",    "subtitle": [      "percent",      "next_step"    ],    "trailing": "started_at",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list",    "summary": [      {        "op": "count",        "where": {          "state": "running"        },        "label": "running"      },      {        "op": "count",        "where": {          "state": "queued"        },        "label": "queued"      }    ]  },  "sort": {    "column": "percent"  },  "group": {    "column": "state",    "sections": [      {        "heading": "Running",        "values": [          "running"        ]      },      {        "heading": "Queued",        "values": [          "queued"        ]      },      {        "heading": "Done",        "values": [          "done"        ],        "closed": true      }    ]  },  "empty": {    "title": "Nothing underway",    "message": "Efforts are written by the coordinator as work starts."  },  "create": {    "label": "Add an effort"  },  "page": [    {      "heading": null,      "columns": [        "name",        "outcome",        "percent",        "state"      ]    },    {      "heading": "Progress",      "columns": [        "next_step",        "started_at",        "done_at",        "lanes_used"      ]    },    {      "heading": "Notes",      "columns": [        "notes"      ]    }  ],  "instructions": "One row per programme. percent is the coordinator's estimate of what is landed and usable on main; state moves running \u2192 done when the owner can use it on his phone."}