From 394e8cdde35c5fe2005b8d3911c1ad50ad0b5a3f Mon Sep 17 00:00:00 2001 From: Scrum4Me Agent <30029041+madhura68@users.noreply.github.com> Date: Wed, 13 May 2026 18:00:15 +0200 Subject: [PATCH] feat(ui): add ConfirmDialog and StreamingTerminal components --- components/ConfirmDialog.tsx | 62 ++++++++++++++++++++++ components/StreamingTerminal.tsx | 89 ++++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 components/ConfirmDialog.tsx create mode 100644 components/StreamingTerminal.tsx diff --git a/components/ConfirmDialog.tsx b/components/ConfirmDialog.tsx new file mode 100644 index 0000000..563e6e7 --- /dev/null +++ b/components/ConfirmDialog.tsx @@ -0,0 +1,62 @@ +'use client' + +type Props = { + open: boolean + title?: string + commandPreview: string + onConfirm: () => void + onCancel: () => void + loading?: boolean +} + +export default function ConfirmDialog({ + open, + title = 'Confirm action', + commandPreview, + onConfirm, + onCancel, + loading = false, +}: Props) { + if (!open) return null + + return ( +
+ The following command will be executed on the server: +
+ +
+ {commandPreview}
+
+
+ + This action cannot be undone. Review the command above before confirming. +
+ +
+ {line.text}
+
+ ))}
+
+