From c849e7e4d84cf28b54c416af2747b6af4cf2bef8 Mon Sep 17 00:00:00 2001 From: Nikhil-Doye Date: Thu, 23 Oct 2025 14:48:54 -0400 Subject: [PATCH] Consolidate database operation types in NodeLibrary component - Unified individual database operation types (query, insert, update, delete) into a single "database" entry for improved clarity and maintainability. - Updated associated color mappings to reflect this consolidation, enhancing the overall structure of the NodeLibrary component. --- src/components/NodeLibrary.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/NodeLibrary.tsx b/src/components/NodeLibrary.tsx index 7adcc23..82d839d 100644 --- a/src/components/NodeLibrary.tsx +++ b/src/components/NodeLibrary.tsx @@ -40,10 +40,7 @@ export const NodeLibrary: React.FC = () => { "similaritySearch", "structuredOutput", "dataOutput", - "databaseQuery", - "databaseInsert", - "databaseUpdate", - "databaseDelete", + "database", ]; const nodeTypeColors: Record = { @@ -54,10 +51,7 @@ export const NodeLibrary: React.FC = () => { similaritySearch: "orange", structuredOutput: "indigo", dataOutput: "gray", - databaseQuery: "cyan", - databaseInsert: "cyan", - databaseUpdate: "cyan", - databaseDelete: "cyan", + database: "cyan", }; const nodeTypesByCategory = getNodeTypesByCategory();