Files
aiform_dev/frontend
AI Assistant c9a2b95983 feat: Add SMS approval before form submission
Implemented SMS verification modal before saving confirmed form data:
- Added SMS modal component in StepClaimConfirmation.tsx
- Intercept claim_confirmed event and show SMS modal
- Send SMS code automatically when form is confirmed
- Verify SMS code before proceeding to save data
- Phone number extracted from claimPlanData (applicant.phone, user.mobile, or phone)
- Added saveFormData placeholder for future implementation

Features:
- Modal with SMS code input field
- Auto-send SMS code on form confirmation
- Code validation (6 digits, numbers only)
- Resend code functionality
- Cancel option
- Proper error handling

TODO: Implement saveFormData function to save form data to backend/n8n

Files:
- frontend/src/components/form/StepClaimConfirmation.tsx
2025-11-25 11:40:32 +03:00
..