Commit Graph

217 Commits

Author SHA1 Message Date
超级老白兔
a8b0add92b Merge branch 'yongpxu-dev' into develop 2025-11-08 18:05:15 +08:00
超级老白兔
49d8c4f818 Enhance PopChatRoom component to include a modal for entering chatroom name before group creation, update page size to 10, and improve state management for selected contacts and loading status. 2025-11-08 17:57:28 +08:00
wong
674bbe1c3e 代码提交 2025-11-08 17:29:33 +08:00
超级老白兔
daf504d5fd Add dropdown menu in SidebarMenu for adding friends and creating group chats, including modals for each action 2025-11-08 17:00:40 +08:00
超级老白兔
d722c03744 Add a primary button with a Plus icon to the SidebarMenu and adjust styles for better layout 2025-11-08 16:16:32 +08:00
超级老白兔
6eddf2f6db 同步 2025-11-08 16:02:16 +08:00
超级老白兔
35c9369d3d Refactor IndexController to return a simple message instead of an iframe. Update AudioRecorder and SimpleFileUpload components to include file name in the upload callback. Modify MessageEnter component to handle new file structure and improve message handling logic. Clean up unused state and enhance video message rendering. Update websocket message management to handle message IDs more robustly. 2025-11-08 15:13:20 +08:00
wong
b46c808aa8 代码提交 2025-11-07 17:57:18 +08:00
超级老白兔
f9c08b6091 重构状态管理:将 useWeChatStore 更名为 useDataCenterStore,并更新相关引用 2025-11-06 18:08:49 +08:00
超级老白兔
e467a8e6e0 Add typeId to login parameters for session verification in Login component. 2025-11-06 10:20:39 +08:00
超级老白兔
fa802b50ad Add 404 Not Found route to the router configuration to handle unmatched paths. 2025-11-05 10:37:39 +08:00
超级老白兔
998e65d98d Update WebSocket configuration to use environment variable for URL instead of hardcoded value. 2025-11-03 10:31:31 +08:00
超级老白兔
055b300c5a Update API URLs in development and production environment files to new server endpoints for consistency across environments. 2025-11-03 10:11:12 +08:00
超级老白兔
0d1d082d9e Add manual AI response generation feature in MessageEnter component. Implement handleManualTriggerAi function to allow users to trigger AI replies on demand. Update weChat store with manualTriggerAi function to manage AI request logic and context retrieval. Enhance UI with a reload button for AI responses in AI modes. 2025-10-29 16:56:44 +08:00
超级老白兔
44a8fbe0c9 用户操作绝对优先 - 任何用户行为立即打断AI
唯一ID验证 - 防止过期回复覆盖
状态互斥保护 - AI生成 ⇄ 用户输入互斥
智能防抖 - 3秒延迟合并多条消息
2025-10-29 15:21:27 +08:00
超级老白兔
9c5e253d75 Refactor MessageEnter component to streamline AI message handling. Update message sending logic to prioritize passed content, ensuring better integration with AI-assisted and AI takeover modes. Clean up unused code and enhance console logging for improved debugging. 2025-10-29 14:53:15 +08:00
超级老白兔
5fb15592ff Refactor MessageEnter component to handle AI-assisted and AI takeover scenarios. Update weChat store to support multiple AI types for message processing. Remove unnecessary console log in message response handler for cleaner output. 2025-10-29 14:50:55 +08:00
超级老白兔
0decc34593 Enhance file upload process in devlop.py with progress tracking and remote file validation. Add aiType field to weChatGroup and ContractData interfaces for AI type differentiation. Update ChatWindow component to handle AI configuration changes and ensure proper database updates for contact and message management. Implement database versioning to include aiType in chatSessions and contactsUnified tables, with migration logic for existing data. Improve error handling and user feedback during configuration updates. 2025-10-28 16:55:55 +08:00
超级老白兔
3d8c656224 加载动画优化 2025-10-27 17:08:37 +08:00
超级老白兔
8cff6750f9 Implement AI loading animation in MessageEnter component and enhance user interface. Remove unused loading icon and streamline input area for better user experience during AI response generation. 2025-10-27 16:57:26 +08:00
超级老白兔
d01c91e6ee 只有文字消息才会触发ai回复 2025-10-27 15:49:52 +08:00
超级老白兔
e1893e1506 增加消息类型 2025-10-27 15:45:07 +08:00
超级老白兔
ae4b592bb6 转给他人逻辑处理,包括关闭和删除联系人、联系会话 2025-10-27 15:38:01 +08:00
超级老白兔
c65001399f 完整的wechatAccountId处理
接口查询获取
字段映射兜底(accountId)
保证每个会话都有正确的账号ID
 头像正确显示
好友:avatar 字段
群聊:chatroomAvatar 字段
统一存储到 ChatSession.avatar
 三层兜底机制
从联系人表查询(最快)
从接口获取详情(完整)
使用消息数据创建(兜底)
 数据持久化
联系人数据存入 contactsUnified 表
会话数据存入 chatSessions 表
下次收到消息直接从本地读取
 静默更新机制
