payfrit-works/portal
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
..
index.html Add menu setup wizard with Claude Vision integration 2026-01-14 16:02:21 -08:00
login.html Fix wizard flow and add detailed modifier view 2026-01-15 16:53:09 -08:00
menu-builder.html Fix modifier move: use Shift key and dataTransfer data instead of effectAllowed 2026-01-14 12:57:34 -08:00
portal.css Show EmployeeStatusID status instead of IsActive flag 2026-01-11 18:01:30 -08:00
portal.js Show EmployeeStatusID status instead of IsActive flag 2026-01-11 18:01:30 -08:00
setup-wizard.html Fix wizard flow and add detailed modifier view 2026-01-15 16:53:09 -08:00
station-assignment.html Add drink modifiers, unified schema improvements, and portal fixes 2026-01-07 20:30:58 -08:00