From 3d3a79e10950aa0bada35bb674c9d7b529965c33 Mon Sep 17 00:00:00 2001 From: olaservo Date: Tue, 7 Oct 2025 20:57:42 -0700 Subject: [PATCH] Add enum parameter support in ToolsTab component and corresponding tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- client/src/components/ToolsTab.tsx | 43 ++++++++++++++ .../components/__tests__/ToolsTab.test.tsx | 58 +++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/client/src/components/ToolsTab.tsx b/client/src/components/ToolsTab.tsx index 0123296af..0c7cb17a5 100644 --- a/client/src/components/ToolsTab.tsx +++ b/client/src/components/ToolsTab.tsx @@ -5,6 +5,13 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { TabsContent } from "@/components/ui/tabs"; import { Textarea } from "@/components/ui/textarea"; +import { + Select, + SelectContent, + SelectItem, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; import DynamicJsonForm, { DynamicJsonFormRef } from "./DynamicJsonForm"; import type { JsonValue, JsonSchemaType } from "@/utils/jsonUtils"; import { @@ -180,6 +187,42 @@ const ToolsTab = ({ {prop.description || "Toggle this option"} + ) : prop.type === "string" && prop.enum ? ( + ) : prop.type === "string" ? (