Commit Graph

34 Commits

Author SHA1 Message Date
Matt e57756e433 Add phone number formatting and improve UI components
- Integrate libphonenumber-js for proper phone number formatting
- Display phone numbers in national format in PhoneInput component
- Strip non-numeric characters from phone input automatically
- Fix refresh button icon rendering in EmailThreadView
- Improve EOI button layout alignment and centering
2025-06-12 22:35:17 +02:00
Matt da2d965da8 fixes 2025-06-12 17:52:57 +02:00
Matt 14f725efc5 fix: Enhanced EOI button spacing and comprehensive system improvements
UI/UX Enhancements:
- Improved spacing between Generate EOI and Upload EOI Document buttons
- Mobile: gap-3 (12px), Desktop: gap-4 (16px) for better visual separation
- Enhanced mobile table layout with stacked status badges
- Fixed email thread width issues on mobile devices

 Database Integrity Fixes:
- Fixed missing embedded signature link cleanup in deletion endpoints
- Enhanced validation system to automatically detect and clean orphaned records
- All EOI deletion operations now properly clear:
  * EmbeddedSignatureLinkClient, EmbeddedSignatureLinkCC, EmbeddedSignatureLinkDeveloper
  * Legacy signature links and documensoID references
  * Sales Process Level and EOI Status resets

 Real-time Reactivity Improvements:
- EOI section now immediately updates UI after document deletion/validation
- Added local reactive state for instant visual feedback
- Eliminated phantom signatory status displays
- Enhanced hasGeneratedEOI computed property with validation override

 Mobile Responsiveness:
- Implemented stacked badge layout for interest table
- Contact info + status badges in 60% width column
- Proper email thread text wrapping and width constraints
- Optimized button layouts and touch targets

 Technical Robustness:
- Comprehensive field cleanup using undefined for proper database resets
- Enhanced error handling and logging throughout EOI workflows
- Better handling of edge cases and external document deletions
- Improved validation and cleanup automation

All EOI operations now maintain complete database consistency while providing immediate, accurate visual feedback to users across all devices.
2025-06-12 17:29:05 +02:00
Matt 24dcee57d9 fix: Enhanced EOI section reactivity for immediate UI updates after deletion
EOI State Management Improvements:
- Added local reactive state (documentValidated, documentExists) to handle immediate UI updates
- Enhanced hasGeneratedEOI computed property to use local state when validation completes
- Fixed issue where EOI signatory status would persist after document deletion

 Real-time UI Responsiveness:
- Component now immediately switches to Generate EOI UI when validation detects cleanup
- No longer requires manual page refresh to see correct state
- Proper state synchronization between validation results and UI display

 Validation Logic Enhancement:
- validateDocument function now sets local reactive state immediately upon cleanup detection
- Added comprehensive logging for debugging EOI state transitions
- Handles edge cases where documensoID exists but document was deleted externally

 User Experience Improvements:
- Automatic UI state transitions without user intervention
- Clear visual feedback when orphaned data is cleaned up
- Prevents phantom EOI states from confusing users

