Cotton code
174 lines · 3.0 KB · JSONRaw
{  "id": "lane",  "name": "Lane",  "plural": "Lanes",  "picture": {    "photo": "photo:ad9782109efc1cc0c7423b6669cae1bc1f461591c991f5c8d20f13041358f9c2"  },  "builtin": false,  "engine": null,  "producer": {"token_id": "synthetic-work-fold-token"},  "title": "name",  "date": "started_at",  "project": null,  "order": null,  "columns": [    {      "key": "name",      "name": "Lane",      "type": "text",      "required": true    },    {      "key": "effort",      "name": "Effort",      "type": "link",      "link_to": "effort"    },    {      "key": "machine",      "name": "Machine",      "type": "text"    },    {      "key": "model",      "name": "Model",      "type": "text"    },    {      "key": "state",      "name": "State",      "type": "choice",      "choices": [        "running",        "queued",        "silent",        "done",        "closed"      ],      "format": "words"    },    {      "key": "status_line",      "name": "Last status",      "type": "longtext",      "readonly": true    },    {      "key": "started_at",      "name": "Started",      "type": "date",      "format": "ago"    },    {      "key": "ended_at",      "name": "Ended",      "type": "date",      "format": "ago"    },    {      "key": "landed",      "name": "Commits landed",      "type": "number",      "readonly": true    },    {      "key": "brief",      "name": "Brief",      "type": "longtext"    },    {      "key": "last_heard_at",      "name": "Last heard",      "type": "date",      "format": "ago",      "readonly": true    }  ],  "slip": {    "title": "name",    "subtitle": [      "machine",      "model"    ],    "trailing": "started_at",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list",    "summary": [      {        "op": "count",        "where": {          "state": "running"        },        "label": "running"      }    ]  },  "sort": {    "column": "started_at"  },  "group": {    "column": "state",    "sections": [      {        "heading": "Running",        "values": [          "running"        ]      },      {        "heading": "Queued",        "values": [          "queued"        ]      },      {        "heading": "Done today",        "values": [          "done",          "closed"        ],        "closed": true      }    ]  },  "empty": {    "title": "No lanes",    "message": "A lane row is written when the coordinator launches one."  },  "create": {    "label": "Add a lane"  },  "page": [    {      "heading": null,      "columns": [        "name",        "effort",        "machine",        "model",        "state"      ]    },    {      "heading": "Progress",      "columns": [        "status_line",        "last_heard_at",        "started_at",        "ended_at",        "landed"      ]    },    {      "heading": "Brief",      "columns": [        "brief"      ]    }  ],  "instructions": "One row per agent session (lane) that builds Cotton, written at launch, on STATUS and at DONE."}