接入 PChome AI 自動化第一視窗
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-02 13:48:03 +08:00
parent 5a7ff9879a
commit 06754e4a8c
5 changed files with 169 additions and 16 deletions

View File

@@ -338,6 +338,12 @@ def test_dashboard_v2_is_production_default_and_uses_real_dashboard_data():
assert "def _load_competitor_decision_overview(session, latest_items=None)" in route_source
assert "def _load_pchome_growth_command_center(session)" in route_source
assert "build_pchome_growth_opportunities(engine, limit=16)" in route_source
assert "build_pchome_direct_mapping_retry_candidate_exception_controlled_apply_receipt_replay_package(" in route_source
assert "build_pchome_direct_mapping_retry_candidate_exception_controlled_apply_compact_readback_package(" in route_source
assert "build_pchome_direct_mapping_retry_candidate_exception_controlled_apply_artifact_retention_package(" in route_source
assert "'controlled_apply_compact_readback': controlled_apply_compact_readback" in route_source
assert "'artifact_retention_policy': artifact_retention_policy" in route_source
assert "'ai_automation_first_viewport': {" in route_source
assert "pchome_growth_command_center=pchome_growth_command_center" in route_source
assert "fetch_competitor_review_queue" in route_source
assert "fetch_competitor_review_queue_page" in route_source
@@ -397,6 +403,10 @@ def test_dashboard_v2_is_production_default_and_uses_real_dashboard_data():
assert "高業績商品作戰清單" in dashboard
assert "業績 × MOMO 價格 × 下一步" in dashboard
assert "growth.mapping_rate" in dashboard
assert "找同款 · 決策 · 證據 · 落地 · 回讀 · retention" in dashboard
assert "growth.ai_automation_first_viewport" in dashboard
assert "ai_first_viewport.title" in dashboard
assert "ai_first_viewport.metric" in dashboard
assert "growth.top_opportunities" in dashboard
assert "比價監控總覽" in dashboard
assert "決策支援覆蓋率" in dashboard