Select a case on the left to see its current step and actions.
}
+ {activeKey && tx && (
+
+
+ {tx.active_step?.display_name || "Active step"}
+
+ {tx.business_subject &&
Subject · {tx.business_subject}
}
+ {(tx.active_step as any)?.dispatch_kind && (
+
Dispatch · {(tx.active_step as any).dispatch_kind}
+ )}
+ {(tx.active_step as any)?.form_fields && (tx.active_step as any).form_fields.length > 0 && (
+
+
Form fields
+
+ {(tx.active_step as any).form_fields.slice(0, 6).map((f: any) => (
+ {f.label || f.name} · {f.type}
+ ))}
+
+
+ )}
+
+ {(tx.available_actions || []).map((a: any) => (
+
handleAction(a.id)}
+ >
+ {busy === a.id ? "Sending…" : a.display_label || a.id}
+
+ ))}
+ {(!tx.available_actions || tx.available_actions.length === 0) && (
+
No actions available on this step.
+ )}
+
+
+ )}
+ {activeKey && !tx &&