An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Track onboarding example prompt and category clicks (#877)
Yoshiki Miura2c3de0c01cdd
diff --git a/components/action-buttons.tsx b/components/action-buttons.tsxindex 79f05d52..0f5cbbf5 100644--- a/components/action-buttons.tsx+++ b/components/action-buttons.tsx@@ -12,6 +12,7 @@ import {type TablerIcon} from '@tabler/icons-react'+import { captureClient } from '@/lib/analytics/posthog-client'import { cn } from '@/lib/utils'import { Button } from './ui/button'@@ -110,9 +111,14 @@ export function ActionButtons({const handleCategoryClick = (category: ActionCategory) => {setActiveCategory(category.key)onCategoryClick(category.label)+ captureClient('example_category_opened', { category: category.key })}const handlePromptClick = (prompt: string) => {+ captureClient('example_prompt_clicked', {+ category: activeCategory,+ prompt+ })setActiveCategory(null)onSelectPrompt(prompt)}