Cotton code
93 lines · 1.8 KB · JSONRaw
{  "views": [    {      "id": "all",      "label": "All",      "visibility": "owner",      "is_default": false,      "read": {        "table": "todo"      },      "lead": "late"    },    {      "id": "late",      "label": "Late",      "visibility": "owner",      "is_default": false,      "read": {        "table": "todo",        "section": "late",        "empty": {          "line": "empty_views.todos.late",          "table": true        }      }    },    {      "id": "today",      "label": "Today",      "visibility": "owner",      "is_default": true,      "read": {        "table": "todo",        "section": "today",        "empty": {          "line": "empty_views.todos.today",          "counts": {            "late": "empty_views.todo_late_count"          },          "table": true        }      }    },    {      "id": "upcoming",      "label": "Upcoming",      "visibility": "owner",      "is_default": false,      "read": {        "table": "todo",        "section": "upcoming",        "empty": {          "line": "empty_views.todos.upcoming",          "table": true        }      }    },    {      "id": "done",      "label": "Done",      "visibility": "owner",      "is_default": false,      "read": {        "table": "todo",        "section": "done",        "empty": {          "line": "empty_views.todos.done",          "table": true        }      }    }  ],  "id": "todos",  "name": "Todos",  "purpose": "What you need to do and when it is due.",  "picture": {    "photo": "photo:a86576668bb7f4915eae3b9dd6f2e3b9cbd20b9e55f85fc7c12586b759858b0e",    "object": "tool-todos"  },  "card_stock": "sage",  "tables": [    "todo",    "todo_recurrence",    "vault_key"  ],  "instructions": "",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}