diff --git a/apps/web/app/(dashboard)/dlq/page.tsx b/apps/web/app/(dashboard)/dlq/page.tsx index e72b40c..e5f8500 100644 --- a/apps/web/app/(dashboard)/dlq/page.tsx +++ b/apps/web/app/(dashboard)/dlq/page.tsx @@ -26,6 +26,16 @@ import { DialogHeader, DialogTitle, } from '@/components/ui/dialog'; +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, +} from '@/components/ui/alert-dialog'; import { Table, TableBody, @@ -501,29 +511,27 @@ export default function DlqPage() { {/* Purge Dialog */} - - - - Purge DLQ Stream - + + + + Purge DLQ Stream + Are you sure you want to purge all messages from{' '} {selectedStreamForPurge?.streamName}? This action cannot be undone. - - - - - - - - + + + + ); } diff --git a/apps/web/app/(dashboard)/streams/[clusterId]/[name]/page.tsx b/apps/web/app/(dashboard)/streams/[clusterId]/[name]/page.tsx index f9b6a57..2b9f1e8 100644 --- a/apps/web/app/(dashboard)/streams/[clusterId]/[name]/page.tsx +++ b/apps/web/app/(dashboard)/streams/[clusterId]/[name]/page.tsx @@ -12,6 +12,7 @@ import { MessageSquare, RefreshCw, Trash2, + Eraser, Edit, Play, AlertTriangle, @@ -101,6 +102,7 @@ function StreamDetailContent() { const [messageSubject, setMessageSubject] = useState(''); const [messageData, setMessageData] = useState(''); const [showDeleteDialog, setShowDeleteDialog] = useState(false); + const [showPurgeDialog, setShowPurgeDialog] = useState(false); const [showEditDialog, setShowEditDialog] = useState(false); const [copiedMessageId, setCopiedMessageId] = useState(null); const [expandedMessages, setExpandedMessages] = useState>(new Set()); @@ -439,10 +441,10 @@ function StreamDetailContent() {