Commit Graph

739 Commits

Author SHA1 Message Date
Marvin Zhang
4f57d277e7 refactor: standardize timestamp fields and improve code clarity
- Updated timestamp fields across the codebase from `*_ts` to `*_at` for consistency and clarity.
- Renamed constants for node status from "on"/"off" to "online"/"offline" to better reflect their meanings.
- Enhanced validation and error handling in various components to ensure data integrity.
- Refactored test cases to align with the new naming conventions and improve readability.
2025-04-21 18:13:22 +08:00
Marvin Zhang
de680d8ebd refactor: streamline conversation initialization and enhance log handling
- Refactored AssistantConsole to utilize a dedicated initializeConversation function for improved clarity and organization.
- Updated DependencyLogsDialog to rename computed property from content to logs for better semantic understanding.
- Enhanced LogsView component by wrapping logs in an el-scrollbar for improved user experience.
- Adjusted ChatInput to call updateSelectedProviderModel on onBeforeMount for better state management.
- Simplified default model handling in ai.ts by introducing a DEFAULT_OPENAI_MODELS constant for consistency.
2025-04-18 16:58:42 +08:00
Marvin Zhang
32f0802f8b style: update AssistantConsole layout and extend store interface
- Added height to the AssistantConsole component for improved layout consistency.
- Extended StoreNamespace interface to include 'dataCollection' for better state management.
2025-04-18 09:40:59 +08:00
Marvin Zhang
34509b8d4c refactor: enhance parameter handling and improve code clarity
- Updated GetListParams to set a default sort option for better query handling.
- Enhanced PostSpiderRunParams to include a default mode and improved error handling for missing spider.
- Added parameters field to ChatMessageContent for more flexible message content management.
- Refactored getNodeIds method to simplify mode handling and removed unnecessary error checks.
- Improved ChatMessageAction component to display parameters and response sections more effectively, enhancing user experience.
2025-04-17 18:03:15 +08:00
Marvin Zhang
36c7d5e3a3 refactor: improve focus handling and simplify content parsing
- Refactored focus handling in useAssistantConsole to use a dedicated function for clarity and adjusted timeout duration.
- Simplified content parsing in ChatMessageAction by directly returning parsed JSON and removing unnecessary mapping logic.
- Updated ChatSidebar to allow a larger maximum width for improved layout flexibility.
- Removed unused interface definitions in llm.d.ts to clean up the codebase.
2025-04-17 16:28:56 +08:00
Marvin Zhang
336ca5770b fix: improve error handling and enhance setting management
- Updated error handling in GetSetting to use errors.Is for better clarity when checking for no documents.
- Refactored setting retrieval in the Vuex store to ensure a default value is set if the retrieved setting is empty.
- Adjusted API calls in the store to wrap payloads in a data object for consistency.
- Cleaned up SystemDetail.vue by removing unnecessary navigation actions for a more streamlined UI.
- Enhanced conditional rendering in SystemDetailTabDependency to ensure form value checks are safe.
- Replaced el-input with cl-edit-input in SystemDetailTabCustomize for improved input handling and added change event for saving.
2025-04-17 14:50:59 +08:00
Marvin Zhang
526b2c0579 feat: enhance Vite configuration and update metrics display
- Added support for JSX in Vite configuration by including the vueJsx plugin.
- Simplified the metrics display in CurrentMetrics.vue to show only the percentage of used memory and disk.
- Adjusted CSS in CurrentMetrics.vue to prevent wrapping and added a gap between items for better layout.
- Refactored TableCell.vue to remove unused imports, optimizing the component.
- Updated useNodeList.tsx to replace NodeType with ClNodeType and made minor formatting adjustments for consistency.
2025-04-16 14:57:51 +08:00
Marvin Zhang
4e6b00c1b1 feat: add LogsView component for displaying logs
- Introduced a new LogsView.vue component to present logs in a structured format.
- Implemented functionality to scroll to the bottom of the logs view for better user experience.
- Enhanced log processing to trim and format log entries for clarity.
2025-04-16 11:05:00 +08:00
Marvin Zhang
21df22fe24 chore: enhance Dockerfile for improved debugging
- Updated the Dockerfile to include additional commands for listing files in the application directory structure, aiding in the verification of file copying during the Docker build process.
2025-04-16 10:56:10 +08:00
Marvin Zhang
47810fa2bb chore: update Dockerfile for debugging file copy verification
- Added commands to list files and display the contents of LogsView.vue to verify correct copying of application code during the Docker build process.
2025-04-16 10:54:02 +08:00
Marvin Zhang
13fd2d4c4e feat: add preview script and optimize Vite configuration
- Added a new "preview" script to package.json for easier local previewing of the application.
- Refactored Vite configuration by removing unnecessary library build options and external dependencies, streamlining the build process.
- Updated manual chunking logic to improve module handling and included additional dependencies in optimizeDeps for better performance.
2025-04-16 10:51:37 +08:00
Marvin Zhang
ca5113fd33 chore: update Dockerfile and add .dockerignore
- Modified the Dockerfile to change the way application code is added, improving clarity and structure.
- Updated the COPY command to reference the correct path for built artifacts.
- Added a new .dockerignore file to exclude node_modules from the Docker build context, optimizing the build process.
- Removed the unnecessary .Dockerfile.swp file.
2025-04-16 10:40:31 +08:00
Marvin Zhang
864ab25d83 feat: add SVG assets and update component interfaces
- Introduced new SVG assets for various AI models including Anthropic, Azure, DeepSeek, Gemini, Mistral, OpenAI, and Qwen.
- Updated the components index to include the new useAssistantConsole functionality.
- Enhanced type definitions in the i18n and models interfaces to support new AI features, including chat message handling and model configurations.
- Added new properties for better customization and management of AI models and chat conversations.
2025-04-16 10:36:52 +08:00
Marvin Zhang
fac1206a65 refactor: migrated crawlab-ui to crawlab/frontend/crawlab-ui 2025-04-16 10:33:07 +08:00
Marvin Zhang
c3f4c4ae05 feat: enhance gRPC client with structured logging and dependency actions
- Added DependencyActionSync and DependencyActionSetup constants to improve dependency management.
- Refactored GrpcClient to utilize a logger interface for consistent logging across connection states and errors.
- Updated Start, Stop, and connection methods to replace direct log calls with logger methods, enhancing log context and readability.
- Simplified test cases by removing error checks on gRPC client start, ensuring cleaner test setup.
2024-12-23 17:17:21 +08:00
Marvin Zhang
2a7aa76e5e chore: updated deps 2024-12-11 17:22:58 +08:00
Marvin Zhang
456fb4be86 ci: updated Dockerfile 2024-12-11 14:31:03 +08:00
Marvin Zhang
1e2cad899d ci: updated dockerfiles 2024-11-20 14:21:05 +08:00
Marvin Zhang
2d558c1eca chore: updated deps 2024-11-18 18:13:54 +08:00
Marvin Zhang
bdb1698b88 chore: updated deps 2024-11-11 09:54:47 +08:00
Marvin Zhang
b6a49edc3f chore: updated deps 2024-11-07 16:09:36 +08:00
Marvin Zhang
fbf8e5f9f3 feat: optimizing dependency services including grpc, api 2024-11-04 17:45:34 +08:00
Marvin Zhang
c34e21ca33 chore: updated deps 2024-11-01 15:35:43 +08:00
Marvin Zhang
66ea5b3ad5 refactor: updated comments 2024-11-01 15:32:41 +08:00
Marvin Zhang
43931a3e48 chore: updated deps 2024-10-25 18:21:27 +08:00
Marvin Zhang
d2683066c9 ci: updated dockerfile 2024-10-25 11:49:01 +08:00
Marvin Zhang
87211726bc chore: updated deps 2024-10-24 18:47:17 +08:00
Marvin Zhang
938bed2f6e ci: updated workflow 2024-10-24 14:48:38 +08:00
Marvin Zhang
7579cc40ad ci: updated dockerfile 2024-10-24 14:45:03 +08:00
Marvin Zhang
40bd94ceb4 ci: updated workflow 2024-10-24 14:42:33 +08:00
Marvin Zhang
3b6985fbaa chore: updated deps 2024-10-24 14:32:50 +08:00
Marvin Zhang
10cdf4bb5e chore: updated deps 2024-10-24 14:19:10 +08:00
Marvin Zhang
88f7bdc474 refactor: code cleanup 2024-10-24 14:17:13 +08:00
Marvin Zhang
ad1fb41be7 refactor: code cleanup 2024-10-24 14:16:51 +08:00
Marvin Zhang
18946c71a1 ci: updated dockerfile 2024-10-24 14:12:56 +08:00
Marvin Zhang
158a60f31b ci: updated dockerfile 2024-10-24 14:09:55 +08:00
Marvin Zhang
780587737f ci: updated dockerfile 2024-10-24 14:07:03 +08:00
Marvin Zhang
fd3bcd1563 ci: updated dockerfile 2024-10-24 13:55:14 +08:00
Marvin Zhang
c73e695808 chore: updated version 2024-10-24 13:30:05 +08:00
Marvin Zhang
837f83caef refactor: code cleanup 2024-10-24 13:25:12 +08:00
Marvin Zhang
d4e4806b94 refactor: use monorepo for frontend 2024-10-24 13:22:55 +08:00
Marvin Zhang
e2a4683278 chore: updated deps 2024-10-23 19:05:30 +08:00
Marvin Zhang
4ec75a9d76 chore: updated deps 2024-10-23 18:21:15 +08:00
Marvin Zhang
23b75f7557 fix: missing deps 2024-10-18 10:50:54 +08:00
Marvin Zhang
923d7cb454 chore: updated deps 2024-10-17 21:19:10 +08:00
Marvin Zhang
9073f1ca02 refactor: Remove unused code and update dependencies 2024-07-13 11:08:56 +08:00
Marvin Zhang
120550ea30 chore: updated deps 2023-10-21 12:58:21 +08:00
Marvin Zhang
8c7b921731 chore: updated deps 2023-07-26 15:32:36 +08:00
Marvin Zhang
4c5bdc3044 perf: improved ui loading speed 2023-07-09 17:56:02 +08:00
Marvin Zhang
c3c9c32bb7 chore: updated deps 2023-07-08 17:10:38 +08:00