Skip to content

Commit 5d9c164

Browse files
Add integrations type to ecosystem (#1247)
## This PR - Creates a place to list integrations into frameworks. - List dropwizard-openfeature as the integration of Open-feature java SDK into the Dropwizard Java framework Signed-off-by: Philipp Fehre <[email protected]>
1 parent 2d81953 commit 5d9c164

File tree

6 files changed

+76
-2
lines changed

6 files changed

+76
-2
lines changed

src/datasets/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import { ECOSYSTEM_HOOKS } from './hooks';
22
import { ECOSYSTEM_OFREP_APIS, OFREPElement } from './ofrep-api';
33
import { ECOSYSTEM_PROVIDERS } from './providers';
44
import { ECOSYSTEM_SDKS } from './sdks/ecosystem';
5+
import { ECOSYSTEM_INTEGRATONS } from './integrations';
56
import { EcosystemElement, Technology, Type } from './types';
67

78
export const ECOSYSTEM: (EcosystemElement | OFREPElement)[] = [
89
...ECOSYSTEM_SDKS,
910
...ECOSYSTEM_PROVIDERS,
1011
...ECOSYSTEM_HOOKS,
1112
...ECOSYSTEM_OFREP_APIS,
13+
...ECOSYSTEM_INTEGRATONS,
1214
].map((s) => ({
1315
// Creates a unique id per item for the search index
1416
id:
@@ -41,4 +43,5 @@ export const TYPE_COLOR_MAP: Record<Type, string> = {
4143
Provider: 'bg-blue-50 text-blue-600 ring-blue-500/10',
4244
SDK: 'bg-violet-50 text-violet-600 ring-violet-500/10',
4345
'OFREP API': 'bg-orange-50 text-orange-600 ring-orange-500/10',
46+
Integration: 'bg-gray-50 text-gray-600 ring-gray-500/10',
4447
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import DropwizardSvg from '@site/static/img/dropwizard-no-fill.svg';
2+
import { Integration } from '.';
3+
4+
export const DropwizardOpenfeature: Integration = {
5+
name: 'Dropwizard Openfeature',
6+
logo: DropwizardSvg,
7+
description: 'Dropwizard module for integrating with Openfeature.',
8+
technologies: [
9+
{
10+
technology: 'Java',
11+
vendorOfficial: false,
12+
href: 'https://github.com/sideshowcoder/dropwizard-openfeature',
13+
category: ['Server'],
14+
},
15+
],
16+
};

src/datasets/integrations/index.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { ComponentType, SVGProps } from 'react';
2+
import { DropwizardOpenfeature } from './dropwizard-openfeature';
3+
import { Category, EcosystemElement, Technology } from '../types';
4+
5+
export const ECOSYSTEM_INTEGRATONS: EcosystemElement[] = [DropwizardOpenfeature]
6+
.map((integration) => {
7+
return integration.technologies.map(({ vendorOfficial, technology, href, category }): EcosystemElement => {
8+
return {
9+
title: `${integration.name}`,
10+
description: integration.description,
11+
type: 'Integration',
12+
logo: integration.logo,
13+
href,
14+
allTechnologies: [technology],
15+
technology,
16+
vendorOfficial,
17+
category,
18+
};
19+
});
20+
})
21+
.flat();
22+
23+
export type Integration = {
24+
name: string;
25+
logo: ComponentType<SVGProps<SVGSVGElement>>;
26+
technologies: Array<{ technology: Technology; vendorOfficial: boolean; href: string; category: Category[] }>;
27+
description: string;
28+
};

src/datasets/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type Technology =
3333
| 'SvelteKit';
3434

3535
export type Category = 'Server' | 'Client';
36-
export type Type = 'Hook' | 'Provider' | 'SDK' | 'OFREP API';
36+
export type Type = 'Hook' | 'Provider' | 'SDK' | 'OFREP API' | 'Integration';
3737

3838
export type SdkCompatibility = {
3939
/**

src/pages/ecosystem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const options: ItemsJsOptions = {
2626
aggregations: {
2727
type: {
2828
title: 'types',
29-
size: 4,
29+
size: 5,
3030
hide_zero_doc_count: true,
3131
conjunction: false,
3232
},

static/img/dropwizard-no-fill.svg

Lines changed: 27 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)