Commit Graph
46 Commits
Author SHA1 Message Date
QihuAI Design 2969544d54 feat(observability): Phase2.3 媒体/LLM 可观测面板(后端归因聚合+前端页) 并修复 token_usage_logs trace_id 写入(chat_service/im_llm) [v2026.07.19.5]
CI / gate (push) Has been cancelled
2026-07-19 10:18:14 +08:00
QihuAI Design f8d1c18927 fix(admin): 后台未登录访问 Skills/MCP/Agent 报 Not authenticated\n\n- AdminLayout 增加登录+管理员守卫,无 token 或非 admin 跳 /login\n- api request() 处理 403 Not authenticated/需要管理员权限,清 token 跳登录\n- 根因:FastAPI HTTPBearer 无 token 返回 403 而非 401,前端未处理 403 跳转 2026-07-17 20:46:05 +08:00
QihuAI Design e95fec0c1b ui(admin): 修复后台侧边栏 logo 区域未垂直居中
.admin-sidebar-header 原 align-items: baseline + height: var(--header-height) + padding: 0
导致 logo 紧贴顶部边线。

修复:
- align-items: baseline → center
- padding: 0 var(--space-lg) → var(--space-md) var(--space-lg)
- height → min-height
- justify-content: center (水平居中)
- logo/subtitle 加 line-height: 1 + display: flex align-items: center
2026-07-16 16:30:57 +08:00
QihuAI Design b7f76c3e92 refactor(admin): 将「数据分析」从数据驾驶舱移至待处理板块 2026-07-14 21:21:35 +08:00
QihuAI Design d179cc2f02 Round6: 前台图片缩略图+下载/视频修复; 后台连接测试单次+自动消失; 导航重组; 存储中文化; 自动化去掉创建按钮; 短信验证码(注册/重置/充值通知) 2026-07-14 18:49:27 +08:00
QihuAI Design 202a181ebe 同步页面正文标题改名:付费中心→会员订阅、微信机器人→微信Bot、会员订阅→会员管理、应用市场审核→AI技能审核、技能管理→Skills技能管理、MCP服务→MCP Client管理、支付渠道配置→支付渠道、广告位管理→广告管理 2026-07-14 12:11:50 +08:00
QihuAI Design 6525b4d994 feat: 补齐缺失页 Phase1 - 多平台IM Bot(企业微信/飞书/QQ/悟空IM)+应用服务页+路由导航 2026-07-14 11:38:08 +08:00
QihuAI Design fa01b5df5b refactor: 按新规格重组前后台菜单导航(前台分组+改名、后台5板块+待处理) 2026-07-14 11:02:21 +08:00
QihuAI Design ab54d7344c refactor: 移除通用频道管理(LangBot)模块,IM Bot 改为直接对接;迁移 _call_real_llm 至 im_llm 2026-07-14 08:21:56 +08:00
qyyfw 2847289921 fix(front): restore grouped sidebar with IM Bot section (channels + wechat-bot); normalize brand color #5B5FED 2026-07-13 23:35:11 +08:00
QihuAI Design 9c684076f3 feat(front): unify all front user pages to DESIGN.md brand #5B5FED; fix decimal-rgba off-brand purples missed by hex normalization (MarketPage focus shadow, LoginPage radial glow) 2026-07-13 23:07:26 +08:00
QihuAI Design a48873d7ce fix: 后台「访问前台」改为进入用户工作界面 /chat(而非营销落地页) 2026-07-13 21:43:56 +08:00
QihuAI Design 5a6a7a5fb7 fix: 后台「访问前台」打开独立公开路由 /home,绕过管理员登录重定向 2026-07-13 21:15:48 +08:00
QihuAI Design 5617d4304b fix(admin): 后台侧栏按DESIGN.md翻浅色主题+品牌色#5B5FED;修正CSS类名错配(.sidebar-nav/.nav-item)使全部功能板块可见;默认展开所有分组 2026-07-13 20:50:47 +08:00
QihuAI Design e38e18fbe7 feat(admin): 短信配置独立页+短信宝支持;后台顶部面包屑导航优化 2026-07-13 19:24:13 +08:00
QihuAI Design d404aa4e29 feat(frontend): HashRouter->BrowserRouter 干净URL可独立索引 + 静态预渲染(SSR注入#root/robots/sitemap) + logo回顶 2026-07-13 15:01:53 +08:00
qyyfw 5d7f32db0a refactor: sync running-container source back to repo for reproducible docker compose build; remove dead code (orphan pipeline.py + 104 stale files from iterative dev) and drop unused app/ mirror dir 2026-07-11 06:29:32 +08:00
qyyfw 7b7871a14d feat(im): mirror WeChat bot chats into AI chat as WeXin Bot conversation; add conversations.source; migrate history; remove redundant history page 2026-07-10 10:09:49 +08:00
WorkBuddy 62f3986e04 feat: 个人微信-对话历史持久化+平台内查阅页; 修复第二轮不回复(过滤/字段/重试); 多轮上下文 2026-07-10 07:01:39 +08:00
WorkBuddy 2eadd83304 feat: 前台侧边栏改为分组导航,微信机器人归入 IM Bot 分组 2026-07-09 21:53:23 +08:00
WorkBuddy 75a708a14d feat: 个人微信改为前台每用户独立绑定(按 user_id 隔离),后台仅保留全局 Bot 2026-07-09 20:53:25 +08:00
qyyfw f0c5606ad9 fix: 访问前台跳转+暗色背景+英文+白字修复 2026-07-08 13:33:49 +08:00
qyyfw 4d9691187a fix: scrolling, responsive grid, analytics light theme, dashboard 2x3, sidebar spacing, skills top5 2026-07-08 09:10:43 +08:00
qyyfw a6522d5069 fix: light theme cards, sidebar collapse, frontend link, dashboard grid 2026-07-07 23:03:06 +08:00
qyyfw e38a32e04e feat: light theme, frontend link, nav fix, rename to 七虎AI 2026-07-07 22:33:08 +08:00
qyyfw effef176e2 feat: add 9 missing admin routes and nav groups restructure 2026-07-07 22:01:36 +08:00
qyyfw 84c3d25c54 fix: garbled text, nav grouping, CSS improvements, dashboard demo data 2026-07-07 21:48:31 +08:00
qyyfw aec63eaf56 Feature: Multi-tenant + Billing + Analytics - 3 new modules with 40+ API endpoints 2026-07-07 18:53:40 +08:00
qyyfw 0886c26157 Phase4剩余: 推广+成就系统前后端完成 (promotion + achievement)
- 新增: Achievement.tsx 成就系统前端页面 (644行)
- 新增: achievement_admin.py 成就系统后端API (9个端点)
- 新增: migration SQL (achievements, user_achievements, achievement_progress_log)
- 更新: api/index.ts 添加推广+成就API方法 (23个方法)
- 更新: App.tsx 添加 /admin/promotion 和 /admin/achievement 路由
- 更新: AdminLayout.tsx 添加成就系统导航项和图标
- 修复: Promotion.tsx 导入路径 (@/utils/api → @/api)
- 前端构建: 472 modules, 11.23s, 成功
- API测试: 全部6个端点返回 code=0
2026-07-07 14:51:42 +08:00
qyyfw 7daeae6fc7 Phase 4: IM Bot Integration - admin module, frontend, LangBot gateway, routing rules, quick setup wizard 2026-07-06 19:59:05 +08:00
qyyfw 891d1ce527 Phase G5: Local Agent / Privacy Mode — 4 tables, 19 API endpoints, platform_bridge MCP, PrivacySettings.tsx (740 lines). 25/25 tests pass. 2026-07-06 17:18:05 +08:00
qyyfw 0486210133 Phase G4: Distribution Builder - SaaS product line mgmt, license keys, config export, frontend UI 2026-07-06 16:36:26 +08:00
qyyfw 9b3e15ace6 Phase G2-1~G2-6: Code Execution Worker - Docker sandbox deployment, backend API (code_exec_admin.py), frontend CodeExecTab, security hardening (read-only FS, non-root, capability dropping, RLIMIT_AS) 2026-07-06 14:10:41 +08:00
qyyfw 49dcea0a11 Phase 3.9: Developer Tools Enhancement - Webhooks, SDK Center, API Docs, Usage Dashboard 2026-07-06 10:43:48 +08:00
qyyfw 065d2f05f6 Phase 3.8: Asset Center Enhancement - fix list endpoint with raw SQL, admin asset management deployed 2026-07-06 10:02:19 +08:00
qyyfw b675e9fd20 Phase 3.6: Agent Visual Orchestration - DAG Workflow Editor (8 node types, drag-drop canvas, execution engine) 2026-07-06 09:27:30 +08:00
qyyfw 5828728f00 Phase C3: Site Settings Refactoring with horizontal sub-tabs and Logo upload
- Replaced vertical card layout with 5 horizontal tabs: 基础设置/Logo设置/邮件配置/短信配置/注册设置
- Added Logo upload tab with drag-drop preview and file upload
- Added Registration Settings tab (allow_register, email/phone verify, default role, welcome message)
- Added logo upload backend endpoint (POST /admin/settings/logo/upload)
- Added modal sub-component CSS classes for dark theme
- Fixed all hardcoded white backgrounds for dark theme
- Added uploadLogo method to adminAPI
2026-07-05 19:28:49 +08:00
qyyfw 6d12ee9ff9 Phase C2: Admin UI Refactoring
- Restructured admin nav to 5 business domain groups (平台驾驶舱/用户体系/AI能力/业务运营/系统设置)
- Added 5 orphan pages to routes: Apps, Automation, Developer, Mcp, Storage
- Unified dark theme CSS with shared admin component styles
- Fixed Dashboard and Models hardcoded light colors for dark theme
2026-07-05 19:02:22 +08:00
qyyfw 6583bd2a62 feat: Phase 3.5 AI App Management - lifecycle, templates, versioning, analytics 2026-07-03 19:41:17 +08:00
qyyfw e7d1c39c18 feat: Phase 3.4 Developer API Management - API Keys, OpenAPI Clients, Call Stats, Slow Logs 2026-07-03 19:04:49 +08:00
qyyfw 5a7c717b25 Phase 3.3: MCP Protocol Support Module 2026-07-03 15:21:34 +08:00
qyyfw aa8d689039 Phase 2026-07-03 15:06:25 +08:00
qyyfw b2ba75a666 Phase 3.1: OSS storage config management (MinIO/AliyunOSS/AWS S3)
Backend:
- Add OSSStorageConfig model (models.py)
- Create storage_admin.py API (9 endpoints): stats, CRUD, toggle, set-default, test connection
- Register route /app/api/admin/storage in main.py
- Create oss_storage_configs table in MySQL

Frontend:
- Add Storage.tsx admin page (713 lines) with stats, table, create/edit modal
- Register /admin/storage route in App.tsx
- Add nav item and icon in AdminLayout.tsx
- Add 9 API methods in api/index.ts
2026-07-03 14:45:10 +08:00
qyyfw 8c2e5763ef Phase 2.4 frontend: Knowledge admin page + API methods + routes + nav 2026-07-02 23:03:53 +08:00
qyyfw a682dc687e Phase 2.3: Agent Management Module
Backend:
- agents_admin.py: 10 REST API endpoints for AI Agent CRUD
  - GET/POST/PUT/DELETE /admin/agents/
  - Stats overview, reviews, available skills/models
  - Agent = MarketApp with type='agent'

Frontend:
- Agents.tsx: Full admin page (780 lines)
  - Stats dashboard, filterable table, create/edit modal
  - Config: system prompt, temperature, model, linked skills
- api/index.ts: 10 new Agent API methods
- App.tsx: /admin/agents route
- AdminLayout.tsx: Agent management nav item
2026-07-02 20:18:10 +08:00
qyyfw 78ff261b5a 初始提交: Qihu-AIFlow v2.0.1 完整项目
- 前端 React+TypeScript (源码+构建产物)
- 后端 Python FastAPI
- 数据库迁移 001-015
- Docker部署配置
- 微信ClawBot API频道绑定
- 项目文档 README.md
2026-07-02 14:40:46 +08:00