From 10e3adfd18e806577bf45a6cd517cf6083dfe036 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 7 Aug 2025 15:59:37 +0530 Subject: [PATCH] refactor: remove CalendarEventDetails component and update CalendarEventPanel for improved event handling --- frontend/components.d.ts | 2 +- .../Calendar/CalendarEventDetails.vue | 108 --------------- .../Calendar/CalendarEventPanel.vue | 129 ++++++++++++------ frontend/src/pages/Calendar.vue | 105 ++++++++------ 4 files changed, 152 insertions(+), 192 deletions(-) delete mode 100644 frontend/src/components/Calendar/CalendarEventDetails.vue diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 611909be..bbfc69d1 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -46,7 +46,6 @@ declare module 'vue' { BrandLogo: typeof import('./src/components/BrandLogo.vue')['default'] BrandSettings: typeof import('./src/components/Settings/General/BrandSettings.vue')['default'] BulkDeleteLinkedDocModal: typeof import('./src/components/BulkDeleteLinkedDocModal.vue')['default'] - CalendarEventDetails: typeof import('./src/components/Calendar/CalendarEventDetails.vue')['default'] CalendarEventPanel: typeof import('./src/components/Calendar/CalendarEventPanel.vue')['default'] CalendarIcon: typeof import('./src/components/Icons/CalendarIcon.vue')['default'] CalendarModal: typeof import('./src/components/Modals/CalendarModal.vue')['default'] @@ -191,6 +190,7 @@ declare module 'vue' { ListRows: typeof import('./src/components/ListViews/ListRows.vue')['default'] LoadingIndicator: typeof import('./src/components/Icons/LoadingIndicator.vue')['default'] LostReasonModal: typeof import('./src/components/Modals/LostReasonModal.vue')['default'] + LucideCalendar: typeof import('~icons/lucide/calendar')['default'] LucideChevronLeft: typeof import('~icons/lucide/chevron-left')['default'] LucideChevronRight: typeof import('~icons/lucide/chevron-right')['default'] LucideEarth: typeof import('~icons/lucide/earth')['default'] diff --git a/frontend/src/components/Calendar/CalendarEventDetails.vue b/frontend/src/components/Calendar/CalendarEventDetails.vue deleted file mode 100644 index 4263b10a..00000000 --- a/frontend/src/components/Calendar/CalendarEventDetails.vue +++ /dev/null @@ -1,108 +0,0 @@ - - diff --git a/frontend/src/components/Calendar/CalendarEventPanel.vue b/frontend/src/components/Calendar/CalendarEventPanel.vue index 9b471b56..0ced558b 100644 --- a/frontend/src/components/Calendar/CalendarEventPanel.vue +++ b/frontend/src/components/Calendar/CalendarEventPanel.vue @@ -5,21 +5,26 @@ >
- + {{ __(title) }}
+
-
+
-
@@ -163,10 +160,42 @@
+
+
+
+
+
+ {{ event.title || __('(No title)') }} +
+
{{ formattedDateTime }}
+
+
+
+
+
+ + {{ __('Description') }} +
+
+
+