mirror of
https://github.com/Nikhil-Doye/workflow-builder.git
synced 2026-07-22 02:01:56 +02:00
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.
This commit is contained in:
@@ -40,10 +40,7 @@ export const NodeLibrary: React.FC = () => {
|
||||
"similaritySearch",
|
||||
"structuredOutput",
|
||||
"dataOutput",
|
||||
"databaseQuery",
|
||||
"databaseInsert",
|
||||
"databaseUpdate",
|
||||
"databaseDelete",
|
||||
"database",
|
||||
];
|
||||
|
||||
const nodeTypeColors: Record<NodeType, string> = {
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user