Commit Graph

468 Commits

Author SHA1 Message Date
mlogclub 1852f9df8b Refactor controllers to remove unnecessary return statements after JSON responses
- Removed redundant return statements in various controller functions across the dashboard module.
- This change improves code readability and maintains the same functionality.
2026-05-23 22:23:44 +08:00
mlogclub e9d2e41f9e Refactor controllers to use httpx for JSON responses and eliminate context dependency
- Updated TagController methods to use httpx.WriteJSON for consistent JSON response handling.
- Refactored TicketController to replace context-dependent methods with standalone functions using httpx.
- Modified UserController to utilize httpx for error handling and response formatting.
- Adjusted WechatController to remove context dependency and standardize response handling.
2026-05-23 22:22:18 +08:00
mlogclub 7fdf96dd9d feat: implement httpx response utilities and refactor API controllers to use them 2026-05-23 22:18:40 +08:00
mlogclub d21b420765 feat: restructure API routing and remove ginx package
- Added new routing functions for API and dashboard endpoints in controller_routes.go.
- Replaced previous ginx.HandleController calls with explicit route registrations.
- Removed the ginx package as it is no longer needed for handling controllers.
- Improved organization and readability of route definitions.
2026-05-23 22:12:13 +08:00
mlogclub 79614b2d07 Refactor import paths to use internal/pkg/httpx/params
- Updated multiple repository and service files to replace imports from "github.com/mlogclub/simple/web/params" with "cs-agent/internal/pkg/httpx/params".
- Adjusted context handling in auth_service and ws_service to use gin.Context instead of iris.Context.
- Ensured consistent usage of HTTP status responses across websocket handlers.
2026-05-23 22:10:20 +08:00
mlogclub f8b1ed42fa fix: update release-version documentation for clarity and accuracy 2026-05-13 16:04:19 +08:00
mlogclub 1736ef04bf chore: update docs submodule links 2026-05-13 14:27:06 +08:00
mlogclub e79a689e9b chore: update docs submodule for v1.4.0 2026-05-13 14:11:46 +08:00
mlogclub 691a7058fa fix: add dropdown menu for chat window actions and enhance status display 2026-05-10 10:30:59 +08:00
mlogclub 2b9cf7e1df fix: enhance chat window header with action buttons and icons 2026-05-10 10:09:52 +08:00
mlogclub 253cca0de7 fix: update login form placeholders to Chinese 2026-05-10 09:50:42 +08:00
mlogclub 7a9cffe21e fix: add structured graph tool results 2026-05-10 00:02:23 +08:00
mlogclub 59b3509ca9 fix: prevent repeated off-hours handoff notices 2026-05-09 23:46:56 +08:00
mlogclub af8ec71bb8 fix: continue agent flow on knowledge retrieval errors 2026-05-09 23:38:42 +08:00
mlogclub bce4c18c10 refactor: use controlled RAG no-context policy 2026-05-09 23:33:35 +08:00
mlogclub 7dbde93b7d docs: add RAG no-context response design 2026-05-09 23:25:07 +08:00
mlogclub a077e50c6f refactor: improve layout responsiveness and styling for chat components 2026-05-09 23:00:55 +08:00
mlogclub d238bf17bb refactor: remove unnecessary border from chat shell section 2026-05-09 22:52:04 +08:00
mlogclub d30e211996 refactor: enhance conversation handling and websocket integration with new team ID support 2026-05-09 22:05:34 +08:00
mlogclub 44558a873c refactor: update links in summary cards to include dashboard path 2026-05-09 21:34:54 +08:00
mlogclub 664e418115 refactor: implement off-hours handoff logic and enhance related tests 2026-05-08 23:26:25 +08:00
mlogclub 6f4c026320 refactor: enhance event consumption logic and add graph tool completion test 2026-05-08 23:13:32 +08:00
mlogclub 1a2550a089 refactor: streamline conversation ID usage in message service methods 2026-05-08 21:54:08 +08:00
mlogclub 33b4caab03 refactor: update alert links and simplify buildAlerts parameters in dashboard service 2026-05-08 20:08:28 +08:00
mlogclub c111e3ed98 refactor: update TicketDetailDialog and ProjectDialog for improved layout and styling 2026-05-06 22:56:55 +08:00
mlogclub 102e9c8e4f refactor: clean up imports and improve ConversationList structure 2026-05-06 21:08:09 +08:00
mlogclub 3734e8ec03 refactor: simplify SidebarInset structure and adjust overflow behavior 2026-05-06 21:03:15 +08:00
mlogclub 8ff68acc54 feat: implement standalone closed page navigation and add related tests 2026-05-06 19:36:32 +08:00
mlogclub 15710d294f feat: add runtime configuration for Kefu Chat SDK
- Introduced `readKefuChatRuntimeConfig` and `setKefuChatRuntimeConfig` functions to manage runtime configuration for the Kefu Chat SDK.
- Updated `useKefuChatStore` to utilize the new runtime configuration functions instead of the previous widget config methods.
- Modified the SDK build process to compile TypeScript instead of JavaScript, enhancing type safety and maintainability.
- Updated the minified SDK file to reflect the changes in configuration handling and TypeScript compilation.
2026-05-06 19:28:49 +08:00
mlogclub bd9fad68a7 refactor: update Kefu widget configuration to use dynamic user token retrieval
- Changed `userToken` property to `getUserToken` function in KefuWidgetHostConfig for dynamic token fetching.
- Introduced KefuWidgetRuntimeConfig to manage runtime-specific configurations.
- Updated readKefuWidgetConfig and setKefuWidgetConfig functions to accommodate new configuration structure.
- Enhanced cs-ai-agent-sdk.js to handle user token resolution and frame configuration.
- Added tests for dynamic user token retrieval in cs-ai-agent-sdk.test.mjs.
- Removed deprecated cs-agent-widget.js file as part of the refactor.
2026-05-06 18:19:49 +08:00
mlogclub 787850833f fix: update chat shell message and comment out header section 2026-05-06 17:40:11 +08:00
mlogclub d7e101c234 feat: add progress tracking dialog with content editor for ticket updates 2026-05-06 17:40:11 +08:00
mlogclub c482a3d7f6 feat: update dialog size options and adjust loading indicator height 2026-05-06 17:40:11 +08:00
mlogclub bfcab46ae4 feat: add ticket information section in detail dialog 2026-05-06 17:40:11 +08:00
mlogclub 907d3b4085 fix: remove unnecessary classes from ticket page layout 2026-05-06 17:40:11 +08:00
mlogclub 5ca596a212 feat: enhance ticket page with quick view buttons and search functionality 2026-05-06 17:40:11 +08:00
mlogclub 57cf11afd6 ticket editor 2026-05-06 17:40:11 +08:00
mlogclub 1e7c77e379 fix: stabilize ticket rich text progress 2026-05-06 17:40:11 +08:00
mlogclub 1fc26aa30d feat: support rich ticket progress 2026-05-06 17:40:11 +08:00
mlogclub 44319446b7 feat: support rich ticket descriptions 2026-05-06 17:40:11 +08:00
mlogclub 494bf919b2 feat: add safe rich html viewer 2026-05-06 17:40:11 +08:00
mlogclub aef72ed6cc test: cover ticket rich text persistence 2026-05-06 17:40:11 +08:00
mlogclub 2447efab33 feat: record ticket assignment progress 2026-05-06 17:40:11 +08:00
mlogclub f2a7eb3295 refactor(ticket): simplify ticket number generation and remove SQLite lock 2026-05-06 17:40:11 +08:00
mlogclub dba175b0fa feat(ticket): add customer linking functionality to tickets 2026-05-06 17:40:11 +08:00
mlogclub ac0f25f10c refactor(ticket): rename TicketNoService to TicketNoSequenceService and update references 2026-05-06 17:40:11 +08:00
mlogclub d75f9f05a7 fix(ticket): update font size for various text elements in TicketDetailDialog 2026-05-06 17:40:10 +08:00
mlogclub 2f33783f7e fix(ticket): change description wrapper from div to span in TicketDetailDialog 2026-05-06 17:40:10 +08:00
mlogclub d181ff4947 fix(ticket): remove batch assign and restructure detail dialog 2026-05-06 17:40:10 +08:00
Bob d1845f9ed4 Merge pull request #12 from huabeitech/feature/kefu-chat-window-controls
feat(kefu): adapt chat controls by launch mode
2026-05-06 17:39:39 +08:00