JSON Spec
{
"id": "crm:customer:delete",
"kind": "atomic",
"name": "Delete Customer",
"states": {
"error_handle": {
"if": "@modal(title='Delete Failed') || @toast(type='error')",
"then": "report_delete_failure"
},
"pre_condition": "current_page ~= '/customers/*' && record_loaded == true",
"success_criteria": {
"type": "url_change",
"match": "/customers"
}
},
"anchors": {
"trigger": "@button(text='Delete')",
"confirm_modal": "@modal(title='Confirm Delete')",
"confirm_button": "@button(text='Delete', variant='danger')"
},
"uiskill": "0.1.0",
"category": "Destructive Action",
"parameters": {
"type": "object",
"properties": {
"confirm": {
"type": "boolean",
"default": true,
"description": "Whether to confirm the deletion step."
}
}
},
"description": "Delete a customer record from the detail page."
}