Browse Source

chore: auto bump version and changelog [skip ci]

iwt 3 months ago
parent
commit
79dbfd53bb

+ 90 - 0
.superpowers/brainstorm/1930451-1784242411/content/data-sections.html

@@ -0,0 +1,90 @@
+<h2>📊 菌群报告 JSON 数据结构总览</h2>
+<p class="subtitle">从参考 JSON 中提取了以下数据板块</p>
+
+<div class="section">
+  <h3>📋 报告概述(10项评分)</h3>
+  <p>健康总分、菌群健康、慢病控制、营养均衡、肠道预测年龄、肠型、菌群平衡、多样性、有益菌、有害菌、核心菌属</p>
+</div>
+
+<div class="section">
+  <h3>📐 评估板块(7大类)</h3>
+  <ul>
+    <li><strong>疾病风险评估</strong> — 12项(炎症性肠炎、结直肠癌、抑郁症等)</li>
+    <li><strong>主要营养评估</strong> — 5项(碳水/蛋白/脂肪/纤维素/乳制品)</li>
+    <li><strong>氨基酸评估</strong> — 10项(胱氨酸、苯丙氨酸、缬氨酸等)</li>
+    <li><strong>维生素评估</strong> — 9项(A/B1/B2/B5/B6/B12/C/D/叶酸)</li>
+    <li><strong>微量元素评估</strong> — 2项(铁、锌)</li>
+  </ul>
+</div>
+
+<div class="section">
+  <h3>🦠 菌群检出(12个功能分类,共 200+ 菌属条目)</h3>
+  <ul>
+    <li><strong>核心菌属</strong> ~15种(梭菌属、普雷沃氏菌属、拟杆菌属等)</li>
+    <li><strong>益生菌门</strong> — 5个菌门(拟杆菌门、厚壁菌门、变形菌门等)</li>
+    <li><strong>有害菌属</strong> ~5种</li>
+    <li><strong>其它重要菌属</strong></li>
+    <li><strong>病原菌</strong> + 6类疾病相关菌(肥胖/便秘/抑郁/过敏/腹胀/失眠)</li>
+  </ul>
+</div>
+
+<div class="section">
+  <h3>🔬 肠道功能指标(4大类)</h3>
+  <ul>
+    <li><strong>肠道屏障及代谢物</strong> — 炎症、产气、屏障、LPS、胆汁酸等</li>
+    <li><strong>短链脂肪酸</strong> — 丁酸、丙酸、乙酸、异戊酸</li>
+    <li><strong>神经递质及激素</strong> — 血清素、GABA、多巴胺、组胺等</li>
+    <li><strong>抗生素风险评估</strong> — 9类抗生素</li>
+  </ul>
+</div>
+
+<div class="section">
+  <h3>🍽️ 个体化食物推荐表</h3>
+  <p>224种食物,含推荐指数、能量、蛋白、脂肪、碳水、纤维等</p>
+</div>
+
+<hr style="margin: 24px 0;">
+
+<h2>现有的 gut-flora-detail.vue 只展示了:</h2>
+<ul>
+  <li>5个评分圆环(综合评分/肠道健康/营养评分/有益菌/多样性)</li>
+  <li>3组菌群分类(有益菌/有害菌/中性菌)</li>
+  <li>饮食推荐列表</li>
+</ul>
+<p><strong>大量数据未使用</strong> — 疾病风险、营养评估、氨基酸/维生素、代谢物、神经递质、疾病相关菌群等</p>
+
+<hr style="margin: 24px 0;">
+
+<h2>🎯 设计目标?</h2>
+<p class="subtitle">请选择你这次想要的设计范围</p>
+
+<div class="options">
+  <div class="option" data-choice="full" onclick="toggleSelect(this)">
+    <div class="letter">A</div>
+    <div class="content">
+      <h3>全部展示(长页面)</h3>
+      <p>一个完整的长页面展示所有数据板块,用户可查看所有报告维度。带 Tab 导航或区块索引。</p>
+    </div>
+  </div>
+  <div class="option" data-choice="key" onclick="toggleSelect(this)">
+    <div class="letter">B</div>
+    <div class="content">
+      <h3>关键指标聚焦</h3>
+      <p>精选最重要的 5-6 个板块(评分概览、核心菌属、疾病风险、食物推荐、肠道功能),其余折叠或二级导航。</p>
+    </div>
+  </div>
+  <div class="option" data-choice="edit" onclick="toggleSelect(this)">
+    <div class="letter">C</div>
+    <div class="content">
+      <h3>编辑模式优先</h3>
+      <p>页面核心是编辑/修改报告数据(调整菌属值、状态、食物推荐等),查看为辅。</p>
+    </div>
+  </div>
+  <div class="option" data-choice="mixed" onclick="toggleSelect(this)">
+    <div class="letter">D</div>
+    <div class="content">
+      <h3>查看 + 可编辑(混合)</h3>
+      <p>默认查看模式,但可通过编辑按钮进入编辑模式,修改菌群/指标数据后再保存。</p>
+    </div>
+  </div>
+</div>

