From c427e4aa51be916b9dc2ab583f45d1596fdb713a Mon Sep 17 00:00:00 2001 From: Yashwin Date: Mon, 4 May 2026 16:04:43 +0530 Subject: [PATCH] refactor: replace TestTube with ClipboardCheck icon and apply consistent code formatting in PromptManagement page --- src/pages/tenant/PromptManagement.tsx | 38 ++++++++++++++++++++------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/src/pages/tenant/PromptManagement.tsx b/src/pages/tenant/PromptManagement.tsx index b2553cf..5873be9 100644 --- a/src/pages/tenant/PromptManagement.tsx +++ b/src/pages/tenant/PromptManagement.tsx @@ -1,6 +1,14 @@ import { useEffect, useMemo, useState, type ReactElement } from "react"; import { useNavigate } from "react-router-dom"; -import { Plus, Search, Copy, History, Trash2, Edit3, TestTube } from "lucide-react"; +import { + Plus, + Search, + Copy, + History, + Trash2, + Edit3, + ClipboardCheck, +} from "lucide-react"; import { Layout } from "@/components/layout/Layout"; import { DataTable, @@ -121,7 +129,10 @@ const PromptManagement = (): ReactElement => { label: "Name & Description", render: (row) => (
-

navigate(`/tenant/ai/prompts/${row.id}/edit`)}> +

navigate(`/tenant/ai/prompts/${row.id}/edit`)} + > {row.name}

@@ -158,14 +169,18 @@ const PromptManagement = (): ReactElement => {

- + {row.status || "draft"}
@@ -201,7 +216,9 @@ const PromptManagement = (): ReactElement => { ))} {tags.length > 2 && ( - +{tags.length - 2} + + +{tags.length - 2} + )} ); @@ -225,9 +242,10 @@ const PromptManagement = (): ReactElement => { , + icon: , label: "Prompt Test Cases", - onClick: () => navigate(`/tenant/ai/prompts/${row.id}/test-cases`), + onClick: () => + navigate(`/tenant/ai/prompts/${row.id}/test-cases`), }, { icon: ,