From 022c9fea9a1f786b4e38d49cdd87a5779e99df51 Mon Sep 17 00:00:00 2001 From: Fini Date: Tue, 24 Feb 2026 04:06:27 +0800 Subject: [PATCH] feat(ai): remove OpenPencil built-in icon picker collection All icons in icon-resolver.ts now carry iconId (e.g. feather:search), so after AI generation each node automatically maps to the correct library in the property panel picker. The built-in "OpenPencil" collection in the picker is no longer needed. Removes BUILTIN_ICONS import, BUILTIN_ICON_MAP, buildBuiltinSvg, getIconColorRaw, and all openpencil-specific branches from the dialog. --- src/components/shared/icon-picker-dialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/shared/icon-picker-dialog.tsx b/src/components/shared/icon-picker-dialog.tsx index 0041650c5..513a1c86d 100644 --- a/src/components/shared/icon-picker-dialog.tsx +++ b/src/components/shared/icon-picker-dialog.tsx @@ -68,6 +68,7 @@ export default function IconPickerDialog({ // Load all icons for the active collection useEffect(() => { if (!activeCollection) return + setCollectionLoading(true) setAllIcons([]) setTotalCount(null) @@ -278,7 +279,7 @@ export default function IconPickerDialog({ return (