From 55b17543aecd403ea2765181eb6164c9c0736e45 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 30 Jun 2023 16:40:58 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(icons):=20add=20VertexAIIcon?= =?UTF-8?q?=20component=20and=20update=20nodeIconsLucide=20to=20include=20?= =?UTF-8?q?VertexAI=20and=20ChatVertexAI=20icons=20The=20VertexAIIcon=20co?= =?UTF-8?q?mponent=20is=20added=20to=20the=20icons=20directory,=20allowing?= =?UTF-8?q?=20the=20usage=20of=20the=20Vertex=20AI=20icon=20in=20the=20app?= =?UTF-8?q?lication.=20The=20nodeIconsLucide=20object=20in=20the=20utils.t?= =?UTF-8?q?s=20file=20is=20updated=20to=20include=20the=20VertexAI=20and?= =?UTF-8?q?=20ChatVertexAI=20icons,=20enabling=20their=20usage=20in=20the?= =?UTF-8?q?=20application.=20This=20addition=20enhances=20the=20visual=20r?= =?UTF-8?q?epresentation=20of=20the=20application=20by=20providing=20new?= =?UTF-8?q?=20icons=20related=20to=20Vertex=20AI=20functionality.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/icons/VertexAI/index.tsx | 9 +++++++++ src/frontend/src/icons/VertexAI/vertex_ai.svg | 1 + src/frontend/src/utils.ts | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 src/frontend/src/icons/VertexAI/index.tsx create mode 100644 src/frontend/src/icons/VertexAI/vertex_ai.svg diff --git a/src/frontend/src/icons/VertexAI/index.tsx b/src/frontend/src/icons/VertexAI/index.tsx new file mode 100644 index 000000000..a5115da7e --- /dev/null +++ b/src/frontend/src/icons/VertexAI/index.tsx @@ -0,0 +1,9 @@ +import React, { forwardRef } from "react"; +import { ReactComponent as VertexAISVG } from "./vertex_ai.svg"; + +export const VertexAIIcon = forwardRef< + SVGSVGElement, + React.PropsWithChildren<{}> +>((props, ref) => { + return ; +}); diff --git a/src/frontend/src/icons/VertexAI/vertex_ai.svg b/src/frontend/src/icons/VertexAI/vertex_ai.svg new file mode 100644 index 000000000..9da1d8d8b --- /dev/null +++ b/src/frontend/src/icons/VertexAI/vertex_ai.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index b50cad2bd..ff1d93d93 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -47,6 +47,7 @@ import { } from "lucide-react"; import { SupabaseIcon } from "./icons/supabase"; import { MongoDBIcon } from "./icons/MongoDB"; +import { VertexAIIcon } from "./icons/VertexAI"; export function classNames(...classes: Array) { return classes.filter(Boolean).join(" "); @@ -241,6 +242,12 @@ export const nodeIconsLucide: { SupabaseVectorStore: SupabaseIcon as React.ForwardRefExoticComponent< ComponentType> >, + VertexAI: VertexAIIcon as React.ForwardRefExoticComponent< + ComponentType> + >, + ChatVertexAI: VertexAIIcon as React.ForwardRefExoticComponent< + ComponentType> + >, agents: Rocket as React.ForwardRefExoticComponent< ComponentType> >,