From 5f299f389aeda87d727c4c2e9a23163461f955eb Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 10 Jun 2025 17:17:32 +0200 Subject: [PATCH] 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 --- components/ClientEmailSection.vue | 5 +- components/EOISection.vue | 86 ------------------------------- 2 files changed, 3 insertions(+), 88 deletions(-) diff --git a/components/ClientEmailSection.vue b/components/ClientEmailSection.vue index 6c28485..bd0975a 100644 --- a/components/ClientEmailSection.vue +++ b/components/ClientEmailSection.vue @@ -174,12 +174,13 @@ -
+
Reply to Thread diff --git a/components/EOISection.vue b/components/EOISection.vue index 7c03572..83eca3e 100644 --- a/components/EOISection.vue +++ b/components/EOISection.vue @@ -156,38 +156,6 @@
- - - - - - - - - @@ -296,23 +264,6 @@ - - - - - Automatic Reminders - - - When enabled, automatic reminders will be sent at 9am and 4pm daily to unsigned recipients. - - - - - Got it - - - -
@@ -336,17 +287,6 @@ const isUploading = ref(false); const selectedFile = ref(null); const showDeleteConfirmDialog = ref(false); const isDeleting = ref(false); -const showReminderInfo = ref(false); - -// Reminder settings -const remindersEnabled = ref(true); - -// Initialize reminder state from interest data -watch(() => props.interest, (newInterest) => { - if (newInterest) { - remindersEnabled.value = (newInterest as any)['reminder_enabled'] !== false; - } -}, { immediate: true }); const hasEOI = computed(() => { return !!(props.interest['Signature Link Client'] || @@ -523,32 +463,6 @@ const handleUpload = () => { } }; -const updateReminderSettings = async (value: boolean | null) => { - if (value === null) return; - - try { - await $fetch('/api/update-interest', { - method: 'POST', - headers: { - 'x-tag': '094ut234' - }, - body: { - id: props.interest.Id.toString(), - data: { - 'reminder_enabled': value - } - } - }); - - toast.success(`Automatic reminders ${value ? 'enabled' : 'disabled'}`); - emit('update'); // Refresh parent data - } catch (error) { - console.error('Failed to update reminder settings:', error); - toast.error('Failed to update reminder settings'); - // Revert the switch on error - remindersEnabled.value = !value; - } -}; const closeUploadDialog = () => { showUploadDialog.value = false;