SPB Git

Repository Public License

habits.blueprint.json 4.4 KB 214 lines json

1{2  "entrypoint": "log",3  "id": "app_habit_log",4  "name": "Habit Log",5  "objects": [6    {7      "children": [8        "root"9      ],10      "id": "log",11      "name": "Habit Log",12      "props": {13        "icon": "checkmark.circle"14      },15      "provenance": {16        "source": "agent"17      },18      "schemaVersion": 1,19      "type": "prism.page",20      "version": 121    },22    {23      "id": "entries",24      "name": "Entries",25      "props": {26        "columns": [27          {28            "label": "Date",29            "name": "date",30            "required": true,31            "type": "date"32          },33          {34            "label": "Habit",35            "name": "habit",36            "required": true,37            "type": "text"38          },39          {40            "default": false,41            "label": "Done",42            "name": "done",43            "type": "boolean"44          }45        ],46        "seed": [47          {48            "date": "2026-10-30",49            "done": true,50            "habit": "Read 20 pages"51          },52          {53            "date": "2026-10-31",54            "done": true,55            "habit": "Morning run"56          },57          {58            "date": "2026-11-01",59            "done": true,60            "habit": "Morning run"61          },62          {63            "date": "2026-11-01",64            "done": false,65            "habit": "Read 20 pages"66          },67          {68            "date": "2026-11-02",69            "done": false,70            "habit": "Morning run"71          },72          {73            "date": "2026-11-02",74            "done": true,75            "habit": "Read 20 pages"76          },77          {78            "date": "2026-11-03",79            "done": true,80            "habit": "Meditate"81          },82          {83            "date": "2026-11-03",84            "done": true,85            "habit": "Morning run"86          }87        ]88      },89      "provenance": {90        "source": "agent"91      },92      "schemaVersion": 1,93      "type": "prism.data.table",94      "version": 195    },96    {97      "children": [98        "heading",99        "stat_done_month",100        "entries_crud"101      ],102      "id": "root",103      "props": {104        "align": "stretch",105        "grow": true,106        "padding": 16107      },108      "provenance": {109        "source": "agent"110      },111      "schemaVersion": 1,112      "type": "prism.stack",113      "version": 1114    },115    {116      "dependencies": [117        "entries"118      ],119      "id": "done_this_month",120      "name": "Done this month",121      "props": {122        "query": {123          "aggregates": [124            {125              "as": "done_count",126              "column": "id",127              "fn": "count"128            }129          ],130          "filters": [131            {132              "column": "done",133              "op": "eq",134              "value": true135            },136            {137              "column": "date",138              "op": "startsWith",139              "value": {140                "$expr": "month(today())"141              }142            }143          ],144          "table": "entries"145        }146      },147      "provenance": {148        "generated": true,149        "source": "agent"150      },151      "schemaVersion": 1,152      "type": "prism.data.query",153      "version": 1154    },155    {156      "id": "heading",157      "props": {158        "text": "Habit Log"159      },160      "provenance": {161        "source": "agent"162      },163      "schemaVersion": 1,164      "type": "prism.heading",165      "version": 1166    },167    {168      "id": "stat_done_month",169      "props": {170        "format": "number",171        "icon": "checkmark.circle.fill",172        "label": "Done this month",173        "tone": "success",174        "value": {175          "$expr": "coalesce(sum(queries.done_this_month, 'done_count'), 0)"176        }177      },178      "provenance": {179        "source": "agent"180      },181      "schemaVersion": 1,182      "type": "prism.aggregation",183      "version": 1184    },185    {186      "dependencies": [187        "entries"188      ],189      "id": "entries_crud",190      "props": {191        "columns": [192          "date",193          "habit",194          "done"195        ],196        "grow": true,197        "table": "entries",198        "title": "Entries"199      },200      "provenance": {201        "source": "agent"202      },203      "schemaVersion": 1,204      "type": "prism.crud",205      "version": 1206    }207  ],208  "permissions": [209    "storage.local"210  ],211  "schemaVersion": 1,212  "summary": "Log habits per day as done or not, and see how many were done this month.",213  "version": 1214}
Files main
Menu

Theme