{
"id": "toggle-task",
"size": "small",
"action": "toggle_task:call_dentist",
"clickText": "Call dentist",
"assertBeforeTexts": ["Call dentist", "Buy groceries", "1 / 3"],
"assertAfterTexts": ["Call dentist", "Buy groceries", "2 / 3"],
"assertGoneAfter": ["1 / 3"],
"before": {
"version": 1,
"small": {
"type": "vstack",
"padding": 12,
"spacing": 6,
"cornerRadius": 12,
"background": "#1C1C1E",
"children": [
{ "type": "text", "content": "Today's Tasks", "fontSize": 17, "fontWeight": "semibold", "color": "#fff" },
{ "type": "divider", "color": "#3A3A3C" },
{
"type": "list",
"spacing": 4,
"color": "#e2e8f0",
"fontSize": 13,
"items": [
{ "text": "Buy groceries", "checked": true, "action": "toggle_task:buy_groceries" },
{ "text": "Call dentist", "checked": false, "action": "toggle_task:call_dentist" },
{ "text": "Send report", "checked": true, "action": "toggle_task:send_report" }
]
},
{ "type": "spacer" },
{
"type": "hstack",
"spacing": 8,
"children": [
{ "type": "text", "content": "1 / 3", "fontSize": 14, "fontWeight": "bold", "color": "#4CAF50" },
{ "type": "progress", "value": 0.333, "tint": "#4CAF50" }
]
}
]
}
},
"after": {
"version": 1,
"small": {
"type": "vstack",
"padding": 12,
"spacing": 6,
"cornerRadius": 12,
"background": "#1C1C1E",
"children": [
{ "type": "text", "content": "Today's Tasks", "fontSize": 17, "fontWeight": "semibold", "color": "#fff" },
{ "type": "divider", "color": "#3A3A3C" },
{
"type": "list",
"spacing": 4,
"color": "#e2e8f0",
"fontSize": 13,
"items": [
{ "text": "Buy groceries", "checked": true, "action": "toggle_task:buy_groceries" },
{ "text": "Call dentist", "checked": true, "action": "toggle_task:call_dentist" },
{ "text": "Send report", "checked": true, "action": "toggle_task:send_report" }
]
},
{ "type": "spacer" },
{
"type": "hstack",
"spacing": 8,
"children": [
{ "type": "text", "content": "2 / 3", "fontSize": 14, "fontWeight": "bold", "color": "#4CAF50" },
{ "type": "progress", "value": 0.666, "tint": "#4CAF50" }
]
}
]
}
}
}