From 4e5fb114d9e8108611b13e5b5d000cabbf018a89 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Thu, 16 Sep 2021 11:19:59 -0700 Subject: [PATCH] fixed the name / slug [netlify-ignore] --- scripts/catalog_papi.js | 11 +++- src/_data/catalog/destinations.yml | 99 +++++++++++++++--------------- 2 files changed, 59 insertions(+), 51 deletions(-) diff --git a/scripts/catalog_papi.js b/scripts/catalog_papi.js index 534a8f2950..9a860cef58 100644 --- a/scripts/catalog_papi.js +++ b/scripts/catalog_papi.js @@ -366,8 +366,15 @@ const updateDestinations = async () => { destinations.forEach(destination => { let slug = slugify(destination.name) - if (slug == 'amplitude-actions') { - slug = 'actions-amplitude' + // Flip the slug of Actions destinations + const actionsDests = [ + 'amplitude-actions', + 'slack-actions' + ] + + if (actionsDests.includes(slug)) { + const newSlug = slug.split('-') + slug = newSlug[1]+'-'+newSlug[0] } let url = `connections/destinations/catalog/${slug}` diff --git a/src/_data/catalog/destinations.yml b/src/_data/catalog/destinations.yml index 375e137120..c61dfa37fa 100644 --- a/src/_data/catalog/destinations.yml +++ b/src/_data/catalog/destinations.yml @@ -173,55 +173,6 @@ items: types in the settings page of the A/B Smartly web console. required: true label: Unit Mapping -- display_name: Actions Slack - name: Actions Slack - slug: actions-slack - hidden: true - url: connections/destinations/catalog/actions-slack - previous_names: - - Actions Slack - website: 'https://slack.com' - status: PUBLIC_BETA - categories: [] - logo: - url: 'https://cdn.filepicker.io/api/file/MOBcngiSCGx8u10x6Kh3' - mark: - url: 'https://cdn.filepicker.io/api/file/Bk6jzITDTp26X3K3t0RL' - methods: - track: true - identify: true - group: true - alias: true - page: true - platforms: - browser: true - mobile: false - server: true - components: [] - browserUnbundlingSupported: false - browserUnbundlingPublic: false - replay: false - connection_modes: - device: - web: false - mobile: false - server: false - cloud: - web: false - mobile: false - server: false - summary: No connection mode information available. - cmode_type: none - case: '0' - settings: - - name: required_hidden_token - type: string - defaultValue: '' - description: >- - This token is hidden because it is unused and destinations must have one - setting. - required: true - label: Required Hidden Token - display_name: ActiveCampaign name: ActiveCampaign slug: activecampaign @@ -21227,6 +21178,56 @@ items: you want catch and forward to Slack. required: true label: Whitelisted Traits +- display_name: Slack (Actions) + name: Slack (Actions) + slug: actions-slack + hidden: false + url: connections/destinations/catalog/actions-slack + previous_names: + - Actions Slack + - Slack (Actions) + website: 'https://slack.com' + status: PUBLIC_BETA + categories: [] + logo: + url: 'https://cdn.filepicker.io/api/file/MOBcngiSCGx8u10x6Kh3' + mark: + url: 'https://cdn.filepicker.io/api/file/Bk6jzITDTp26X3K3t0RL' + methods: + track: true + identify: true + group: true + alias: true + page: true + platforms: + browser: true + mobile: false + server: true + components: [] + browserUnbundlingSupported: false + browserUnbundlingPublic: false + replay: false + connection_modes: + device: + web: false + mobile: false + server: false + cloud: + web: false + mobile: false + server: false + summary: No connection mode information available. + cmode_type: none + case: '0' + settings: + - name: required_hidden_token + type: string + defaultValue: '' + description: >- + This token is hidden because it is unused and destinations must have one + setting. + required: true + label: Required Hidden Token - display_name: SlicingDice name: SlicingDice slug: slicingdice