53 Commits

Author SHA1 Message Date
Xin Wang
1772c41f18 Enhance AssistantWorkflowPage with workflow node management and styling
Updated the AssistantWorkflowPage to include a comprehensive node catalog for workflow management, allowing users to add and connect various node types. Introduced new styles for the workflow editor in globals.css to improve UI consistency and visual appeal. Enhanced state management for node connections and saving workflows, providing a more intuitive user experience.
2026-06-09 10:50:15 +08:00
Xin Wang
f7fd2bb53e Add @xyflow/react dependency and integrate workflow features in AssistantPage
Updated package.json and package-lock.json to include the @xyflow/react library. Enhanced the AssistantPage with a new AssistantWorkflowPage component for creating and managing workflows, allowing users to visually connect nodes. Removed the deprecated WorkflowPage component to streamline the codebase. Updated global styles to incorporate @xyflow/react styles for consistent UI.
2026-06-09 10:31:49 +08:00
Xin Wang
efb3c606a3 Add duplication assistant 2026-06-09 08:25:39 +08:00
Xin Wang
f25782b99f Add OpenCode assistant type and configuration form in AssistantPage 2026-06-08 13:28:06 +08:00
Xin Wang
048c274bd1 Refactor Sidebar and AssistantPage components to enhance type definitions and user interaction
Updated the Sidebar component to include an optional className property in the icon type definition for better styling flexibility. In the AssistantPage, introduced new FastGptForm and DifyForm types, updated the assistant type options to reflect their availability, and enhanced the state management for creating and editing assistants. Improved the user experience by refining the view handling logic and adding dedicated forms for FastGPT and Dify configurations.
2026-06-08 11:11:10 +08:00
Xin Wang
e2a0eedd63 Enhance ComponentsModelsPage with FieldLabel and HelpHint components for improved form usability
Refactored the ComponentsModelsPage to introduce FieldLabel and HelpHint components, enhancing the user experience by providing contextual hints for form fields. Updated the layout to replace traditional labels with these new components, ensuring better accessibility and clarity for users when entering model details. This change aims to streamline the form interface and improve overall usability.
2026-06-08 10:21:43 +08:00
Xin Wang
edf2148473 Add modelId field to ModelResource and ModelForm in ComponentsModelsPage
Updated the ComponentsModelsPage to include a new modelId property in both ModelResource and ModelForm types. Enhanced mock model data with corresponding modelId values for better identification. Adjusted form handling and UI elements to accommodate the new modelId field, ensuring improved data management and user experience when adding or editing models.
2026-06-08 09:56:57 +08:00
Xin Wang
9aea5d2f7d Implement voice visualization feature in AssistantPage with microphone control
Added a new VoiceVisualizer component to the AssistantPage, enabling real-time audio visualization during voice testing. Integrated microphone control with state management for recording status and error handling. Updated UI elements to reflect recording state and provide user feedback on microphone access issues, enhancing the overall user experience for voice interactions.
2026-06-08 07:51:45 +08:00
Xin Wang
82ca52d438 Add connection testing feature to ComponentsModelsPage
Implemented a new connection testing functionality in ComponentsModelsPage, allowing users to test API connectivity. Added state management for testing status and results, along with UI updates to display connection success or failure. Enhanced button interactions for improved user experience during testing.
2026-06-08 00:02:18 +08:00
Xin Wang
328e24e2e1 Remove unused button from Topbar for a cleaner interface 2026-06-07 22:28:51 +08:00
Xin Wang
e5e1d8b8cc Refactor AssistantPage to remove unused labels and enhance component flexibility
Removed labels from TextAreaField and SelectField components in AssistantPage to streamline the interface. Updated the components to conditionally render labels, improving layout flexibility and user experience. This change simplifies the form fields while maintaining functionality.
2026-06-07 22:21:03 +08:00
Xin Wang
4988b1c5fb Enhance AssistantPage layout with new popover component and improved button accessibility
Updated the AssistantPage to include a new Popover component for better user interaction. Enhanced button accessibility by adding keyboard navigation support and improved visual elements for runtime mode selection. Refined the layout for clearer presentation of assistant configuration options, including updated icons and descriptions.
2026-06-07 22:05:18 +08:00
Xin Wang
38880f89bf Refactor Sidebar layout by adjusting header height and removing unused labels for a cleaner interface 2026-06-07 21:22:50 +08:00
Xin Wang
b6cb13dfac Update Topbar layout by adjusting header height and removing unused admin information for a cleaner interface 2026-06-07 21:21:56 +08:00
Xin Wang
21aef75fb5 Add debug mode functionality to AssistantPage with text and voice testing options
Introduced a DebugDrawer component to allow users to switch between text and voice testing modes. Enhanced the AssistantPage layout for better organization and added a debug interface for testing AI responses. This update improves usability by providing clear options for debugging and testing the assistant's capabilities.
2026-06-07 21:05:52 +08:00
Xin Wang
b6cfba03e0 Remove debugging button from AssistantPage to streamline interface 2026-06-07 20:45:19 +08:00
Xin Wang
44efae2156 Update knowledge base options in AssistantPage for improved clarity
Changed the default knowledge base value from "政务政策知识库" to "无" and updated the options list to include "无" as the first choice. This adjustment enhances user understanding and provides a clearer selection for knowledge base configurations.
2026-06-07 20:33:28 +08:00
Xin Wang
f120de4e10 Refactor HomePage and PlaceholderPage layout for improved responsiveness
Removed the maximum width constraint from the HomePage container and increased the maximum width of the PlaceholderPage from 1180px to 1440px. These changes enhance layout flexibility and responsiveness, improving the overall user experience across different screen sizes.
2026-06-07 20:24:53 +08:00
Xin Wang
a7eebd8eb2 Update layout of AssistantPage and ComponentsModelsPage for improved responsiveness
Adjusted the maximum width of the main container in both AssistantPage and ComponentsModelsPage from 1180px to 1440px to enhance layout flexibility. Updated the button and search component arrangements to utilize larger screen sizes effectively, improving the overall user experience and interface consistency across pages.
2026-06-07 20:20:15 +08:00
Xin Wang
d043258453 Update Sidebar labels for improved localization
Changed the label for the home item in the Sidebar from "控制台" to "首页" to enhance clarity and localization for users. This update ensures that the interface is more intuitive for native speakers.
2026-06-07 20:02:42 +08:00
Xin Wang
74e72d03c9 Implement type filtering functionality in AssistantPage
Added a new type filter feature to the AssistantPage, allowing users to filter assistants by type (全部 or specific types). Introduced a button interface for selecting filters and updated the filtering logic to enhance the search experience. This change improves usability by providing clearer options for narrowing down assistant selections.
2026-06-07 19:56:24 +08:00
Xin Wang
f49ec64881 Refactor multiple pages to remove unnecessary labels and improve UI consistency
Updated various components including AssistantPage, AssistantWorkflowPage, ComponentsModelsPage, and others by removing redundant label elements and enhancing the header structure. This change streamlines the layout and improves the overall user experience across the application.
2026-06-07 19:50:29 +08:00
Xin Wang
2e3cc3ab5b Implement ComponentsModelsPage with model management features
Introduced the ComponentsModelsPage to manage various model types (LLM, ASR, TTS, Realtime, Embedding) with a user-friendly interface. Added functionality for creating, editing, and filtering models, along with a search feature. Enhanced the layout with new UI components, including buttons, dropdowns, and dialogs for improved user interaction and experience.
2026-06-07 19:41:55 +08:00
Xin Wang
2699f9db29 Refactor AssistantPage to enhance configuration options for LLM, ASR, and TTS
Updated the AssistantPage layout to include dedicated SectionCard components for LLM, ASR, and TTS configurations, improving user experience by providing clear selection options for each component. Added new icons for better visual representation and streamlined the overall structure of the configuration section.
2026-06-07 11:41:37 +08:00
Xin Wang
7b80852e03 Add runtime mode selection to AssistantPage and configure allowed development origins
Introduced a new feature in AssistantPage allowing users to select between 'pipeline' and 'realtime' runtime modes, enhancing the flexibility of the assistant's functionality. Updated the configuration to include 'allowedDevOrigins' for local development. This change improves user experience by providing clear options for runtime configurations and streamlining the development process.
2026-06-07 11:39:37 +08:00
Xin Wang
d090b49001 Enhance AssistantPage with new buttons and icon updates
Added new buttons for debugging and saving functionality, incorporating icons for better visual representation. Updated existing buttons to include icons, improving the overall user interface and interaction experience on the AssistantPage.
2026-06-07 09:21:20 +08:00
Xin Wang
02adf8991c Refactor AssistantPage layout for improved UI organization
Reorganized the AssistantPage layout by removing unnecessary div wrappers and enhancing the structure with SectionCard components for model and knowledge base configurations. This change improves readability and maintains a consistent design across the page.
2026-06-07 09:15:39 +08:00
Xin Wang
d77108d157 Enhance AssistantPage with pagination and additional mock assistants
Implemented pagination for the assistant list, allowing users to navigate through multiple pages of assistants. Added new mock assistant entries to enrich the data displayed. Updated the search functionality to reset the current page when the search query changes, improving user experience in managing assistants.
2026-06-07 08:48:42 +08:00
Xin Wang
6c20eb24d0 Add monitor section placeholders for history and dashboard pages.
Wire dashboard navigation in AppShell and fix the 监控观察 sidebar group highlight so it activates for history and dashboard routes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 08:25:05 +08:00
Xin Wang
30f520ba0b Implement assistant type selection and creation flow in AssistantPage
Added a new selection step for assistant types, allowing users to choose between different construction methods (提示词, 工作流, Dify, FastGPT) before creating an assistant. Enhanced the UI to display options with descriptions and icons, and updated the state management to handle the new view for selecting assistant types. This improves the user experience by guiding users through the assistant creation process.
2026-06-06 07:29:23 +08:00
Xin Wang
2676d61ccd Enhance AssistantPage with search functionality and UI improvements
Added a search feature to filter assistants by name, type, or ID, improving user experience in managing assistants. Updated the layout and styling for better visual appeal, including new components for badges and dropdown menus. Removed deprecated status fields from mock data to streamline the assistant list display.
2026-06-05 21:52:07 +08:00
Xin Wang
1794957bb1 Refactor Assistant navigation and update HomePage button
Updated the AppShell and Sidebar components to streamline navigation for the Assistant section, consolidating assistant-related pages under a single "assistants" key. Removed deprecated assistant sub-items and adjusted the HomePage button to link to the new assistant navigation. Enhanced the AssistantPage with a list view for managing assistants, including mock data for demonstration.
2026-06-05 16:58:13 +08:00
Xin Wang
66e75fa856 Update HomePage navigation button to link to 'components-models' and change button label to '配置模型' 2026-06-05 16:39:11 +08:00
Xin Wang
64706b61d5 Enhance AppShell and Sidebar components with new navigation for components
Updated the AppShell component to include new pages for models, knowledge, and tools under the components section. Refactored the Sidebar to introduce a dedicated section for these components, improving navigation structure and user experience. Added new placeholder pages for ComponentsModelsPage, ComponentsKnowledgePage, and ComponentsToolsPage, each with relevant titles and descriptions.
2026-06-05 16:30:05 +08:00
Xin Wang
75a25be339 Add CLAUDE.md for project guidance and architecture overview
Introduced CLAUDE.md to provide comprehensive guidance for the Claude Code repository. The document includes commands for development, an overview of the architecture, component layers, design system specifications, theming implementation details, and shadcn/Radix configuration. This addition aims to enhance understanding and streamline collaboration within the project.
2026-06-05 15:47:21 +08:00
Xin Wang
b62c8a20ec Refactor Sidebar component for enhanced layout and navigation
Updated the Sidebar component to improve the layout and interaction of navigation items. Adjusted styles for better responsiveness, including a new structure for the assistant section and refined transition effects. Ensured consistent spacing and visual appeal in both collapsed and expanded states.
2026-06-05 15:38:33 +08:00
Xin Wang
ab4633d0d1 Refactor Sidebar component styles for improved layout and interaction
Updated the Sidebar component to enhance the collapsed state behavior by adjusting CSS classes for better responsiveness and visual consistency. Improved the transition effects and layout of the toggle button, ensuring a smoother user experience when interacting with the sidebar.
2026-06-05 15:17:47 +08:00
Xin Wang
4206e29550 Refactor Sidebar component for improved layout and user interaction
Updated the Sidebar component to enhance the collapsed state behavior, including a new button for profile navigation with improved styling and animations. Removed the user profile item and adjusted the layout for better responsiveness. Added a ChevronRight icon for visual indication of the profile button and refined the toggle button for collapsing the sidebar.
2026-06-05 15:13:58 +08:00
Xin Wang
b74a10b471 Add Sidebar, Skeleton, and useIsMobile Hook Components 2026-06-05 14:49:16 +08:00
Xin Wang
7dd37936b4 Enhance Sidebar component with improved animations and transitions
Updated the Sidebar component to include smoother transitions for width, padding, and background color changes. Adjusted layout styles for better responsiveness and visual appeal, ensuring a more cohesive user experience when toggling the sidebar. Refactored navigation button styles for consistency and added transition effects to icon and label visibility based on the collapsed state.
2026-06-05 14:49:09 +08:00
Xin Wang
571c67526f Revise design and UI components for AI video admin interface
Updated DESIGN.md to reflect a new editorial design approach with a navy palette and refined typography. Enhanced global styles in globals.css, including new color tokens and layout adjustments. Refactored components in AppShell, Sidebar, and Topbar for improved consistency and theming. Introduced a ThemeToggle component for user theme preferences and updated various pages to utilize new styles and components, ensuring a cohesive user experience across the application.
2026-06-05 13:48:42 +08:00
Xin Wang
9952e08e49 Add launch configuration and enhance UI components in Sidebar, Topbar, and HomePage 2026-06-05 13:29:00 +08:00
Xin Wang
1caee1ef2a Add design specifications for AI video admin interface
Introduce a comprehensive DESIGN.md file detailing the visual and functional design elements for the AI video admin dashboard. This includes color palettes, typography, component styles, and layout guidelines, establishing a cohesive design system for the application.
2026-06-05 13:26:05 +08:00
Xin Wang
b202908cfe Update AssistantPage title to include "提示词模式" for clarity on creation mode. 2026-06-05 13:18:56 +08:00
Xin Wang
762ba2b570 Simplify assistant creation form by focusing on core configuration fields.
Remove business scenario, immediate publish, and preview panel; add prompt input to basic info.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 13:13:37 +08:00
Xin Wang
9c399fb1ed Use shadcn Button on HomePage for consistent styling with AssistantPage.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 12:58:47 +08:00
Xin Wang
7b20b6a2d8 Update global styles and refactor AssistantPage to use new UI components.
Changed primary color variables in globals.css for improved theming. Refactored AssistantPage to incorporate Select and Card components, enhancing the UI structure and consistency. Updated button styles for better visual integration.
2026-06-05 12:53:07 +08:00
Xin Wang
51e197f006 Fix button component filename casing to match imports.
Aligns git-tracked path with lowercase shadcn convention so TypeScript stops treating Button.tsx and button.tsx as separate modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 12:40:26 +08:00
Xin Wang
1dc1b2cd8b Add shadcn/ui components and refactor assistant form to use them.
Set up the design system with Radix-based primitives, theme tokens, and replace custom form controls on the assistant page with shared UI components.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 12:37:56 +08:00
Xin Wang
f81414c88f Add assistant creation flows with prompt and workflow modes.
Build the prompt-mode creation form, add a workflow page, and reorganize sidebar navigation into assistant sub-routes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 10:56:13 +08:00