Commit Graph

293 Commits

Author SHA1 Message Date
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 e0b15c23d9 update gorm log config 2026-04-26 20:52:22 +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 6be1d74f09 update README.md 2026-04-26 19:59:29 +08:00
mlogclub 53d33fbb18 chore: update docs submodule for v1.2.0 2026-04-26 09:54:20 +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 323db62512 refactor: reorganize WebSocket API route configuration for improved clarity 2026-04-25 10:51:41 +08:00
mlogclub 2c884c13cf refactor: update WebSocket API routes for improved clarity and structure 2026-04-25 10:50:23 +08:00
mlogclub 270bb83fdb refactor: remove commented-out API route configuration for clarity 2026-04-25 10:35:18 +08:00
mlogclub 1b3fc8159c feat: implement ExternalInfoMiddleware and update routing for improved context handling 2026-04-25 10:31:35 +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 add8cbfd89 feat: integrate WebChannelConfig into seed item configuration 2026-04-24 22:29:44 +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 a262a865a0 refactor: move WxWorkKFChannelConfig to dto package and update references 2026-04-24 21:43:39 +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 7f7da35fe6 refactor: remove widget-related targets and commands from Makefile 2026-04-24 21:29:32 +08:00
mlogclub a4ba2a23de fix: update run command to replace dashboard process with web process 2026-04-24 21:25:45 +08:00
mlogclub f55ff09db3 Remove widget 2026-04-24 21:24:24 +08:00