From ff845650529aee071c0d434716a00f7a277266e9 Mon Sep 17 00:00:00 2001
From: jmather-c <117302272+jmather-c@users.noreply.github.com>
Date: Thu, 15 Jun 2023 08:54:16 -0700
Subject: [PATCH] #223 - Add Related Stripe Sync Records component to setup
steps (#1103)
* Add Related Stripe Sync Records to setup steps
* Updated from PR feedback
* Updates from feedback
* and fields...
* Added a sensible rename to trigger ci flows
---
.../lwc/orgSettingsStep/orgSettingsStep.html | 52 ++++++++++++++++++-
.../lwc/orgSettingsStep/orgSettingsStep.js | 32 +++++++++++-
.../relatedSyncRecords.html | 2 +-
.../relatedSyncRecords.js-meta.xml | 19 ++++++-
.../main/default/lwc/setup/setup.html | 22 ++++----
.../force-app/main/default/lwc/setup/setup.js | 36 ++++++-------
.../force-app/main/default/lwc/step/step.html | 4 +-
7 files changed, 131 insertions(+), 36 deletions(-)
diff --git a/sfdx/force-app/main/default/lwc/orgSettingsStep/orgSettingsStep.html b/sfdx/force-app/main/default/lwc/orgSettingsStep/orgSettingsStep.html
index d2992e1c87..5711c05c71 100644
--- a/sfdx/force-app/main/default/lwc/orgSettingsStep/orgSettingsStep.html
+++ b/sfdx/force-app/main/default/lwc/orgSettingsStep/orgSettingsStep.html
@@ -1,5 +1,25 @@
-
+ Add this component to your Lightning Record Pages to easily see the latest sync records for an object.
+
- A few custom fields have been included in the Stripe Billing for Salesforce managed package that can optionally be added to your existing object page layouts. It is recommended you do this now before proceeding to connect Stripe to Salesforce, but these fields can be added at any time.
-
Allow your Salesforce org and Stripe to communicate. This step will collect the required information to allow your Salesforce org and Stripe to communicate. First, you will be granting Stripe the necessary access to your Salesforce org. Second, you will be asked to log into Stripe to allow Salesforce to access your Stripe instance. Click "Authorize" and follow the provided steps to establish these connections.
Determine how Stripe data is mapped to your Salesforce org. A set of default field mappings have been provided for each Stripe object. These default values can be overwritten to better represent the structure of your Salesforce org. Field mappings can either be a Salesforce field, which reads Salesforce data on a per-record basis, or a static value, which will apply the same value to all records.
Determine how and when data is synced between Stripe and Salesforce. A set of default settings has been provided; review and make any adjustments to these settings to suit your org before proceeding.
Activate your integration to begin bringing Salesforce orders over to Stripe in real time.
+ A few custom fields and components have been included in the Stripe Billing for Salesforce managed package that can optionally be added to your existing Page Layouts and Lightning Record Pages. These fields and components will allow you to view Stripe data directly on your Salesforce records.
+
+ Add Stripe Fields to Page Layouts
+
+
@@ -20,5 +40,35 @@
+ Add Stripe Components to Lightning Record Pages
+
+
+ Related Stripe Sync Records
+
+
- Related Sync Records
+ Related Stripe Sync Records
diff --git a/sfdx/force-app/main/default/lwc/setup/setup.js b/sfdx/force-app/main/default/lwc/setup/setup.js
index c3fc387a13..0c942b7f6c 100644
--- a/sfdx/force-app/main/default/lwc/setup/setup.js
+++ b/sfdx/force-app/main/default/lwc/setup/setup.js
@@ -30,18 +30,10 @@ export default class FirstTimeSetup extends LightningElement {
@track tabToNavTo = '';
@track stepName;
@track steps = [
- {
- title: 'Update Page Layouts',
- name: 'C-ORG-SETTINGS-STEP',
- orderIndex: 1,
- isComplete: false,
- isActive: false,
- component: 'c-org-settings-step',
- },
{
title: 'Connect Stripe and Salesforce',
name: 'C-SYSTEM-CONNECTIONS-STEP',
- orderIndex: 2,
+ orderIndex: 1,
isComplete: false,
isActive: false,
component: 'c-system-connections-step',
@@ -49,7 +41,7 @@ export default class FirstTimeSetup extends LightningElement {
{
title: 'Define Data Mapping',
name: 'C-DATA-MAPPING-STEP',
- orderIndex: 3,
+ orderIndex: 2,
isComplete: false,
isActive: false,
component: 'c-data-mapping-step',
@@ -57,7 +49,7 @@ export default class FirstTimeSetup extends LightningElement {
{
title: 'Manage Integration',
name: 'C-SYNC-PREFERENCES-STEP',
- orderIndex: 4,
+ orderIndex: 3,
isComplete: false,
isActive: false,
component: 'c-sync-preferences-step',
@@ -65,19 +57,27 @@ export default class FirstTimeSetup extends LightningElement {
{
title: 'Activate Syncing',
name: 'C-POLLING-STEP',
- orderIndex: 5,
+ orderIndex: 4,
isComplete: false,
isActive: false,
component: 'c-polling-step',
- }
+ },
+ {
+ title: 'Update Salesforce Pages',
+ name: 'C-ORG-SETTINGS-STEP',
+ orderIndex: 5,
+ isComplete: false,
+ isActive: false,
+ component: 'c-org-settings-step',
+ },
];
setupStepRefs = {
- orgSettings: 0,
- systemConnections: 1,
- dataMapping: 2,
- syncPreferences: 3,
- polling: 4,
+ systemConnections: 0,
+ dataMapping: 1,
+ syncPreferences: 2,
+ polling: 3,
+ orgSettings: 4,
};
generalStepRefs = {
diff --git a/sfdx/force-app/main/default/lwc/step/step.html b/sfdx/force-app/main/default/lwc/step/step.html
index 2fbf533663..16ee2d6f5b 100644
--- a/sfdx/force-app/main/default/lwc/step/step.html
+++ b/sfdx/force-app/main/default/lwc/step/step.html
@@ -26,9 +26,9 @@
onshowtoast={showToast}>
onshowtoast={showToast}>
onshowtoast={showToast}>