🪢 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
feat(ui): reduce font size and white-space to shrink UI to fit more content (#3001)
Marc Klingen2bb419213a59
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex fa6276c482..1acb6e9ebb 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -585,6 +585,9 @@ importers:react-markdown:specifier: ^9.0.1version: 9.0.1(@types/[email protected])([email protected])+ react-resizable-panels:+ specifier: ^2.1.1react-responsive:specifier: ^10.0.0version: 10.0.0([email protected])@@ -9762,7 +9765,7 @@ packages:resolution: {integrity: sha512-39olGaX2djYUdhaQQHDZ0T0GwEp+5f9UB9HmEP0qHfdQHIq0xGQZuAZ5TLnJIc/88SrPLpEflPC+xUqOTv3c5g==}- deprecated: < 22.8.2 is no longer supported+ deprecated: < 22.6.4 is no longer supportedresolution: {integrity: sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==}@@ -9862,6 +9865,12 @@ packages:'@types/react':optional: true+ resolution: {integrity: sha512-+cUV/yZBYfiBj+WJtpWDJ3NtR4zgDZfHt3+xtaETKE+FCvp+RK/NJxacDQKxMHgRUTSkfA6AnGljQ5QZNsCQoA==}+ peerDependencies:+ react: ^16.14.0 || ^17.0.0 || ^18.0.0+ react-dom: ^16.14.0 || ^17.0.0 || ^18.0.0+resolution: {integrity: sha512-N6/UiRLGQyGUqrarhBZmrSmHi2FXSD++N5VbSKsBBvWfG0ZV7asvUBluSv5lSzdMyEVjzZ6Y8DL4OHABiztDOg==}engines: {node: '>=14'}@@ -16780,7 +16789,7 @@ snapshots:'@types/[email protected]':dependencies:- '@types/node': 20.10.5+ '@types/node': 20.14.8'@types/[email protected]': {}@@ -22969,6 +22978,11 @@ snapshots:optionalDependencies:'@types/react': 18.2.79+ dependencies:+ react: 18.2.0+ react-dom: 18.2.0([email protected])+dependencies:hyphenate-style-name: 1.0.4diff --git a/web/package.json b/web/package.jsonindex 7c6051c1b1..319590e943 100644--- a/web/package.json+++ b/web/package.json@@ -125,6 +125,7 @@"react-hook-form": "^7.51.5","react-icons": "^5.2.1","react-markdown": "^9.0.1",+ "react-resizable-panels": "^2.1.1","react-responsive": "^10.0.0","react-syntax-highlighter": "^15.5.0","react18-json-view": "^0.2.8-canary.6",diff --git a/web/src/components/ChatMessages/ChatMessageComponent.tsx b/web/src/components/ChatMessages/ChatMessageComponent.tsxindex 5e82c767ff..e42b491cff 100644--- a/web/src/components/ChatMessages/ChatMessageComponent.tsx+++ b/web/src/components/ChatMessages/ChatMessageComponent.tsx@@ -64,7 +64,7 @@ export const ChatMessageComponent: React.FC<ChatMessageProps> = ({<Textarearef={textAreaRef}id={message.id}- className="height-[auto] min-h-8 w-full pt-3 font-mono text-xs focus:outline-none"+ className="height-[auto] min-h-6 w-full font-mono text-xs focus:outline-none"placeholder={placeholder}value={message.content}onChange={handleContentChange}diff --git a/web/src/components/ChatMessages/index.tsx b/web/src/components/ChatMessages/index.tsxindex 0f6da53155..d4e5419606 100644--- a/web/src/components/ChatMessages/index.tsx+++ b/web/src/components/ChatMessages/index.tsx@@ -24,13 +24,21 @@ export const ChatMessages: React.FC<ChatMessagesProps> = (props) => {}, [scrollAreaRef, messages.length]);return (- <div className="h-full overflow-auto scroll-smooth" ref={scrollAreaRef}>- <div className="mb-4 flex-1 space-y-4">- {props.messages.map((message) => {- return (- <ChatMessageComponent {...{ message, ...props }} key={message.id} />- );- })}+ <div className="flex h-full flex-col">+ <div className="mb-2 font-semibold">Messages</div>+ <div className="flex-1 overflow-auto scroll-smooth" ref={scrollAreaRef}>+ <div className="mb-4 flex-1 space-y-3">+ {props.messages.map((message) => {+ return (+ <ChatMessageComponent+ {...{ message, ...props }}+ key={message.id}+ />+ );+ })}+ </div>+ </div>+ <div className="py-3"><AddMessageButton {...props} /></div></div>@@ -52,10 +60,10 @@ const AddMessageButton: React.FC<AddMessageButtonProps> = ({<Buttontype="button" // prevents submitting a form if this button is inside a formvariant="outline"- className="w-full space-x-2 py-6"+ className="w-full"onClick={() => addMessage(nextMessageRole)}>- <PlusCircleIcon size={16} />+ <PlusCircleIcon size={14} className="mr-2" /><p>Add message</p></Button>);diff --git a/web/src/components/ModelParameters/index.tsx b/web/src/components/ModelParameters/index.tsxindex ea3207e325..a19205bc2b 100644--- a/web/src/components/ModelParameters/index.tsx+++ b/web/src/components/ModelParameters/index.tsx@@ -48,7 +48,7 @@ export const ModelParameters: React.FC<ModelParamsContext> = ({<p className="font-semibold">Model</p>{availableProviders.length === 0 ? (<>- <p className="text-sm">+ <p className="text-xs">No LLM API key set in project. For evals, we only support OpenAI sofar.</p>diff --git a/web/src/components/SettingsDangerZone.tsx b/web/src/components/SettingsDangerZone.tsxindex cc74250080..2acf81c1b8 100644--- a/web/src/components/SettingsDangerZone.tsx+++ b/web/src/components/SettingsDangerZone.tsx@@ -11,11 +11,11 @@ export const SettingsDangerZone: React.FC<{return (<div className="space-y-3"><Header title="Danger Zone" level="h3" />- <div className="rounded border">+ <div className="rounded-lg border">{items.map((item, index) => (<divkey={index}- className="flex items-center justify-between gap-4 border-b p-4 last:border-b-0"+ className="flex items-center justify-between gap-4 border-b p-3 last:border-b-0"><div><h4 className="font-semibold">{item.title}</h4>diff --git a/web/src/components/json-editor.tsx b/web/src/components/json-editor.tsxindex 450e85886e..500830c6fe 100644--- a/web/src/components/json-editor.tsx+++ b/web/src/components/json-editor.tsx@@ -45,7 +45,7 @@ export function JsonEditor({if (onChange) onChange(c);setLinterEnabled(c !== "");}}- className={cn("overflow-hidden rounded-md border", className)}+ className={cn("overflow-hidden rounded-md border text-xs", className)}editable={editable}/>);diff --git a/web/src/components/layouts/full-screen-page.tsx b/web/src/components/layouts/full-screen-page.tsxindex 930afa0faa..6621eaf4ac 100644--- a/web/src/components/layouts/full-screen-page.tsx+++ b/web/src/components/layouts/full-screen-page.tsx@@ -1,8 +1,19 @@-export const FullScreenPage: React.FC<React.PropsWithChildren<{}>> = ({- children,-}) => {+import { cn } from "@/src/utils/tailwind";++export const FullScreenPage: React.FC<+ React.PropsWithChildren<{+ mobile?: boolean;+ className?: string;+ }>+> = ({ children, mobile = true, className }) => {return (- <div className="flex h-[calc(100dvh-6rem)] flex-col overflow-hidden lg:h-[calc(100dvh-2rem)]">+ <div+ className={cn(+ "flex flex-col overflow-hidden lg:h-[calc(100dvh-1.5rem)]",+ mobile && "h-[calc(100dvh-6rem)]",+ className,+ )}+ >{children}</div>);diff --git a/web/src/components/layouts/header.tsx b/web/src/components/layouts/header.tsxindex b87ce31913..9a42e8d32c 100644--- a/web/src/components/layouts/header.tsx+++ b/web/src/components/layouts/header.tsx@@ -212,7 +212,7 @@ const BreadcrumbComponent = ({asChildvariant="ghost"size="xs"- className="-my-1 ml-4 mr-1 hover:bg-background"+ className="-my-1 ml-4 hover:bg-background"><divonClick={(e) => {@@ -299,7 +299,7 @@ const BreadcrumbComponent = ({asChildvariant="ghost"size="xs"- className="-my-1 ml-4 mr-1 hover:bg-background"+ className="-my-1 ml-4 hover:bg-background"><divonClick={(e) => {diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex 885d484c93..f73616d3f9 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -350,7 +350,7 @@ export default function Layout(props: PropsWithChildren) {</Transition.Root>{/* Static sidebar for desktop */}- <div className="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-56 lg:flex-col">+ <div className="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-52 lg:flex-col">{/* Sidebar component, swap this element with another sidebar if you like */}<div className="flex h-screen grow flex-col border-r border-border bg-background"><nav className="flex h-full flex-1 flex-col overflow-y-auto px-4 py-3">@@ -422,7 +422,7 @@ export default function Layout(props: PropsWithChildren) {><Menu.Items className="absolute -top-full bottom-1 right-0 z-10 overflow-hidden rounded-md bg-background py-2 shadow-lg ring-1 ring-border focus:outline-none"><span- className="block max-w-56 overflow-hidden truncate border-b px-3 pb-2 text-sm leading-6 text-muted-foreground"+ className="block max-w-52 overflow-hidden truncate border-b px-3 pb-2 text-sm leading-6 text-muted-foreground"title={session.data?.user?.email ?? undefined}>{session.data?.user?.email}@@ -490,7 +490,7 @@ export default function Layout(props: PropsWithChildren) {><Menu.Items className="absolute right-0 z-10 mt-2.5 rounded-md bg-background py-2 pb-1 shadow-lg ring-1 ring-border focus:outline-none"><span- className="mb-1 block max-w-56 overflow-hidden truncate border-b px-3 pb-2 text-sm leading-6 text-muted-foreground"+ className="mb-1 block max-w-52 overflow-hidden truncate border-b px-3 pb-2 text-sm leading-6 text-muted-foreground"title={session.data?.user?.email ?? undefined}>{session.data?.user?.email}@@ -515,7 +515,7 @@ export default function Layout(props: PropsWithChildren) {</Transition></Menu></div>- <div className="lg:pl-56">+ <div className="lg:pl-52">{env.NEXT_PUBLIC_DEMO_ORG_ID &&env.NEXT_PUBLIC_DEMO_PROJECT_ID &&routerProjectId === env.NEXT_PUBLIC_DEMO_PROJECT_ID &&@@ -536,7 +536,7 @@ export default function Layout(props: PropsWithChildren) {</Button></div>) : null}- <main className="p-4">{props.children}</main>+ <main className="p-3">{props.children}</main><Toaster visibleToasts={1} /></div></div>@@ -638,7 +638,7 @@ const MainNavigation: React.FC<{{item.label && (<spanclassName={cn(- "-my-0.5 self-center whitespace-nowrap break-keep rounded-sm border px-1 py-0.5 text-xs",+ "-my-0.5 self-center whitespace-nowrap break-keep rounded-sm border px-1 text-xs",item.current? "border-primary-accent text-primary-accent": "border-border text-muted-foreground group-hover:border-primary-accent group-hover:text-primary-accent",@@ -652,7 +652,7 @@ const MainNavigation: React.FC<{open? "rotate-90 text-muted-foreground": "text-muted-foreground",- "ml-auto h-5 w-5 shrink-0",+ "ml-auto h-4 w-4 shrink-0",)}aria-hidden="true"/>@@ -667,7 +667,7 @@ const MainNavigation: React.FC<{subItem.current? "bg-primary-foreground text-primary-accent": "text-primary hover:bg-primary-foreground hover:text-primary-accent",- "ml-0.5 flex w-full items-center gap-x-3 rounded-md p-1.5 pl-7 pr-2 text-sm",+ "ml-0.5 flex w-full items-center gap-x-3 rounded-md p-1 pl-7 pr-2 text-sm",)}target={subItem.newTab ? "_blank" : undefined}>diff --git a/web/src/components/star-toggle.tsx b/web/src/components/star-toggle.tsxindex 0a2240be25..b6bd6ac51b 100644--- a/web/src/components/star-toggle.tsx+++ b/web/src/components/star-toggle.tsx@@ -13,13 +13,13 @@ export function StarToggle({value,disabled = false,onClick,- size = "sm",+ size = "icon",isLoading,}: {value: boolean;disabled?: boolean;onClick: (value: boolean) => Promise<unknown>;- size?: "sm" | "xs";+ size?: "icon" | "icon-xs";isLoading: boolean;}) {return (@@ -46,13 +46,13 @@ export function StarTraceToggle({projectId,traceId,value,- size = "sm",+ size = "icon",}: {tracesFilter: RouterInput["traces"]["all"];projectId: string;traceId: string;value: boolean;- size?: "sm" | "xs";+ size?: "icon" | "icon-xs";}) {const utils = api.useUtils();const hasAccess = useHasProjectAccess({@@ -135,12 +135,12 @@ export function StarTraceDetailsToggle({projectId,traceId,value,- size = "sm",+ size = "icon",}: {projectId: string;traceId: string;value: boolean;- size?: "sm" | "xs";+ size?: "icon" | "icon-xs";}) {const utils = api.useUtils();const hasAccess = useHasProjectAccess({@@ -223,12 +223,12 @@ export function StarSessionToggle({projectId,sessionId,value,- size = "sm",+ size = "icon",}: {projectId: string;sessionId: string;value: boolean;- size?: "sm" | "xs";+ size?: "icon" | "icon-xs";}) {const utils = api.useUtils();const hasAccess = useHasProjectAccess({diff --git a/web/src/components/table/data-table-toolbar.tsx b/web/src/components/table/data-table-toolbar.tsxindex 105222d6b5..884b4e496b 100644--- a/web/src/components/table/data-table-toolbar.tsx+++ b/web/src/components/table/data-table-toolbar.tsx@@ -81,7 +81,7 @@ export function DataTableToolbar<TData, TValue>({searchConfig.updateQuery(searchString);}}}- className="h-10 w-[150px] rounded-r-none @6xl:w-[250px]"+ className="w-[150px] rounded-r-none @6xl:w-[250px]"/><Buttonvariant="outline"diff --git a/web/src/components/table/table-link.tsx b/web/src/components/table/table-link.tsxindex 748aefd90a..404ee8edf7 100644--- a/web/src/components/table/table-link.tsx+++ b/web/src/components/table/table-link.tsx@@ -17,7 +17,7 @@ export default function TableLink({return (<LinkclassName={cn(- "inline-block max-w-full overflow-hidden text-ellipsis text-nowrap rounded bg-primary-accent/20 px-2 py-1 text-xs font-semibold text-accent-dark-blue shadow-sm hover:bg-accent-light-blue/45",+ "inline-block max-w-full overflow-hidden text-ellipsis text-nowrap rounded bg-primary-accent/20 px-2 py-0.5 text-xs font-semibold text-accent-dark-blue shadow-sm hover:bg-accent-light-blue/45",className,)}href={path}diff --git a/web/src/components/table/use-cases/sessions.tsx b/web/src/components/table/use-cases/sessions.tsxindex cb5f71fe82..c09e69a9ba 100644--- a/web/src/components/table/use-cases/sessions.tsx+++ b/web/src/components/table/use-cases/sessions.tsx@@ -177,7 +177,7 @@ export default function SessionsTable({sessionId={sessionId}projectId={projectId}value={bookmarked}- size="xs"+ size="icon-xs"/>) : undefined;},diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex 182d96e9de..ef828df4f7 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -270,7 +270,7 @@ export default function TracesTable({traceId={traceId}projectId={projectId}value={bookmarked}- size="xs"+ size="icon-xs"/>) : undefined;},diff --git a/web/src/components/trace/ObservationTree.tsx b/web/src/components/trace/ObservationTree.tsxindex 626b29fe04..2f7e334910 100644--- a/web/src/components/trace/ObservationTree.tsx+++ b/web/src/components/trace/ObservationTree.tsx@@ -84,7 +84,9 @@ const ObservationTreeTraceNode = (props: {onClick={() => props.setCurrentObservationId(undefined)}><div className="flex gap-2">- <span className={cn("rounded-sm bg-input p-1 text-xs")}>TRACE</span>+ <span className={cn("rounded-sm bg-input px-1 py-0.5 text-xs")}>+ TRACE+ </span><span className="break-all text-sm">{props.trace.name}</span>{props.comments ? (<CommentCountIcon count={props.comments.get(props.trace.id)} />@@ -191,7 +193,7 @@ const ObservationTreeNode = (props: {variant="default"pressed={collapsed}size="xs"- className="w-7"+ className="-m-1 h-6 w-6"title={collapsed ? "Expand children" : "Collapse children"}@@ -284,7 +286,7 @@ const ColorCodedObservationType = (props: {return (<spanclassName={cn(- "self-start rounded-sm p-1 text-xs",+ "self-start rounded-sm px-1 py-0.5 text-xs",treeItemColors.get(props.observationType),)}>diff --git a/web/src/components/trace/TraceTimelineView.tsx b/web/src/components/trace/TraceTimelineView.tsxindex 4f4c096838..d7fd4981d5 100644--- a/web/src/components/trace/TraceTimelineView.tsx+++ b/web/src/components/trace/TraceTimelineView.tsx@@ -96,7 +96,7 @@ function TreeItemInner({const customLabelWidth = cardWidth - SCALE_WIDTH - CARD_PADDING;return (- <div className="group my-1 grid w-full min-w-fit grid-cols-[1fr,auto] items-center">+ <div className="group my-0.5 grid w-full min-w-fit grid-cols-[1fr,auto] items-center"><divclassName="flex flex-row items-center gap-2"style={{@@ -105,7 +105,10 @@ function TreeItemInner({}}><span- className={cn("rounded-sm p-1 text-xs", treeItemColors.get(type))}+ className={cn(+ "rounded-sm px-1 py-0.5 text-xs",+ treeItemColors.get(type),+ )}>{type}</span>@@ -362,7 +365,7 @@ export function TraceTimelineView({minWidth: `${MIN_LABEL_WIDTH}px`,}}>- <h3 className="text-2xl font-semibold tracking-tight">+ <h3 className="text-xl font-semibold tracking-tight">Trace Timeline</h3><div className="flex h-full items-center">diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsxindex 2ddb7e556f..38c80f8db4 100644--- a/web/src/components/trace/index.tsx+++ b/web/src/components/trace/index.tsx@@ -34,6 +34,7 @@ import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";import { TraceTimelineView } from "@/src/components/trace/TraceTimelineView";import { type APIScore } from "@langfuse/shared";import { useSession } from "next-auth/react";+import { FullScreenPage } from "@/src/components/layouts/full-screen-page";export function Trace(props: {observations: Array<ObservationReturnType>;@@ -172,7 +173,7 @@ export function Trace(props: {});setScoresOnObservationTree(e);}}- size="sm"+ size="xs"title="Show scores"><Award className="h-4 w-4" />@@ -185,7 +186,7 @@ export function Trace(props: {});setMetricsOnObservationTree(e);}}- size="sm"+ size="xs"title="Show metrics">{metricsOnObservationTree ? (@@ -263,7 +264,7 @@ export function TracePage({ traceId }: { traceId: string }) {return <ErrorPage message="You do not have access to this trace." />;if (!trace.data) return <div>loading...</div>;return (- <div className="flex flex-col overflow-hidden 2xl:container md:h-[calc(100vh-2rem)]">+ <FullScreenPage mobile={false} className="2xl:container"><Headertitle="Trace Detail"breadcrumb={[@@ -396,7 +397,7 @@ export function TracePage({ traceId }: { traceId: string }) {/></div>)}- </div>+ </FullScreenPage>);}diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsxindex 0301d4ba28..f5929def35 100644--- a/web/src/components/ui/CodeJsonViewer.tsx+++ b/web/src/components/ui/CodeJsonViewer.tsx@@ -56,7 +56,7 @@ export function JSONView(props: {title="Enable Markdown"variant="ghost"type="button"- size="xs"+ size="icon-xs"onClick={() => {setIsMarkdownEnabled(true);capture("trace_detail:io_pretty_format_toggle_group", {@@ -71,10 +71,10 @@ export function JSONView(props: {<Buttontitle="Copy to clipboard"variant="ghost"- size="xs"+ size="icon-xs"type="button"onClick={handleCopy}- className="hover:bg-border"+ className="-mr-2 hover:bg-border">{isCopied ? (<Check className="h-3 w-3" />@@ -164,7 +164,12 @@ export function CodeView(props: {)}</Button>) : undefined}- <Button variant="secondary" size="xs" onClick={handleCopy}>+ <Button+ variant="secondary"+ size="icon-xs"+ onClick={handleCopy}+ className=""+ >{isCopied ? (<Check className="h-3 w-3" />) : (diff --git a/web/src/components/ui/alert.tsx b/web/src/components/ui/alert.tsxindex ceeb64b694..70a1adfdce 100644--- a/web/src/components/ui/alert.tsx+++ b/web/src/components/ui/alert.tsx@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/src/utils/tailwind";const alertVariants = cva(- "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",+ "relative w-full rounded-lg border p-3 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants: {variant: {diff --git a/web/src/components/ui/avatar.tsx b/web/src/components/ui/avatar.tsxindex 652ea1da1b..ab95daf689 100644--- a/web/src/components/ui/avatar.tsx+++ b/web/src/components/ui/avatar.tsx@@ -12,7 +12,7 @@ const Avatar = React.forwardRef<<AvatarPrimitive.Rootref={ref}className={cn(- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",+ "relative flex h-8 w-8 shrink-0 overflow-hidden rounded-full",className,)}{...props}diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsxindex da4c078efd..4f81e182be 100644--- a/web/src/components/ui/button.tsx+++ b/web/src/components/ui/button.tsx@@ -25,11 +25,12 @@ const buttonVariants = cva("bg-destructive-foreground/90 text-destructive hover:bg-destructive-foreground/80",},size: {- default: "h-10 px-4 py-2",- xs: "h-6 px-1 rounded-sm",- sm: "h-9 rounded-md px-3",- lg: "h-11 rounded-md px-8",- icon: "h-10 w-10",+ default: "h-8 px-3 py-1",+ xs: "h-4 px-1 rounded-sm",+ sm: "h-6 rounded-md px-3",+ lg: "h-9 rounded-md px-8",+ icon: "h-8 w-8",+ "icon-xs": "h-6 w-6",},},defaultVariants: {diff --git a/web/src/components/ui/card.tsx b/web/src/components/ui/card.tsxindex 786e8beeff..7feddaabff 100644--- a/web/src/components/ui/card.tsx+++ b/web/src/components/ui/card.tsx@@ -23,7 +23,7 @@ const CardHeader = React.forwardRef<>(({ className, ...props }, ref) => (<divref={ref}- className={cn("flex flex-col space-y-1.5 p-6", className)}+ className={cn("flex flex-col space-y-1 p-4", className)}{...props}/>));@@ -60,7 +60,7 @@ const CardContent = React.forwardRef<HTMLDivElement,React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (- <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />+ <div ref={ref} className={cn("p-4 pt-0", className)} {...props} />));CardContent.displayName = "CardContent";@@ -70,7 +70,7 @@ const CardFooter = React.forwardRef<>(({ className, ...props }, ref) => (<divref={ref}- className={cn("flex items-center p-6 pt-0", className)}+ className={cn("flex items-center p-4 pt-0", className)}{...props}/>));diff --git a/web/src/components/ui/command.tsx b/web/src/components/ui/command.tsxindex 173f9c41aa..aaa3c4848c 100644--- a/web/src/components/ui/command.tsx+++ b/web/src/components/ui/command.tsx@@ -41,15 +41,12 @@ const CommandInput = React.forwardRef<React.ElementRef<typeof CommandPrimitive.Input>,React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>>(({ className, ...props }, ref) => (- <div- className="flex items-center rounded-md border px-3"- cmdk-input-wrapper=""- >+ <div className="flex items-center rounded border px-3" cmdk-input-wrapper=""><Search className="mr-2 h-4 w-4 shrink-0 opacity-50" /><CommandPrimitive.Inputref={ref}className={cn(- "flex h-11 w-full rounded-md border-transparent bg-transparent py-3 text-sm outline-none placeholder:text-slate-500 focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-slate-400 ",+ "flex h-8 w-full rounded border-transparent bg-transparent py-3 text-sm outline-none placeholder:text-slate-500 focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50 dark:placeholder:text-slate-400 ",className,)}{...props}diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsxindex b7d7126d8b..573682440e 100644--- a/web/src/components/ui/dialog.tsx+++ b/web/src/components/ui/dialog.tsx@@ -88,7 +88,7 @@ const DialogTitle = React.forwardRef<<DialogPrimitive.Titleref={ref}className={cn(- "text-lg font-semibold leading-none tracking-tight",+ "text-xl font-semibold leading-none tracking-tight",className,)}{...props}diff --git a/web/src/components/ui/hover-card.tsx b/web/src/components/ui/hover-card.tsxindex b14e2c46a9..6eab03c61f 100644--- a/web/src/components/ui/hover-card.tsx+++ b/web/src/components/ui/hover-card.tsx@@ -18,7 +18,7 @@ const HoverCardContent = React.forwardRef<align={align}sideOffset={sideOffset}className={cn(- "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ "z-50 w-64 rounded-md border bg-popover p-3 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",className,)}{...props}diff --git a/web/src/components/ui/input.tsx b/web/src/components/ui/input.tsxindex cd564062e4..e8cad6eeb9 100644--- a/web/src/components/ui/input.tsx+++ b/web/src/components/ui/input.tsx@@ -11,7 +11,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(<inputtype={type}className={cn(- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full rounded-md border border-input bg-background px-2 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus:ring-0 focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",className,)}ref={ref}diff --git a/web/src/components/ui/password-input.tsx b/web/src/components/ui/password-input.tsxindex 5025d375fb..e1ad95a313 100644--- a/web/src/components/ui/password-input.tsx+++ b/web/src/components/ui/password-input.tsx@@ -14,7 +14,7 @@ const PasswordInput = React.forwardRef<HTMLInputElement, PasswordInputProps>(<inputtype={showPassword ? "text" : "password"}className={cn(- "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",className,)}ref={ref}diff --git a/web/src/components/ui/popover.tsx b/web/src/components/ui/popover.tsxindex 8e63e3ac73..2ca2452fa6 100644--- a/web/src/components/ui/popover.tsx+++ b/web/src/components/ui/popover.tsx@@ -19,7 +19,7 @@ const PopoverContent = React.forwardRef<align={align}sideOffset={sideOffset}className={cn(- "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ "z-50 w-72 rounded-md border bg-popover p-3 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",className,)}{...props}diff --git a/web/src/components/ui/resizable.tsx b/web/src/components/ui/resizable.tsxnew file mode 100644index 0000000000..0fd3904305--- /dev/null+++ b/web/src/components/ui/resizable.tsx@@ -0,0 +1,45 @@+"use client"++import { GripVertical } from "lucide-react"+import * as ResizablePrimitive from "react-resizable-panels"++import { cn } from "@/src/utils/tailwind"++const ResizablePanelGroup = ({+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (+ <ResizablePrimitive.PanelGroup+ className={cn(+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",+ className+ )}+ {...props}+ />+)++const ResizablePanel = ResizablePrimitive.Panel++const ResizableHandle = ({+ withHandle,+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {+ withHandle?: boolean+}) => (+ <ResizablePrimitive.PanelResizeHandle+ className={cn(+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",+ className+ )}+ {...props}+ >+ {withHandle && (+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">+ <GripVertical className="h-2.5 w-2.5" />+ </div>+ )}+ </ResizablePrimitive.PanelResizeHandle>+)++export { ResizablePanelGroup, ResizablePanel, ResizableHandle }diff --git a/web/src/components/ui/select.tsx b/web/src/components/ui/select.tsxindex 26f70b09c9..7e9b168169 100644--- a/web/src/components/ui/select.tsx+++ b/web/src/components/ui/select.tsx@@ -19,7 +19,7 @@ const SelectTrigger = React.forwardRef<<SelectPrimitive.Triggerref={ref}className={cn(- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",+ "flex h-8 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",className,)}{...props}diff --git a/web/src/components/ui/switch.tsx b/web/src/components/ui/switch.tsxindex 6acde175b4..04573776d4 100644--- a/web/src/components/ui/switch.tsx+++ b/web/src/components/ui/switch.tsx@@ -11,7 +11,7 @@ const Switch = React.forwardRef<>(({ className, ...props }, ref) => (<SwitchPrimitives.RootclassName={cn(- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-muted-foreground",+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-muted-foreground",className,)}{...props}@@ -19,7 +19,7 @@ const Switch = React.forwardRef<><SwitchPrimitives.ThumbclassName={cn(- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",+ "pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0",)}/></SwitchPrimitives.Root>diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsxindex dc5a54a747..22c49d4182 100644--- a/web/src/components/ui/table.tsx+++ b/web/src/components/ui/table.tsx@@ -31,7 +31,7 @@ const TableBody = React.forwardRef<>(({ className, ...props }, ref) => (<tbodyref={ref}- className={cn("[&_tr:last-child]:border-0", className)}+ className={cn("text-xs [&_tr:last-child]:border-0", className)}{...props}/>));diff --git a/web/src/components/ui/tabs.tsx b/web/src/components/ui/tabs.tsxindex c94907f522..8a7c5920a8 100644--- a/web/src/components/ui/tabs.tsx+++ b/web/src/components/ui/tabs.tsx@@ -14,7 +14,7 @@ const TabsList = React.forwardRef<<TabsPrimitive.Listref={ref}className={cn(- "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",+ "inline-flex h-8 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",className,)}{...props}@@ -29,7 +29,7 @@ const TabsTrigger = React.forwardRef<<TabsPrimitive.Triggerref={ref}className={cn(- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",+ "inline-flex h-6 items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",className,)}{...props}diff --git a/web/src/components/ui/toggle.tsx b/web/src/components/ui/toggle.tsxindex 06c4d2bf58..f562cd1549 100644--- a/web/src/components/ui/toggle.tsx+++ b/web/src/components/ui/toggle.tsx@@ -16,7 +16,7 @@ const toggleVariants = cva("border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",},size: {- default: "h-10 px-3",+ default: "h-8 px-3",xs: "h-6 px-1.5",sm: "h-9 px-2.5",lg: "h-11 px-5",diff --git a/web/src/ee/features/billing/components/BillingSettings.tsx b/web/src/ee/features/billing/components/BillingSettings.tsxindex 5b1704b720..a492cde132 100644--- a/web/src/ee/features/billing/components/BillingSettings.tsx+++ b/web/src/ee/features/billing/components/BillingSettings.tsx@@ -81,7 +81,7 @@ const OrganizationUsageChart = () => {return (<div>- <Card className="p-4">+ <Card className="p-3">{usage.data !== undefined ? (<><Text>@@ -107,7 +107,9 @@ const OrganizationUsageChart = () => {)}</>) : (- "Loading (might take a moment) ..."+ <span className="text-sm text-muted-foreground">+ Loading (might take a moment) ...+ </span>)}</Card><div className="mt-2 flex flex-col gap-1 text-sm text-muted-foreground">diff --git a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsxindex 7c60b8df59..3b641fda42 100644--- a/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx+++ b/web/src/ee/features/playground/page/components/JumpToPlaygroundButton.tsx@@ -68,7 +68,7 @@ export const JumpToPlaygroundButton: React.FC<JumpToPlaygroundButtonProps> = (asChild><Link href={`/project/${projectId}/playground`}>- <Terminal className="h-5 w-5" />+ <Terminal className="h-4 w-4" />{props.fullWidth ? (<span className="ml-2">Test in playground</span>) : null}diff --git a/web/src/ee/features/playground/page/components/Messages.tsx b/web/src/ee/features/playground/page/components/Messages.tsxindex 1138472a2f..fa87f4a2e8 100644--- a/web/src/ee/features/playground/page/components/Messages.tsx+++ b/web/src/ee/features/playground/page/components/Messages.tsx@@ -4,13 +4,28 @@ import { usePlaygroundContext } from "@/src/ee/features/playground/page/context"import { GenerationOutput } from "./GenerationOutput";import { ChatMessages } from "@/src/components/ChatMessages";import { type MessagesContext } from "@/src/components/ChatMessages/types";+import {+ ResizableHandle,+ ResizablePanel,+ ResizablePanelGroup,+} from "@/src/components/ui/resizable";export const Messages: React.FC<MessagesContext> = (props) => {return (<div className="flex h-full flex-col space-y-4 pr-4">- <p className="font-semibold">Messages</p>- <ChatMessages {...props} />- <GenerationOutput />+ <ResizablePanelGroup direction="vertical">+ <ResizablePanel minSize={10}>+ <ChatMessages {...props} />+ </ResizablePanel>+ <ResizableHandle withHandle className="bg-transparent" />+ <ResizablePanel+ minSize={10}+ defaultSize={20}+ className="flex flex-col space-y-4"+ >+ <GenerationOutput />+ </ResizablePanel>+ </ResizablePanelGroup><SubmitButton /></div>);@@ -21,8 +36,7 @@ const SubmitButton = () => {return (<Button- variant="default"- className="h-[88px] w-full space-x-2 py-3"+ className="flex-0"onClick={() => {handleSubmit().catch((err) => console.error(err));}}diff --git a/web/src/ee/features/playground/page/components/ResetPlaygroundButton.tsx b/web/src/ee/features/playground/page/components/ResetPlaygroundButton.tsxindex 988399a70c..49b91b35ef 100644--- a/web/src/ee/features/playground/page/components/ResetPlaygroundButton.tsx+++ b/web/src/ee/features/playground/page/components/ResetPlaygroundButton.tsx@@ -24,7 +24,7 @@ export const ResetPlaygroundButton: React.FC = () => {title="Reset playground state"onClick={handleClick}>- <ListRestartIcon className="mr-1 h-5 w-5" />+ <ListRestartIcon className="mr-1 h-4 w-4" /><span>Reset playground</span></Button>);diff --git a/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx b/web/src/ee/features/playground/page/components/SaveToPromptButton.tsxindex 8f4ae435dc..a2f27ca10b 100644--- a/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx+++ b/web/src/ee/features/playground/page/components/SaveToPromptButton.tsx@@ -91,7 +91,7 @@ export const SaveToPromptButton: React.FC = () => {<PopoverTrigger asChild><Button variant={"outline"} title="Save to prompt" asChild><Link href={`/project/${projectId}/playground`}>- <FileInput className="mr-1 h-5 w-5" />+ <FileInput className="mr-1 h-4 w-4" /><span>Save as prompt</span></Link></Button>@@ -155,7 +155,7 @@ export const SaveToPromptButton: React.FC = () => {export function Divider() {return (- <div className="my-6 flex flex-row justify-center align-middle">+ <div className="my-3 flex flex-row justify-center align-middle"><div className="flex flex-1 flex-col"><div className="flex-1 border-b-2 border-gray-200" /><div className="flex-1" />diff --git a/web/src/ee/features/playground/page/index.tsx b/web/src/ee/features/playground/page/index.tsxindex 91fb81a3aa..e99b33a7cf 100644--- a/web/src/ee/features/playground/page/index.tsx+++ b/web/src/ee/features/playground/page/index.tsx@@ -1,3 +1,4 @@+import { FullScreenPage } from "@/src/components/layouts/full-screen-page";import Header from "@/src/components/layouts/header";import { ResetPlaygroundButton } from "@/src/ee/features/playground/page/components/ResetPlaygroundButton";import { SaveToPromptButton } from "@/src/ee/features/playground/page/components/SaveToPromptButton";@@ -10,7 +11,7 @@ export default function PlaygroundPage() {if (!available) return null;return (<PlaygroundProvider>- <div className="flex h-[95vh] flex-col">+ <FullScreenPage><Headertitle="Playground"help={{@@ -27,7 +28,7 @@ export default function PlaygroundPage() {<div className="flex-1 overflow-auto"><Playground /></div>- </div>+ </FullScreenPage></PlaygroundProvider>);}diff --git a/web/src/features/comments/CommentCountIcon.tsx b/web/src/features/comments/CommentCountIcon.tsxindex 3796ee1d77..b1fdb9d038 100644--- a/web/src/features/comments/CommentCountIcon.tsx+++ b/web/src/features/comments/CommentCountIcon.tsx@@ -5,8 +5,8 @@ export function CommentCountIcon({ count }: { count?: number }) {return (<span className="relative mr-1 text-xs">- <MessageCircleMore className="h-5 w-5" />- <span className="absolute -top-0.5 left-3 flex max-h-[1rem] min-w-[1rem] items-center justify-center rounded-full border border-muted-foreground bg-accent-light-blue px-0.5 text-[9px]">+ <MessageCircleMore className="h-4 w-4" />+ <span className="absolute -top-0.5 left-2.5 flex max-h-[0.8rem] min-w-[0.8rem] items-center justify-center rounded-full border border-muted-foreground bg-accent-light-blue px-[0.2rem] text-[8px]">{count > 99 ? "99+" : count}</span></span>diff --git a/web/src/features/comments/CommentDrawerButton.tsx b/web/src/features/comments/CommentDrawerButton.tsxindex 7caaebeb2d..18e1d3a754 100644--- a/web/src/features/comments/CommentDrawerButton.tsx+++ b/web/src/features/comments/CommentDrawerButton.tsx@@ -49,7 +49,7 @@ export function CommentDrawerButton({{!!count ? (<CommentCountIcon count={count} />) : (- <MessageCircleIcon className="h-5 w-5" />+ <MessageCircleIcon className="h-4 w-4" />)}</Button></DrawerTrigger>@@ -58,7 +58,7 @@ export function CommentDrawerButton({<DrawerHeader className="sticky top-0 z-10 rounded-sm bg-background"><Header title="Comments" level="h3"></Header></DrawerHeader>- <div data-vaul-no-drag className="px-4">+ <div data-vaul-no-drag className="px-2"><CommentListprojectId={projectId}objectId={objectId}diff --git a/web/src/features/comments/CommentList.tsx b/web/src/features/comments/CommentList.tsxindex 3706838dee..edffe1c15d 100644--- a/web/src/features/comments/CommentList.tsx+++ b/web/src/features/comments/CommentList.tsx@@ -161,7 +161,7 @@ export function CommentList({<div className="flex justify-end"><Buttontype="submit"- size="xs"+ size="icon-xs"variant="outline"title="Submit comment"loading={createCommentMutation.isLoading}@@ -170,7 +170,7 @@ export function CommentList({}}className="absolute bottom-2 right-2">- <ArrowUpToLine className="h-4 w-4" />+ <ArrowUpToLine className="h-3 w-3" /></Button></div></form>@@ -208,7 +208,7 @@ export function CommentList({{session.data?.user?.id === comment.authorUserId && (<Buttontype="button"- size="xs"+ size="icon-xs"variant="destructive-secondary"title="Delete comment"loading={deleteCommentMutation.isLoading}diff --git a/web/src/features/dashboard/components/TabTimeSeriesChart.tsx b/web/src/features/dashboard/components/TabTimeSeriesChart.tsxindex 4f7da28991..66cab92049 100644--- a/web/src/features/dashboard/components/TabTimeSeriesChart.tsx+++ b/web/src/features/dashboard/components/TabTimeSeriesChart.tsx@@ -35,7 +35,7 @@ export const BaseTabTimeseriesChart = (props: BaseTabTimeseriesChartProps) => {onIndexChange={(i) => setSelectedIndex(i)}defaultIndex={0}>- <TabList className="h-10">+ <TabList className="h-8">{props.data.map((data, index) => (<Tab tabIndex={index} key={index}>{data.tabTitle}diff --git a/web/src/features/dashboard/components/TabsComponent.tsx b/web/src/features/dashboard/components/TabsComponent.tsxindex 0a645fa8ef..3c5e6f7527 100644--- a/web/src/features/dashboard/components/TabsComponent.tsx+++ b/web/src/features/dashboard/components/TabsComponent.tsx@@ -43,7 +43,7 @@ export const TabComponent = ({ tabs }: TabComponentProps) => {index === selectedIndex? "border-primary-accent text-primary-accent": "border-transparent text-muted-foreground hover:border-border hover:text-primary",- "cursor-pointer whitespace-nowrap border-b-2 px-1 py-3 text-sm font-medium",+ "cursor-pointer whitespace-nowrap border-b-2 px-1 py-2 text-sm font-medium",)}aria-current={index === selectedIndex ? "page" : undefined}onClick={() => {diff --git a/web/src/features/filters/components/multi-select.tsx b/web/src/features/filters/components/multi-select.tsxindex 79ee8ce692..174d4fae5a 100644--- a/web/src/features/filters/components/multi-select.tsx+++ b/web/src/features/filters/components/multi-select.tsx@@ -94,7 +94,7 @@ export function MultiSelect({<Buttonvariant="outline"className={cn(- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",className,)}disabled={disabled}diff --git a/web/src/features/models/components/NewModelForm.tsx b/web/src/features/models/components/NewModelForm.tsxindex f9203e6608..959c7be9e5 100644--- a/web/src/features/models/components/NewModelForm.tsx+++ b/web/src/features/models/components/NewModelForm.tsx@@ -149,7 +149,7 @@ export const NewModelForm = (props: {<form// eslint-disable-next-line @typescript-eslint/no-misused-promisesonSubmit={form.handleSubmit(onSubmit)}- className="flex flex-col gap-4"+ className="flex flex-col gap-2"><Header level="h3" title="Name" /><FormField@@ -183,7 +183,7 @@ export const NewModelForm = (props: {</FormItem>)}/>- <Header level="h3" title="Scope" />+ <Header level="h3" title="Scope" className="mt-3" /><FormFieldcontrol={form.control}name="matchPattern"@@ -224,7 +224,7 @@ export const NewModelForm = (props: {</FormItem>)}/>- <Header level="h3" title="Pricing" />+ <Header level="h3" title="Pricing" className="mt-3" /><FormFieldcontrol={form.control}name="unit"@@ -364,7 +364,7 @@ export const NewModelForm = (props: {)}/></div>- <Header level="h3" title="Tokenization" />+ <Header level="h3" title="Tokenization" className="mt-3" /><FormFieldcontrol={form.control}name="tokenizerId"@@ -441,7 +441,7 @@ export const NewModelForm = (props: {<Buttontype="submit"loading={createModelMutation.isLoading}- className="mt-3"+ className="mt-6">Save</Button>diff --git a/web/src/features/organizations/components/NewOrganizationForm.tsx b/web/src/features/organizations/components/NewOrganizationForm.tsxindex 94be9fbe0e..c46b3cce71 100644--- a/web/src/features/organizations/components/NewOrganizationForm.tsx+++ b/web/src/features/organizations/components/NewOrganizationForm.tsx@@ -55,7 +55,7 @@ export const NewOrganizationForm = ({<form// eslint-disable-next-line @typescript-eslint/no-misused-promisesonSubmit={form.handleSubmit(onSubmit)}- className="space-y-4"+ className="space-y-3"data-testid="new-org-form"><FormFielddiff --git a/web/src/features/organizations/components/RenameOrganization.tsx b/web/src/features/organizations/components/RenameOrganization.tsxindex e370d445fb..437f60c106 100644--- a/web/src/features/organizations/components/RenameOrganization.tsx+++ b/web/src/features/organizations/components/RenameOrganization.tsx@@ -64,7 +64,7 @@ export default function RenameOrganization() {return (<div><Header title="Organization Name" level="h3" />- <Card className="mb-4 p-4">+ <Card className="mb-4 p-3">{form.getValues().name !== "" ? (<p className="mb-4 text-sm text-primary">Your Organization will be renamed from "diff --git a/web/src/features/projects/components/HostNameProject.tsx b/web/src/features/projects/components/HostNameProject.tsxindex d5f2de143e..010a751b6f 100644--- a/web/src/features/projects/components/HostNameProject.tsx+++ b/web/src/features/projects/components/HostNameProject.tsx@@ -8,7 +8,7 @@ export function HostNameProject() {return (<div><Header title="Host Name" level="h3" />- <Card className="mb-4 p-4">+ <Card className="mb-4 p-3"><div className=""><div className="mb-2 text-sm">When connecting to Langfuse, use this hostname / baseurl.diff --git a/web/src/features/projects/components/NewProjectForm.tsx b/web/src/features/projects/components/NewProjectForm.tsxindex 8422dc9273..a24d1036f8 100644--- a/web/src/features/projects/components/NewProjectForm.tsx+++ b/web/src/features/projects/components/NewProjectForm.tsx@@ -64,7 +64,7 @@ export const NewProjectForm = ({<form// eslint-disable-next-line @typescript-eslint/no-misused-promisesonSubmit={form.handleSubmit(onSubmit)}- className="space-y-4"+ className="space-y-3"data-testid="new-project-form"><FormFielddiff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsxindex 31032fd609..2051c34c85 100644--- a/web/src/features/projects/components/RenameProject.tsx+++ b/web/src/features/projects/components/RenameProject.tsx@@ -61,7 +61,7 @@ export default function RenameProject() {return (<div><Header title="Project Name" level="h3" />- <Card className="mb-4 p-4">+ <Card className="mb-4 p-3">{form.getValues().name !== "" ? (<p className="mb-4 text-sm text-primary">Your Project will be renamed from "diff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsxindex 49c5236df7..a7bc1ef32d 100644--- a/web/src/features/prompts/components/NewPromptForm/index.tsx+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx@@ -337,7 +337,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {control={form.control}name="isActive"render={({ field }) => (- <FormItem className="flex flex-row items-center space-x-3 space-y-0 rounded-md border p-4">+ <FormItem className="flex flex-row items-center space-x-3 space-y-0 rounded-md border p-3"><FormControl><Checkboxchecked={field.value}diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsxindex 8e950c46d7..263d136b8a 100644--- a/web/src/features/prompts/components/delete-prompt-version.tsx+++ b/web/src/features/prompts/components/delete-prompt-version.tsx@@ -64,7 +64,7 @@ export function DeletePromptVersion({size="icon"disabled={!hasAccess}>- <Trash className="h-5 w-5" />+ <Trash className="h-4 w-4" /></Button></PopoverTrigger><PopoverContent>diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex a438b53e3f..b5b27b797c 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -124,7 +124,7 @@ export const PromptDetail = () => {<Linkhref={`/project/${projectId}/prompts/new?promptId=${encodeURIComponent(prompt.id)}`}>- <Pencil className="h-5 w-5" />+ <Pencil className="h-4 w-4" /></Link></Button>@@ -178,11 +178,11 @@ export const PromptDetail = () => {) : (<JSONView json={prompt.prompt} title="Prompt" />)}- <div className="mx-auto mt-5 w-full rounded-lg border text-base leading-7">+ <div className="mx-auto mt-5 w-full rounded-lg border text-base"><div className="border-b px-3 py-1 text-xs font-medium">Variables</div>- <div className="flex flex-wrap gap-2 p-3">+ <div className="flex flex-wrap gap-2 p-2">{extractedVariables.length > 0 ? (extractedVariables.map((variable) => (<Badge key={variable} variant="outline">diff --git a/web/src/features/public-api/components/ApiKeyList.tsx b/web/src/features/public-api/components/ApiKeyList.tsxindex d0149f4820..0127b9e8ff 100644--- a/web/src/features/public-api/components/ApiKeyList.tsx+++ b/web/src/features/public-api/components/ApiKeyList.tsx@@ -92,7 +92,7 @@ export function ApiKeyList(props: { projectId: string }) {{/* <TableCell>{apiKey.note ?? ""}</TableCell> */}<TableCell className="font-mono"><CodeView- className="inline-block"+ className="inline-block text-xs"content={apiKey.publicKey}/></TableCell>diff --git a/web/src/features/public-api/components/CreateApiKeyButton.tsx b/web/src/features/public-api/components/CreateApiKeyButton.tsxindex 5a716abdff..4480374f18 100644--- a/web/src/features/public-api/components/CreateApiKeyButton.tsx+++ b/web/src/features/public-api/components/CreateApiKeyButton.tsx@@ -96,7 +96,7 @@ export const ApiKeyRender = ({<><div className="mb-4"><div className="text-md font-semibold">Secret Key</div>- <div className="my-2">+ <div className="my-2 text-sm">This key can only be viewed once. You can always create new keys inthe project settings.</div>diff --git a/web/src/features/rbac/components/RoleSelectItem.tsx b/web/src/features/rbac/components/RoleSelectItem.tsxindex 3ec8d63cc1..e5af370568 100644--- a/web/src/features/rbac/components/RoleSelectItem.tsx+++ b/web/src/features/rbac/components/RoleSelectItem.tsx@@ -47,11 +47,11 @@ export const RoleSelectItem = ({) : (<><div className="font-bold">Role: {formatRole(role)}</div>- <p className="mt-3 text-xs font-semibold">Organization Scopes</p>+ <p className="mt-2 text-xs font-semibold">Organization Scopes</p><ul className="list-inside list-disc text-xs">{orgScopes}</ul><p className="mt-2 text-xs font-semibold">Project Scopes</p><ul className="list-inside list-disc text-xs">{projectScopes}</ul>- <p className="mt-3 border-t pt-3 text-xs">+ <p className="mt-2 border-t pt-2 text-xs">Note:{" "}<span className="text-muted-foreground">Muted scopes</span> areinherited from lower role.diff --git a/web/src/features/scores/components/AnnotateDrawer.tsx b/web/src/features/scores/components/AnnotateDrawer.tsxindex 84d5e24e32..4ad8d9f539 100644--- a/web/src/features/scores/components/AnnotateDrawer.tsx+++ b/web/src/features/scores/components/AnnotateDrawer.tsx@@ -76,9 +76,9 @@ export function AnnotateDrawer({}}>{!hasAccess ? (- <LockIcon className="mr-2 h-3 w-3" />+ <LockIcon className="mr-1.5 h-3 w-3" />) : (- <SquarePen className="mr-2 h-5 w-5" />+ <SquarePen className="mr-1.5 h-4 w-4" />)}<span>Annotate</span></Button>diff --git a/web/src/features/scores/components/AnnotateDrawerContent.tsx b/web/src/features/scores/components/AnnotateDrawerContent.tsxindex f86f0eed07..f1177884ae 100644--- a/web/src/features/scores/components/AnnotateDrawerContent.tsx+++ b/web/src/features/scores/components/AnnotateDrawerContent.tsx@@ -652,8 +652,24 @@ export function AnnotateDrawerContent({/>{field.value !== score.comment && (<div className="grid w-full grid-cols-[1fr,1fr] gap-2">+ <PopoverClose asChild>+ <Button+ variant="secondary"+ type="button"+ size="sm"+ className="text-xs"+ disabled={!field.value}+ onClick={() => {+ form.setValue(+ `scoreData.${index}.comment`,+ score.comment ?? "",+ );+ }}+ >+ Discard+ </Button>+ </PopoverClose><Button- variant="secondary"type="button"size="sm"className="text-xs"@@ -672,23 +688,6 @@ export function AnnotateDrawerContent({>Save</Button>- <PopoverClose asChild>- <Button- variant="destructive"- type="button"- size="sm"- className="text-xs"- disabled={!field.value}- onClick={() => {- form.setValue(- `scoreData.${index}.comment`,- score.comment ?? "",- );- }}- >- Discard- </Button>- </PopoverClose></div>)}{field.value === score.comment && (diff --git a/web/src/features/scores/components/multi-select-key-values.tsx b/web/src/features/scores/components/multi-select-key-values.tsxindex 30c3a5da7b..1fbd4dd121 100644--- a/web/src/features/scores/components/multi-select-key-values.tsx+++ b/web/src/features/scores/components/multi-select-key-values.tsx@@ -79,7 +79,7 @@ export function MultiSelectKeyValues<<Buttonvariant="outline"className={cn(- "flex h-10 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full items-center justify-between rounded-md border border-input bg-transparent px-3 py-1 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",className,)}disabled={disabled}diff --git a/web/src/features/tag/components/TagCreateItem.tsx b/web/src/features/tag/components/TagCreateItem.tsxindex b6d9b5d11c..57d6f0469f 100644--- a/web/src/features/tag/components/TagCreateItem.tsx+++ b/web/src/features/tag/components/TagCreateItem.tsx@@ -24,7 +24,7 @@ const TagItemCreate = ({<CommandItemkey={inputValue}value={inputValue.trim()}- className="flex cursor-pointer items-center rounded-sm px-3 py-2 text-sm text-muted-foreground hover:bg-secondary/80"+ className="flex min-h-8 cursor-pointer items-center rounded-sm px-3 py-1 text-sm text-muted-foreground hover:bg-secondary/80"onSelect={onSelect}>Create new tag: "{inputValue.trim()}"diff --git a/web/src/features/tag/components/TagInput.tsx b/web/src/features/tag/components/TagInput.tsxindex 7311e59d04..a05d969231 100644--- a/web/src/features/tag/components/TagInput.tsx+++ b/web/src/features/tag/components/TagInput.tsx@@ -46,7 +46,7 @@ export const TagInput = React.forwardRef<<CommandPrimitive.Inputref={ref}className={cn(- "placeholder:muted-foreground flex h-11 w-full rounded-md border-transparent bg-transparent px-1 text-sm outline-none focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",+ "placeholder:muted-foreground flex h-8 w-full rounded-md border-transparent bg-transparent px-1 text-sm outline-none focus:border-0 focus:border-none focus:border-transparent focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",className,)}autoFocusdiff --git a/web/src/features/tag/components/TagList.tsx b/web/src/features/tag/components/TagList.tsxindex 3e362f249e..e707d6c040 100644--- a/web/src/features/tag/components/TagList.tsx+++ b/web/src/features/tag/components/TagList.tsx@@ -15,7 +15,7 @@ const TagList = ({ selectedTags, isLoading }: TagListProps) => {<Buttonvariant="outline"size="xs"- className="text-xs font-bold opacity-0 hover:bg-background hover:opacity-100"+ className="text-xs font-semibold opacity-0 hover:bg-background hover:opacity-100">Add tag</Button>diff --git a/web/src/pages/auth/sign-in.tsx b/web/src/pages/auth/sign-in.tsxindex d7ee3f06ca..266ecb838e 100644--- a/web/src/pages/auth/sign-in.tsx+++ b/web/src/pages/auth/sign-in.tsx@@ -357,7 +357,7 @@ export default function SignIn({ authProviders, signUpDisabled }: PageProps) {</div>)}- <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-10"><div className="space-y-6"><CloudRegionSwitch />{authProviders.credentials ? (diff --git a/web/src/pages/auth/sign-up.tsx b/web/src/pages/auth/sign-up.tsxindex 6f28dbd11d..2dd36bdec2 100644--- a/web/src/pages/auth/sign-up.tsx+++ b/web/src/pages/auth/sign-up.tsx@@ -104,7 +104,7 @@ export default function SignIn({ authProviders }: PageProps) {</div>) : null}- <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-12">+ <div className="mt-14 bg-background px-6 py-10 shadow sm:mx-auto sm:w-full sm:max-w-[480px] sm:rounded-lg sm:px-10"><CloudRegionSwitch isSignUpPage /><Form {...form}><formdiff --git a/web/src/pages/organization/[organizationId]/settings/index.tsx b/web/src/pages/organization/[organizationId]/settings/index.tsxindex c92c3934f3..360a0af081 100644--- a/web/src/pages/organization/[organizationId]/settings/index.tsx+++ b/web/src/pages/organization/[organizationId]/settings/index.tsx@@ -29,7 +29,7 @@ const OrgSettingsPage = () => {title: "General",slug: "index",content: (- <div className="flex flex-col gap-10">+ <div className="flex flex-col gap-6"><RenameOrganization /><div><Header title="Debug Information" level="h3" />@@ -55,7 +55,7 @@ const OrgSettingsPage = () => {title: "Members",slug: "members",content: (- <div className="flex flex-col gap-10">+ <div className="flex flex-col gap-6"><div><Header title="Organization Members" level="h3" /><MembersTable orgId={organization.id} />diff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsxindex e28832212b..65152c5416 100644--- a/web/src/pages/project/[projectId]/index.tsx+++ b/web/src/pages/project/[projectId]/index.tsx@@ -175,7 +175,7 @@ export default function Dashboard() {</FeedbackButtonWrapper>)}</div>- <div className="grid w-full grid-cols-1 gap-4 overflow-hidden lg:grid-cols-2 xl:grid-cols-6">+ <div className="grid w-full grid-cols-1 gap-3 overflow-hidden lg:grid-cols-2 xl:grid-cols-6"><TracesBarListChartclassName="col-span-1 xl:col-span-2"projectId={projectId}diff --git a/web/src/pages/project/[projectId]/settings/index.tsx b/web/src/pages/project/[projectId]/settings/index.tsxindex c5e99044be..3a780a76cf 100644--- a/web/src/pages/project/[projectId]/settings/index.tsx+++ b/web/src/pages/project/[projectId]/settings/index.tsx@@ -35,7 +35,7 @@ export default function SettingsPage() {title: "General",slug: "index",content: (- <div className="flex flex-col gap-10">+ <div className="flex flex-col gap-6"><HostNameProject /><RenameProject /><div>@@ -71,7 +71,7 @@ export default function SettingsPage() {title: "API Keys",slug: "api-keys",content: (- <div className="flex flex-col gap-10">+ <div className="flex flex-col gap-6"><ApiKeyList projectId={project.id} /><LlmApiKeyList projectId={project.id} /></div>@@ -129,7 +129,7 @@ const Integrations = (props: { projectId: string }) => {return (<div><Header title="Integrations" level="h3" />- <Card className="p-4">+ <Card className="p-3">{/* eslint-disable-next-line @next/next/no-img-element */}<PostHogLogo className="mb-4 w-40 text-foreground" /><p className="mb-4 text-sm text-primary">diff --git a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsxindex 842332237c..7475947e49 100644--- a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx@@ -84,7 +84,7 @@ export default function PosthogIntegrationSettings() {{hasAccess && (<><Header level="h3" title="Configuration" />- <Card className="p-4">+ <Card className="p-3"><PostHogLogo className="mb-4 w-36 text-foreground" /><PostHogIntegrationSettingsstate={state.data}diff --git a/web/src/pages/project/[projectId]/users/[userId].tsx b/web/src/pages/project/[projectId]/users/[userId].tsxindex fbe05e1f3e..a7153a1fbb 100644--- a/web/src/pages/project/[projectId]/users/[userId].tsx+++ b/web/src/pages/project/[projectId]/users/[userId].tsx@@ -10,7 +10,7 @@ import { StringParam, useQueryParam, withDefault } from "use-query-params";import { DetailPageNav } from "@/src/features/navigate-detail-pages/DetailPageNav";import SessionsTable from "@/src/components/table/use-cases/sessions";-const tabs = ["Details", "Sessions", "Traces", "Scores"] as const;+const tabs = ["Overview", "Sessions", "Traces", "Scores"] as const;export default function UserPage() {const router = useRouter();@@ -28,8 +28,8 @@ export default function UserPage() {const renderTabContent = () => {switch (currentTab as (typeof tabs)[number]) {- case "Details":- return <DetailsTab userId={userId} projectId={projectId} />;+ case "Overview":+ return <OverviewTab userId={userId} projectId={projectId} />;case "Sessions":return <SessionsTab userId={userId} projectId={projectId} />;case "Traces":@@ -118,7 +118,7 @@ type TabProps = {projectId: string;};-function DetailsTab({ userId, projectId }: TabProps) {+function OverviewTab({ userId, projectId }: TabProps) {const user = api.users.byId.useQuery({ projectId: projectId, userId });const userData: { value: string; label: string }[] = user.data@@ -160,83 +160,75 @@ function DetailsTab({ userId, projectId }: TabProps) {: [];return (- <div className="mt-5 pt-5">- <div className="mt-6 border-t border-muted">- <dl className="divide-y divide-muted">- {userData.map((item) => (- <div- key={item.label}- className="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"- >- <dt className="text-sm font-medium leading-6 text-primary">- {item.label}- </dt>- <dd className="mt-1 text-sm leading-6 text-primary sm:col-span-2 sm:mt-0">- {item.value ?? "-"}- </dd>- </div>- ))}- {user.data?.lastScore ? (- <div- key="score"- className="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"- >- <dt className="text-sm font-medium leading-6 text-primary">- Last Score- </dt>- <dd className="mt-1 text-sm leading-6 text-primary sm:col-span-2 sm:mt-0">- <div className="flex items-center gap-4">- <TableLink- path={- user.data.lastScore.observationId- ? `/project/${projectId}/traces/${user.data.lastScore.traceId}?observation=${user.data.lastScore.observationId}`- : `/project/${projectId}/traces/${user.data.lastScore.traceId}`- }- value={user.data.lastScore.traceId}- />- <GroupedScoreBadges scores={[user.data.lastScore]} />- </div>- </dd>- </div>- ) : undefined}- </dl>- </div>+ <div className="mt-6 border-t border-muted">+ <dl className="divide-y divide-muted">+ {userData.map((item) => (+ <div+ key={item.label}+ className="px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"+ >+ <dt className="text-sm font-medium leading-6 text-primary">+ {item.label}+ </dt>+ <dd className="mt-1 text-xs leading-6 text-primary sm:col-span-2 sm:mt-0">+ {item.value ?? "-"}+ </dd>+ </div>+ ))}+ {user.data?.lastScore ? (+ <div+ key="score"+ className="px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0"+ >+ <dt className="text-sm font-medium leading-6 text-primary">+ Last Score+ </dt>+ <dd className="mt-1 text-xs leading-6 text-primary sm:col-span-2 sm:mt-0">+ <div className="flex items-center gap-4">+ <TableLink+ path={+ user.data.lastScore.observationId+ ? `/project/${projectId}/traces/${user.data.lastScore.traceId}?observation=${user.data.lastScore.observationId}`+ : `/project/${projectId}/traces/${user.data.lastScore.traceId}`+ }+ value={user.data.lastScore.traceId}+ />+ <GroupedScoreBadges scores={[user.data.lastScore]} />+ </div>+ </dd>+ </div>+ ) : undefined}+ </dl></div>);}function ScoresTab({ userId, projectId }: TabProps) {return (- <div className="mt-5 pt-5">- <ScoresTable- projectId={projectId}- userId={userId}- omittedFilter={["User ID"]}- />- </div>+ <ScoresTable+ projectId={projectId}+ userId={userId}+ omittedFilter={["User ID"]}+ />);}function TracesTab({ userId, projectId }: TabProps) {return (- <div className="mt-5 pt-5">- <TracesTable- projectId={projectId}- userId={userId}- omittedFilter={["User ID"]}- />- </div>+ <TracesTable+ projectId={projectId}+ userId={userId}+ omittedFilter={["User ID"]}+ />);}function SessionsTab({ userId, projectId }: TabProps) {return (- <div className="mt-5 pt-5">- <SessionsTable- projectId={projectId}- userId={userId}- omittedFilter={["User IDs"]}- />- </div>+ <SessionsTable+ projectId={projectId}+ userId={userId}+ omittedFilter={["User IDs"]}+ />);}diff --git a/web/src/styles/globals.css b/web/src/styles/globals.cssindex 0a92891cda..e01fea20a8 100644--- a/web/src/styles/globals.css+++ b/web/src/styles/globals.css@@ -135,21 +135,23 @@html,body,- body > div:first-child,+ body>div:first-child,div#__next,- div#__next > div {+ div#__next>div {height: 100%;}}@layer base {+input[type="number"].appearance-none::-webkit-inner-spin-button,input[type="number"].appearance-none::-webkit-outer-spin-button {-webkit-appearance: none;margin: 0;}+input[type="number"].appearance-none {-moz-appearance: textfield;appearance: none;}-}+}\ No newline at end of filediff --git a/web/tailwind.config.ts b/web/tailwind.config.tsindex 5b3c539147..45ed0d1532 100644--- a/web/tailwind.config.ts+++ b/web/tailwind.config.ts@@ -157,10 +157,17 @@ module.exports = {sm: "calc(var(--radius) - 4px)",},fontSize: {- "tremor-label": ["0.75rem", { lineHeight: "1rem" }],- "tremor-default": ["0.875rem", { lineHeight: "1.25rem" }],- "tremor-title": ["1.125rem", { lineHeight: "1.75rem" }],- "tremor-metric": ["1.875rem", { lineHeight: "2.25rem" }],+ xs: "0.7rem",+ sm: "0.825rem",+ base: "0.9rem",+ lg: "1.1rem",+ xl: "1.2rem",+ "2xl": "1.3rem",+ "3xl": "1.5rem",+ "tremor-label": ["0.7rem", { lineHeight: "1rem" }],+ "tremor-default": ["0.825rem", { lineHeight: "1.25rem" }],+ "tremor-title": ["0.9rem", { lineHeight: "1.75rem" }],+ "tremor-metric": ["1.5rem", { lineHeight: "2.25rem" }],},keyframes: {"accordion-down": {