port-nimara-client-portal/server/api/eoi
Matt 41a6f7f1c8 feat: Implement EOI document validation and orphaned data cleanup
- Add new /api/eoi/validate-document endpoint to check document existence
- Automatically clean up orphaned database records when documents don't exist in Documenso
- Update EOISection component to validate documents on mount
- Enhanced delete-generated-document endpoint to handle already-deleted documents
- Updated check-signature-status endpoint with validation logic
- Prevents EOI section from showing when document no longer exists
- Self-healing system that fixes data inconsistencies automatically

Key improvements:
- Validates document existence before showing EOI management UI
- Cleans up documensoID, signature links, and status fields when document is missing
- Graceful handling of 404 errors from Documenso API
- Background validation with user-friendly notifications
- Prevents phantom EOI states that appear generated but don't exist
2025-06-12 17:04:45 +02:00
..
check-signature-status.ts feat: Implement EOI document validation and orphaned data cleanup 2025-06-12 17:04:45 +02:00
delete-document.ts updates 2025-06-11 14:08:28 +02:00
delete-generated-document.ts feat: Implement EOI document validation and orphaned data cleanup 2025-06-12 17:04:45 +02:00
send-reminders.ts Add EOI automation system with email processing and document management 2025-06-10 13:59:09 +02:00
upload-document.ts updates 2025-06-10 16:48:40 +02:00
validate-document.ts feat: Implement EOI document validation and orphaned data cleanup 2025-06-12 17:04:45 +02:00