Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: active campaign new UI #805

Merged
merged 6 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/configurations/destinations/active_campaign/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"transformAtV1": "router",
"saveDestinationResponse": true,
"isAudienceSupported": true,
"includeKeys": ["oneTrustCookieCategories"],
"includeKeys": ["oneTrustCookieCategories", "connectionMode", "actid"],
"excludeKeys": [],
"supportedSourceTypes": [
"android",
Expand All @@ -22,8 +22,21 @@
"shopify"
],
"supportedMessageTypes": ["identify", "page", "screen", "track"],
"supportedConnectionModes": {
"android": ["cloud", "device"],
"web": ["cloud", "device", "hybrid"],
"ios": ["cloud", "device"],
"flutter": ["cloud", "device"],
"reactnative": ["cloud", "device"]
},
"hybridModeCloudEventsFilter": {
"web": {
"messageType": ["track", "screen", "identify"]
}
},
"destConfig": {
"defaultConfig": ["apiUrl", "apiKey", "eventKey", "actid", "oneTrustCookieCategories"]
"defaultConfig": ["apiUrl", "apiKey", "eventKey", "actid", "oneTrustCookieCategories"],
"web": ["useNativeSDK", "connectionMode"]
},
"secretKeys": ["apiKey", "eventKey", "actid"]
}
Expand Down
15 changes: 14 additions & 1 deletion src/configurations/destinations/active_campaign/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@
}
}
}
},
"useNativeSDK": {
"type": "object",
"properties": {
"web": { "type": "boolean" }
}
},
"connectionMode": {
"type": "object",
"properties": {
"web": { "type": "string", "enum": ["cloud", "device", "hybrid"] }
}
}
}
},
"additionalProperties": true
}
}
200 changes: 135 additions & 65 deletions src/configurations/destinations/active_campaign/ui-config.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,140 @@
{
"uiConfig": [
{
"title": "Connection Settings",
"uiConfig": {
"baseTemplate": [
{
"title": "Initial setup",
"note": "Review how this destination is set up",
"sections": [
{
"groups": [
{
"title": "Connection settings",
"note": "Update your connection settings here",
"icon": "settings",
"fields": [
{
"type": "textInput",
"label": "API Key",
"configKey": "apiKey",
"regex": ".*",
"required": true,
"placeholder": "e.g. c59e3838caa934b535c1fd342dfds23452dfcccf95c16787304e7a0c0e8051b326451bb2",
"secret": true,
"footerNote": "Your API Access Key"
},
{
"type": "textInput",
"label": "API Url",
"configKey": "apiUrl",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|(?!.*\\.ngrok\\.io)^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$",
"regexErrorMessage": "Invalid URL",
"required": true,
"placeholder": "e.g. https://accountname.api-us1.com",
"note": "Your API Access URL"
}
]
}
]
},
{
"groups": [
{
"title": "Connection mode",
"note": [
"Update how you want to route events from your source to destination. ",
{
"text": "Get help deciding",
"link": "https://www.rudderstack.com/docs/destinations/rudderstack-connection-modes/"
}
],
"icon": "sliders",
"fields": []
}
]
}
]
},
{
"title": "Configuration settings",
"note": "Manage the settings for your destination",
"sections": [
{
"title": "Destination settings",
"note": "Configure advanced destination-specific settings here",
"icon": "settings",
"groups": [
{
"title": "Event Settings",
"icon": "file",
"fields": [
{
"type": "textInput",
"label": "Event Key",
"configKey": "eventKey",
"regex": "^(.{0,100})$",
"regexErrorMessage": "Invalid Event Key",
"required": false,
"placeholder": "e.g. c2a856fddc721350dec4fbbc2e5c43a7ddfaaa03",
"secret": true,
"note": "Your Event Key"
},
{
"type": "textInput",
"label": "ActID",
"configKey": "actid",
"regex": "^(.{0,100})$",
"regexErrorMessage": "Invalid ActID",
"required": false,
"placeholder": "e.g. 276450567",
"secret": true,
"note": "Your ActId"
}
]
}
]
},
{
"title": "Other settings",
"note": "Configure advanced RudderStack features here",
"icon": "otherSettings",
"groups": [
{
"title": "OneTrust cookie consent settings",
"note": [
"Enter your OneTrust category names if you have them configured. ",
{
"text": "Learn more ",
"link": "https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/onetrust-consent-manager/"
},
"about RudderStack’s OneTrust Consent Manager feature."
],
"fields": [
{
"type": "tagInput",
"label": "Cookie category name",
"note": "Input your OneTrust category names by pressing ‘Enter’ after each entry",
"configKey": "oneTrustCookieCategories",
"tagKey": "oneTrustCookieCategory",
"placeholder": "e.g: Credit card visit",
"default": [
{
"oneTrustCookieCategory": ""
}
]
}
]
}
]
}
]
}
],
"sdkTemplate": {
"title": "SDK settings",
"note": "not visible in the ui",
"fields": [
{
"type": "textInput",
"label": "API Url",
"value": "apiUrl",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|(?!.*\\.ngrok\\.io)^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:/?#[\\]@!\\$&'\\(\\)\\*\\+,;=.]+$",
"regexErrorMessage": "Invalid URL",
"required": true,
"placeholder": "e.g. https://accountname.api-us1.com",
"footerNote": "Your API Access URL"
},
{
"type": "textInput",
"label": "API Key",
"value": "apiKey",
"regex": ".*",
"required": true,
"placeholder": "e.g. c59e3838caa934b535c1fd342dfds23452dfcccf95c16787304e7a0c0e8051b326451bb2",
"secret": true,
"footerNote": "Your API Access Key"
},
{
"type": "textInput",
"label": "Event Key",
"value": "eventKey",
"regex": "^(.{0,100})$",
"regexErrorMessage": "Invalid Event Key",
"required": false,
"placeholder": "e.g. c2a856fddc721350dec4fbbc2e5c43a7ddfaaa03",
"secret": true,
"footerNote": "Your Event Key"
},
{
"type": "textInput",
"label": "ActID",
"value": "actid",
"regex": "^(.{0,100})$",
"regexErrorMessage": "Invalid ActID",
"required": false,
"placeholder": "e.g. 276450567",
"secret": true,
"footerNote": "Your ActId"
}
]
},
{
"title": "Consent Settings",
"fields": [
{
"type": "dynamicCustomForm",
"value": "oneTrustCookieCategories",
"label": "OneTrust Cookie Categories",
"customFields": [
{
"type": "textInput",
"placeholder": "Marketing",
"value": "oneTrustCookieCategory",
"label": "Category Name/ID",
"required": false
}
]
}
]
}
]
}
}

Loading