Skip to content

卡路里场景 03 体重:页面交付 · 看体重明细/看体重曲线/看体重备注(18 词) #299

Closed

Description

@FeatherHunter

Part of #154
Blocked by: 页面装配按子功能拆开(原生边为准)

Destination

看体重明细 7 词 + 看体重曲线 10 词 + 看体重备注 1 词(共 18 条)的页面按老实物补齐到能验收:明细与曲线两段、三种标注、备注筛选。
达成即完成:① 18 条词各自的页面出得来且字段齐;② 由用户肉眼验收通过。

Question

要做的事

  1. 对齐老实物 weight_history.html(D:\2Study\StudyNotes\SKILLS\卡路里\templates\):4 个 KPI(首末/均值/极值/条数)+ 曲线段 + 明细分段 + 模式徽章。
  2. 三种标注(对应 3 条现在没有命令的词):
    • 带目标 → 目标线;
    • 带里程碑 → 里程碑点(反查零件 weightCompare2.ts:132);
    • 带异常点 → 异常点标注(零件 insightPlate.ts:86 buildAnomalyView)。
  3. 备注筛选(对应「看「有备注」的体重记录」):备注列 + 备注标签分布(records.ts 的 noteTag)。
  4. 窗口口径:本周/上周/本月/上月/最近 7・90 天/自定义(--days/自然周/自然月与老脚本同义)。
  5. 空窗/单点:照既有缺失阻断口径(空窗不落盘、missing-data),不编默认值。
  6. 证据:既有断言全绿 + 本页结构化断言(关键字段与槽位)+ 三张形态各一张实拍产物。

关键事实

  • 老实物与老脚本参数面:docs/skills/skill-calorie/t165-老页面实物结构.md(render_weight_history.py --mode trend --show-target/--show-milestones/--show-anomalies/--note-only)。
  • 本页今天的产出:完整文档(走 shared/docPage.ts 的 assembleDocPage)。
  • 相应唤醒词数据:src/triggers/scene-03-weight.ts 第 15–31、37 行。

完成判据(别加码)

① 全量测试 exit 0;② 结构化断言(字段/槽位/三形态);③ 用户肉眼验收(判定三档第③档);④ commit + push;⑤ 交付对账偏差为零。

Activity

  1. FeatherHunter commented on Sep 13, 2026

    @FeatherHunter
    OwnerAuthor

    先关闭(2026-09-13):按 #297 的裁定,#293 收口后本图的票集要按重构后的文档重写(命令事实住能力目录、汇总位全为生成物、两道机器门)。本票内容作为重切素材保留,不作废。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions