From d52291bac1659510f887fc033ad07a01bb1d2ff6 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Wed, 26 Mar 2025 08:20:09 -0300
Subject: [PATCH] assistant2: Add new icons for create and delete file tool
(#27487)
Release Notes:
- N/A
---
assets/icons/file_create.svg | 5 +++++
assets/icons/file_delete.svg | 5 +++++
crates/assistant_tools/src/create_file_tool.rs | 2 +-
crates/assistant_tools/src/delete_path_tool.rs | 2 +-
crates/icons/src/icons.rs | 2 ++
5 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 assets/icons/file_create.svg
create mode 100644 assets/icons/file_delete.svg
diff --git a/assets/icons/file_create.svg b/assets/icons/file_create.svg
new file mode 100644
index 0000000000..bd7f88a7ec
--- /dev/null
+++ b/assets/icons/file_create.svg
@@ -0,0 +1,5 @@
+
diff --git a/assets/icons/file_delete.svg b/assets/icons/file_delete.svg
new file mode 100644
index 0000000000..b84f79958f
--- /dev/null
+++ b/assets/icons/file_delete.svg
@@ -0,0 +1,5 @@
+
diff --git a/crates/assistant_tools/src/create_file_tool.rs b/crates/assistant_tools/src/create_file_tool.rs
index dc1b5c0f03..ccbb74803b 100644
--- a/crates/assistant_tools/src/create_file_tool.rs
+++ b/crates/assistant_tools/src/create_file_tool.rs
@@ -46,7 +46,7 @@ impl Tool for CreateFileTool {
}
fn icon(&self) -> IconName {
- IconName::File
+ IconName::FileCreate
}
fn input_schema(&self) -> serde_json::Value {
diff --git a/crates/assistant_tools/src/delete_path_tool.rs b/crates/assistant_tools/src/delete_path_tool.rs
index 3bd55e6c3a..460b070b46 100644
--- a/crates/assistant_tools/src/delete_path_tool.rs
+++ b/crates/assistant_tools/src/delete_path_tool.rs
@@ -40,7 +40,7 @@ impl Tool for DeletePathTool {
}
fn icon(&self) -> IconName {
- IconName::Trash
+ IconName::FileDelete
}
fn input_schema(&self) -> serde_json::Value {
diff --git a/crates/icons/src/icons.rs b/crates/icons/src/icons.rs
index d014c1e2ae..7366ce2e6c 100644
--- a/crates/icons/src/icons.rs
+++ b/crates/icons/src/icons.rs
@@ -100,6 +100,8 @@ pub enum IconName {
Eye,
File,
FileCode,
+ FileCreate,
+ FileDelete,
FileDoc,
FileDiff,
FileGeneric,