feat(analytics): Enhance AnalystQueryPage with template and cache hit indicators
- Updated `AnalystQueryPage` to display tags for template hits and cache hits, improving user feedback on query performance. - Adjusted SQL result label to streamline information presentation. - Enhanced documentation to reflect the latest testing baseline with 804 passed tests, indicating improved stability and functionality across the application. This update significantly enhances the user experience by providing clearer insights into query processing and results.
This commit is contained in:
+14
-9
@@ -5,18 +5,18 @@
|
||||
|
||||
## 进行中
|
||||
|
||||
**2026-09-10 批次**(`merger` · 基线 **795 pytest**):客服 Wave3 + 数据分析 445cfbb 功能层已落工作区 · **未 commit**
|
||||
**2026-09-10 批次**(`merger` · 基线 **804 pytest** · `npm run build` 绿):客服 Wave3 + analyst D-06/445cfbb + 风控前端三页 + 课程/文档 · **未 commit**
|
||||
|
||||
### 本批次 · 优先收尾(推荐顺序)
|
||||
|
||||
- [ ] **git commit `merger`**:客服 Wave3 + analyst guardrail/dict + 课程 layout 修复 + 文档(你确认后执行)
|
||||
- [x] **风控深潜课改版(方案 1 · 6 模块 · 读者 dev)**:见 `docs/superpowers/specs/2026-09-10-risk-course-design.md` · 模块 1–6 已写 · `build_all.py` 已跑
|
||||
- [ ] **git commit `merger`**:Wave3 + analyst D-06/模板缓存 + 风控前端/灌库/深潜课7 + 问数 UI 标签 + 文档(你确认后执行)
|
||||
- [x] **风控深潜课改版(方案 1 · 7 模块 · 读者 dev)**:模块 1–7 已写(含写侧并发)· `jinrong-module-risk/index.html` 已拼接
|
||||
- [ ] **数据分析 · 20 题 live battery**:`uvicorn` + DeepSeek → `python scripts/dev/run_query_battery.py` → 本地写 `scripts/dev/battery_report.json`(**已拍板:不入库** · 见 `.gitignore`)
|
||||
- [ ] **客服 · 手工验收**:`docs/memory/tests/2026-09-10-customer-1b-r1/MANUAL-CHECKLIST.md`(CUST-9527 持仓/sanitize/R1 种子)
|
||||
- [ ] **客服 · Redis DEL**:灌 R1 种子后 `redis-cli -p 6380 DEL profile:l1:CUST-9527`(6380 未起则先 `start-redis.ps1`)
|
||||
- [ ] **测试包签核**:`TEST-LOG-2026-09-10-CS-001` → 模块负责人 zhangyong 确认
|
||||
- [ ] **接口契约发群稿**:`docs/项目管理/接口契约发群-2026-09-09.md`(复制到群即完成)
|
||||
- [ ] **口径字典种子**:本机执行 `scripts/agent/seed-analyst-metric-dict.sql`(若未灌)
|
||||
- [ ] **口径字典/问数模板种子**:本机执行 `seed-analyst-metric-dict.sql` · **`seed-analyst-query-templates.sql`**(若未灌)
|
||||
|
||||
### 需拍板(定了再开任务)
|
||||
|
||||
@@ -48,9 +48,11 @@
|
||||
|
||||
### 前端 `web/` · P0 收尾
|
||||
|
||||
> 主链路已通;以下为 polish / 文档 / 已知接缝缺口。
|
||||
> **四角色 Demo 主链路已通**(登录 → Dashboard → Chat/问数/风控 REST);以下为 polish / 规格缺口。
|
||||
|
||||
- [x] 四角色 Dashboard · 平台只读 · ChatPanel · 游客试聊 · 行情 · 风控台账页 · 问数工作台(`AnalystQueryPage`)
|
||||
- [x] 四角色 Dashboard · 平台只读 · ChatPanel · 游客试聊 · 行情 · 风控台账+筛选+适当性+AML+模拟交易 · 问数工作台+资产沉淀
|
||||
- [x] **问数结果标签**:`AnalystQueryPage` 展示 `template_hit` / `cache_hit`(2026-09-10)
|
||||
- [ ] **分析对话与问数合一** / **看板钻取** — 规格 D-09/D-12,往后排
|
||||
- [ ] **Vitest 补测**(可选):`useChatPanel` · `api/analyst.ts` mock
|
||||
- [x] **simulate 交易 UI**:风控菜单「模拟交易」+ `RiskSimulatePage` + `api/simulate.ts`(演示说明 · A-3/A-1 预设)
|
||||
- [x] **接口契约发群稿**(见 `docs/项目管理/接口契约发群-2026-09-09.md` · 复制到群即完成)
|
||||
@@ -82,7 +84,7 @@
|
||||
|
||||
### 数据分析 Agent · S3 接缝(2026-09-09 已接线)
|
||||
|
||||
> 清单:`docs/项目框架设计/数据分析Agent-合并说明.md` · **795 passed** · 冒烟 `scripts/dev/smoke_analyst.py`
|
||||
> 清单:`docs/项目框架设计/数据分析Agent-合并说明.md` · **804 passed** · 冒烟 `scripts/dev/smoke_analyst.py`
|
||||
|
||||
- [x] merge + 接缝(`analyst_router` · `analyst_auth_adapter` · 问数走 `get_platform_auth_context`)
|
||||
- [x] customer `self` 域 + 「AI 分析有风险」尾注
|
||||
@@ -93,7 +95,9 @@
|
||||
- [x] **P2 · 口径字典种子 SQL**(`scripts/agent/seed-analyst-metric-dict.sql` · 本机需手工执行)
|
||||
- [x] **customer Chat SSE**(`chat.py` stream → `prepare_customer_stream` · 前端 `mode="stream"`)
|
||||
- [x] **STAFF-30001/30002 追加 risk_demo**(`jwt_service.py` · 模拟交易页可造预警)
|
||||
- [x] **445cfbb 功能层 cherry-pick**(2026-09-10):`guardrail.py` · `dict_service.py` 流水消歧 · wave6 测试 · `run_query_battery.py` · `数据分析Agent-代码迭代.md`
|
||||
- [x] **445cfbb 功能层 cherry-pick**(2026-09-10):`guardrail.py` · `dict_service.py` · wave6 测试 · `run_query_battery.py`
|
||||
- [x] **D-06 双层缓存**(2026-09-10):结果缓存+表世代写侧失效 · 模板填参 · 问数页标签 · 种子 SQL
|
||||
- [ ] **D-09 多轮追问** · **N-03 溯源明细** · **N-07 转人工** — 前后端均未做
|
||||
|
||||
### 数据分析 Agent · 445cfbb 合入后开放项
|
||||
|
||||
@@ -197,6 +201,7 @@
|
||||
- [x] 2026-09-05 `core_ro.py` + `settings.mysql_core_database` + sync 脚本
|
||||
- [x] 2026-09-05 Agent 编排依赖改为 LangGraph(requirements.txt)
|
||||
- [x] 2026-09-05 memory 文件夹更新(新 Agent 交接清单)
|
||||
- [x] 2026-09-10 客服 Wave3 + analyst 445cfbb cherry-pick + 课程 layout 修复(工作区 · **795 pytest** · 未 commit)
|
||||
- [x] 2026-09-10 merger 批次(工作区 · **804 pytest** · 未 commit):Wave3 · analyst D-06 · 风控前端/灌库/深潜课7 · 问数 template 标签
|
||||
- [x] 2026-09-10 客服 Wave3 + analyst 445cfbb cherry-pick + 课程 layout 修复(**795 pytest** · 已并入上项)
|
||||
- [x] 2026-09-09 数据分析 Agent S3 合并接线 + 问数页 + 迁移/冒烟(`773 passed` · commit `af9fb71`)
|
||||
- [x] 2026-09-09 数据分析 Agent 需求规格定稿 v1.1(`docs/需求拆解/01-数据分析Agent需求规格.md`)
|
||||
|
||||
Reference in New Issue
Block a user