From 55cb7c0ae6072d3a27bbce216c4d8b9765ec95b4 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:13:32 +0000 Subject: [PATCH] Add delete button to history items Adds a Trash2 icon button to each conversation in the test prompt history to delete conversations via handleDeleteConversation, updating TestPrompt.tsx accordingly. --- src/pages/TestPrompt.tsx | 51 ++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/src/pages/TestPrompt.tsx b/src/pages/TestPrompt.tsx index e368c35..6d8d68f 100644 --- a/src/pages/TestPrompt.tsx +++ b/src/pages/TestPrompt.tsx @@ -4,7 +4,7 @@ import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { ScrollArea } from "@/components/ui/scroll-area"; -import { Send, Bot, User, RotateCcw, MessageSquare, Plus } from "lucide-react"; +import { Send, Bot, User, RotateCcw, MessageSquare, Plus, Trash2 } from "lucide-react"; import { useToast } from "@/hooks/use-toast"; import { Select, @@ -188,32 +188,47 @@ export default function TestPrompt() { ) : ( conversations.map((conversation) => ( - + + + )) )}