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 0000000000000000000000000000000000000000..bd7f88a7ec5b87c5ed6859fd0e4423451f5c1db4
--- /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 0000000000000000000000000000000000000000..b84f79958f39dd205742e945c44859a6f1000881
--- /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 dc1b5c0f0395dd9cb7f57062bc3335512c5d26b8..ccbb74803bbd39b6cc68bb892c1b3532078a124c 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 3bd55e6c3a5af9d49e93ef281b1f6ad485f89c7c..460b070b46a7b0b183f1b2e27be350052c072dd2 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 d014c1e2aeab161621fe9b118f19726db7dbd808..7366ce2e6c1314578dae47e9c6cdbbce191d50b3 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,