From 98e8d0316e2a2d3d343ab56f4e427c9889e54674 Mon Sep 17 00:00:00 2001 From: Zero Liu Date: Thu, 14 May 2026 01:19:41 -0700 Subject: [PATCH] chore(icons): drop deprecated lucide Youtube icon; reuse Globe for URLs (#2449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `Youtube` brand icon from lucide-react is deprecated and slated for removal. The YouTube section header and per-row icon already sit next to the "YouTube" label or full URL, so the brand mark is redundant — collapse both web and youtube items to the existing `Globe` icon. Co-authored-by: Claude Opus 4.7 (1M context) --- src/components/project/processing-status.tsx | 4 +--- src/components/ui/url-tag-input.tsx | 10 +++------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/project/processing-status.tsx b/src/components/project/processing-status.tsx index bee05cee..647af7b2 100644 --- a/src/components/project/processing-status.tsx +++ b/src/components/project/processing-status.tsx @@ -28,7 +28,6 @@ import { Loader2, RefreshCw, X, - Youtube, } from "lucide-react"; import React, { useCallback, useRef, useState } from "react"; @@ -83,9 +82,8 @@ function FileTypeIcon({ fileType }: { fileType: ProcessingItem["fileType"] }) { case "image": return ; case "web": - return ; case "youtube": - return ; + return ; case "audio": return ; default: diff --git a/src/components/ui/url-tag-input.tsx b/src/components/ui/url-tag-input.tsx index b6d32286..34af20ab 100644 --- a/src/components/ui/url-tag-input.tsx +++ b/src/components/ui/url-tag-input.tsx @@ -12,7 +12,7 @@ import { Button } from "@/components/ui/button"; import { type UrlItem, detectUrlType, isValidUrl } from "@/utils/urlTagUtils"; import { TruncatedText } from "@/components/TruncatedText"; -import { ClipboardPaste, Globe, Link, X, Youtube } from "lucide-react"; +import { ClipboardPaste, Globe, Link, X } from "lucide-react"; import React, { useCallback, useRef, @@ -155,7 +155,7 @@ export function UrlTagInput({ urls, onAdd, onRemove }: UrlTagInputProps) { {youtubeUrls.length > 0 && (
- + YouTube ({youtubeUrls.length}) @@ -225,11 +225,7 @@ function UrlItemRow({ url, onRemove }: { url: UrlItem; onRemove: (id: string) => return (
- {url.type === "youtube" ? ( - - ) : ( - - )} + {url.url.replace(/^https?:\/\//, "")}