Skip to content

Commit 7fcff0e

Browse files
committed
feat(builder): add analytics category and posthog keywords
1 parent 608f21f commit 7fcff0e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/builder/api/suggest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ const FEATURE_KEYWORDS: Record<
8989
{ keyword: 'monitoring', weight: 0.8 },
9090
{ keyword: 'sentry', weight: 1 },
9191
],
92+
posthog: [
93+
{ keyword: 'analytics', weight: 1 },
94+
{ keyword: 'posthog', weight: 1 },
95+
{ keyword: 'tracking', weight: 0.8 },
96+
{ keyword: 'feature flags', weight: 0.9 },
97+
{ keyword: 'session replay', weight: 1 },
98+
{ keyword: 'product analytics', weight: 1 },
99+
],
92100
}
93101

94102
const INTENT_FEATURES: Record<string, Array<string>> = {

src/components/builder/FeaturePicker.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type FeatureCategory =
3535
| 'auth'
3636
| 'deploy'
3737
| 'tooling'
38+
| 'analytics'
3839
| 'monitoring'
3940
| 'api'
4041
| 'i18n'
@@ -90,6 +91,11 @@ const CATEGORY_INFO: Record<
9091
description: 'Development tools, linting, and utilities',
9192
color: '#F472B6', // Pink-400
9293
},
94+
analytics: {
95+
label: 'Analytics',
96+
description: 'Analytics and tracking tools',
97+
color: '#00bcff', // Sky-400
98+
},
9399
api: {
94100
label: 'API',
95101
description: 'Type-safe APIs and RPC frameworks',
@@ -118,6 +124,7 @@ const CATEGORY_ORDER: Array<FeatureCategory> = [
118124
'i18n',
119125
'cms',
120126
'tooling',
127+
'analytics',
121128
'other',
122129
]
123130

0 commit comments

Comments
 (0)