payfrit-works/api/setup
John Mizerek fe383f40d0 Fix wizard flow and add detailed modifier view
Major Changes:
1. Fixed infinite loop in wizard flow - uncertain modifiers step now correctly advances to final review instead of looping back to items
2. Moved uncertain modifier assignment to AFTER items review (makes more sense for user to see items first)
3. Added detailed modifier visualization on uncertain modifiers step showing:
   - Source image indicator (which image the modifier was extracted from)
   - Full list of all options with prices
   - Required/optional status
   - Option count summary

Technical Details:
- Backend: Added sourceImageIndex tracking in analyzeMenuImages.cfm to record which image each modifier came from
- Frontend: Enhanced uncertain modifiers step with inline detailed view showing complete modifier structure
- Flow correction: showUncertainModifiersStep() now calls showFinalStep() instead of showItemsStep() to prevent loop
- Improved error handling in API calls with detailed error messages from Claude API

Flow Changes:
- Old: Upload → Business → Categories → Modifiers → Uncertain Modifiers → Items → [LOOP]
- New: Upload → Business → Categories → Modifiers → Items → Uncertain Modifiers → Final Review

Model Configuration:
- Using claude-sonnet-4-20250514 for menu image analysis
- Added better error reporting to surface API issues (auth, credits, etc.)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-15 16:53:09 -08:00
..
analyzeMenu.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
analyzeMenuImages.cfm Fix wizard flow and add detailed modifier view 2026-01-15 16:53:09 -08:00
bigdeans_import.json Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
downloadImages.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
importBusiness.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
reimportBigDeans.cfm Add local dev support and fix menu builder API 2026-01-04 22:47:12 -08:00
saveWizard.cfm Fix wizard: remove CategoryID column ref, add analysis time message 2026-01-15 15:08:53 -08:00
testUpload.cfm Add addresses debug endpoint 2026-01-14 22:28:16 -08:00