+ 1 - 0
.superpowers/brainstorm/1930451-1784242411/state/server-info

@@ -0,0 +1 @@
+{"type":"server-started","port":65507,"host":"127.0.0.1","url_host":"localhost","url":"http://localhost:65507","screen_dir":"/sc-data/cfc/.superpowers/brainstorm/1930451-1784242411/content","state_dir":"/sc-data/cfc/.superpowers/brainstorm/1930451-1784242411/state"}

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-7d9a1aea5b80753b53d654806d93c676d59be8b5
+29791d5c9cf23f8438ae1b9154060f0bc9d4dc5b

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.373",
+  "version": "1.0.374",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.373",
+      "version": "1.0.374",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.374",
+  "version": "1.0.375",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 57 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,63 @@
 
 ---
 
+## v1.0.375 (2026-07-16)
+
+### Bug 修复
+- 修复身页面编译错误 - 商品组件导入路径和天盘卡片语法
+- body page radar chart display issue
+- entire chain: dimension data -> score validation -> canvas render -> visual display
+
+### 其他
+-    - 原路径从 components/ 目录向上两级会超出项目根目录
+-    - 正确路径应为 ../utils/api.js (从 components/ 到项目根目录再到 utils/)
+- 2. FamilyTianpanCard.vue: 修复 methods 对象后缺少逗号
+-    - 在 export default 对象中,methods 属性后需要逗号分隔
+-    - 缺少逗号导致 Vue 编译器报 'Unexpected token' 错误
+- 3. body/index.vue: 确保 DimensionProductList 组件正确注册
+- Co-authored-by: openhands <openhands@all-hands.dev>
+- 
+- Revert unnecessary large files, keep only radar chart fix
+- Changes:
+- 1. Add _safeScore utility in RadarChart.vue - normalize null/NaN scores to 0
+- 2. Update _startAnimation, _drawScoreArea, _drawVertices, _drawScoreText to use _safeScore processing
+- 3. Add retry initialization for Canvas render in RadarChart.vue - retry up to 5 times within 60ms intervals
+- 4. Modify body/index.vue template - replace inline :dimensions/:scores with computed radarDimensions/radarScores (respecting AGENTS.md non-method-call constraint)
+- 5. Handle null scores in computed radarScores - reject null/NaN to 0, maintaining functional correctness
+- Verification:
+- - LSP diagnostics check completed
+- - Resolver scripts completion
+- Co-authored-by: openhands <openhands@all-hands.dev>
+- 
+- - 基于主导五行智能生成个性化行为建议
+- - 优化布局:区分颜色、对齐与留白
+- - 响应式设计:适应不同屏幕尺寸
+- - 文案结构化:不同五行对应不同宜忌行为模式
+- 
+- - 提供周趋势图、月度日历、历史周报三种视图模式
+- - 实现 Canvas 五行罗盘和运势趋势线图绘制
+- - 集成菜单切换功能
+- - 支持 PDF 周报导出功能占位
+- - 优化 UI 交互:响应式布局、动画过渡、色彩搭配
+- 
+- - 增强 FortuneService 实现基于干支五行的吉位算法
+- - 更新 MindFortuneController 返回完整数据格式
+- - 添加专业五行生克关系判断逻辑
+- - 提供更丰富的运势描述和心情表达
+- - 计算复杂:基于家庭五行+日期干支确定最吉方位
+- 
+- - 添加 getFamilyFortune API 函数到 utils/api.js
+- - 优先使用后端返回的数据,兼容模式使用前端算法
+- - 调整 FamilyTianpanCard 组件的数据绑定逻辑
+- 
+
+### 新功能
+- 为天盘卡片添加今日宜忌提示
+- 实现天盘详情页展示周/月趋势
+- 实现五行吉位算法
+- 对接后端接口为家庭天盘提供动态数据
+
+
 ## v1.0.374 (2026-07-16)
 
 ### 新功能

