Skip to content

Commit eb146dc

Browse files
committed
First pass at SDK tiers
1 parent 730f9d6 commit eb146dc

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-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: "This integration is supported by the community members who maintain it."
5+
- display_name: Legacy
6+
slug: legacy
7+
support-note: "This integration is no longer supported by Segment."
8+
- display_name: Flagship
9+
slug: flagship
10+
support-note: "This integration is officially supported by Segment."

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+
The support-types.yml file centralizes this 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/destinations/catalog/firebase/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Firebase Destination
33
strat: google
44
id: 579a568e80412f644ff19cf7
5+
support_type: flagship
56
---
67
Firebase is Google's platform for mobile apps. The Segment Firebase destination requires that you bundle the Firebase SDK with your project. The Segment-wrapped destination code then runs on the user's device, and sends its tracking calls to the Firebase API endpoints, and a copy to Segment for archiving.
78

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

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)