From 279121615b750794be7abb811f5732eb56329762 Mon Sep 17 00:00:00 2001 From: 134 Date: Sun, 12 Jul 2026 00:22:45 +0800 Subject: [PATCH] feat: add configurable scene sidebar entry --- app/(admin)/settings/admin-settings-client.tsx | 2 ++ components/home/lovart-home.tsx | 2 ++ components/home/lovart/lovart-sidebar.tsx | 1 + components/home/lovart/utils.ts | 2 ++ lib/home/lovart-sidebar-config.ts | 5 +++++ 5 files changed, 12 insertions(+) diff --git a/app/(admin)/settings/admin-settings-client.tsx b/app/(admin)/settings/admin-settings-client.tsx index f246b43cf..f4834ca33 100644 --- a/app/(admin)/settings/admin-settings-client.tsx +++ b/app/(admin)/settings/admin-settings-client.tsx @@ -38,6 +38,7 @@ import { ImagePlus, Key, Layers, + Layers3, Loader2, type LucideIcon, Maximize2, @@ -1129,6 +1130,7 @@ const LOVART_HOME_SIDEBAR_FALLBACK_ICONS: Record< imageEditor: Edit, aiCad: Box, model3d: Box, + scene: Layers3, agent: Wand2, videoCanvas: Video, flowBoard: GitBranch, diff --git a/components/home/lovart-home.tsx b/components/home/lovart-home.tsx index 02b0de1de..b83343934 100644 --- a/components/home/lovart-home.tsx +++ b/components/home/lovart-home.tsx @@ -20,6 +20,7 @@ import { Home, ImageIcon, Info, + Layers3, Loader2, LogOut, Mail, @@ -324,6 +325,7 @@ const LOVART_HOME_SIDEBAR_FALLBACK_ICONS: Record< imageEditor: Edit, aiCad: Box, model3d: Box, + scene: Layers3, agent: Wand2, videoCanvas: Clapperboard, flowBoard: Workflow, diff --git a/components/home/lovart/lovart-sidebar.tsx b/components/home/lovart/lovart-sidebar.tsx index ec21e5590..b8ae9e46a 100644 --- a/components/home/lovart/lovart-sidebar.tsx +++ b/components/home/lovart/lovart-sidebar.tsx @@ -280,6 +280,7 @@ export function LovartSidebar({ {tooltipButton("imageEditor", onImageEditor)} {tooltipButton("aiCad", () => onRoute("/ai-cad"))} {tooltipButton("model3d", () => onRoute("/model3d"))} + {tooltipButton("scene", () => onRoute("/pascal-editor"))} {agentEnabled ? tooltipButton("agent", () => onRoute("/canvas?mode=agent")) : null} {videoCanvasEnabled ? tooltipButton("videoCanvas", () => onRoute("/video-canvas")) : null} {tooltipButton("flowBoard", () => onRoute("/flow-board"))} diff --git a/components/home/lovart/utils.ts b/components/home/lovart/utils.ts index 40c20e53f..0fada024e 100644 --- a/components/home/lovart/utils.ts +++ b/components/home/lovart/utils.ts @@ -7,6 +7,7 @@ import { Folder, Home, ImageIcon, + Layers3, Monitor, Moon, Palette, @@ -85,6 +86,7 @@ export const LOVART_HOME_SIDEBAR_FALLBACK_ICONS: Record< imageEditor: Edit, aiCad: Box, model3d: Box, + scene: Layers3, agent: Wand2, videoCanvas: Clapperboard, flowBoard: Workflow, diff --git a/lib/home/lovart-sidebar-config.ts b/lib/home/lovart-sidebar-config.ts index b0b5454e9..b717096e8 100644 --- a/lib/home/lovart-sidebar-config.ts +++ b/lib/home/lovart-sidebar-config.ts @@ -47,6 +47,11 @@ export const DEFAULT_LOVART_HOME_SIDEBAR_ITEMS = [ defaultEnabled: false, description: "跳转 3D 建模工作台", }, + { + key: "scene", + label: "场景", + description: "跳转 AI 场景建模工作台", + }, { key: "agent", label: "风格化",