diff --git a/frontend/app/features/schedules/SchedulePage.tsx b/frontend/app/features/schedules/SchedulePage.tsx index 64abd74..efe6848 100644 --- a/frontend/app/features/schedules/SchedulePage.tsx +++ b/frontend/app/features/schedules/SchedulePage.tsx @@ -38,8 +38,6 @@ import { modalFormClass, modalHeaderClass, modalTitleClass, - primaryButtonClass, - secondaryButtonClass, } from "~/features/platform/modalUi"; import { NodeInspector } from "./NodeInspector"; import { RunHistory } from "./RunHistory"; @@ -55,6 +53,7 @@ import { } from "./state/types"; import { useSchedulesStore } from "./state/useSchedulesStore"; import { edgePath, nodeToForm, scheduleToForm } from "./utils"; +import {Button} from "~/components/ui/button"; type Notice = { tone: "success" | "error" | "info"; @@ -98,9 +97,11 @@ function RunNowButton({ }) { const positionDraftCount = useSchedulesStore((s) => s.positionDraftCount); return ( - + ); } @@ -378,39 +379,47 @@ export default function SchedulePage({
- - - + - +
@@ -597,13 +606,15 @@ export default function SchedulePage({ 还没有选中调度方案

点击"新建"创建一个调度,然后拖入稳定版本脚本。

- + ) : schedule.nodes.length === 0 ? (
@@ -624,13 +635,15 @@ export default function SchedulePage({ {schedule?.nodes.length ?? 0} 个节点 {schedule?.edges.length ?? 0} 条连线 {selectedEdge && ( - + )} @@ -676,69 +689,75 @@ export default function SchedulePage({ onPointerDown={(event) => event.stopPropagation()} > {contextMenu.kind === "schedule-list" && ( - + )} {contextMenu.kind === "schedule" && ( <> - - - + )} {contextMenu.kind === "artifact" && null} {contextMenu.kind === "node" && ( - + )} {contextMenu.kind === "edge" && ( - + )}
)} @@ -758,15 +777,17 @@ export default function SchedulePage({ 新建调度方案 - +
- - +