diff --git a/components/InterestDetailsModal.vue b/components/InterestDetailsModal.vue index 536d05d..2155b74 100644 --- a/components/InterestDetailsModal.vue +++ b/components/InterestDetailsModal.vue @@ -1,362 +1,1279 @@ - - - - - mdi-account-details - Interest Details - {{ interest?.['Full Name'] }} - - - + + + + + mdi-close + + + mdi-account-details + {{ interest?.['Full Name'] || 'Interest Details' }} + + + + + mdi-information-outline + Info to Sales + + + mdi-email-outline + Request Info + + + + mdi-delete + Delete + + debouncedSaveInterest ? debouncedSaveInterest() : saveInterest()" + :loading="isSaving" + :disabled="isSaving || isDeleting" + class="ml-2" + > + mdi-content-save + Save Changes + + + - + + + + + + + + + + - - - - - Status & Timeline + + + - - {{ interest?.['Sales Process Level'] }} - - - - - {{ interest?.['EOI Status'] }} - - - - - EOI Sent: {{ formatDate(interest?.["EOI Time Sent"]) }} - - - - - EOI Created: {{ formatDate(interest?.["EOI Time Created"] || interest?.["Created At"]) }} - - - - - - ✓ Client Signed - - - ✓ CC Signed - - - ✓ Developer Signed - - - Client Pending - - - CC Pending - - - Developer Pending - - - - - - {{ interest?.['Lead Category'] }} + Created: {{ formatDate(interest["Created At"]) }} - - + Request Form Sent: + {{ formatDate(interest["Request Form Sent"]) }} + + + EOI Sent: {{ formatDate(interest["EOI Time Sent"]) }} + + - {{ interest?.['Interest Type'] }} - - - - - Created: {{ formatDate(interest?.['Created At']) }} + LOI Sent: {{ formatDate(interest["Time LOI Sent"]) }} - + + - - - - Contact Information - - - - mdi-account - - {{ interest?.['Full Name'] }} - Full Name - - - - mdi-email - - {{ interest?.['Email Address'] }} - Email - - - - mdi-phone - - {{ interest?.['Phone Number'] }} - Phone - - - - mdi-map-marker - - {{ interest?.['Address'] }} - Address - - - + + + + mdi-gesture-tap + Actions + + + + + + mdi-information-outline + Info to Sales + + + + + mdi-email-outline + Request Info + + + + debouncedSaveInterest ? debouncedSaveInterest() : saveInterest()" + variant="flat" + color="success" + block + :loading="isSaving" + :disabled="isSaving" + class="mb-2 d-flex flex-column" + size="large" + > + mdi-content-save + Save Changes + + + + + - - Yacht Information - - - - mdi-sail-boat - - {{ interest?.['Yacht Name'] }} - Yacht Name - - - - mdi-ruler - - {{ interest?.['Length'] }} - Length - - - - mdi-arrow-expand-horizontal - - {{ interest?.['Width'] }} - Width - - - - mdi-arrow-expand-vertical - - {{ interest?.['Depth'] }} - Depth - - - - + + + + + mdi-account-circle + Contact Information + + + + + + + + + + + + + + + + + + + + + - - + + + + mdi-sail-boat + Yacht Information + + + + + + + + + + + + + + + + + + + + + + mdi-chart-timeline-variant + Sales Pipeline Status + + + + + + + + {{ item.value }} + + + + + + + mdi-circle + + + + + {{ item.value }} + + + + + + + + + Progress: {{ currentStep + 1 }} of {{ InterestSalesProcessLevelFlow.length }} stages + + + + + + + + + + + mdi-anchor + Berth Information + + + + + + + + + + + + + + + + {{ item.raw.letter }} + + + + + + + + + + + + + + + + + + mdi-progress-check + Process Status + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + mdi-information + Additional Information + + + + + + + + + + + + mdi-file-document + EOI Documents: + + + {{ doc.title || `EOI Document ${index + 1}` }} + + + + + + + + + + + + + + + + + - - - - - - - Close - - - diff --git a/nuxt.config.ts b/nuxt.config.ts index 740dd1f..7f6f3ca 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,74 +3,6 @@ export default defineNuxtConfig({ compatibilityDate: "2024-11-01", devtools: { enabled: true }, modules: ["nuxt-directus", "vuetify-nuxt-module", "@vite-pwa/nuxt"], - pwa: { - registerType: 'autoUpdate', - workbox: { - navigateFallback: '/', - globPatterns: ['**/*.{js,css,html,png,svg,ico}'], - }, - client: { - installPrompt: true, - periodicSyncForUpdates: 20, - }, - manifest: { - name: 'Port Nimara Client Portal', - short_name: 'Port Nimara', - description: 'Manage and track berth interests for Port Nimara marina', - theme_color: '#387bca', - background_color: '#ffffff', - display: 'standalone', - orientation: 'portrait', - scope: '/', - start_url: '/', - icons: [ - { - src: 'icons/icon-72x72.png', - sizes: '72x72', - type: 'image/png' - }, - { - src: 'icons/icon-96x96.png', - sizes: '96x96', - type: 'image/png' - }, - { - src: 'icons/icon-128x128.png', - sizes: '128x128', - type: 'image/png' - }, - { - src: 'icons/icon-144x144.png', - sizes: '144x144', - type: 'image/png' - }, - { - src: 'icons/icon-152x152.png', - sizes: '152x152', - type: 'image/png' - }, - { - src: 'icons/icon-192x192.png', - sizes: '192x192', - type: 'image/png' - }, - { - src: 'icons/icon-384x384.png', - sizes: '384x384', - type: 'image/png' - }, - { - src: 'icons/icon-512x512.png', - sizes: '512x512', - type: 'image/png' - } - ] - }, - devOptions: { - enabled: true, - type: 'module' - } - }, app: { head: { titleTemplate: "%s • Port Nimara Client Portal", diff --git a/pages/dashboard/interest-list.vue b/pages/dashboard/interest-list.vue index fccbbb1..bcbcbbe 100644 --- a/pages/dashboard/interest-list.vue +++ b/pages/dashboard/interest-list.vue @@ -201,8 +201,8 @@ diff --git a/server/api/eoi/delete-generated-document.ts b/server/api/eoi/delete-generated-document.ts index 17767af..e51ebf7 100644 --- a/server/api/eoi/delete-generated-document.ts +++ b/server/api/eoi/delete-generated-document.ts @@ -98,21 +98,14 @@ export default defineEventHandler(async (event) => { }); } - // Reset interest fields - clear ALL EOI-related data + // Reset interest fields const updateData = { 'EOI Status': 'Awaiting Further Details' as EOIStatus, 'Sales Process Level': 'Specific Qualified Interest' as InterestSalesProcessLevel, 'EOI Time Sent': undefined, - 'EOI Time Created': undefined, 'Signature Link Client': undefined, 'Signature Link CC': undefined, 'Signature Link Developer': undefined, - 'EmbeddedSignatureLinkClient': undefined, - 'EmbeddedSignatureLinkCC': undefined, - 'EmbeddedSignatureLinkDeveloper': undefined, - 'clientSignTime': undefined, - 'ccSignTime': undefined, - 'developerSignTime': undefined, 'documensoID': undefined, 'reminder_enabled': false }; diff --git a/utils/types.ts b/utils/types.ts index a494c62..443a660 100644 --- a/utils/types.ts +++ b/utils/types.ts @@ -133,16 +133,6 @@ export interface Interest { "EmbeddedSignatureLinkDeveloper"?: string; // Documenso document ID for generated documents "documensoID"?: string; - // EOI creation time - "EOI Time Created"?: string; - // Interest type - "Interest Type"?: string; - // Signature timestamps - "clientSignTime"?: string; - "ccSignTime"?: string; - "developerSignTime"?: string; - // Reminder system - "reminder_enabled"?: boolean; } export interface InterestsResponse {