{
"interactive": true,
"spec": {
"root": "panel",
"elements": {
"panel": {
"type": "card",
"props": { "title": "Resolve ticket #1042", "subtitle": null },
"children": ["details", "divider", "form"]
},
"details": {
"type": "key_value",
"props": {
"items": [
{ "key": "Customer", "value": "Jane Smith" },
{ "key": "Issue", "value": "Unable to export CSV" },
{ "key": "Priority", "value": "High" }
]
},
"children": []
},
"divider": { "type": "divider", "props": {}, "children": [] },
"form": {
"type": "form",
"props": { "title": "Resolution", "description": null },
"children": ["actionSelect", "notesInput", "submitBtn"]
},
"actionSelect": {
"type": "input",
"props": {
"kind": "select",
"name": "action",
"label": "Action",
"placeholder": null,
"required": true,
"value": { "$bindState": "/action" },
"options": [
{ "value": "fix_sent", "label": "Fix sent — mark resolved" },
{ "value": "workaround","label": "Shared workaround — awaiting feedback" },
{ "value": "escalate", "label": "Escalate to engineering" }
],
"min": null, "max": null
},
"children": []
},
"notesInput": {
"type": "input",
"props": {
"kind": "textarea",
"name": "notes",
"label": "Notes",
"placeholder": "Optional internal notes...",
"required": false,
"value": { "$bindState": "/notes" },
"options": null, "min": null, "max": null
},
"children": []
},
"submitBtn": {
"type": "button",
"props": { "label": "Submit", "variant": "primary", "disabled": null },
"on": { "press": { "action": "submit" } },
"children": []
}
},
"state": { "action": "", "notes": "" }
}
}