Skip to content

Commit 5ac3ec3

Browse files
committed
Add integration labels
1 parent 5b521cc commit 5ac3ec3

File tree

10 files changed

+57
-0
lines changed

10 files changed

+57
-0
lines changed

src/_data/support-types.yml

+10
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

+36
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

+1
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

+4
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/apple/index.md

+1
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/kotlin-android/index.md

+1
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/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Analytics for React Native
33
strat: react-native
4+
support_type: flagship
45
id: B0X0QmvMny
56
---
67

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

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Analytics for Xamarin
33
sourceTitle: 'Xamarin'
44
sourceCategory: 'Mobile'
55
id: wcssVcPJrc
6+
support_type: community
67
---
78
Segment's [Xamarin](http://xamarin.com/) Portable Class Library ([PCL](http://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/)) is the best way to integrate analytics into your Xamarin application. It lets you record analytics data from your C#, F#, and .NET code, and supports `PCL Profile 4.0 - Profile136`, which targets the following platforms:
89

src/connections/sources/catalog/libraries/server/node/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Analytics for Node.js
33
redirect_from: '/connections/sources/catalog/libraries/server/node-js/'
44
repo: analytics-next
55
strat: node-js
6+
support_type: flagship
67
---
78

89
Segment's Analytics Node.js library lets you record analytics data from your node code. The requests hit Segment's servers, and then Segment routes your data to any destinations you have enabled.

src/connections/sources/catalog/libraries/website/javascript/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ redirect_from:
66
- '/sources/website/analytics.js/'
77
- '/connections/sources/catalog/libraries/website/javascript/analytics-js-2/'
88
strat: ajs
9+
support_type: flagship
910
id: IqDTy1TpoU
1011
---
1112

0 commit comments

Comments
 (0)