From be2eee469ead849b5363e7fe3b1f2c9dc56a420b Mon Sep 17 00:00:00 2001
From: Nessar
Date: Fri, 27 Nov 2026 12:15:20 +0100
Subject: [PATCH] Address review: ring structural test, doc fixes, kit
icon_assets! macro (#141)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Hovering the icon leaves the cached ring unrendered (asserted in the grid
test). performance.md opens « Statistiques » by the chart icon, and
interface.md no longer claims the icon leaves the text untouched in a
narrow window. The chart icon comes from gpui_kit::assets::icon_assets!, so
the vendored SVG and Lucide license are removed.
Co-Authored-By: Claude Opus 5.5
---
crates/app/assets/Lucide-LICENSE.txt | 15 ---------------
crates/app/assets/chart-line.svg | 14 --------------
crates/app/src/assets.rs | 19 +++++++++----------
crates/app/src/page/tests/grid.rs | 5 ++++-
docs/interface.md | 2 +-
docs/performance.md | 2 +-
6 files changed, 15 insertions(+), 42 deletions(-)
delete mode 100644 crates/app/assets/Lucide-LICENSE.txt
delete mode 100644 crates/app/assets/chart-line.svg
diff --git a/crates/app/assets/Lucide-LICENSE.txt b/crates/app/assets/Lucide-LICENSE.txt
deleted file mode 100644
index b70071e..0000000
--- a/crates/app/assets/Lucide-LICENSE.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-ISC License
-
-Copyright (c) 2026 Lucide Icons and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/crates/app/assets/chart-line.svg b/crates/app/assets/chart-line.svg
deleted file mode 100644
index e5fc87c..0000000
--- a/crates/app/assets/chart-line.svg
+++ /dev/null
@@ -1,14 +0,0 @@
-
diff --git a/crates/app/src/assets.rs b/crates/app/src/assets.rs
index 656d229..f398fe9 100644
--- a/crates/app/src/assets.rs
+++ b/crates/app/src/assets.rs
@@ -1,30 +1,27 @@
//! The app's asset source: the kit's default bundle, plus the one Lucide icon it does not
-//! embed (`chart-line`, ISC, see `assets/Lucide-LICENSE.txt`). `AllAssets` would embed the whole
-//! catalog for this one icon.
+//! embed (`chart-line`). `AllAssets` would embed the whole catalog for this one icon.
use std::borrow::Cow;
use gpui_kit::{AssetSource, Result, SharedString};
-const CHART_LINE: &str = "icons/chart-line.svg";
+gpui_kit::assets::icon_assets!(ExtraIcons, [ChartLine]);
pub struct Assets;
impl AssetSource for Assets {
fn load(&self, path: &str) -> Result