diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/EnableInsightsBanner.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/EnableInsightsBanner.tsx index 94bee72b1c..457ef00856 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/EnableInsightsBanner.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/EnableInsightsBanner.tsx @@ -5,6 +5,7 @@ import { SparklesIcon } from "lucide-react"; import { useState } from "react"; import toast from "react-hot-toast"; import { Alert, AlertDescription, AlertTitle } from "@formbricks/ui/components/Alert"; +import { Badge } from "@formbricks/ui/components/Badge"; import { Button } from "@formbricks/ui/components/Button"; interface EnableInsightsBannerProps { @@ -27,30 +28,34 @@ export const EnableInsightsBanner = ({ }; return ( - - - - Ready to enable insights? - - - + +
+ +
+
+ + Ready to test AI insights? + + + You can enable the new insights feature for the survey to get AI-based insights for your open-text responses. - - - + +
+
); }; diff --git a/apps/web/modules/ee/insights/components/insights-view.tsx b/apps/web/modules/ee/insights/components/insights-view.tsx index 2ba6f8b6a3..92ca88b67b 100644 --- a/apps/web/modules/ee/insights/components/insights-view.tsx +++ b/apps/web/modules/ee/insights/components/insights-view.tsx @@ -101,7 +101,7 @@ export const InsightView = ({ {isFetching ? null : insights.length === 0 ? ( - +

No insights found. Collect more survey responses or enable insights for your existing @@ -110,7 +110,7 @@ export const InsightView = ({ ) : localInsights.length === 0 ? ( - +

No insights found for this filter.

@@ -119,7 +119,7 @@ export const InsightView = ({ localInsights.slice(0, visibleInsights).map((insight) => ( { setCurrentInsight(insight); setIsInsightSheetOpen(true); @@ -128,7 +128,9 @@ export const InsightView = ({ {insight._count.documentInsights} {insight.title} - {insight.description} + + {insight.description} + {insight.category === "complaint" ? ( diff --git a/apps/web/modules/ee/insights/experience/components/dashboard.tsx b/apps/web/modules/ee/insights/experience/components/dashboard.tsx index 6d8cd45856..e147b13f71 100644 --- a/apps/web/modules/ee/insights/experience/components/dashboard.tsx +++ b/apps/web/modules/ee/insights/experience/components/dashboard.tsx @@ -10,7 +10,7 @@ import { useState } from "react"; import { TEnvironment } from "@formbricks/types/environment"; import { TProduct } from "@formbricks/types/product"; import { TUser } from "@formbricks/types/user"; -import { ToggleGroup, ToggleGroupItem } from "@formbricks/ui/components/ToggleGroup"; +import { Tabs, TabsList, TabsTrigger } from "@formbricks/ui/components/Tabs"; interface DashboardProps { user: TUser; @@ -32,26 +32,29 @@ export const Dashboard = ({ return (
- + value && setStatsPeriod(value as TStatsPeriod)}> - - Today - - - This week - - - This month - - - This quarter - - - All time - - + onValueChange={(value) => value && setStatsPeriod(value as TStatsPeriod)} + className="flex justify-center"> + + + Today + + + This week + + + This month + + + This quarter + + + All time + + + {insights.length === 0 && !isFetching ? ( - +

No insights found. Collect more survey responses or enable insights for your existing @@ -146,7 +146,7 @@ export const InsightView = ({ insights.map((insight) => ( { setCurrentInsight(insight); setIsInsightSheetOpen(true); @@ -155,7 +155,9 @@ export const InsightView = ({ {insight._count.documentInsights} {insight.title} - {insight.description} + + {insight.description} + {insight.category === "complaint" ? ( diff --git a/packages/ui/components/Alert/index.tsx b/packages/ui/components/Alert/index.tsx index 8df97fc6bb..d9e3c89c6e 100644 --- a/packages/ui/components/Alert/index.tsx +++ b/packages/ui/components/Alert/index.tsx @@ -3,7 +3,7 @@ import * as React from "react"; import { cn } from "@formbricks/lib/cn"; const alertVariants = cva( - "relative w-full rounded-lg border p-3 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-3 [&>svg]:top-3 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-9", + "relative w-full rounded-xl border p-3 [&>svg]:absolute [&>svg]:text-foreground [&>svg]:left-3 [&>svg]:top-3 [&>svg+div]:translate-y-[-3px] [&:has(svg)]:pl-9", { variants: { variant: { @@ -34,7 +34,7 @@ const AlertTitle = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes & { dangerouslySetInnerHTML?: { __html: string } } >(({ className, ...props }, ref) => ( -

+
)); AlertTitle.displayName = "AlertTitle"; @@ -42,7 +42,7 @@ const AlertDescription = React.forwardRef< HTMLParagraphElement, React.HTMLAttributes & { dangerouslySetInnerHTML?: { __html: string } } >(({ className, ...props }, ref) => ( -
+
)); AlertDescription.displayName = "AlertDescription"; diff --git a/packages/ui/components/Card/index.tsx b/packages/ui/components/Card/index.tsx index 819aa673ce..d38bacc230 100644 --- a/packages/ui/components/Card/index.tsx +++ b/packages/ui/components/Card/index.tsx @@ -5,7 +5,7 @@ const Card = React.forwardRef (
) @@ -49,4 +49,4 @@ const CardFooter = React.forwardRef>( ({ className, ...props }, ref) => ( - + ) ); TableHeader.displayName = "TableHeader"; diff --git a/packages/ui/components/Tabs/index.tsx b/packages/ui/components/Tabs/index.tsx index 8d56818025..abef45090d 100644 --- a/packages/ui/components/Tabs/index.tsx +++ b/packages/ui/components/Tabs/index.tsx @@ -13,7 +13,7 @@ const TabsList = React.forwardRef< + className={cn( + "scroll-m-20 text-4xl font-bold tracking-tight text-slate-800 lg:text-4xl", + props.className + )}> {props.children}
); @@ -21,7 +24,7 @@ const H2 = forwardRef {props.children} @@ -37,7 +40,7 @@ const H3 = forwardRef + className={cn("scroll-m-20 text-2xl font-semibold tracking-tight text-slate-800", props.className)}> {props.children} ); @@ -51,7 +54,7 @@ const H4 = forwardRef + className={cn("scroll-m-20 text-xl font-semibold tracking-tight text-slate-800", props.className)}> {props.children} ); @@ -62,7 +65,7 @@ export { H4 }; const Lead = forwardRef>((props, ref) => { return ( -

+

{props.children}

);