+ 58 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 
-> 当前版本: v1.0.374
+> 当前版本: v1.0.375
 
 ## 历史版本
 
@@ -8,6 +8,63 @@
 
 ---
 
+## v1.0.375 (2026-07-16)
+
+### Bug 修复
+- 修复身页面编译错误 - 商品组件导入路径和天盘卡片语法
+- body page radar chart display issue
+- entire chain: dimension data -> score validation -> canvas render -> visual display
+
+### 其他
+-    - 原路径从 components/ 目录向上两级会超出项目根目录
+-    - 正确路径应为 ../utils/api.js (从 components/ 到项目根目录再到 utils/)
+- 2. FamilyTianpanCard.vue: 修复 methods 对象后缺少逗号
+-    - 在 export default 对象中,methods 属性后需要逗号分隔
+-    - 缺少逗号导致 Vue 编译器报 'Unexpected token' 错误
+- 3. body/index.vue: 确保 DimensionProductList 组件正确注册
+- Co-authored-by: openhands <openhands@all-hands.dev>
+- 
+- Revert unnecessary large files, keep only radar chart fix
+- Changes:
+- 1. Add _safeScore utility in RadarChart.vue - normalize null/NaN scores to 0
+- 2. Update _startAnimation, _drawScoreArea, _drawVertices, _drawScoreText to use _safeScore processing
+- 3. Add retry initialization for Canvas render in RadarChart.vue - retry up to 5 times within 60ms intervals
+- 4. Modify body/index.vue template - replace inline :dimensions/:scores with computed radarDimensions/radarScores (respecting AGENTS.md non-method-call constraint)
+- 5. Handle null scores in computed radarScores - reject null/NaN to 0, maintaining functional correctness
+- Verification:
+- - LSP diagnostics check completed
+- - Resolver scripts completion
+- Co-authored-by: openhands <openhands@all-hands.dev>
+- 
+- - 基于主导五行智能生成个性化行为建议
+- - 优化布局:区分颜色、对齐与留白
+- - 响应式设计:适应不同屏幕尺寸
+- - 文案结构化:不同五行对应不同宜忌行为模式
+- 
+- - 提供周趋势图、月度日历、历史周报三种视图模式
+- - 实现 Canvas 五行罗盘和运势趋势线图绘制
+- - 集成菜单切换功能
+- - 支持 PDF 周报导出功能占位
+- - 优化 UI 交互:响应式布局、动画过渡、色彩搭配
+- 
+- - 增强 FortuneService 实现基于干支五行的吉位算法
+- - 更新 MindFortuneController 返回完整数据格式
+- - 添加专业五行生克关系判断逻辑
+- - 提供更丰富的运势描述和心情表达
+- - 计算复杂:基于家庭五行+日期干支确定最吉方位
+- 
+- - 添加 getFamilyFortune API 函数到 utils/api.js
+- - 优先使用后端返回的数据,兼容模式使用前端算法
+- - 调整 FamilyTianpanCard 组件的数据绑定逻辑
+- 
+
+### 新功能
+- 为天盘卡片添加今日宜忌提示
+- 实现天盘详情页展示周/月趋势
+- 实现五行吉位算法
+- 对接后端接口为家庭天盘提供动态数据
+
+
 ## v1.0.374 (2026-07-16)
 
 ### 新功能