diff --git a/crm/api/session.py b/crm/api/session.py
index c6c5e3dd..368a272c 100644
--- a/crm/api/session.py
+++ b/crm/api/session.py
@@ -25,7 +25,7 @@ def get_contacts():
contacts = frappe.qb.get_query(
"Contact",
- fields=['name', 'full_name', 'image', 'email_id', 'mobile_no', 'phone', 'salutation'],
+ fields=['name', 'first_name', 'last_name', 'full_name', 'image', 'email_id', 'mobile_no', 'phone', 'salutation', 'company_name'],
order_by="first_name asc",
distinct=True,
).run(as_dict=1)
diff --git a/frontend/src/components/AppSidebar.vue b/frontend/src/components/AppSidebar.vue
index a0217a1e..f56d4ead 100644
--- a/frontend/src/components/AppSidebar.vue
+++ b/frontend/src/components/AppSidebar.vue
@@ -3,16 +3,18 @@
class="flex h-full flex-col justify-between transition-all duration-300 ease-in-out"
:class="isSidebarCollapsed ? 'w-12' : 'w-56'"
>
-
+
+
+
+
+
diff --git a/frontend/src/pages/Contact.vue b/frontend/src/pages/Contact.vue
new file mode 100644
index 00000000..c4f71105
--- /dev/null
+++ b/frontend/src/pages/Contact.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+ {{ contact.salutation + ' ' + contact.full_name }}
+
+
+
+
+ {{ contact.email_id }}
+
+
·
+
+
+
{{ contact.mobile_no }}
+
+
·
+
+
+
{{ contact.company_name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/pages/Contacts.vue b/frontend/src/pages/Contacts.vue
index 4d4c0481..7137911b 100644
--- a/frontend/src/pages/Contacts.vue
+++ b/frontend/src/pages/Contacts.vue
@@ -4,131 +4,92 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ {{ contact.full_name }}
+
+ {{ contact.email_id }}
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
No contact selected
+
+
-
+
diff --git a/frontend/src/router.js b/frontend/src/router.js
index c841ccb1..337606ef 100644
--- a/frontend/src/router.js
+++ b/frontend/src/router.js
@@ -38,6 +38,14 @@ const routes = [
path: '/contacts',
name: 'Contacts',
component: () => import('@/pages/Contacts.vue'),
+ children: [
+ {
+ path: '/contacts/:contactId?',
+ name: 'Contact',
+ component: () => import('@/pages/Contact.vue'),
+ props: true,
+ },
+ ],
},
{
path: '/organizations',