V10.593 重整比價覆核工作台 UX
All checks were successful
CD Pipeline / deploy (push) Successful in 1m7s

This commit is contained in:
OoO
2026-06-05 14:21:54 +08:00
parent 93065a58e4
commit c764abc7fc
7 changed files with 428 additions and 49 deletions

View File

@@ -228,7 +228,7 @@ def test_dashboard_v2_is_production_default_and_uses_real_dashboard_data():
assert "人工閉環" in route_source
assert "AI 挑品清單" in dashboard
assert "比價覆核隊列" in dashboard
assert "覆核動作" in dashboard
assert "下一步" in dashboard
assert "dashboard-ai-summary-grid" in dashboard
assert "AI 建議" in dashboard
assert "/api/export/excel/ai-picks" in dashboard
@@ -265,6 +265,7 @@ def test_pchome_review_export_and_diagnostics_use_real_queue_data():
repository_source = (ROOT / "services/competitor_intel_repository.py").read_text(encoding="utf-8")
dashboard = (ROOT / "templates/dashboard_v2.html").read_text(encoding="utf-8")
dashboard_css = (ROOT / "web/static/css/page-dashboard-v2.css").read_text(encoding="utf-8")
page_guard_css = (ROOT / "web/static/css/ewoooc-v3-page-guard.css").read_text(encoding="utf-8")
assert "@export_bp.route('/api/export/excel/pchome-review')" in export_source
assert "fetch_competitor_review_queue_page" in export_source
@@ -284,13 +285,40 @@ def test_pchome_review_export_and_diagnostics_use_real_queue_data():
assert "多款任選待確認" in repository_source
assert "妝效質地不同" in route_source
assert "_extract_match_diagnostic_reasons" in route_source
assert "'detail': attempt.get('error_message')" not in route_source
assert "需檢查 matcher diagnostics" not in route_source
assert "匯出覆核" in dashboard
assert "商品 / MOMO" in dashboard
assert "PChome 候選" in dashboard
assert "覆核判讀" in dashboard
assert "dashboard-review-workbench-row" in dashboard
assert "dashboard-review-candidate-title" in dashboard
assert "dashboard-review-next-step" in dashboard
assert "is-review-wrap" in dashboard
assert "6 if current_filter == 'pchome_review'" in dashboard
assert "review.review_bucket" not in dashboard
assert "HITL" not in dashboard
assert "stored_status" not in dashboard
assert "stored_score" not in dashboard
assert "matcher_rescore" not in dashboard
assert "優先 {{ envelope.severity" in dashboard
assert "證據完整" in dashboard
assert "需人工" in dashboard
assert "review.decision_envelope" in dashboard
assert "dashboard-review-envelope" in dashboard
assert "review.diagnostic_reasons" in dashboard
assert "item.pchome_match_attempt.diagnostic_reasons" in dashboard
assert "dashboard-review-reasons" in dashboard
assert "dashboard-review-actions" in dashboard
assert ".dashboard-review-workbench-row" in dashboard_css
assert ".dashboard-review-candidate-title" in dashboard_css
assert ".dashboard-review-next-step" in dashboard_css
assert ".dashboard-table.is-review" in dashboard_css
assert "min-width: 1540px" in dashboard_css
assert ".dashboard-table-wrap.is-review-wrap" in page_guard_css
assert "width: max(100%, 1540px) !important" in page_guard_css
assert 'content: "商品/MOMO"' in page_guard_css
assert 'content: "PChome候選"' in page_guard_css
assert ".dashboard-review-reasons" in dashboard_css
assert ".dashboard-review-envelope" in dashboard_css
assert ".dashboard-review-actions" in dashboard_css