From fbb4cc0f1b55945b3158f186d32bc0a76ff0a746 Mon Sep 17 00:00:00 2001
From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com>
Date: Mon, 24 Aug 2026 18:41:49 +0800
Subject: [PATCH] feat: add lucide-react Icon
---
frontend/app/features/schedules/SchedulePage.tsx | 16 ++++++++--------
frontend/package.json | 3 ++-
frontend/pnpm-lock.yaml | 12 ++++++++++++
3 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/frontend/app/features/schedules/SchedulePage.tsx b/frontend/app/features/schedules/SchedulePage.tsx
index 345af81..ab45f47 100644
--- a/frontend/app/features/schedules/SchedulePage.tsx
+++ b/frontend/app/features/schedules/SchedulePage.tsx
@@ -9,15 +9,15 @@ import {
useRef,
useState,
} from "react";
-
+import { Plus } from 'lucide-react';
import {
type Schedule,
type ScheduleArtifact,
type ScheduleEdge,
type ScheduleNode,
-} from "../../services/api";
+} from "~/services/api";
-import { useApi, useAuth } from "../../context/AuthContext";
+import { useApi, useAuth } from "~/context/AuthContext";
import Icon from "../../components/common/Icon";
import { NodeInspector } from "./NodeInspector";
import { RunHistory } from "./RunHistory";
@@ -361,7 +361,7 @@ export default function SchedulePage({
type="button"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
-
+
新建
) : schedule.nodes.length === 0 ? (
@@ -659,7 +659,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
-
+
新建调度方案
)}
@@ -671,7 +671,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
-
+
新建调度方案
diff --git a/frontend/package.json b/frontend/package.json
index f4562aa..76f76bf 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -13,10 +13,11 @@
},
"dependencies": {
"@monaco-editor/react": "^4.7.0",
- "monaco-editor": "^0.56.0",
"@react-router/node": "^8",
"@react-router/serve": "^8",
"isbot": "^5.1.36",
+ "lucide-react": "^1.33.0",
+ "monaco-editor": "^0.56.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-router": "^8",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index ceb621b..6b934b2 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -20,6 +20,9 @@ importers:
isbot:
specifier: ^5.1.36
version: 5.2.1
+ lucide-react:
+ specifier: ^1.33.0
+ version: 1.33.0(react@19.2.8)
monaco-editor:
specifier: ^0.56.0
version: 0.56.0
@@ -945,6 +948,11 @@ packages:
lru-cache@5.1.1:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+ lucide-react@1.33.0:
+ resolution: {integrity: sha512-MTRwMy0ZlL8Ur/vOAiJ9XGHE+kFPC7brq6MxAm0GiGXEBj0qy0jA/pG4N675oSzciO/UCdX8T+5yUQdmDeTLxg==}
+ peerDependencies:
+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -2122,6 +2130,10 @@ snapshots:
dependencies:
yallist: 3.1.1
+ lucide-react@1.33.0(react@19.2.8):
+ dependencies:
+ react: 19.2.8
+
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5