diff --git a/TODO_NEXT_STEPS.txt b/TODO_NEXT_STEPS.txt index ecafb64..26dce5c 100644 --- a/TODO_NEXT_STEPS.txt +++ b/TODO_NEXT_STEPS.txt @@ -4,7 +4,7 @@ ================================================================================ 【已完成】 - - V10.593 重整 PChome 比價覆核工作台 UX:覆核頁不再沿用首頁商品表格,也不再把 `matcher_rescore`、`stored_status`、`rescore_accepted_current`、`HITL`、`COMPLETE` 等內部診斷/狀態碼輸出到前台;改為「商品 / MOMO、PChome 候選、覆核判讀、下一步、紀錄」六欄工作流。同步修正 catalog review status 的前台語義、決策信封中文標籤、局部 1540px 橫向工作台與手機版欄位 label,並補 `test_frontend_v2_assets.py` guard 防止 raw diagnostics 回流。 + - V10.594 重整 PChome 比價覆核工作台 UX:覆核頁不再沿用首頁商品表格,也不再把 `matcher_rescore`、`stored_status`、`rescore_accepted_current`、`HITL`、`COMPLETE` 等內部診斷/狀態碼輸出到前台或 tooltip;改為「商品 / MOMO、PChome 候選、覆核判讀、下一步、紀錄」六欄工作流。同步修正 catalog review status 的前台語義、決策信封中文標籤、局部 1540px 橫向工作台與手機版欄位 label,並補 `test_frontend_v2_assets.py` guard 防止 raw diagnostics 回流。 - V10.584 補 PChome Nick 去重與 stale recovery 單品窄門:`Nick` 先去 HTML / 行銷星號 / 重複品名,避免 `29g`、`100ml` 被同一商品副標重複計數成 `component_count_conflict`;同步新增 NIVEA 妮維雅霜 100ml、Schick 舒綺敏感肌除毛刀片 3 入、TS6 沁涼潔淨慕斯 100g 的具名 exact total-price alignment。IBL 沐浴精+洗髮精 vs 洗髮精仍保留 identity review,唇釉色號/目錄款與 Paula's Choice 效期/金蓋差異仍不自動寫正式價差。 - V10.583 補 Paula's Choice 身體乳 PChome Nick 具名 alignment:`2%水楊酸身體乳210ml二入` 可和 PChome `Nick` 補出的 `水楊酸身體乳雙入組 / 210ml x2` 對齊,進 `exact / total_price / price_alert_exact`;但 `118ml二入組(金蓋限定版)` 對上 PChome 效期品仍保留 `manual_review / identity_review`,不泛用放寬中文入數。 - V10.582 補 PChome 比價通知專業分級與 Nick 副標身份證據:NemoTron 價格決策信封現在保留 `momo_price`、`competitor_price`、`candidate_gap_pct` 與 `sales_7d_delta_pct`,EventRouter / Telegram 模板會把 `match_type / price_basis / alert_tier` 翻成「直接價格威脅、單位價覆核、身份覆核、壓制告警」與操作邊界;PChome crawler 會保留 `Nick` 副標為 `match_name` 給 matcher 使用,UI/DB 顯示仍維持原品名,讓容量、入數、濃度資訊可參與比對。 diff --git a/config.py b/config.py index 796ccb3..b5c9e11 100644 --- a/config.py +++ b/config.py @@ -402,7 +402,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.593" +SYSTEM_VERSION = "V10.594" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/templates/dashboard_v2.html b/templates/dashboard_v2.html index 9f38ad5..5701127 100644 --- a/templates/dashboard_v2.html +++ b/templates/dashboard_v2.html @@ -589,7 +589,7 @@ 需人工 {% endif %} {% if envelope.decision_id %} - 追蹤 + 追蹤 {% endif %} {% endif %} @@ -815,7 +815,7 @@ 需人工 {% endif %} {% if envelope.decision_id %} - 追蹤 + 追蹤 {% endif %} {% endif %} diff --git a/tests/test_frontend_v2_assets.py b/tests/test_frontend_v2_assets.py index 9b62fd8..bd77891 100644 --- a/tests/test_frontend_v2_assets.py +++ b/tests/test_frontend_v2_assets.py @@ -301,6 +301,8 @@ def test_pchome_review_export_and_diagnostics_use_real_queue_data(): assert "stored_status" not in dashboard assert "stored_score" not in dashboard assert "matcher_rescore" not in dashboard + assert 'title="{{ envelope.decision_id }}"' not in dashboard + assert 'title="決策追蹤"' in dashboard assert "優先 {{ envelope.severity" in dashboard assert "證據完整" in dashboard assert "需人工" in dashboard