Commit Graph

214 Commits

Author SHA1 Message Date
mlogclub 3d4d5e116e test(auth): avoid closing shared service test db 2026-04-30 18:12:46 +08:00
mlogclub 34e27dffca fix(auth): align lockout check ordering 2026-04-30 17:57:28 +08:00
mlogclub 9d74df5b37 fix(auth): align session validation and lockout semantics 2026-04-30 17:48:58 +08:00
mlogclub fbafb13a8a refactor(auth): simplify admin session token flow 2026-04-30 17:42:24 +08:00
mlogclub 8be2d06283 fix(knowledge): paginate document list without content 2026-04-30 13:43:22 +08:00
mlogclub c9d1ae13f4 refactor: move batch schedule response mapping to builder 2026-04-29 20:33:30 +08:00
mlogclub a2ba3784fb feat: expose batch schedule endpoints 2026-04-29 19:48:19 +08:00
mlogclub c7e6c8a0db feat: implement batch schedule service 2026-04-29 19:41:16 +08:00
mlogclub 60119355d7 test: cover batch schedule service rules 2026-04-29 19:27:03 +08:00
mlogclub 630f25df95 feat: add batch schedule dto and repository methods 2026-04-29 19:03:58 +08:00
mlogclub 6331ce32c4 feat(schedule): remove sourceType from schedule models and payloads 2026-04-29 15:09:35 +08:00
mlogclub 2589c1da13 feat(schedule): add validation to prevent cross-day and historical schedule entries 2026-04-29 14:16:26 +08:00
mlogclub 8646b002c1 feat: add calendar scheduling feature for agent teams
- Implemented FindCalendarSchedules method in agentTeamScheduleService to retrieve schedules within a specified time range.
- Added new API endpoint fetchAgentTeamScheduleCalendar to fetch schedules for the calendar view.
- Created ScheduleCalendar component to display agent team schedules in a calendar format with drag-and-drop functionality for moving and resizing schedules.
- Updated EditDialog component to support deleting schedules and handling default values for new entries.
- Enhanced DashboardAgentTeamSchedulesPage to toggle between calendar and list views, and to load calendar data based on selected week.
- Added tests for FindCalendarSchedules to ensure correct schedule retrieval and validation of time ranges.
2026-04-29 09:23:54 +08:00
mlogclub bcd2c603f4 fix(notification): ensure BuildNotificationList returns an empty slice instead of nil 2026-04-28 23:09:50 +08:00
mlogclub 28d1cfc160 fix(customer_service): update EnsureExternalCustomer to use TxContext 2026-04-28 23:03:06 +08:00
mlogclub 21a08f3cb1 fix(notification): sync notification permissions 2026-04-28 23:00:22 +08:00
mlogclub 55d55101df feat(widget-demo): add direct chat URL generation and copy functionality 2026-04-28 23:00:22 +08:00
mlogclub 14e3df64f1 feat: add customer session refresh functionality and improve session management
- Introduced RealtimeCustomerSessionRefreshPayload and RealtimeCustomerSessionRefreshEvent types for handling session refresh events.
- Updated ws_service to verify customer session and handle session refresh notifications.
- Enhanced API client to manage customer session tokens and expiration.
- Implemented customer session validation and storage in session storage.
- Added functions to exchange and ensure customer sessions.
- Updated IM real-time connection to include customer session tokens in WebSocket requests.
- Modified SDK and widget configurations to support external IDs and user tokens.
2026-04-28 23:00:22 +08:00
mlogclub bfc9b317dc fix(ticket_service): update user retrieval to use UserRepository 2026-04-28 23:00:22 +08:00
mlogclub 909854cd03 feat(notification): add dashboard notification center 2026-04-28 19:20:38 +08:00
mlogclub cf63b75590 refactor: rename ExternalInfo to ExternalUser and update related functions for consistency
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 11:10:47 +08:00
mlogclub 0ad2ef83df refactor: rename VerifyUserToken function to verifyUserToken for consistency 2026-04-28 10:46:58 +08:00
mlogclub 864c3cc61a refactor: rename parsing functions for clarity and consistency 2026-04-28 10:46:28 +08:00
mlogclub fe4a6e63af refactor: streamline UserTokenClaims structure and simplify VerifyUserToken function 2026-04-28 10:43:38 +08:00
mlogclub 2900e0a3d2 refactor: simplify ExternalInfoMiddleware and update GetExternalInfo to accept user token secret
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 10:40:53 +08:00
mlogclub 4ec529e860 feat: add user token secret management for channels
- Implemented user token secret generation and retrieval in channel service.
- Added ResetUserTokenSecret method to reset the user token secret for channels.
- Updated channel configuration parsing to include user token secret.
- Enhanced WebSocket service to utilize user token secret for external info retrieval.
- Modified dashboard channel edit component to support user token secret display and reset functionality.
- Introduced API endpoint for resetting user token secret.
- Updated IM and SDK configurations to include user token.
- Added tests for user token verification logic.
2026-04-28 10:15:15 +08:00
mlogclub d713bd5158 refactor: update Conversation model to include CustomerName, adjust related logic and queries 2026-04-27 19:27:24 +08:00
mlogclub 3a9bc4914a refactor: remove Subject field from Conversation model and related logic, replace with CustomerName 2026-04-27 19:22:40 +08:00
mlogclub 2d2d2d2051 feat: implement EnsureExternalCustomer method in CustomerService and refactor customer creation logic 2026-04-27 19:09:29 +08:00
mlogclub b3ef55b04e refactor: remove ExternalSource and ExternalID from Conversation model and related services, update references to use ChannelID instead 2026-04-27 19:04:10 +08:00
mlogclub 24105781d9 refactor: update visitor references to guest in WebSocket service and related files 2026-04-27 18:52:33 +08:00
mlogclub c14ade27e4 feat: update ExternalSource enum and labels to include User and adjust related mappings 2026-04-27 18:46:24 +08:00
mlogclub 9d2abcd702 fix: update CustomerSourceTypeWebChat to use ExternalSourceGuest and adjust related mappings
Co-authored-by: Copilot <copilot@github.com>
2026-04-27 18:42:04 +08:00
mlogclub 73b78a817d refactor: remove ExternalType from CustomerIdentity and related structures 2026-04-27 18:40:25 +08:00
mlogclub f8b44ab127 feat: add ExternalType to ExternalInfo struct and update GetExternalInfo function 2026-04-27 18:22:14 +08:00
mlogclub feecbdf1d0 feat: add ExternalType to customer identity model and update related services and enums 2026-04-27 18:07:56 +08:00
mlogclub 1bb4608051 feat: add ChannelID to conversation model and update related services and responses 2026-04-27 17:59:23 +08:00
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 12f66bcf27 add wxwork kf account management functionality 2026-04-27 11:43:34 +08:00
mlogclub e0b15c23d9 update gorm log config 2026-04-26 20:52:22 +08:00
mlogclub 96fde7aaab refactor: enhance realtime message handling and conversation state management 2026-04-25 17:24:26 +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 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