所有数据库操作在后台完成
通过 triggerRefresh() 触发UI更新
用户体验流畅无感知
2025-10-27 15:30:27 +08:00
超级老白兔
494ccbbe5e 修复消息列表 2025-10-27 14:49:05 +08:00
超级老白兔
8b28194d00 优化头像兼容 2025-10-27 11:48:22 +08:00
超级老白兔
3ff3e40d8e Enhance MessageList component to include complete contact information during message updates. Implement a new method in ContactManager for retrieving contacts by ID and type, ensuring accurate avatar and nickname display. Trigger UI refresh on data changes to improve user experience. 2025-10-27 11:43:35 +08:00
超级老白兔
77072594d2 Add debug logging for quote message content and session selection in MessageEnter and MessageList components. Update WeChat store to handle empty message content gracefully, improving error handling during message reception. 2025-10-27 11:11:24 +08:00
超级老白兔
3c2fec2122 Refactor MessageRecord component to replace ckchat store with customer store for improved data handling. This change enhances the retrieval of customer information based on the wechatAccountId, streamlining the message processing logic. 2025-10-27 10:38:39 +08:00
超级老白兔
f58070495f Refactor WeChat store logic to enable AI chat processing. Reintroduce data processing and AI chat request handling, improving message handling flow and user experience. 2025-10-27 10:00:32 +08:00
超级老白兔
781662026a 优化消息过滤逻辑,新增对语音消息的处理条件,支持通过URL和持续时间判断,同时增强对特殊格式消息的识别,提升代码可读性和用户体验。 2025-10-25 19:15:00 +08:00
超级老白兔
422fed2719 新增音频转文字功能,更新相关API和组件逻辑,优化消息处理流程,提升用户体验和代码可读性。 2025-10-25 19:11:08 +08:00
超级老白兔
27a108027b 移除MessageList组件中的调试日志,新增通过ID查找消息的功能,优化消息处理逻辑,提升代码可读性和用户体验。 2025-10-25 19:00:20 +08:00
超级老白兔
5f1a1e9f0e 新增消息序列号支持,优化消息发送和接收逻辑,更新消息状态处理,提升代码可读性和用户体验。 2025-10-25 18:42:17 +08:00
超级老白兔
e409618b7a 增强SidebarMenu和MessageList组件,新增对currentContact变化的监听,自动切换聊天tab并显示加载状态,优化消息列表的加载逻辑,提升用户体验和代码可读性。 2025-10-24 17:46:44 +08:00
超级老白兔
7d8573b52a 优化联系人分组统计逻辑,分别提取好友和群组标签ID以提高准确性,更新相关注释以增强代码可读性,同时调整数据库查询条件以支持更灵活的分组查询。 2025-10-24 17:20:09 +08:00
超级老白兔
28cbcea4f9 重构数据库管理逻辑,新增旧数据库清理功能,优化数据库初始化流程,更新联系人管理和消息处理逻辑,提升代码可读性和用户体验。 2025-10-24 16:14:13 +08:00
超级老白兔
e1d4f678ab 重构MessageRecord组件,更新样式文件引用,优化消息转发逻辑,新增消息过滤功能以提升用户体验和代码可读性。 2025-10-24 14:44:25 +08:00
超级老白兔
bb6453d3a2 重构加载更多功能,更新样式和逻辑,优化联系人列表组件的加载状态处理,提升用户体验和代码可读性。 2025-10-24 12:01:01 +08:00
超级老白兔
1b02666531 增强SidebarMenu和MessageList组件,新增对currentContact变化的监听,自动切换聊天tab,优化联系人点击处理逻辑,调整置顶标识为数字类型,提升代码可读性和用户体验。 2025-10-24 11:28:01 +08:00
超级老白兔
3b82908e8a 重构SidebarMenu组件,移除不必要的useEffect,优化消息列表和联系人组件的加载逻辑,合并样式文件以提升代码可读性和维护性。 2025-10-23 20:42:29 +08:00
超级老白兔
8941b87e03 优化消息列表组件,更新刷新状态提示样式,提升用户体验和可读性。 2025-10-23 20:18:45 +08:00
超级老白兔
1f081cdddc 重构联系人分组逻辑,新增获取分组统计信息和分页获取联系人功能,优化联系人列表组件以提升用户体验和代码可读性。 2025-10-23 20:15:59 +08:00
超级老白兔
dc58109829 重构联系人管理逻辑,新增联系人状态管理和数据同步功能,优化联系人列表组件以提升用户体验和代码可读性。 2025-10-23 19:56:57 +08:00
超级老白兔
3b36b19d01 更新TypeScript配置和Vite配置,新增模块路径别名支持,同时优化数据库初始化逻辑,提升代码可读性和结构。 2025-10-23 18:56:16 +08:00
超级老白兔
26af225fff 优化消息排序逻辑,更新生成排序键的注释,明确置顶标识、时间戳和显示名称的处理方式,提升代码可读性。 2025-10-23 18:00:07 +08:00
超级老白兔
1c9f986a97 优化消息列表组件,更新已读标记逻辑,确保仅更新未读数量而不影响时间和排序,提升代码可读性。 2025-10-23 17:30:30 +08:00
超级老白兔
7056e00fcc 更新消息列表组件,新增当前客户状态管理,优化消息筛选逻辑以提升用户体验和代码可读性。 2025-10-23 17:21:25 +08:00
超级老白兔
5c86c2fbf2 优化消息排序逻辑,调整置顶和时间戳的处理方式,以确保置顶消息优先显示,提升消息列表的可读性和用户体验。 2025-10-23 17:14:48 +08:00
超级老白兔
7f4bc0487e 新增消息列表API,优化消息列表组件以支持加载状态和数据同步,提升用户体验和代码可读性。 2025-10-23 17:02:33 +08:00