feat(dashboard): 顯示 50 品 AI 挑品清單
All checks were successful
CD Pipeline / deploy (push) Successful in 3m12s
All checks were successful
CD Pipeline / deploy (push) Successful in 3m12s
This commit is contained in:
@@ -58,6 +58,11 @@ def test_dashboard_v2_is_production_default_and_uses_real_dashboard_data():
|
||||
assert "overview.top_picks" in dashboard
|
||||
assert "overview.top_momo_threats" in dashboard
|
||||
assert "overview.pending_priority" in dashboard
|
||||
assert "filter='ai_picks'" in dashboard
|
||||
assert "AI 挑品清單" in dashboard
|
||||
assert "{{ ai_pick_list_limit }} 品" in dashboard
|
||||
assert "_load_ai_pick_selection(session, PRODUCT_PICK_LIST_LIMIT)" in route_source
|
||||
assert "PRODUCT_PICK_LIST_LIMIT = 50" in route_source
|
||||
assert "ui='v2'" not in dashboard
|
||||
assert 'name="ui" value="v2"' not in dashboard
|
||||
assert "mockProducts" not in dashboard
|
||||
@@ -168,7 +173,9 @@ def test_ai_product_pick_agent_uses_real_competitor_data_and_dashboard_action():
|
||||
assert "generate_product_pick_list(engine" in route_source
|
||||
assert "@ai_bp.route('/api/ai/pchome-match/backfill', methods=['POST'])" in route_source
|
||||
assert "run_unmatched_priority(limit=limit)" in route_source
|
||||
assert "generate_product_pick_list(engine, limit=30)" in route_source
|
||||
assert "generate_product_pick_list(engine, limit=50)" in route_source
|
||||
assert "payload.get('limit', 50)" in route_source
|
||||
assert "JSON.stringify({ limit: 50 })" in template
|
||||
assert "完成後會重算 AI 挑品清單" in route_source
|
||||
assert "match_rate" in route_source
|
||||
assert "product_pick_count" in route_source
|
||||
|
||||
Reference in New Issue
Block a user