mtg_python_deckbuilder/debug_confirmation.py
matt cfcc01db85 feat: complete M3 Web UI Enhancement milestone with include/exclude cards, fuzzy matching, mobile responsive design, and performance optimization
- Include/exclude cards feature complete with 300+ card knowledge base and intelligent fuzzy matching
- Enhanced visual validation with warning icons and performance benchmarks (100% pass rate)
- Mobile responsive design with bottom-floating controls, two-column layout, and horizontal scroll prevention
- Dark theme confirmation modal for fuzzy matches with card preview and alternatives
- Dual architecture support for web UI staging system and CLI direct build paths
- All M3 checklist items completed: fuzzy match modal, enhanced algorithm, summary panel, mobile responsive, Playwright tests
2025-09-09 18:15:30 -07:00

30 lines
773 B
Python

#!/usr/bin/env python3
"""Debug the confirmation_needed response structure"""
import requests
import json
test_data = {
"include_cards": "lightn",
"exclude_cards": "",
"commander": "",
"enforcement_mode": "warn",
"allow_illegal": "false",
"fuzzy_matching": "true"
}
response = requests.post(
"http://localhost:8080/build/validate/include_exclude",
data=test_data,
timeout=10
)
if response.status_code == 200:
data = response.json()
print("Full response:")
print(json.dumps(data, indent=2))
print("\nConfirmation needed items:")
for i, item in enumerate(data.get('confirmation_needed', [])):
print(f"Item {i}: {json.dumps(item, indent=2)}")
else:
print(f"HTTP {response.status_code}: {response.text}")