SPB Git

Repository Public License

workouts.blueprint.json 3.9 KB 187 lines json

1{2  "entrypoint": "workouts_page",3  "id": "app_workout_log",4  "name": "Workout Log",5  "objects": [6    {7      "id": "workouts",8      "name": "Workouts",9      "props": {10        "columns": [11          {12            "label": "Date",13            "name": "date",14            "required": true,15            "type": "date"16          },17          {18            "label": "Exercise",19            "name": "exercise",20            "required": true,21            "type": "text"22          },23          {24            "label": "Minutes",25            "name": "minutes",26            "required": true,27            "type": "integer"28          }29        ],30        "seed": [31          {32            "date": "2025-01-06",33            "exercise": "Running",34            "minutes": 3035          },36          {37            "date": "2025-01-09",38            "exercise": "Cycling",39            "minutes": 4540          },41          {42            "date": "2025-01-14",43            "exercise": "Yoga",44            "minutes": 6045          },46          {47            "date": "2025-02-03",48            "exercise": "Running",49            "minutes": 3550          },51          {52            "date": "2025-02-11",53            "exercise": "Strength training",54            "minutes": 5055          },56          {57            "date": "2025-02-20",58            "exercise": "Swimming",59            "minutes": 4060          },61          {62            "date": "2025-03-02",63            "exercise": "Running",64            "minutes": 4065          },66          {67            "date": "2025-03-10",68            "exercise": "Cycling",69            "minutes": 6070          },71          {72            "date": "2025-03-18",73            "exercise": "Yoga",74            "minutes": 4575          }76        ]77      },78      "provenance": {79        "source": "agent"80      },81      "schemaVersion": 1,82      "type": "prism.data.table",83      "version": 184    },85    {86      "children": [87        "root"88      ],89      "id": "workouts_page",90      "name": "Workouts",91      "props": {92        "icon": "figure.run"93      },94      "provenance": {95        "source": "agent"96      },97      "schemaVersion": 1,98      "type": "prism.page",99      "version": 1100    },101    {102      "children": [103        "minutes_chart",104        "workouts_crud"105      ],106      "id": "root",107      "props": {108        "align": "stretch",109        "grow": true,110        "padding": 16111      },112      "provenance": {113        "source": "agent"114      },115      "schemaVersion": 1,116      "type": "prism.stack",117      "version": 1118    },119    {120      "dependencies": [121        "workouts"122      ],123      "id": "minutes_chart",124      "props": {125        "height": 240,126        "query": {127          "aggregates": [128            {129              "as": "total_minutes",130              "column": "minutes",131              "fn": "sum"132            }133          ],134          "groupBy": {135            "as": "month",136            "bucket": "month",137            "column": "date"138          },139          "sort": [140            {141              "column": "month"142            }143          ],144          "table": "workouts"145        },146        "title": "Total minutes per month",147        "tone": "accent",148        "x": "month",149        "y": "total_minutes"150      },151      "provenance": {152        "source": "agent"153      },154      "schemaVersion": 1,155      "type": "prism.chart.bar",156      "version": 1157    },158    {159      "dependencies": [160        "workouts"161      ],162      "id": "workouts_crud",163      "props": {164        "columns": [165          "date",166          "exercise",167          "minutes"168        ],169        "grow": true,170        "table": "workouts",171        "title": "Workouts"172      },173      "provenance": {174        "source": "agent"175      },176      "schemaVersion": 1,177      "type": "prism.crud",178      "version": 1179    }180  ],181  "permissions": [182    "storage.local"183  ],184  "schemaVersion": 1,185  "summary": "Log workouts (date, exercise, minutes) and see total minutes per month in a chart.",186  "version": 1187}
Files main
Menu

Theme