Commit Graph

145 Commits

Author SHA1 Message Date
mlogclub cd9de63860 refactor: remove WeChat MP OAuth handling and related configurations 2026-04-27 16:30:58 +08:00
mlogclub 2220dcb0cb refactor: simplify WeChat MP OAuth handling and update channel configuration structure 2026-04-27 16:01:00 +08:00
mlogclub fbabb174d2 feat: add WeChat MP channel support and enhance widget configuration
- Updated output path for generated enums to reflect new structure.
- Enhanced ChannelController to handle WeChat MP OAuth authorization and callback.
- Introduced WechatMPChannelConfig DTO for WeChat MP specific configurations.
- Modified WidgetConfigResponse to include channel type and external source.
- Added enums for WeChat MP channel type and external source.
- Implemented OAuth flow for WeChat MP, including state signing and verification.
- Updated frontend forms to accommodate WeChat MP configurations.
- Enhanced API interactions to support WeChat MP external ID and source.
- Updated generated enums to include WeChat MP external source.
2026-04-27 15:42:04 +08:00
mlogclub 15d0d81fa1 refactor KefuChatShell component by removing unused host actions state and simplifying button rendering 2026-04-27 14:52:14 +08:00
mlogclub b4e26d2359 refactor KefuChatShell button layout to use ButtonGroup and update styles for better consistency 2026-04-27 14:31:16 +08:00
mlogclub 1e2a0c43d8 add web access guide component and enhance channel form with dynamic details 2026-04-27 14:16:38 +08:00
mlogclub 2dc4ff5980 refactor channel form layout and improve field labeling for better clarity 2026-04-27 11:57:40 +08:00
mlogclub cff474e392 improve error handling for WeCom KF accounts loading 2026-04-27 11:54:47 +08:00
mlogclub 12f66bcf27 add wxwork kf account management functionality 2026-04-27 11:43:34 +08:00
mlogclub 9a82a3ea52 update button layout and add SVG icon for customer service launcher 2026-04-27 11:20:36 +08:00
mlogclub 3ab70bf049 update logo 2026-04-26 20:35:21 +08:00
mlogclub ce6994b15f update logo 2026-04-26 20:31:07 +08:00
mlogclub 603b8ff593 update logo 2026-04-26 20:22:09 +08:00
mlogclub 8dff6450b2 update wxwork.svg path 2026-04-26 20:13:16 +08:00
mlogclub a3cd67f80f update 2026-04-26 20:04:54 +08:00
mlogclub abda70eafd update 2026-04-25 21:48:09 +08:00
mlogclub 67900d9849 feat: replace ImMessageEditor with AgentMessageEditor and CustomerMessageEditor, refactor shared message editor logic
- Introduced AgentMessageEditor component for agent message handling.
- Created CustomerMessageEditor component to handle customer messages.
- Refactored shared message editor logic into SharedMessageEditor.
- Removed the old KefuMessageEditor component.
- Updated chat panel to use the new AgentMessageEditor.
- Updated KefuChatShell to use CustomerMessageEditor instead of KefuMessageEditor.
- Added quick reply fetching and handling in AgentMessageEditor.
2026-04-25 18:33:32 +08:00
mlogclub 9a2ae5c505 refactor: implement MessageImageExtension for enhanced image handling in message editors 2026-04-25 18:17:08 +08:00
mlogclub 7945fc32f6 refactor: enhance image uploading feedback in message editors with new class handling 2026-04-25 18:15:46 +08:00
mlogclub 65d8a9267c refactor: enhance image upload handling in message editors with centralized logic 2026-04-25 17:38:07 +08:00
mlogclub 2af8d831a7 refactor: enhance image handling in message editor with centralized functions 2026-04-25 17:37:34 +08:00
mlogclub 94ac7d613c refactor: standardize event type naming for resync handling 2026-04-25 17:26:27 +08:00
mlogclub 96fde7aaab refactor: enhance realtime message handling and conversation state management 2026-04-25 17:24:26 +08:00
mlogclub 0b22c003b0 refactor: implement centralized realtime connection manager and enhance message handling logic 2026-04-25 16:27:58 +08:00
mlogclub e109d19ea9 refactor: replace custom message merging logic with centralized mergeImMessagesByIdAsc function 2026-04-25 12:26:45 +08:00
mlogclub b48aa901d6 refactor: add resize observer to KefuMessageList for improved responsiveness 2026-04-25 11:37:33 +08:00
mlogclub 87e033c70e refactor: update styling in KefuMessageEditor for improved consistency and clarity 2026-04-25 11:35:50 +08:00
mlogclub 9d9c83a72c refactor: update styling for chat components to enhance visual consistency and accessibility 2026-04-25 11:31:16 +08:00
mlogclub 4da7e168fa refactor: enhance UI components and improve styling consistency across chat interface 2026-04-25 11:26:53 +08:00
mlogclub 25928c1b7d refactor: remove redundant devIndicators setting in next.config.ts 2026-04-25 11:19:25 +08:00
mlogclub 2c884c13cf refactor: update WebSocket API routes for improved clarity and structure 2026-04-25 10:50:23 +08:00
mlogclub 96168dc6fb Refactor API routes and controllers for improved structure and clarity
- Updated API route structure to remove versioning and consolidate endpoints.
- Refactored routing in `server.go` to use a unified `/api` prefix for all controllers.
- Added new `ChannelController`, `ConversationController`, and `MessageController` to handle specific API functionalities.
- Removed deprecated `OpenImContextMiddleware` and related logic.
- Enhanced channel validation logic in `ChannelService` and `ChannelRepository`.
- Updated frontend API calls to align with new endpoint structure.
2026-04-25 10:27:43 +08:00
mlogclub c1ab26ed71 feat: add origin state to KefuWidgetDemo for dynamic script source 2026-04-24 22:42:59 +08:00
mlogclub 14f220619f feat: add host actions visibility control in KefuChatShell 2026-04-24 22:40:34 +08:00
mlogclub 1db5c3bf39 feat: minify SDK JavaScript and improve build process
- Implemented minification of the cs-ai-agent-sdk.min.js file using Terser during the build process.
- Updated build-sdk.mjs to read the source code, minify it, and write the output to the target directory.
- Added logging to display the size reduction after minification.
- Removed redundant code and streamlined the configuration handling in the SDK.
2026-04-24 22:37:11 +08:00
mlogclub 6ffbbb04ae refactor: clean up apiBaseUrl handling in config merging 2026-04-24 22:32:34 +08:00
mlogclub f5da8de49d refactor: remove welcomeText field from WebChannelConfig and related components 2026-04-24 22:27:30 +08:00
mlogclub ea94837db2 feat: add web channel configuration support and update widget response structure 2026-04-24 22:24:19 +08:00
mlogclub 92fae381a4 fix: handle optional messages in ConversationDetailDialog and API response 2026-04-24 21:37:50 +08:00
mlogclub 4f633b3794 fix(nav-main): improve path normalization in isActive function 2026-04-24 21:31:17 +08:00
mlogclub 9590fc29d3 refactor(build-sdk): simplify SDK build process by removing minification logic 2026-04-24 19:44:55 +08:00
mlogclub c945f1e73d feat: add minified SDK build script and update widget script references 2026-04-24 19:43:59 +08:00
mlogclub 197631b4db fix: update import paths and enhance scrollbar styles in layout and main.scss 2026-04-24 19:26:10 +08:00
mlogclub 92fd571f28 feat: add Kefu widget and related components for customer service integration 2026-04-24 19:17:07 +08:00
mlogclub 4bcfd36620 feat: implement Kefu message list component and related functionality
- Add KefuMessageList component for displaying chat messages with support for loading older messages and scrolling behavior.
- Introduce ImWidgetConfig type and fetchImWidgetConfig function for retrieving widget configuration.
- Create im-realtime module for managing WebSocket connections and handling real-time events.
- Implement kefu-host-bridge for communication between the chat widget and the host application.
- Establish kefu-chat store using Zustand for managing chat state, including message handling, socket connection, and notifications.
- Enhance message handling with support for image uploads and attachments.
2026-04-24 14:34:21 +08:00
mlogclub a9275c2d4a 调整目录 2026-04-24 12:01:30 +08:00
mlogclub a402773693 remove unused code 2026-04-19 20:31:07 +08:00
mlogclub c84870b968 feat: add fallback mode for AI agents and update knowledge base handling
- Introduced AIAgentFallbackMode with options for NoAnswer and SuggestRetry.
- Updated AI agent edit component to include fallback mode selection.
- Modified API types and payloads to accommodate fallback mode.
- Removed deprecated KnowledgeFallbackMode and related logic from knowledge base.
- Adjusted knowledge retrieval and response handling to utilize new fallback logic.
- Updated tests to reflect changes in fallback mode handling for AI agents.
2026-04-18 13:36:44 +08:00
mlogclub c07e588030 update web to dashboard 2026-04-15 17:20:57 +08:00
mlogclub 3d98cf1e27 feat: add user management features including user creation, editing, and password reset dialogs
- Implemented CreateUserDrawer for adding new users with validation.
- Added EditDrawer for editing existing user details.
- Created InitialPasswordDialog to display generated passwords after user creation.
- Developed ResetPasswordDialogs for resetting user passwords with copy functionality.
- Enhanced user listing page with filtering, pagination, and role assignment capabilities.
- Updated company picker import path to reflect new directory structure.
2026-04-15 17:19:36 +08:00