diff --git a/components/InterestDetailsModal.vue b/components/InterestDetailsModal.vue index 2155b74..536d05d 100644 --- a/components/InterestDetailsModal.vue +++ b/components/InterestDetailsModal.vue @@ -1,1279 +1,362 @@ - diff --git a/nuxt.config.ts b/nuxt.config.ts index 7f6f3ca..740dd1f 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -3,6 +3,74 @@ 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 bcbcbbe..fccbbb1 100644 --- a/pages/dashboard/interest-list.vue +++ b/pages/dashboard/interest-list.vue @@ -201,8 +201,8 @@ diff --git a/public/icons/icon-128x128.png b/public/icons/icon-128x128.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-128x128.png differ diff --git a/public/icons/icon-144x144.png b/public/icons/icon-144x144.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-144x144.png differ diff --git a/public/icons/icon-152x152.png b/public/icons/icon-152x152.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-152x152.png differ diff --git a/public/icons/icon-192x192.png b/public/icons/icon-192x192.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-192x192.png differ diff --git a/public/icons/icon-384x384.png b/public/icons/icon-384x384.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-384x384.png differ diff --git a/public/icons/icon-512x512.png b/public/icons/icon-512x512.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-512x512.png differ diff --git a/public/icons/icon-72x72.png b/public/icons/icon-72x72.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-72x72.png differ diff --git a/public/icons/icon-96x96.png b/public/icons/icon-96x96.png new file mode 100644 index 0000000..c58a1be Binary files /dev/null and b/public/icons/icon-96x96.png differ diff --git a/server/api/eoi/delete-generated-document.ts b/server/api/eoi/delete-generated-document.ts index e51ebf7..17767af 100644 --- a/server/api/eoi/delete-generated-document.ts +++ b/server/api/eoi/delete-generated-document.ts @@ -98,14 +98,21 @@ export default defineEventHandler(async (event) => { }); } - // Reset interest fields + // Reset interest fields - clear ALL EOI-related data 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 443a660..a494c62 100644 --- a/utils/types.ts +++ b/utils/types.ts @@ -133,6 +133,16 @@ 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 {