diff --git a/src/builder/api/suggest.ts b/src/builder/api/suggest.ts index 56598453..e6d64b24 100644 --- a/src/builder/api/suggest.ts +++ b/src/builder/api/suggest.ts @@ -78,6 +78,14 @@ const FEATURE_KEYWORDS: Record< { keyword: 'monitoring', weight: 0.8 }, { keyword: 'sentry', weight: 1 }, ], + posthog: [ + { keyword: 'analytics', weight: 1 }, + { keyword: 'posthog', weight: 1 }, + { keyword: 'tracking', weight: 0.8 }, + { keyword: 'feature flags', weight: 0.9 }, + { keyword: 'session replay', weight: 1 }, + { keyword: 'product analytics', weight: 1 }, + ], } const INTENT_FEATURES: Record> = { diff --git a/src/components/builder/FeaturePicker.tsx b/src/components/builder/FeaturePicker.tsx index 0a03f238..d277d81d 100644 --- a/src/components/builder/FeaturePicker.tsx +++ b/src/components/builder/FeaturePicker.tsx @@ -36,6 +36,7 @@ type FeatureCategory = | 'auth' | 'deploy' | 'tooling' + | 'analytics' | 'monitoring' | 'api' | 'i18n' @@ -91,6 +92,11 @@ const CATEGORY_INFO: Record< description: 'Development tools, linting, and utilities', color: '#F472B6', // Pink-400 }, + analytics: { + label: 'Analytics', + description: 'Analytics and user behavior tracking', + color: '#00bcff', // Sky-400 + }, api: { label: 'API', description: 'Type-safe APIs and RPC frameworks', @@ -118,6 +124,7 @@ const CATEGORY_ORDER: Array = [ 'api', 'i18n', 'cms', + 'analytics', 'tooling', 'other', ]