From b12c55531f261f603b6bbb828c33a61a3c73503e Mon Sep 17 00:00:00 2001
From: Hussain Nagaria
Date: Thu, 2 Oct 2025 12:59:45 +0530
Subject: [PATCH] feat: create new sync source
---
.../lead_sync_source/lead_sync_source.json | 5 +-
.../LeadSyncing/LeadSyncSourcePage.vue | 1 +
.../LeadSyncing/NewLeadSyncSource.vue | 108 +++++++++++++-----
.../LeadSyncing/leadSyncSourceConfig.js | 1 +
4 files changed, 86 insertions(+), 29 deletions(-)
diff --git a/crm/lead_syncing/doctype/lead_sync_source/lead_sync_source.json b/crm/lead_syncing/doctype/lead_sync_source/lead_sync_source.json
index 5c3b1599..19c2907a 100644
--- a/crm/lead_syncing/doctype/lead_sync_source/lead_sync_source.json
+++ b/crm/lead_syncing/doctype/lead_sync_source/lead_sync_source.json
@@ -23,7 +23,8 @@
"fieldtype": "Select",
"in_list_view": 1,
"label": "Type",
- "options": "Facebook"
+ "options": "Facebook",
+ "reqd": 1
},
{
"fieldname": "column_break_lwcw",
@@ -74,7 +75,7 @@
"grid_page_length": 50,
"index_web_pages_for_search": 1,
"links": [],
- "modified": "2025-10-02 12:17:35.222102",
+ "modified": "2025-10-02 12:33:45.810895",
"modified_by": "Administrator",
"module": "Lead Syncing",
"name": "Lead Sync Source",
diff --git a/frontend/src/components/Settings/LeadSyncing/LeadSyncSourcePage.vue b/frontend/src/components/Settings/LeadSyncing/LeadSyncSourcePage.vue
index 87eaad60..45bbffc2 100644
--- a/frontend/src/components/Settings/LeadSyncing/LeadSyncSourcePage.vue
+++ b/frontend/src/components/Settings/LeadSyncing/LeadSyncSourcePage.vue
@@ -46,6 +46,7 @@ const sources = createListResource({
provide('sources', sources)
function updateStep(newStep, data) {
+ console.log("update step called with new step: ", newStep);
step.value = newStep
source.value = data
}
diff --git a/frontend/src/components/Settings/LeadSyncing/NewLeadSyncSource.vue b/frontend/src/components/Settings/LeadSyncing/NewLeadSyncSource.vue
index 1c693e5f..0aaea058 100644
--- a/frontend/src/components/Settings/LeadSyncing/NewLeadSyncSource.vue
+++ b/frontend/src/components/Settings/LeadSyncing/NewLeadSyncSource.vue
@@ -8,45 +8,99 @@
{{ __('Choose the type of source you want to configure.') }}
-
+
\ No newline at end of file
diff --git a/frontend/src/components/Settings/LeadSyncing/leadSyncSourceConfig.js b/frontend/src/components/Settings/LeadSyncing/leadSyncSourceConfig.js
index 22c7282e..5e927ce9 100644
--- a/frontend/src/components/Settings/LeadSyncing/leadSyncSourceConfig.js
+++ b/frontend/src/components/Settings/LeadSyncing/leadSyncSourceConfig.js
@@ -5,6 +5,7 @@ export const supportedSourceTypes = [
{
name: 'Facebook',
icon: LogoFacebook,
+ info: __("You will need a Meta developer account and an access token to sync leads from Facebook. Read more "),
link: 'https://www.facebook.com/business/help/503306463479099?id=2190812977867143',
custom: false,
}