fix(web): 修复概览/表注释展示为空问题,重整空字段与冗余字段 tab
后端
- models.py: OverviewStats 补充 mid_empty_fields / standards_applied 字段,
避免被 routes.py 的字段过滤机制误删
- orchestrator.py: _build_overview 修正 nested overview_meta 取值(三层嵌套,
之前一直兜底到 0 → 表/字段总数显示 0)
- step4_empty_fields.py: 修复 table_comment 始终为空(之前从列级 row 取
table_comment,应从 table_summary 取),新增 per_table.total_fields 与
field_record 用同一份 table_comment_map
前端 (index.html / style.css)
- 隐藏历史记录入口(保留后端接口,便于以后恢复)
- 移除「中空字段」KPI 卡片(位于中间不符合浏览习惯)
- 大范围空字段 tab:
* 字段明细(平铺:等级/表名/表注释/字段名/字段注释/类型/空值数/空值率)
上移到主视图位置
* 按表统计下移为辅助视图,表名+表注释合并到一列避免错位
- 冗余字段 tab:把 prop 改成与后端实际数据一致的
field/table_count/classification/reasoning/recommendation/source,并
给 llm_failed / true_redundancy / suspicious / common_business /
common_base 各加色 tag 显著标识
- 修复"\"LLM 失败\""导致的 template compile 错误引发的白屏
(HTML 属性里 \ 不会被当 JS 转义,把 " 换成「 」即可)
- .app-main 宽度 1400 → 1800px,table 更舒展
Showing
This diff is collapsed.
Please register or sign in to comment