Skip to content

Commit 4e5fb11

Browse files
committed
fixed the name / slug [netlify-ignore]
1 parent 2dc152d commit 4e5fb11

File tree

2 files changed

+59
-51
lines changed

2 files changed

+59
-51
lines changed

scripts/catalog_papi.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,15 @@ const updateDestinations = async () => {
366366
destinations.forEach(destination => {
367367
let slug = slugify(destination.name)
368368

369-
if (slug == 'amplitude-actions') {
370-
slug = 'actions-amplitude'
369+
// Flip the slug of Actions destinations
370+
const actionsDests = [
371+
'amplitude-actions',
372+
'slack-actions'
373+
]
374+
375+
if (actionsDests.includes(slug)) {
376+
const newSlug = slug.split('-')
377+
slug = newSlug[1]+'-'+newSlug[0]
371378
}
372379

373380
let url = `connections/destinations/catalog/${slug}`

src/_data/catalog/destinations.yml

Lines changed: 50 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -173,55 +173,6 @@ items:
173173
types in the settings page of the A/B Smartly web console.
174174
required: true
175175
label: Unit Mapping
176-
- display_name: Actions Slack
177-
name: Actions Slack
178-
slug: actions-slack
179-
hidden: true
180-
url: connections/destinations/catalog/actions-slack
181-
previous_names:
182-
- Actions Slack
183-
website: 'https://slack.com'
184-
status: PUBLIC_BETA
185-
categories: []
186-
logo:
187-
url: 'https://cdn.filepicker.io/api/file/MOBcngiSCGx8u10x6Kh3'
188-
mark:
189-
url: 'https://cdn.filepicker.io/api/file/Bk6jzITDTp26X3K3t0RL'
190-
methods:
191-
track: true
192-
identify: true
193-
group: true
194-
alias: true
195-
page: true
196-
platforms:
197-
browser: true
198-
mobile: false
199-
server: true
200-
components: []
201-
browserUnbundlingSupported: false
202-
browserUnbundlingPublic: false
203-
replay: false
204-
connection_modes:
205-
device:
206-
web: false
207-
mobile: false
208-
server: false
209-
cloud:
210-
web: false
211-
mobile: false
212-
server: false
213-
summary: No connection mode information available.
214-
cmode_type: none
215-
case: '0'
216-
settings:
217-
- name: required_hidden_token
218-
type: string
219-
defaultValue: ''
220-
description: >-
221-
This token is hidden because it is unused and destinations must have one
222-
setting.
223-
required: true
224-
label: Required Hidden Token
225176
- display_name: ActiveCampaign
226177
name: ActiveCampaign
227178
slug: activecampaign
@@ -21227,6 +21178,56 @@ items:
2122721178
you want catch and forward to Slack.
2122821179
required: true
2122921180
label: Whitelisted Traits
21181+
- display_name: Slack (Actions)
21182+
name: Slack (Actions)
21183+
slug: actions-slack
21184+
hidden: false
21185+
url: connections/destinations/catalog/actions-slack
21186+
previous_names:
21187+
- Actions Slack
21188+
- Slack (Actions)
21189+
website: 'https://slack.com'
21190+
status: PUBLIC_BETA
21191+
categories: []
21192+
logo:
21193+
url: 'https://cdn.filepicker.io/api/file/MOBcngiSCGx8u10x6Kh3'
21194+
mark:
21195+
url: 'https://cdn.filepicker.io/api/file/Bk6jzITDTp26X3K3t0RL'
21196+
methods:
21197+
track: true
21198+
identify: true
21199+
group: true
21200+
alias: true
21201+
page: true
21202+
platforms:
21203+
browser: true
21204+
mobile: false
21205+
server: true
21206+
components: []
21207+
browserUnbundlingSupported: false
21208+
browserUnbundlingPublic: false
21209+
replay: false
21210+
connection_modes:
21211+
device:
21212+
web: false
21213+
mobile: false
21214+
server: false
21215+
cloud:
21216+
web: false
21217+
mobile: false
21218+
server: false
21219+
summary: No connection mode information available.
21220+
cmode_type: none
21221+
case: '0'
21222+
settings:
21223+
- name: required_hidden_token
21224+
type: string
21225+
defaultValue: ''
21226+
description: >-
21227+
This token is hidden because it is unused and destinations must have one
21228+
setting.
21229+
required: true
21230+
label: Required Hidden Token
2123021231
- display_name: SlicingDice
2123121232
name: SlicingDice
2123221233
slug: slicingdice

0 commit comments

Comments
 (0)