From 48ae6e538194778dec3e42202989b529b90461cf Mon Sep 17 00:00:00 2001 From: iamsivin Date: Thu, 22 Jan 2026 18:18:11 +0530 Subject: [PATCH] chore: Update display property design --- ...ctCardForm.vue => ContactCardOverview.vue} | 0 .../Contacts/ContactsCard/ContactsCard.vue | 4 +- .../Contacts/ContactsHeader/ContactHeader.vue | 37 ++-- .../components/DisplayPropertiesMenu.vue | 162 +++++++++++++++++ .../components/DisplayPropertiesModal.vue | 166 ------------------ .../dashboard/i18n/locale/en/contact.json | 3 +- 6 files changed, 191 insertions(+), 181 deletions(-) rename app/javascript/dashboard/components-next/Contacts/ContactsCard/{ContactCardForm.vue => ContactCardOverview.vue} (100%) create mode 100644 app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesMenu.vue delete mode 100644 app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesModal.vue diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactCardForm.vue b/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactCardOverview.vue similarity index 100% rename from app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactCardForm.vue rename to app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactCardOverview.vue diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.vue b/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.vue index debe8078c..96ea87824 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsCard/ContactsCard.vue @@ -3,7 +3,7 @@ import { ref, computed } from 'vue'; import { useI18n } from 'vue-i18n'; import { useStore } from 'dashboard/composables/store'; -import ContactCardForm from 'dashboard/components-next/Contacts/ContactsCard/ContactCardForm.vue'; +import ContactCardOverview from 'dashboard/components-next/Contacts/ContactsCard/ContactCardOverview.vue'; import Button from 'dashboard/components-next/button/Button.vue'; import Avatar from 'dashboard/components-next/avatar/Avatar.vue'; import Flag from 'dashboard/components-next/flag/Flag.vue'; @@ -365,7 +365,7 @@ const handleExpandHover = isHovered => { class="relative flex flex-col pt-3 pb-4 lg:pt-[1.125rem] lg:pb-5 overflow-visible transition-opacity duration-[600ms] ease-out" :class="isExpanded ? 'opacity-100 delay-200' : 'opacity-0'" > - + diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsHeader/ContactHeader.vue b/app/javascript/dashboard/components-next/Contacts/ContactsHeader/ContactHeader.vue index 9ce84f254..24512fcea 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsHeader/ContactHeader.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsHeader/ContactHeader.vue @@ -1,12 +1,13 @@ @@ -47,7 +50,7 @@ const openDisplayPropertiesModal = () => { {{ headerTitle }} -
+
{
-
-
+
+
+
+
+
-
+
diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesMenu.vue b/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesMenu.vue new file mode 100644 index 000000000..3d703f70e --- /dev/null +++ b/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesMenu.vue @@ -0,0 +1,162 @@ + + + diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesModal.vue b/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesModal.vue deleted file mode 100644 index 27bd44fc3..000000000 --- a/app/javascript/dashboard/components-next/Contacts/ContactsHeader/components/DisplayPropertiesModal.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json index 7e5fb2790..b3b45ae02 100644 --- a/app/javascript/dashboard/i18n/locale/en/contact.json +++ b/app/javascript/dashboard/i18n/locale/en/contact.json @@ -307,6 +307,7 @@ "SEND_MESSAGE": "Send message", "BLOCK_CONTACT": "Block contact", "UNBLOCK_CONTACT": "Unblock contact", + "DISPLAY_PROPERTIES": "Display", "BREADCRUMB": { "CONTACTS": "Contacts" }, @@ -393,7 +394,7 @@ "DESCRIPTION": "Select up to three contact attributes to display.", "SELECTED_ATTRIBUTES": "Selected attributes", "OTHER_ATTRIBUTES": "Other attributes", - "NO_ATTRIBUTES": "No contact attributes available", + "NO_ATTRIBUTES": "No contact attributes added, you can add some to display.", "CANCEL": "Cancel", "SAVE": "Save", "YES": "Yes",