 hughhuangandClaude Sonnet 4.5
|
311f09fb0c
|
重构前端 UI 并修复关键问题
## 主要变更
### UI 重构(基于 Gemini)
- 引入 Tailwind CSS 设计系统,替换原有样式
- 重构所有主要页面组件(Dashboard、AgentChat、Sources 等)
- 新增 CommandPalette 和 ToolCallDisplay 组件
- 优化布局和交互体验
### 关键问题修复
1. 修复 AI 对话页面 TypeError 错误
- 问题:后端 conversations API 返回格式不标准,导致前端访问 res.data 为 undefined
- 修复:agent.ts 中使用 `res.data ?? res as any ?? []` 兼容两种响应格式
2. 修复 Tailwind CSS 样式未加载
- 问题:main.ts 中缺少 style.css 导入
- 修复:添加 `import './style.css'`
3. 安装缺失依赖
- 新增 @vueuse/core(MessageItem.vue 使用 useClipboard)
- 新增 Tailwind CSS 相关依赖
### 新增配置
- postcss.config.js - PostCSS 配置
- tailwind.config.js - Tailwind 主题配置
- user.ts store - 用户状态管理
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-06 15:57:21 +08:00 |
|
 hughhuang(黄健铭)andClaude Sonnet 4.5
|
477b952223
|
更新任务文档:标记 Task 15 已完成
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-06 10:01:32 +08:00 |
|
 hughhuang(黄健铭)andClaude Sonnet 4.5
|
e6a434e516
|
实现 AI Agent 对话功能(Task 15)
后端实现:
- 集成 Vercel AI SDK 实现流式对话
- 实现工具系统(文章搜索、报告分析、网络搜索)
- 实现上下文加载和提示词构建
- 实现对话管理和消息存储
- 添加 Agent API 路由(流式对话、历史记录)
前端实现:
- 实现聊天界面(配置选择、消息展示、历史记录)
- 支持 Markdown 渲染和代码高亮
- 实现流式响应解析和展示
- 优化布局(单侧边栏 + 可折叠历史面板)
- 修复 API 路径和 CORS 问题
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-06 09:58:47 +08:00 |
|
 hughhuangandClaude Opus 4.5
|
cb54568b22
|
更新任务文档:标记 Task 10-14 已完成
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-05 15:53:54 +08:00 |
|
 hughhuangandClaude Opus 4.5
|
6df528f187
|
更新任务进度:后端任务 01-09 全部完成
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-04 21:42:53 +08:00 |
|
 hughhuangandClaude Opus 4.5
|
bb9d691f7a
|
修复代码质量问题并更新任务进度
修复内容:
- API 采集器添加 30 秒超时控制 (AbortController)
- 采集服务优化批量插入,修复 URL 为空时的去重逻辑
- 整理类型定义,将 ProcessedContent 移至 types/index.ts
- 添加 ReportStatus 和 ReportGenerationOptions 类型
更新任务进度:
- 任务 01-05 标记为已完成
- 任务 06-09 待开发
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-04 21:23:53 +08:00 |
|
 hughhuangandClaude Opus 4.5
|
773fa369cd
|
更新任务清单,反映实际完成状态
- 任务 01-02:已完成
- 任务 03:基础模块已创建,待完善
- 任务 04-09:待开发
- 任务 10:前端基础结构已创建
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-03 23:43:29 +08:00 |
|
 hughhuangandClaude Sonnet 4.5
|
830a17bf46
|
初始化项目结构和基础模块
完成内容:
- 创建前后端项目目录结构
- 初始化 Node.js + TypeScript 后端项目 (Fastify)
- 初始化 Vue 3 + TypeScript 前端项目 (Vite)
- 配置 Prisma ORM 和 MySQL 数据库
- 创建数据库 Schema 和种子数据
- 实现后端基础模块 (配置、日志、错误处理、验证)
- 创建基础服务类 (BaseService)
- 配置 Git 仓库和忽略文件
技术栈:
- 后端:Fastify + Prisma + MySQL + Winston
- 前端:Vue 3 + TypeScript + Element Plus + Pinia
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-03 12:11:57 +08:00 |
|