🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
refactor(web): Create new design system dir & extract `Spinner` (#13428)
Ben Bachem6cd1101484d2
diff --git a/web/src/components/design-system/README.md b/web/src/components/design-system/README.mdnew file mode 100644index 0000000000..38a9acb7a3--- /dev/null+++ b/web/src/components/design-system/README.md@@ -0,0 +1,127 @@+# Design System++This folder contains **reusable, primitive, presentational UI components**.++Do **not** include:++- Feature-specific components (e.g. `TracePanel`)+- Logic-heavy components++---++## Principles++- Presentational only (no business logic)+- Explicit, strictly typed APIs+- Consistent patterns over flexibility+- Props over context (no React Context)++---++## Rules++### Structure++- One component per file+- Folder name = component name++```+design-system/+ Button/+ Button.tsx+ Button.stories.tsx+```++---++### Styling & Variants++- No `className` or `style` props+- No arbitrary values (e.g. `#fff`, `12px`)+- Use explicit enums:++ ```ts+ size: "sm" | "md" | "lg";+ variant: "primary" | "secondary";+ ```++- Use `cva` for all variants++---++### Layout++- No margin on root element+- Layout/spacing is handled externally+- Internal spacing is allowed++---++### Props & Types++- Use explicit enums (no free-form values)+- Prop values must never match Tailwind class names:+ - ✅ `size="md"`+ - ❌ `size="w-5 h-5"`+- Enforce mutually exclusive props at type level+- Use **positive naming**:+ - ✅ `suffix={null}`+ - ❌ `noSuffix`++- Boolean props must use `is` / `should`:+ - `isLoading`, `shouldTruncate`++### Logic Separation++Design-system components own **visual states**, not business logic.++Logic-heavy components must reuse design-system components for visuals instead of recreating UI internally.++```tsx+// ✅ Button owns the loading visual state+type ButtonProps = {+ isLoading: boolean;+};++const PromiseButton = (props: PromiseButtonProps) => {+ const [isLoading, setIsLoading] = useState(false);++ return <Button isLoading={isLoading} />;+};+```++```tsx+// ❌ PromiseButton reimplements Button loading visuals+const PromiseButton = (props: PromiseButtonProps) => {+ const [isLoading, setIsLoading] = useState(false);++ if (isLoading) {+ return (+ <div>+ <Spinner />+ </div>+ );+ }++ return <Button isLoading={isLoading} />;+};+```++---++## Summary (strict)++- 1 component per file+- No `className` / `style`+- No px / hex values as props+- Use enums + `cva`+- No root margin+- No React Context+- Props must be explicit, typed, and use a positive name+- Prop values must not mirror Tailwind class names+- Boolean props → `is` / `should`+- Design ≠ logic (separate them)++---++If unsure: **only include reusable, design-only primitives**.diff --git a/web/src/components/design-system/Spinner/Spinner.tsx b/web/src/components/design-system/Spinner/Spinner.tsxnew file mode 100644index 0000000000..84c0e19407--- /dev/null+++ b/web/src/components/design-system/Spinner/Spinner.tsx@@ -0,0 +1,44 @@+import { cva } from "class-variance-authority";+import { Loader2 } from "lucide-react";++const classes = cva("animate-spin", {+ variants: {+ variant: {+ primary: "text-primary",+ muted: "text-muted-foreground",+ },+ size: {+ xxs: "size-3",+ xs: "size-3.5",+ sm: "size-4",+ md: "size-5",+ lg: "size-6",+ xl: "size-8",+ xxl: "size-12",+ full: "size-full",+ },+ display: {+ block: "block",+ inline: "inline",+ },+ },+ defaultVariants: { display: "block" },+});++type ClassProps = NonNullable<Parameters<typeof classes>["0"]>;++type Variant = NonNullable<ClassProps["variant"]>;+type Size = NonNullable<ClassProps["size"]>;+type Display = NonNullable<ClassProps["display"]>;++export default function Spinner({+ variant,+ size,+ display,+}: {+ variant?: Variant;+ size: Size;+ display?: Display;+}) {+ return <Loader2 className={classes({ variant, size, display })} />;+}diff --git a/web/src/components/trace2/components/IOPreview/components/CorrectedOutputField.tsx b/web/src/components/trace2/components/IOPreview/components/CorrectedOutputField.tsxindex 083ece649d..c7522a71ba 100644--- a/web/src/components/trace2/components/IOPreview/components/CorrectedOutputField.tsx+++ b/web/src/components/trace2/components/IOPreview/components/CorrectedOutputField.tsx@@ -1,4 +1,4 @@-import { Pencil, Trash, FileDiff, Loader2, Check, Info } from "lucide-react";+import { Pencil, Trash, FileDiff, Check, Info } from "lucide-react";import { cn } from "@/src/utils/tailwind";import { Button } from "@/src/components/ui/button";import { type ScoreDomain } from "@langfuse/shared";@@ -17,6 +17,7 @@ import {HoverCardTrigger,} from "@/src/components/ui/hover-card";import Link from "next/link";+import Spinner from "@/src/components/design-system/Spinner/Spinner";interface CorrectedOutputFieldProps {projectId: string;@@ -202,7 +203,7 @@ export function CorrectedOutputField({)}{isValidJson && saveStatus === "saving" && (<div className="mr-2 flex items-center gap-1">- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" /><span className="text-muted-foreground text-xs">Saving</span>diff --git a/web/src/components/trace2/components/TraceLogView/LogViewExpandedContent.tsx b/web/src/components/trace2/components/TraceLogView/LogViewExpandedContent.tsxindex 2acefca9a3..abf8cc131b 100644--- a/web/src/components/trace2/components/TraceLogView/LogViewExpandedContent.tsx+++ b/web/src/components/trace2/components/TraceLogView/LogViewExpandedContent.tsx@@ -6,10 +6,10 @@*/import { memo, useMemo } from "react";-import { Loader2 } from "lucide-react";import { PrettyJsonView } from "@/src/components/ui/PrettyJsonView";import { type TreeNode } from "@/src/components/trace2/lib/types";import { useLogViewObservationIO } from "./useLogViewObservationIO";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export interface LogViewExpandedContentProps {node: TreeNode;@@ -69,7 +69,7 @@ export const LogViewExpandedContent = memo(function LogViewExpandedContent({<div className="w-full">{isLoading && (<div className="flex items-center justify-center py-4">- <Loader2 className="text-muted-foreground h-4 w-4 animate-spin" />+ <Spinner size="sm" variant="muted" /><span className="text-muted-foreground ml-2 text-xs">Loading...</span></div>)}diff --git a/web/src/components/trace2/components/TraceLogView/LogViewJsonMode.tsx b/web/src/components/trace2/components/TraceLogView/LogViewJsonMode.tsxindex f91868299f..d7a6ef2423 100644--- a/web/src/components/trace2/components/TraceLogView/LogViewJsonMode.tsx+++ b/web/src/components/trace2/components/TraceLogView/LogViewJsonMode.tsx@@ -8,10 +8,10 @@*/import { memo, useEffect } from "react";-import { Loader2 } from "lucide-react";import { JSONView } from "@/src/components/ui/CodeJsonViewer";import { type FlatLogItem } from "./log-view-types";import { useLogViewAllObservationsIO } from "./useLogViewAllObservationsIO";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export interface LogViewJsonModeProps {items: FlatLogItem[];@@ -53,7 +53,7 @@ export const LogViewJsonMode = memo(function LogViewJsonMode({{/* Loading state */}{isLoading && (<div className="flex flex-1 items-center justify-center">- <Loader2 className="text-muted-foreground h-5 w-5 animate-spin" />+ <Spinner size="md" variant="muted" /><span className="text-muted-foreground ml-2 text-sm">Loading observations (0/{totalCount})...</span>diff --git a/web/src/components/trace2/components/TraceLogView/LogViewToolbar.tsx b/web/src/components/trace2/components/TraceLogView/LogViewToolbar.tsxindex fb911e7b71..81b1de4cc9 100644--- a/web/src/components/trace2/components/TraceLogView/LogViewToolbar.tsx+++ b/web/src/components/trace2/components/TraceLogView/LogViewToolbar.tsx@@ -16,7 +16,6 @@ import {Check,IndentIncrease,Timer,- Loader2,} from "lucide-react";import { Button } from "@/src/components/ui/button";import { Command, CommandInput } from "@/src/components/ui/command";@@ -31,6 +30,7 @@ import {HoverCardTrigger,} from "@/src/components/ui/hover-card";import { cn } from "@/src/utils/tailwind";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export interface LogViewToolbarProps {/** Current search query */@@ -244,7 +244,7 @@ export const LogViewToolbar = memo(function LogViewToolbar({disabled={isDownloadLoading}>{isDownloadLoading ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />+ <Spinner size="xs" />) : isCopied ? (<Check className="h-3.5 w-3.5" />) : (@@ -296,7 +296,7 @@ export const LogViewToolbar = memo(function LogViewToolbar({disabled={isDownloadLoading}>{isDownloadLoading ? (- <Loader2 className="h-3.5 w-3.5 animate-spin" />+ <Spinner size="xs" />) : (<Download className="h-3.5 w-3.5" />)}diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsxindex 247fcfd1b2..e43f793afe 100644--- a/web/src/components/ui/button.tsx+++ b/web/src/components/ui/button.tsx@@ -3,7 +3,8 @@ import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/src/utils/tailwind";-import { Loader2 } from "lucide-react";++import { default as SpinnerLib } from "@/src/components/design-system/Spinner/Spinner";const buttonVariants = cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",@@ -90,7 +91,7 @@ export { Button, buttonVariants };function Spinner() {return (<div className="flex h-1/2 items-center justify-center">- <Loader2 className="h-full w-full animate-spin" />+ <SpinnerLib size="full" /></div>);}diff --git a/web/src/features/automations/components/AutomationButton.tsx b/web/src/features/automations/components/AutomationButton.tsxindex a57ea46668..65fc28e11f 100644--- a/web/src/features/automations/components/AutomationButton.tsx+++ b/web/src/features/automations/components/AutomationButton.tsx@@ -1,8 +1,9 @@import { ActionButton } from "@/src/components/ActionButton";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";-import { Zap, Loader2 } from "lucide-react";+import { Zap } from "lucide-react";import { type ButtonProps } from "@/src/components/ui/button";import { api } from "@/src/utils/api";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export const AutomationButton = ({projectId,@@ -21,7 +22,7 @@ export const AutomationButton = ({const numberIndicator = numberOfAutomations.isLoading ? (<span className="ml-1.5 inline-flex w-6 items-center justify-center rounded-sm bg-transparent px-1 text-xs">- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" /></span>) : (<spandiff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsxindex 71a7380e3c..d5f4389a29 100644--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx@@ -11,7 +11,8 @@ import {} from "@/src/components/ui/card";import Link from "next/link";import { useRouter } from "next/router";-import { Check, AlertCircle, Loader2 } from "lucide-react";+import { Check, AlertCircle } from "lucide-react";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type StatusStepProps = {projectId: string;@@ -65,7 +66,7 @@ export function StatusStep({<div className="flex flex-col items-center text-center">{!isComplete && (<div className="bg-primary/10 mb-4 rounded-full p-6">- <Loader2 className="text-primary h-12 w-12 animate-spin" />+ <Spinner size="xxl" variant="primary" /></div>)}{isSuccess && (diff --git a/web/src/features/dashboard/components/cards/DashboardCard.tsx b/web/src/features/dashboard/components/cards/DashboardCard.tsxindex 5741742296..df78544e53 100644--- a/web/src/features/dashboard/components/cards/DashboardCard.tsx+++ b/web/src/features/dashboard/components/cards/DashboardCard.tsx@@ -1,3 +1,4 @@+import Spinner from "@/src/components/design-system/Spinner/Spinner";import {Card,CardHeader,@@ -6,7 +7,6 @@ import {CardContent,} from "@/src/components/ui/card";import { cn } from "@/src/utils/tailwind";-import { Loader } from "lucide-react";import { type ReactNode } from "react";export type DashboardCardProps = {@@ -47,7 +47,7 @@ export const DashboardCard = ({{headerChildren}{isLoading ? (<div className="absolute top-5 right-5">- <Loader className="h-5 w-5 animate-spin" />+ <Spinner size="md" /></div>) : null}</CardHeader>diff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsxindex 7f18f3ce13..9363a212a0 100644--- a/web/src/features/evals/components/evaluator-table.tsx+++ b/web/src/features/evals/components/evaluator-table.tsx@@ -24,13 +24,7 @@ import {} from "@/src/features/evals/utils/typeHelpers";import { useOrderByState } from "@/src/features/orderBy/hooks/useOrderByState";import TableIdOrName from "@/src/components/table/table-id";-import {- MoreVertical,- Loader2,- ExternalLinkIcon,- Edit,- Info,-} from "lucide-react";+import { MoreVertical, ExternalLinkIcon, Edit, Info } from "lucide-react";import { usePeekNavigation } from "@/src/components/table/peek/hooks/usePeekNavigation";import { PeekViewEvaluatorConfigDetail } from "@/src/components/table/peek/peek-evaluator-config-detail";import { TablePeekView } from "@/src/components/table/peek";@@ -69,6 +63,7 @@ import {type EvaluatorDataRow,useEvaluatorTableData,} from "@/src/features/evals/hooks/useEvaluatorTableData";+import Spinner from "@/src/components/design-system/Spinner/Spinner";function LegacyBadgeCell({ status }: { status: string }) {return (@@ -534,7 +529,7 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {</DialogHeader>{existingEvaluator.isLoading ? (<div className="flex items-center justify-center p-4">- <Loader2 className="h-6 w-6 animate-spin" />+ <Spinner size="lg" /></div>) : (<EvaluatorFormdiff --git a/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx b/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsxindex d40a10f1e6..c82bc1fff4 100644--- a/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx+++ b/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx@@ -24,9 +24,9 @@ import { api } from "@/src/utils/api";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";-import { Loader2 } from "lucide-react";import { getFormattedPayload } from "@/src/features/experiments/utils/format";import { type Prisma } from "@langfuse/shared";+import Spinner from "@/src/components/design-system/Spinner/Spinner";const RemoteExperimentTriggerSchema = z.object({payload: z.string(),@@ -180,7 +180,9 @@ export const RemoteExperimentTriggerModal = ({disabled={runRemoteExperimentMutation.isPending}>{runRemoteExperimentMutation.isPending && (- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="mr-2">+ <Spinner size="sm" />+ </div>)}Run</Button>diff --git a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsxindex 94fc284ab6..763ac85ec1 100644--- a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx+++ b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx@@ -26,10 +26,10 @@ import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccesimport { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { CodeMirrorEditor } from "@/src/components/editor/CodeMirrorEditor";-import { Loader2 } from "lucide-react";import { type Prisma } from "@langfuse/shared";import { Skeleton } from "@/src/components/ui/skeleton";import { getFormattedPayload } from "@/src/features/experiments/utils/format";+import Spinner from "@/src/components/design-system/Spinner/Spinner";const RemoteExperimentSetupSchema = z.object({url: z.url(),@@ -180,7 +180,7 @@ export const RemoteExperimentUpsertForm = ({{dataset.isSuccess ? (<>"{dataset.data?.name}"</>) : (- <Loader2 className="inline h-4 w-4 animate-spin" />+ <Spinner size="sm" display="inline" />)}</strong>. Configure a webhook URL to trigger remote custom dataset runs from@@ -271,7 +271,9 @@ export const RemoteExperimentUpsertForm = ({disabled={deleteRemoteExperimentMutation.isPending}>{deleteRemoteExperimentMutation.isPending && (- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="mr-2">+ <Spinner size="sm" />+ </div>)}Delete</Button>@@ -281,7 +283,9 @@ export const RemoteExperimentUpsertForm = ({disabled={upsertRemoteExperimentMutation.isPending}>{upsertRemoteExperimentMutation.isPending ? (- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="mr-2">+ <Spinner size="sm" />+ </div>) : null}{existingRemoteExperiment ? "Update" : "Set up"}</Button>diff --git a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx b/web/src/features/models/components/test-match/TestModelMatchDialog.tsxindex 4611acbe96..10463a74ec 100644--- a/web/src/features/models/components/test-match/TestModelMatchDialog.tsx+++ b/web/src/features/models/components/test-match/TestModelMatchDialog.tsx@@ -15,7 +15,8 @@ import { UsageDetailsEditor } from "./UsageDetailsEditor";import { MatchedModelCard } from "./MatchedModelCard";import { MatchedTierCard } from "./MatchedTierCard";import { NoMatchDisplay } from "./NoMatchDisplay";-import { Loader2, CheckCircle, SquareArrowOutUpRight } from "lucide-react";+import { CheckCircle, SquareArrowOutUpRight } from "lucide-react";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type TestModelMatchDialogProps = {projectId: string;@@ -132,7 +133,7 @@ export function TestModelMatchDialog({<>{isLoading && (<div className="bg-muted/30 text-muted-foreground flex min-h-[300px] items-center justify-center gap-2 rounded-lg border p-6">- <Loader2 className="h-5 w-5 animate-spin" />+ <Spinner size="md" /><span>Testing match...</span></div>)}diff --git a/web/src/features/playground/page/index.tsx b/web/src/features/playground/page/index.tsxindex 04bea759dc..3e8b552717 100644--- a/web/src/features/playground/page/index.tsx+++ b/web/src/features/playground/page/index.tsx@@ -1,6 +1,6 @@import React, { useCallback, useEffect, useState } from "react";import { Button } from "@/src/components/ui/button";-import { Play, Loader2 } from "lucide-react";+import { Play } from "lucide-react";import { ResetPlaygroundButton } from "@/src/features/playground/page/components/ResetPlaygroundButton";import { useWindowCoordination } from "@/src/features/playground/page/hooks/useWindowCoordination";import { usePersistedWindowIds } from "@/src/features/playground/page/hooks/usePersistedWindowIds";@@ -14,6 +14,7 @@ import {MessageSearchToolbar,} from "@/src/components/ChatMessages/MessageSearch";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";+import Spinner from "@/src/components/design-system/Spinner/Spinner";/*** PlaygroundPage Component@@ -114,7 +115,7 @@ export default function PlaygroundPage() {}}><div className="flex h-full items-center justify-center">- <Loader2 className="h-8 w-8 animate-spin" />+ <Spinner size="xl" /></div></Page>);@@ -161,7 +162,7 @@ export default function PlaygroundPage() {<><span className="hidden sm:inline">•</span><div className="flex items-center gap-1">- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" /><span className="hidden whitespace-nowrap sm:inline">{executionStatus}</span>@@ -183,7 +184,7 @@ export default function PlaygroundPage() {}>{globalIsExecutingAll ? (- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" />) : (<Play className="h-3 w-3" />)}diff --git a/web/src/features/prompts/components/delete-folder.tsx b/web/src/features/prompts/components/delete-folder.tsxindex a51352c5cc..43e00d9936 100644--- a/web/src/features/prompts/components/delete-folder.tsx+++ b/web/src/features/prompts/components/delete-folder.tsx@@ -13,7 +13,8 @@ import {} from "@/src/components/ui/dialog";import { Input } from "@/src/components/ui/input";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";-import { Trash, Loader2, Folder, FileText } from "lucide-react";+import { Trash, Folder, FileText } from "lucide-react";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export function DeleteFolder({ folderPath }: { folderPath: string }) {const projectId = useProjectIdFromURL();@@ -89,7 +90,7 @@ export function DeleteFolder({ folderPath }: { folderPath: string }) {<h4 className="mb-2 text-sm font-medium">Prompts to delete:</h4>{prompts.isLoading ? (<div className="flex items-center justify-center py-4">- <Loader2 className="text-muted-foreground h-4 w-4 animate-spin" />+ <Spinner size="sm" variant="muted" /></div>) : prompts.isError ? (<div className="py-2 text-xs text-red-500">diff --git a/web/src/features/score-analytics/components/cards/DistributionBooleanCard.tsx b/web/src/features/score-analytics/components/cards/DistributionBooleanCard.tsxindex bebfaa038d..d235d2dacb 100644--- a/web/src/features/score-analytics/components/cards/DistributionBooleanCard.tsx+++ b/web/src/features/score-analytics/components/cards/DistributionBooleanCard.tsx@@ -7,10 +7,10 @@ import {CardTitle,} from "@/src/components/ui/card";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { ScoreDistributionBooleanChart } from "../charts/ScoreDistributionBooleanChart";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type DistributionTab = "score1" | "score2" | "all" | "matched";@@ -128,7 +128,7 @@ export function DistributionBooleanCard() {<CardDescription>Loading chart...</CardDescription></CardHeader><CardContent className="flex h-[340px] flex-col items-center justify-center pl-0">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/score-analytics/components/cards/DistributionCategoricalCard.tsx b/web/src/features/score-analytics/components/cards/DistributionCategoricalCard.tsxindex 6dee8506f6..da73f3cbe6 100644--- a/web/src/features/score-analytics/components/cards/DistributionCategoricalCard.tsx+++ b/web/src/features/score-analytics/components/cards/DistributionCategoricalCard.tsx@@ -7,11 +7,11 @@ import {CardTitle,} from "@/src/components/ui/card";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { ScoreDistributionCategoricalChart } from "../charts/ScoreDistributionCategoricalChart";import { getScoreCategoryColors } from "../../lib/color-scales";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type DistributionTab = "score1" | "score2" | "all" | "matched";@@ -217,7 +217,7 @@ export function DistributionCategoricalCard() {<CardDescription>Loading chart...</CardDescription></CardHeader><CardContent className="flex h-[340px] flex-col items-center justify-center pl-0">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/score-analytics/components/cards/DistributionNumericCard.tsx b/web/src/features/score-analytics/components/cards/DistributionNumericCard.tsxindex 4536b9370e..2ea6f520c7 100644--- a/web/src/features/score-analytics/components/cards/DistributionNumericCard.tsx+++ b/web/src/features/score-analytics/components/cards/DistributionNumericCard.tsx@@ -7,10 +7,10 @@ import {CardTitle,} from "@/src/components/ui/card";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { ScoreDistributionNumericChart } from "../charts/ScoreDistributionNumericChart";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type DistributionTab = "score1" | "score2" | "all" | "matched";@@ -156,7 +156,7 @@ export function DistributionNumericCard() {<CardDescription>Loading chart...</CardDescription></CardHeader><CardContent className="flex h-[340px] flex-col items-center justify-center pl-0">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/score-analytics/components/cards/HeatmapCard.tsx b/web/src/features/score-analytics/components/cards/HeatmapCard.tsxindex 758aac406f..917d634d54 100644--- a/web/src/features/score-analytics/components/cards/HeatmapCard.tsx+++ b/web/src/features/score-analytics/components/cards/HeatmapCard.tsx@@ -5,7 +5,6 @@ import {CardHeader,CardTitle,} from "@/src/components/ui/card";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { Heatmap } from "../charts/Heatmap";import { HeatmapLegend } from "../charts/HeatmapLegend";@@ -15,6 +14,7 @@ import { type HeatmapCell } from "@/src/features/score-analytics/lib/heatmap-utiimport { useCallback } from "react";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";import { type ScoreDataTypeType } from "@langfuse/shared";+import Spinner from "@/src/components/design-system/Spinner/Spinner";interface HeatmapTooltipContentProps {cell: HeatmapCell;@@ -166,7 +166,7 @@ export function HeatmapCard() {<CardDescription>Loading heatmap...</CardDescription></CardHeader><CardContent className="flex flex-1 flex-col items-center justify-center pl-1">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/score-analytics/components/cards/StatisticsCard.tsx b/web/src/features/score-analytics/components/cards/StatisticsCard.tsxindex 445e3cd095..cd1f7158d5 100644--- a/web/src/features/score-analytics/components/cards/StatisticsCard.tsx+++ b/web/src/features/score-analytics/components/cards/StatisticsCard.tsx@@ -5,7 +5,6 @@ import {CardHeader,CardTitle,} from "@/src/components/ui/card";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { MetricCard } from "../charts/MetricCard";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";@@ -21,6 +20,7 @@ import {interpretMAE,interpretRMSE,} from "@/src/features/score-analytics/lib/statistics-utils";+import Spinner from "@/src/components/design-system/Spinner/Spinner";/*** StatisticsCard - Smart card component for displaying score statistics@@ -48,7 +48,7 @@ export function StatisticsCard() {<CardDescription>Loading statistics...</CardDescription></CardHeader><CardContent className="flex items-center justify-center py-12">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/score-analytics/components/cards/TimelineChartCard.tsx b/web/src/features/score-analytics/components/cards/TimelineChartCard.tsxindex b695eab698..32c97266a3 100644--- a/web/src/features/score-analytics/components/cards/TimelineChartCard.tsx+++ b/web/src/features/score-analytics/components/cards/TimelineChartCard.tsx@@ -7,7 +7,6 @@ import {CardTitle,} from "@/src/components/ui/card";import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";-import { Loader2 } from "lucide-react";import { useScoreAnalytics } from "../ScoreAnalyticsProvider";import { ScoreTimeSeriesChart } from "../charts/ScoreTimeSeriesChart";import { SamplingDetailsHoverCard } from "../SamplingDetailsHoverCard";@@ -15,6 +14,7 @@ import {getScoreCategoryColors,getScoreBooleanColors,} from "@/src/features/score-analytics/lib/color-scales";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type TimelineTab = "score1" | "score2" | "all" | "matched";@@ -212,7 +212,7 @@ export function TimelineChartCard() {<CardDescription>Loading chart...</CardDescription></CardHeader><CardContent className="flex h-[340px] grow items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></CardContent></Card>);diff --git a/web/src/features/scores/components/AnnotationForm.tsx b/web/src/features/scores/components/AnnotationForm.tsxindex 28dedc81cd..1a9d0610f9 100644--- a/web/src/features/scores/components/AnnotationForm.tsx+++ b/web/src/features/scores/components/AnnotationForm.tsx@@ -5,7 +5,6 @@ import {MessageCircle,X,Archive,- Loader2,Check,Trash,} from "lucide-react";@@ -71,6 +70,7 @@ import { useScoreConfigSelection } from "@/src/features/scores/hooks/useScoreConimport { useRouter } from "next/router";import { useAnnotationScoreConfigs } from "@/src/features/scores/hooks/useScoreConfigs";import { Skeleton } from "@/src/components/ui/skeleton";+import Spinner from "@/src/components/design-system/Spinner/Spinner";const CHAR_CUTOFF = 6;@@ -191,7 +191,7 @@ function AnnotateHeader({<div className="flex items-center justify-end" key="saving-spinner"><div className="mr-1 items-center justify-center">{showSaving ? (- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" />) : (<Check className="h-3 w-3" />)}diff --git a/web/src/features/slack/components/SlackDisconnectButton.tsx b/web/src/features/slack/components/SlackDisconnectButton.tsxindex 6fac6ec4cb..c63546f8ec 100644--- a/web/src/features/slack/components/SlackDisconnectButton.tsx+++ b/web/src/features/slack/components/SlackDisconnectButton.tsx@@ -1,5 +1,5 @@import React, { useState } from "react";-import { Unlink, AlertTriangle, Loader2 } from "lucide-react";+import { Unlink, AlertTriangle } from "lucide-react";import { Button } from "@/src/components/ui/button";import {Dialog,@@ -13,6 +13,7 @@ import {import { showSuccessToast } from "@/src/features/notifications/showSuccessToast";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { api } from "@/src/utils/api";+import Spinner from "@/src/components/design-system/Spinner/Spinner";/*** Props for the SlackDisconnectButton component@@ -133,11 +134,9 @@ export const SlackDisconnectButton: React.FC<SlackDisconnectButtonProps> = ({const buttonContent = (<>{isDisconnecting ? (- <Loader2- className={- showText ? "mr-2 h-4 w-4 animate-spin" : "h-4 w-4 animate-spin"- }- />+ <div className={showText ? "mr-2" : ""}>+ <Spinner size="sm" />+ </div>) : (<Unlink className={showText ? "mr-2 h-4 w-4" : "h-4 w-4"} />)}@@ -199,7 +198,9 @@ export const SlackDisconnectButton: React.FC<SlackDisconnectButtonProps> = ({>{isDisconnecting ? (<>- <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ <div className="mr-2">+ <Spinner size="sm" />+ </div>Disconnecting...</>) : (diff --git a/web/src/features/support-chat/SupportFormSection.tsx b/web/src/features/support-chat/SupportFormSection.tsxindex 3007e70519..3a01b0d1cf 100644--- a/web/src/features/support-chat/SupportFormSection.tsx+++ b/web/src/features/support-chat/SupportFormSection.tsx@@ -41,9 +41,10 @@ import {DropzoneContent,DropzoneEmptyState,} from "@/src/components/ui/shadcn-io/dropzone";-import { Paperclip, Loader2, Trash2 } from "lucide-react";+import { Paperclip, Trash2 } from "lucide-react";import { showErrorToast } from "@/src/features/notifications/showErrorToast";import { PLAIN_MAX_FILE_SIZE_BYTES } from "./plain/plainConstants";+import Spinner from "@/src/components/design-system/Spinner/Spinner";/** Make RHF generics match the resolver (Zod defaults => input can be undefined) */type SupportFormInput = z.input<typeof SupportFormSchema>;@@ -651,7 +652,7 @@ export function SupportFormSection({>{isSubmittingLocal ? (<span className="inline-flex items-center gap-2">- <Loader2 className="h-4 w-4 animate-spin" />+ <Spinner size="sm" />Submitting…</span>) : messageIsShortAfterWarning ? (diff --git a/web/src/features/table/components/TableActionDialog.tsx b/web/src/features/table/components/TableActionDialog.tsxindex 597b6816cb..088f030d2d 100644--- a/web/src/features/table/components/TableActionDialog.tsx+++ b/web/src/features/table/components/TableActionDialog.tsx@@ -29,8 +29,8 @@ import { ActionButton } from "@/src/components/ActionButton";import { useOptionalEntitlement } from "@/src/features/entitlements/hooks";import { type BatchExportTableName } from "@langfuse/shared";import { api } from "@/src/utils/api";-import { Loader2 } from "lucide-react";import { targetOptionsQueryMap } from "@/src/features/table/components/targetOptionsQueryMap";+import Spinner from "@/src/components/design-system/Spinner/Spinner";type TableActionDialogProps = {isOpen: boolean;@@ -149,7 +149,7 @@ export function TableActionDialog({<DialogFooter>{isInProgress.data && (<div className="flex items-center gap-1">- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" /><p className="text-muted-foreground text-sm">Batch action is in progress, please wait.</p>@@ -173,7 +173,7 @@ export function TableActionDialog({<DialogFooter>{isInProgress.data && (<div className="flex items-center gap-1">- <Loader2 className="h-3 w-3 animate-spin" />+ <Spinner size="xxs" /><p className="text-muted-foreground text-sm">Batch action is in progress, please wait.</p>diff --git a/web/src/features/widgets/chart-library/ChartLoadingState.tsx b/web/src/features/widgets/chart-library/ChartLoadingState.tsxindex 3f7e7c50a8..93086edb66 100644--- a/web/src/features/widgets/chart-library/ChartLoadingState.tsx+++ b/web/src/features/widgets/chart-library/ChartLoadingState.tsx@@ -1,10 +1,10 @@import { useEffect, useState } from "react";-import { Loader2 } from "lucide-react";import { cn } from "@/src/utils/tailwind";import { SLOW_QUERY_HINT_TEXT } from "@langfuse/shared";import { type QueryProgress } from "@/src/hooks/useSSEDashboardQuery";import { QueryProgressBar } from "@/src/features/widgets/chart-library/QueryProgressBar";import { Button } from "@/src/components/ui/button";+import Spinner from "@/src/components/design-system/Spinner/Spinner";const DEFAULT_HINT_DELAY_MS = 2000;const PROGRESS_REVEAL_DELAY_MS = 1000;@@ -12,7 +12,6 @@ const PROGRESS_REVEAL_DELAY_MS = 1000;type ChartLoadingStateProps = {isLoading: boolean;className?: string;- spinnerClassName?: string;hintClassName?: string;spinnerLabel?: string;hintText?: string;@@ -28,7 +27,6 @@ type ChartLoadingStateProps = {export function ChartLoadingState({isLoading,className,- spinnerClassName,hintClassName,spinnerLabel = "Loading chart data",hintText = SLOW_QUERY_HINT_TEXT,@@ -103,7 +101,7 @@ export function ChartLoadingState({)}><div className="flex h-4 w-4 items-center justify-center">- <Loader2 className={cn("h-4 w-4 animate-spin", spinnerClassName)} />+ <Spinner size="sm" /></div></div>);@@ -155,9 +153,7 @@ export function ChartLoadingState({<QueryProgressBar progress={progress} layout={layout} />) : showSpinner ? (<div className="flex h-4 w-4 items-center justify-center self-center">- <Loader2- className={cn("h-4 w-4 animate-spin", spinnerClassName)}- />+ <Spinner size="sm" /></div>) : null}diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/charts.tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/charts.tsxindex bd8f613ab4..beca52d7d0 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/charts.tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/charts.tsx@@ -1,6 +1,6 @@import { Button } from "@/src/components/ui/button";import { MultiSelectKeyValues } from "@/src/features/scores/components/multi-select-key-values";-import { FlaskConical, List, Loader2 } from "lucide-react";+import { FlaskConical, List } from "lucide-react";import { useRouter } from "next/router";import { useState, useEffect } from "react";import { MarkdownJsonView } from "@/src/components/ui/MarkdownJsonView";@@ -43,6 +43,7 @@ import { NoDataOrLoading } from "@/src/components/NoDataOrLoading";import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimentAccess";import { ExperimentsBetaSwitch } from "@/src/features/experiments/components/ExperimentsBetaSwitch";import { toExperimentsResultsUrl } from "@/src/features/experiments/utils/experimentUrlTranslation";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export default function DatasetCompare() {const router = useRouter();@@ -136,7 +137,7 @@ export default function DatasetCompare() {}}><div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div></Page>);diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/index.tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/index.tsxindex b1bc9b5813..44e9f5adc4 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/index.tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/compare/index.tsx@@ -1,7 +1,7 @@import { Button } from "@/src/components/ui/button";import { DatasetCompareRunsTable } from "@/src/features/datasets/components/DatasetCompareRunsTable";import { MultiSelectKeyValues } from "@/src/features/scores/components/multi-select-key-values";-import { FlaskConical, List, Loader2 } from "lucide-react";+import { FlaskConical, List } from "lucide-react";import { useRouter } from "next/router";import { useState, useEffect } from "react";import {@@ -27,6 +27,7 @@ import { AnnotationPanel } from "@/src/features/datasets/components/AnnotationPaimport { toExperimentsResultsUrl } from "@/src/features/experiments/utils/experimentUrlTranslation";import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimentAccess";import { ExperimentsBetaSwitch } from "@/src/features/experiments/components/ExperimentsBetaSwitch";+import Spinner from "@/src/components/design-system/Spinner/Spinner";function DatasetCompareInternal() {const router = useRouter();@@ -99,7 +100,7 @@ function DatasetCompareInternal() {if (!runsData.data || runs.length === 0) {return (<div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div>);}@@ -142,7 +143,7 @@ function DatasetCompareInternal() {}}><div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div></Page>);diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsxindex 61716521c4..c014853f7a 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx@@ -5,7 +5,7 @@ import { DatasetRunItemsByRunTable } from "@/src/features/datasets/components/Daimport { DeleteDatasetRunButton } from "@/src/features/datasets/components/DeleteDatasetRunButton";import { DetailPageNav } from "@/src/features/navigate-detail-pages/DetailPageNav";import { api } from "@/src/utils/api";-import { Columns3, MoreVertical, Loader2 } from "lucide-react";+import { Columns3, MoreVertical } from "lucide-react";import Link from "next/link";import { useRouter } from "next/router";import Page from "@/src/components/layouts/page";@@ -26,6 +26,7 @@ import { LocalIsoDate } from "@/src/components/LocalIsoDate";import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimentAccess";import { ExperimentsBetaSwitch } from "@/src/features/experiments/components/ExperimentsBetaSwitch";import { singleRunToExperimentsUrl } from "@/src/features/experiments/utils/experimentUrlTranslation";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export default function Dataset() {const router = useRouter();@@ -92,7 +93,7 @@ export default function Dataset() {}}><div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div></Page>);diff --git a/web/src/pages/project/[projectId]/experiments.tsx b/web/src/pages/project/[projectId]/experiments.tsxindex c22c2d8b39..bf8afc2874 100644--- a/web/src/pages/project/[projectId]/experiments.tsx+++ b/web/src/pages/project/[projectId]/experiments.tsx@@ -12,11 +12,12 @@ import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimimport { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";import { useHasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";import { api } from "@/src/utils/api";-import { FlaskConical, Sparkles, Loader2 } from "lucide-react";+import { FlaskConical, Sparkles } from "lucide-react";import { useEffect, useState } from "react";import { useRouter } from "next/router";import { Switch } from "@/src/components/ui/switch";import { Label } from "@/src/components/ui/label";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export default function Experiments() {const router = useRouter();@@ -184,7 +185,7 @@ export default function Experiments() {<ExperimentsTable projectId={projectId} />) : (<div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div>)}</Page>diff --git a/web/src/pages/project/[projectId]/experiments/analytics.tsx b/web/src/pages/project/[projectId]/experiments/analytics.tsxindex 43f397e628..ab8f266728 100644--- a/web/src/pages/project/[projectId]/experiments/analytics.tsx+++ b/web/src/pages/project/[projectId]/experiments/analytics.tsx@@ -1,7 +1,7 @@import { useRouter } from "next/router";import { useEffect } from "react";import Page from "@/src/components/layouts/page";-import { FlaskConical, Loader2 } from "lucide-react";+import { FlaskConical } from "lucide-react";import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimentAccess";import {EXPERIMENT_RUN_TABS,@@ -9,6 +9,7 @@ import {} from "@/src/features/navigation/utils/experiment-run-tabs";import useSessionStorage from "@/src/components/useSessionStorage";import { ExperimentsBetaSwitch } from "@/src/features/experiments/components/ExperimentsBetaSwitch";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export default function ExperimentAnalytics() {const router = useRouter();@@ -57,7 +58,7 @@ export default function ExperimentAnalytics() {return (<Page headerProps={{ title: "Analytics" }}><div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div></Page>);diff --git a/web/src/pages/project/[projectId]/experiments/results.tsx b/web/src/pages/project/[projectId]/experiments/results.tsxindex 783ce6ab55..f8c837aa98 100644--- a/web/src/pages/project/[projectId]/experiments/results.tsx+++ b/web/src/pages/project/[projectId]/experiments/results.tsx@@ -12,13 +12,14 @@ import { useExperimentResultsState } from "@/src/features/experiments/hooks/useEimport { useEffect } from "react";import { ExperimentDisplaySettings } from "@/src/features/experiments/components/ExperimentDisplaySettings";import { Button } from "@/src/components/ui/button";-import { X, Loader2 } from "lucide-react";+import { X } from "lucide-react";import { useExperimentAccess } from "@/src/features/experiments/hooks/useExperimentAccess";import { ExperimentsBetaSwitch } from "@/src/features/experiments/components/ExperimentsBetaSwitch";import {EXPERIMENT_RUN_TABS,getExperimentRunTabs,} from "@/src/features/navigation/utils/experiment-run-tabs";+import Spinner from "@/src/components/design-system/Spinner/Spinner";export default function ExperimentResults() {const router = useRouter();@@ -82,7 +83,7 @@ export default function ExperimentResults() {return (<Page headerProps={{ title: "Experiments" }}><div className="flex h-full items-center justify-center">- <Loader2 className="text-muted-foreground h-8 w-8 animate-spin" />+ <Spinner size="xl" variant="muted" /></div></Page>);diff --git a/web/src/pages/project/[projectId]/scores/analytics.tsx b/web/src/pages/project/[projectId]/scores/analytics.tsxindex 054b1826e1..dbbf343d30 100644--- a/web/src/pages/project/[projectId]/scores/analytics.tsx+++ b/web/src/pages/project/[projectId]/scores/analytics.tsx@@ -12,7 +12,7 @@ import {toAbsoluteTimeRange,getOptimalInterval,} from "@/src/utils/date-range-utils";-import { BarChart3, Loader2 } from "lucide-react";+import { BarChart3 } from "lucide-react";import { api } from "@/src/utils/api";import {ScoreAnalyticsProvider,@@ -20,6 +20,7 @@ import {} from "@/src/features/score-analytics/components/ScoreAnalyticsProvider";import { ScoreAnalyticsHeader } from "@/src/features/score-analytics/components/ScoreAnalyticsHeader";import { ScoreAnalyticsDashboard } from "@/src/features/score-analytics/components/ScoreAnalyticsDashboard";+import Spinner from "@/src/components/design-system/Spinner/Spinner";/*** Score Analytics V2 - Refactored Architecture@@ -270,7 +271,7 @@ export default function ScoresAnalyticsV2Page() {</ScoreAnalyticsProvider>) : (<div className="flex flex-col items-center justify-center gap-4 rounded-lg border p-12">- <Loader2 className="text-muted-foreground h-12 w-12 animate-spin" />+ <Spinner size="xxl" variant="muted" /><p className="text-muted-foreground text-sm">Loading analytics data...</p>