{
    "tailapp": 2,
    "manifest": {
        "format": 2,
        "app_id": "habits",
        "name": "Habit",
        "version": 1,
        "schema": "tailapps/v0",
        "exported_at": 1795564595,
        "from": "gallery",
        "connections": [],
        "files": {
            "app.json": "33d23461099f5fc73ac6ec06702ab8e8b6f6277839742a50fc58a33f89cc4678"
        },
        "signature": "Zrx43m0CBqfWUHm+JHTAfHj5yHeKwXOqXWiaRknA8Toxewpk97c8/ZOd3aIpGj5PnN5zVUqFQNwQGc13JNK2Cw==",
        "key_id": "gallery-1"
    },
    "app": {
        "schema": "tailapps/v0",
        "app": "habits",
        "name": "Habit",
        "description": "One habit: tick it off each time, see the last 13 weeks, and how long it's been. To share one history between your Mac and iPhone, turn on \"Share ticks\" in its settings and Sync to My Devices on both.",
        "icon": "checkmark.seal",
        "version": 2,
        "permissions": [
            "inbox:done",
            "send:done"
        ],
        "settings": {
            "share": {
                "type": "toggle",
                "label": "Share ticks with my other devices",
                "default": false
            }
        },
        "sources": {
            "ticks": {
                "inbox": "done",
                "on_receive": "received"
            }
        },
        "state": {
            "done": {
                "type": "list",
                "default": []
            }
        },
        "cards": [
            {
                "id": "main",
                "layout": {
                    "column": [
                        {
                            "row": [
                                {
                                    "stat": "$done | count",
                                    "label": "Times done",
                                    "grow": true
                                },
                                {
                                    "column": [
                                        {
                                            "timer": "$done.0.date",
                                            "mode": "since",
                                            "format": "short",
                                            "size": "l"
                                        },
                                        {
                                            "text": "since last time",
                                            "size": "xs",
                                            "emphasis": "subtle"
                                        }
                                    ],
                                    "gap": "xs",
                                    "align": "end",
                                    "when": "$done.0"
                                }
                            ],
                            "align": "center"
                        },
                        {
                            "heatmap": "$done",
                            "days": 91,
                            "hue": "green",
                            "start": "monday"
                        },
                        {
                            "button": "Done",
                            "on": "mark",
                            "style": "primary",
                            "keys": "mod+return"
                        },
                        {
                            "section": "History",
                            "collapsible": true,
                            "collapsed": true,
                            "children": [
                                {
                                    "calendar": "$done",
                                    "views": [
                                        "month",
                                        "year"
                                    ],
                                    "marks": "fill"
                                },
                                {
                                    "list": "$done",
                                    "limit": 5,
                                    "style": "timeline",
                                    "empty": "Nothing yet",
                                    "item": {
                                        "text": "$item.date | date:'long'"
                                    }
                                }
                            ]
                        }
                    ],
                    "gap": "m"
                }
            }
        ],
        "actions": {
            "mark": {
                "steps": [
                    {
                        "push": {
                            "done": {
                                "date": "$now",
                                "value": 1
                            }
                        },
                        "max": 400
                    },
                    {
                        "if": "$settings.share",
                        "then": [
                            {
                                "send": {
                                    "done": {
                                        "date": "$now"
                                    }
                                }
                            }
                        ]
                    }
                ]
            },
            "received": {
                "steps": [
                    {
                        "if": "$args.event.date",
                        "then": [
                            {
                                "push": {
                                    "done": {
                                        "date": "$args.event.date",
                                        "value": 1
                                    }
                                },
                                "max": 400
                            }
                        ]
                    }
                ]
            }
        },
        "views": {
            "menubar": {
                "icon": "checkmark.seal",
                "label": "{$done | count} done",
                "card": "main"
            },
            "floating": {
                "card": "main",
                "width": "narrow"
            }
        }
    },
    "app_json": "{\n  \"schema\": \"tailapps/v0\",\n  \"app\": \"habits\",\n  \"name\": \"Habit\",\n  \"description\": \"One habit: tick it off each time, see the last 13 weeks, and how long it's been. To share one history between your Mac and iPhone, turn on \\\"Share ticks\\\" in its settings and Sync to My Devices on both.\",\n  \"icon\": \"checkmark.seal\",\n  \"version\": 2,\n  \"permissions\": [\n    \"inbox:done\",\n    \"send:done\"\n  ],\n  \"settings\": {\n    \"share\": {\n      \"type\": \"toggle\",\n      \"label\": \"Share ticks with my other devices\",\n      \"default\": false\n    }\n  },\n  \"sources\": {\n    \"ticks\": {\n      \"inbox\": \"done\",\n      \"on_receive\": \"received\"\n    }\n  },\n  \"state\": {\n    \"done\": {\n      \"type\": \"list\",\n      \"default\": []\n    }\n  },\n  \"cards\": [\n    {\n      \"id\": \"main\",\n      \"layout\": {\n        \"column\": [\n          {\n            \"row\": [\n              {\n                \"stat\": \"$done | count\",\n                \"label\": \"Times done\",\n                \"grow\": true\n              },\n              {\n                \"column\": [\n                  {\n                    \"timer\": \"$done.0.date\",\n                    \"mode\": \"since\",\n                    \"format\": \"short\",\n                    \"size\": \"l\"\n                  },\n                  {\n                    \"text\": \"since last time\",\n                    \"size\": \"xs\",\n                    \"emphasis\": \"subtle\"\n                  }\n                ],\n                \"gap\": \"xs\",\n                \"align\": \"end\",\n                \"when\": \"$done.0\"\n              }\n            ],\n            \"align\": \"center\"\n          },\n          {\n            \"heatmap\": \"$done\",\n            \"days\": 91,\n            \"hue\": \"green\",\n            \"start\": \"monday\"\n          },\n          {\n            \"button\": \"Done\",\n            \"on\": \"mark\",\n            \"style\": \"primary\",\n            \"keys\": \"mod+return\"\n          },\n          {\n            \"section\": \"History\",\n            \"collapsible\": true,\n            \"collapsed\": true,\n            \"children\": [\n              {\n                \"calendar\": \"$done\",\n                \"views\": [\"month\", \"year\"],\n                \"marks\": \"fill\"\n              },\n              {\n                \"list\": \"$done\",\n                \"limit\": 5,\n                \"style\": \"timeline\",\n                \"empty\": \"Nothing yet\",\n                \"item\": {\n                  \"text\": \"$item.date | date:'long'\"\n                }\n              }\n            ]\n          }\n        ],\n        \"gap\": \"m\"\n      }\n    }\n  ],\n  \"actions\": {\n    \"mark\": {\n      \"steps\": [\n        {\n          \"push\": {\n            \"done\": {\n              \"date\": \"$now\",\n              \"value\": 1\n            }\n          },\n          \"max\": 400\n        },\n        {\n          \"if\": \"$settings.share\",\n          \"then\": [\n            {\n              \"send\": {\n                \"done\": {\n                  \"date\": \"$now\"\n                }\n              }\n            }\n          ]\n        }\n      ]\n    },\n    \"received\": {\n      \"steps\": [\n        {\n          \"if\": \"$args.event.date\",\n          \"then\": [\n            {\n              \"push\": {\n                \"done\": {\n                  \"date\": \"$args.event.date\",\n                  \"value\": 1\n                }\n              },\n              \"max\": 400\n            }\n          ]\n        }\n      ]\n    }\n  },\n  \"views\": {\n    \"menubar\": {\n      \"icon\": \"checkmark.seal\",\n      \"label\": \"{$done | count} done\",\n      \"card\": \"main\"\n    },\n    \"floating\": {\n      \"card\": \"main\",\n      \"width\": \"narrow\"\n    }\n  }\n}\n",
    "files": []
}