Cotton code
305 lines · 5.5 KB · JSONRaw
{  "format_version": 1,  "id": "project_item",  "setup": true,  "name": "Project item",  "plural": "Project items",  "picture": null,  "builtin": true,  "engine": "projects",  "columns": [    {      "key": "project",      "name": "Project",      "type": "text",      "readonly": true    },    {      "key": "section",      "name": "Section",      "type": "choice",      "choices": [        "people",        "chats",        "email",        "documents",        "todos",        "thoughts",        "memory",        "notes",        "journal",        "meetings",        "events",        "reader",        "locations",        "money",        "goals",        "screenplays",        "code",        "decisions",        "feedback",        "photos",        "videos",        "albums",        "calls",        "passwords",        "procedures"      ],      "readonly": true    },    {      "key": "title",      "name": "Name",      "type": "text",      "readonly": true    },    {      "key": "line",      "name": "About it",      "type": "text",      "readonly": true    },    {      "key": "when",      "name": "Last written",      "type": "date",      "readonly": true    },    {      "key": "record_table",      "name": "Record table",      "type": "text",      "readonly": true    },    {      "key": "record_id",      "name": "Record identity",      "type": "text",      "readonly": true    },    {      "key": "project_name",      "name": "Project name",      "type": "text",      "readonly": true,      "fact": false    }  ],  "title": "title",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "title",    "subtitle": "line",    "trailing": "when",    "photo": null,    "toggle": null,    "opens": {      "column": "record_id",      "table_column": "record_table"    }  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "title",        "line",        "when"      ]    }  ],  "add": false,  "empty": {    "title": "Nothing to show here",    "message": "This part of the project holds nothing that opens. A note whose first line says when to read it is a procedure, and lands under Procedures."  },  "delete": false,  "instructions": "A project item is one record linked to a project, as the project's section lists it: a person, a chat, a note, a procedure and so on, with its name, the line that says what it is (a procedure's trigger, a note's opening) and when it was last written. It is read from the project, never written here; open the record itself to change it, and link or unlink records with the project tools.",  "tables": [],  "opens": {    "column": "record_id",    "table_column": "record_table"  },  "parts": {    "shape": "sheet",    "head": {      "facts": [        "line",        "when"      ]    },    "links": [],    "lists": [],    "acts": {      "more": []    },    "cards": [      {        "column": "line"      },      {        "column": "when"      }    ]  },  "group": {    "column": "section",    "sections": [      {        "heading": "Memory",        "values": [          "memory"        ]      },      {        "heading": "Todos",        "values": [          "todos"        ]      },      {        "heading": "Notes",        "values": [          "notes"        ]      },      {        "heading": "Documents",        "values": [          "documents"        ]      },      {        "heading": "People",        "values": [          "people"        ]      },      {        "heading": "Messages",        "values": [          "chats"        ]      },      {        "heading": "Email",        "values": [          "email"        ]      },      {        "heading": "Thoughts",        "values": [          "thoughts"        ]      },      {        "heading": "Journal",        "values": [          "journal"        ]      },      {        "heading": "Meetings",        "values": [          "meetings"        ]      },      {        "heading": "Calendar",        "values": [          "events"        ]      },      {        "heading": "Articles",        "values": [          "reader"        ]      },      {        "heading": "Locations",        "values": [          "locations"        ]      },      {        "heading": "Money",        "values": [          "money"        ]      },      {        "heading": "Goals",        "values": [          "goals"        ]      },      {        "heading": "Screenplays",        "values": [          "screenplays"        ]      },      {        "heading": "Code",        "values": [          "code"        ]      },      {        "heading": "Decisions",        "values": [          "decisions"        ]      },      {        "heading": "Feedback",        "values": [          "feedback"        ]      },      {        "heading": "Photos",        "values": [          "photos"        ]      },      {        "heading": "Videos",        "values": [          "videos"        ]      },      {        "heading": "Albums",        "values": [          "albums"        ]      },      {        "heading": "Calls",        "values": [          "calls"        ]      },      {        "heading": "Passwords",        "values": [          "passwords"        ]      },      {        "heading": "Procedures",        "values": [          "procedures"        ]      }    ]  }}