Commit Graph

25 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
Xin Wang
bcb6adcba4 Add admin dashboard shell with sidebar navigation and page scaffolds.
Replace the default Next.js landing page with a client-side AppShell layout, placeholder pages for each admin section, and UI utility dependencies.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 07:42:45 +08:00