Skip to content

Commit 15bf9c7

Browse files
authored
Merge pull request #5758 from segmentio/integrations-labels
Add Libraries Integration Labels
2 parents 24d0554 + b0b5e36 commit 15bf9c7

File tree

18 files changed

+65
-0
lines changed

18 files changed

+65
-0
lines changed

src/_data/support-types.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
types:
2+
- display_name: Community
3+
slug: community
4+
support-note: "Segment originally developed but no longer manages or updates community libraries. These libraries are available on GitHub under the MIT License for the open-source community."
5+
- display_name: Legacy
6+
slug: legacy
7+
support-note: "Legacy libraries function reliably and send data as intended but receive no new feature support other than security and privacy updates."
8+
- display_name: Flagship
9+
slug: flagship
10+
support-note: "Flagship libraries offer the most up-to-date functionality on Segment’s most popular platforms. Segment actively maintains flagship libraries, which benefit from new feature releases and ongoing development and support."

src/_includes/content/support-grid.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
This include is adapted from the plan-grid.md include.
3+
An additional support-types.yml data file is added to centralize the support type data.
4+
-->
5+
{% assign supportTypesData = site.data.support-types.types %}
6+
{% assign supportType = supportTypesData | where: "slug", page.support_type | first %}
7+
<!-- The line below hides the grid if there's no matching data in sources.yml-->
8+
{% if supportType %}
9+
10+
<div class="popover" data-popover data-active-class="popover--active">
11+
<div class="flex flex--wrap waffle" style="margin-top: 8px;" >
12+
13+
{% for item in supportTypesData %}
14+
{% if item.slug == supportType.slug %}
15+
<div class="flex__column flex__column--shrink">
16+
<span class="badge badge--{% if item.slug == 'community' %}warning{% elsif item.slug == 'legacy' %}gray{% elsif item.slug == 'flagship' %}success{%endif%}"> {{item.display_name | capitalize }} ✓ </span>
17+
</div>
18+
{% else %}
19+
<div class="flex__column flex__column--shrink">
20+
<span class="badge badge--gray" style="opacity:0.2"> {{item.slug | capitalize }} x </span>
21+
</div>
22+
{% endif %}
23+
{% endfor %}
24+
25+
<div class="flex__column flex__column--shrink" style="padding-top:0px">
26+
<a class="recent-contributor__button" style="padding: 4px 10px;" href="#" data-popover-target="contributors">?</a>
27+
</div>
28+
</div>
29+
30+
<div class="popover__body" data-popover-body="contributors">
31+
{% if supportType.support-note %}
32+
<p style="font-size:12px">{{supportType.support-note}}</p>
33+
{% endif %}
34+
</div>
35+
</div>
36+
{% endif %}

src/_layouts/integration.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<h1 id="{{ page.title | slugify }}">
4949
{{ page.title }}
5050
</h1>
51+
{% include content/support-grid.md %}
5152
{%- endif -%}
5253

5354
{%- if page.excerpt -%}

src/_sass/components/_badge.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
background-color: lighten(color(error), 10%);
2424
color: white;
2525
}
26+
&--warning {
27+
background-color: lighten(color(warning), 40%);
28+
color: color(warning-dark);
29+
}
2630

2731
&--none {
2832
background-color: white;

src/connections/sources/catalog/libraries/mobile/amp/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Analytics for AMP
3+
support_type: community
34
redirect_from: '/connections/sources/catalog/libraries/server/amp/'
45
---
56

src/connections/sources/catalog/libraries/mobile/android/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 'Analytics for Android'
33
strat: android
44
repo: analytics-android
5+
support_type: legacy
56
id: wXNairW5xX
67
---
78
Analytics for Android makes it easier for you to send data to any tool without having to learn, test or implement a new API every time.

src/connections/sources/catalog/libraries/mobile/apple/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ redirect_from:
55
- '/connections/sources/catalog/cloud-apps/swift/'
66
- '/connections/sources/catalog/libraries/mobile/swift-ios/'
77
id: dZeHygTSD4
8+
support_type: flagship
89
tags:
910
- apple
1011
- swift

src/connections/sources/catalog/libraries/mobile/ios/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Analytics for iOS
33
strat: ios
44
repo: analytics-ios
5+
support_type: legacy
56
id: UBrsG9RVzw
67
---
78
With Analytics for iOS, you can send your data to analytics or marketing tool, without needing to learn, test, or implement a new API with each update or addition.

src/connections/sources/catalog/libraries/mobile/kotlin-android/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ strat: kotlin-android
44
redirect_from:
55
- '/connections/sources/catalog/cloud-apps/kotlin/'
66
id: dZeHygTSD4
7+
support_type: flagship
78
tags:
89
- android
910
- kotlin

src/connections/sources/catalog/libraries/mobile/react-native/destination-plugins/braze-react-native.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Analytics React Native Braze Plugin
33
strat: react-native
4+
support-type: community
45
---
56

67
[Braze](https://www.braze.com/), formerly Appboy, is an engagement platform that empowers growth by helping marketing teams to build customer loyalty through mobile, omni-channel customer experiences.

0 commit comments

Comments
 (0)