The EOI section now correctly and immediately shows the generate UI when no valid document exists, eliminating the confusion from phantom signatory status displays.
2025-06-12 17:18:53 +02:00
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
Matt e02d3ab70f Fix: Resolve EOISection.vue build error
- Fixed incomplete Vue component with missing end tag
- Added missing functions: handleUpload, closeUploadDialog, deleteUploadedEOI, deleteGeneratedEOI
- Resolved all TypeScript compilation errors
- Enables successful Docker build
2025-06-12 15:59:17 +02:00
Matt 66729dfad6 Merge branch 'main' of https://code.portnimara.com/ron/client-portal 2025-06-12 15:53:23 +02:00
Matt 64c35b70f8 Improve email session management and add IMAP connection pooling
- Switch from localStorage to sessionStorage for email sessions
- Add session validation on component mount
- Implement IMAP connection pool with folder search capabilities
- Add operation locking utility for concurrent request handling
- Refactor EOI section component structure
- Update API endpoints for better email thread management
2025-06-12 15:53:12 +02:00
Matt 219522e1b5 fixes for endpoints 2025-06-11 20:50:51 +02:00
Matt bc591f687f fixes 2025-06-11 16:05:19 +02:00
Matt fa76fb1502 fixes 2025-06-11 14:36:33 +02:00
Matt ab85dc5d55 updates 2025-06-11 14:28:03 +02:00
Matt f992fbb5a6 updates 2025-06-11 14:08:28 +02:00
Matt fca6321dcf Merge branch 'main' of https://code.portnimara.com/ron/client-portal 2025-06-11 13:53:10 +02:00
Matt a49322f852 updates 2025-06-11 13:50:51 +02:00
Matt 09c32ae6cb updates 2025-06-10 20:56:56 +02:00
Matt cf4af2cbff updates 2025-06-10 20:45:47 +02:00
Matt 534bbebd0f updates 2025-06-10 18:18:35 +02:00
Matt 28d69cd000 updates 2025-06-10 17:56:26 +02:00
Matt a78f2ac362 Fix UI/UX issues across email and interest components
- Added email attachment viewing and downloading functionality
- Removed 'Insert EOI link' button when EOI is already signed
- Changed refresh button color to black for better visibility
- Fixed Generate EOI button spacing with consistent margins
- Changed 'Interest Details' title to display client's full name
- Fixed mobile table scrolling cutoff in interest list by removing negative margins
- Improved email section mobile layout:
  - Fixed button sizes and display for mobile screens
  - Fixed thread section width to prevent horizontal scrolling
  - Added proper padding and overflow handling for expansion panels
  - Improved timeline and card responsiveness
2025-06-10 17:37:53 +02:00
Matt 5f299f389a Fix email system issues and remove unsupported reminder feature
- Removed EOI reminder settings as the field is not supported in database schema
- Fixed reply to thread button visibility with better styling (flat variant, larger size)
- Optimized email loading by reducing fetch limit from 200 to 50
- Fixed thread view visual issues with accordion variant and zero elevation
- Added explicit save button for email signatures
- Fixed reminder-related TypeScript errors by removing unused code
- Improved thread reply button positioning with proper margins
2025-06-10 17:17:32 +02:00
Matt 839b307edd updates 2025-06-10 16:48:40 +02:00
Matt 49aa47ab10 mobile optimization 2025-06-10 16:01:21 +02:00
Matt 1030103b7a updates 2025-06-10 15:52:30 +02:00
Matt be443ae71b updates 2025-06-10 15:42:00 +02:00
Matt 8c0d8cae69 updates 2025-06-10 14:52:39 +02:00
Matt bb1a237961 updates 2025-06-10 14:32:20 +02:00
Matt 218705da52 Add EOI automation system with email processing and document management
- Implement automated EOI processing from sales emails
- Add EOI document upload and management capabilities
- Enhance email thread handling with better parsing and grouping
- Add retry logic and error handling for file operations
- Introduce Documeso integration for document processing
- Create server tasks and plugins infrastructure
- Update email composer with improved attachment handling
2025-06-10 13:59:09 +02:00
Matt 5c30411c2b updates 2025-06-10 12:54:22 +02:00
Matt b332f913a6 Add file attachment support to email composer
- Add file browser integration for selecting attachments
- Display attached files with remove functionality in composer
- Include attachments in email sending process
- Show attachment info in email thread display
- Update server endpoints to handle file attachments
- Minor UI improvements to EOI status badge layout
2025-06-10 02:39:00 +02:00
Matt b4fe29413b updates 2025-06-10 01:19:14 +02:00
Matt 58b2504e14 updates 2025-06-10 00:53:49 +02:00
Matt 5b6f6d7071 updates 2025-06-10 00:42:14 +02:00
Matt d9fb94a76c Refactor EOI management into dedicated component
Extract EOI links and generation functionality from InterestDetailsModal
into a new reusable EOISection component. This improves code organization
and maintainability while adding debounce support for form submissions.

- Create new EOISection.vue component for EOI management
- Remove inline EOI links section from InterestDetailsModal
- Add debounce utility for form submission handling
- Update email generation and thread fetching logic
- Update related types and utilities
2025-06-10 00:37:43 +02:00