From 75914cf2e63efb67a2e8fb8108422ebd96bec3fd Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Mon, 2 Feb 2026 10:10:24 +0800 Subject: [PATCH] Update workflow --- App.tsx | 19 +- pages/Assistants.tsx | 273 +++++++++++--------------- pages/Dashboard.tsx | 247 +++++++++++++++--------- pages/WorkflowEditor.tsx | 402 +++++++++++++++++++++++++++++++++++++++ pages/Workflows.tsx | 235 +++++++++++++++++++++++ services/mockData.ts | 55 +++++- types.ts | 68 +++++-- 7 files changed, 1017 insertions(+), 282 deletions(-) create mode 100644 pages/WorkflowEditor.tsx create mode 100644 pages/Workflows.tsx diff --git a/App.tsx b/App.tsx index 3dfd477..0f55462 100644 --- a/App.tsx +++ b/App.tsx @@ -1,6 +1,7 @@ -import React, { useState } from 'react'; -import { HashRouter as Router, Routes, Route, Link, useLocation, Navigate } from 'react-router-dom'; -import { Bot, Phone, Book, User, LayoutDashboard, Cpu, Mic2, Video } from 'lucide-react'; + +import React from 'react'; +import { HashRouter as Router, Routes, Route, Link, useLocation } from 'react-router-dom'; +import { Bot, Phone, Book, User, LayoutDashboard, Mic2, Video, GitBranch } from 'lucide-react'; import { AssistantsPage } from './pages/Assistants'; import { KnowledgeBasePage } from './pages/KnowledgeBase'; @@ -8,6 +9,8 @@ import { CallLogsPage } from './pages/CallLogs'; import { ProfilePage } from './pages/Profile'; import { DashboardPage } from './pages/Dashboard'; import { VoiceLibraryPage } from './pages/VoiceLibrary'; +import { WorkflowsPage } from './pages/Workflows'; +import { WorkflowEditorPage } from './pages/WorkflowEditor'; const SidebarItem: React.FC<{ to: string; icon: React.ReactNode; label: string; active: boolean }> = ({ to, icon, label, active }) => ( = ({ children }) => { { path: '/voices', label: '声音库', icon: }, { path: '/call-logs', label: '视频通话记录', icon: }, { path: '/knowledge', label: '知识库', icon: }, + { path: '/workflows', label: '工作流', icon: }, { path: '/profile', label: '个人中心', icon: }, ]; @@ -36,11 +40,9 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { {/* Sidebar with Glass effect */}