Skip to content

Commit 72a99d7

Browse files
authored
Ecosystem UX improvements (#995)
Signed-off-by: Michael Beemer <[email protected]>
1 parent dd9d028 commit 72a99d7

File tree

2 files changed

+15
-22
lines changed

2 files changed

+15
-22
lines changed

src/datasets/providers/confidence.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ export const Confidence: Provider = {
1010
technology: 'JavaScript',
1111
vendorOfficial: true,
1212
href: 'https://github.com/spotify/confidence-sdk-js',
13-
category: ['Client','Server'],
13+
category: ['Server'],
14+
},
15+
{
16+
technology: 'JavaScript',
17+
vendorOfficial: true,
18+
href: 'https://github.com/spotify/confidence-sdk-js',
19+
category: ['Client'],
1420
},
1521
{
1622
technology: 'Java',

src/pages/ecosystem.tsx

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const VENDORS_SHOWN_AS_FACET = 20;
1919
const TECHNOLOGIES_SHOWN_AS_FACET = 15;
2020

2121
const options: ItemsJsOptions = {
22-
searchableFields: ['title', 'description'],
22+
searchableFields: ['title', 'description', 'allTechnologies'],
2323
query: '',
2424
aggregations: {
2525
type: {
@@ -35,24 +35,14 @@ const options: ItemsJsOptions = {
3535
},
3636
allTechnologies: {
3737
title: 'technologies',
38-
// searchInField: ['technology', 'parentTechnology'],
38+
searchInField: ['technology', 'parentTechnology'],
3939
size: TECHNOLOGIES_SHOWN_AS_FACET,
4040
hide_zero_doc_count: true,
4141
conjunction: false,
4242
},
43-
vendor: {
44-
title: 'vendors',
45-
size: VENDORS_SHOWN_AS_FACET,
46-
conjunction: false,
47-
hide_zero_doc_count: true,
48-
},
49-
vendorOfficial: {
50-
title: 'official',
51-
size: 2,
52-
conjunction: true,
53-
},
43+
vendor: { title: 'vendors', size: VENDORS_SHOWN_AS_FACET, conjunction: false, hide_zero_doc_count: true },
44+
vendorOfficial: { title: 'official', size: 2, conjunction: true },
5445
},
55-
removeStopWordFilter: false,
5646
};
5747

5848
const index = createIndex(ECOSYSTEM, options);
@@ -74,8 +64,8 @@ export default function Ecosystem() {
7464
<div className="relative max-w-6xl mx-auto h-0 pointer-events-none" aria-hidden="true">
7565
<PageIllustration />
7666
</div>
77-
<div className="relative pt-16 pb-10 md:pt-32 md:pb-16">
78-
<div className="max-w-3xl mx-auto text-center pb-12">
67+
<div className="relative pt-12 pb-8">
68+
<div className="max-w-3xl mx-auto text-center pb-4">
7969
<h2 className="text-3xl text-semibold dark:fill-white fill-gray-700 mb-8 sm:px-2">
8070
Discover the OpenFeature Ecosystem
8171
</h2>
@@ -172,13 +162,10 @@ export default function Ecosystem() {
172162
/>
173163
</div>
174164
</div>
175-
<div className="lg:col-span-4">
165+
<div className="lg:col-span-4 z-10">
176166
<NoResultsBoundary fallback={<NoResults />}>
177167
<Hits
178-
classNames={{
179-
list: 'flex flex-wrap gap-8 justify-center md:justify-start',
180-
item: 'list-none',
181-
}}
168+
classNames={{ list: 'flex flex-wrap gap-8 justify-center md:justify-start', item: 'list-none' }}
182169
hitComponent={Hit}
183170
/>
184171
<Pagination />

0 commit comments

Comments
 (0)