Skip to content

Commit 4ad2827

Browse files
authored
Merge pull request #5506 from segmentio/thomas/new-remote-tables
add new sources table and remove sources from old regional table
2 parents 5472294 + 6ff1cbe commit 4ad2827

File tree

4 files changed

+75
-21
lines changed

4 files changed

+75
-21
lines changed

src/_data/regional-support.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ sources:
4545
- google-ads
4646
- facebook-ads
4747
- iterable
48+
- wootric
49+
- voucherify
50+
- moengage-source
51+
- mailmodo-source
52+
- gwen-webhooks
53+
- customerio
54+
- clevertap
55+
- braze
56+
- beamer
57+
- airship
58+
- adwords
4859
endpoint:
4960
- intercom
5061
- amp

src/_includes/content/regional-integrations-table.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{% assign sources = site.data.catalog.sources.items | where: "hidden", "false" %}
21
{% assign destinations = site.data.catalog.destinations.items %}
32
{% assign warehouses = site.data.catalog.regional-supported.warehouses %}
43

54
<input class="table-search" type="text" id="filterInput" onkeyup="searchFilter()"
65
placeholder="Search for an integration..">
76
<div class="button-container" id="btnContainer">
87
<a href="#" id="all" class="button button-link active">All</a>
9-
<a href="#" id="source" class="button button-link">Sources</a>
108
<a href="#" id="destination" class="button button-link">Destinations</a>
119
<a href="#" id="warehouse" class="button button-link">Warehouses</a>
1210
</div>
@@ -21,24 +19,6 @@
2119
</tr>
2220
</thead>
2321
<tbody>
24-
<tr class="settingRow source ">
25-
<td colspan="4" style="font-weight: bold; background-color:fafbff;font-size: 10px; text-transform: uppercase;"
26-
id="settingRow">
27-
Sources</td>
28-
</tr>
29-
{% for source in sources %}
30-
<tr class="settingRow source" id="settingRow">
31-
<td><a href="/docs/{{source.url}}">{{source.display_name}}</a></td>
32-
<td>{% if source.regions contains "us" %}<img class="inline" src="/docs/images/supported.svg" />{% else %}<img
33-
alt="" class="inline" src="/docs/images/unsupported.svg" />{% endif %}</td>
34-
<td>{% if source.regions contains "eu" and source.endpoints contains "us" %}<img class="inline"
35-
src="/docs/images/supported.svg" />{% else %}<img alt="" class="inline"
36-
src="/docs/images/unsupported.svg" />{% endif %}</td>
37-
<td> {% if source.regions contains "eu" and source.endpoints contains "eu" %}<img class="inline"
38-
src="/docs/images/supported.svg" />{% else %}<img alt="" class="inline"
39-
src="/docs/images/unsupported.svg" />{% endif %}</td>
40-
</tr>
41-
{% endfor %}
4222
<tr class="settingRow destination">
4323
<td colspan="4" style="font-weight: bold; background-color:fafbff;font-size: 10px; text-transform: uppercase;"
4424
id="settingRow">
@@ -100,4 +80,4 @@
10080
}
10181
}
10282

103-
</script>
83+
</script>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{% assign sources = site.data.catalog.sources.items | where: "hidden", "false" %}
2+
3+
<input class="table-search" type="text" id="sourceFilterInput" onkeyup="searchFilterSources()"
4+
placeholder="Search for an source..">
5+
6+
<table id="sourceSettingsTable">
7+
<thead>
8+
<tr>
9+
<th>Integration</th>
10+
<th>US Workspace</th>
11+
<th>EU workspace</th>
12+
</tr>
13+
</thead>
14+
<tbody>
15+
<tr class="sourceSettingRow source">
16+
<td colspan="4" style="font-weight: bold; background-color:fafbff;font-size: 10px; text-transform: uppercase;"
17+
id="sourceSettingRow">
18+
Sources</td>
19+
</tr>
20+
{% for source in sources %}
21+
<tr class="sourceSettingRow source" id="sourceSettingRow">
22+
<td><a href="/docs/{{source.url}}">{{source.display_name}}</a></td>
23+
<td>{% if source.regions contains "us" %}<img class="inline" src="/docs/images/supported.svg" />{% else %}<img
24+
alt="" class="inline" src="/docs/images/unsupported.svg" />{% endif %}</td>
25+
<td> {% if source.regions contains "eu" %}<img class="inline"
26+
src="/docs/images/supported.svg" />{% else %}<img alt="" class="inline"
27+
src="/docs/images/unsupported.svg" />{% endif %}</td>
28+
</tr>
29+
{% endfor %}
30+
</tbody>
31+
</table>
32+
33+
<script>
34+
function searchFilterSources() {
35+
var input, filter, table, tr, td, i, txtValue;
36+
37+
input = document.getElementById("sourceFilterInput");
38+
filter = input.value.toUpperCase();
39+
table = document.getElementById("sourceSettingsTable");
40+
tr = document.getElementsByClassName("sourceSettingRow");
41+
for (i = 0; i < tr.length; i++) {
42+
td = tr[i].getElementsByTagName("td")[0];
43+
if (td) {
44+
txtValue = td.textContent || td.innerText;
45+
if (txtValue.toUpperCase().indexOf(filter) > -1) {
46+
tr[i].style.display = "";
47+
} else {
48+
tr[i].style.display = "none"
49+
}
50+
}
51+
}
52+
}
53+
54+
</script>

src/guides/regional-segment.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,12 @@ Use Segment's custom CIDR `3.251.148.96/29` while authorizing Segment to write i
8888
The following integrations marked with a ![Supports EU regional endpoints](/docs/images/supported.svg){:class="inline"} (checkmark) support EU Regional endpoints.
8989

9090
{% include content/regional-integrations-table.md %}
91+
92+
## Source Regional support
93+
94+
> info "Don't see regional support for a source you're using?"
95+
> As more of the partner Sources start to support posting data to our regional endpoint, Segment will update this list. Your contact for that tool should have a timeline for when they're hoping to support regional data ingestion. You can also visit Segment's [support page](https://segment.com/help/contact/) for any Segment-related questions.
96+
97+
The following Sources marked with a ![Supports EU regional endpoints](/docs/images/supported.svg){:class="inline"} (checkmark) are supported in EU workspaces.
98+
99+
{% include content/regional-sources-table.md %}

0 commit comments

Comments
 (0)