css`
+ css={css`
text-align: center;
- padding: ${theme.spacing.margin24}px ${theme.spacing.margin24}px !important;
+ padding: var(--ac-global-dimension-size-300)
+ var(--ac-global-dimension-size-300) !important;
`}
>
{message}
diff --git a/app/src/components/table/styles.ts b/app/src/components/table/styles.ts
index 0785c20225..c34c218a8e 100644
--- a/app/src/components/table/styles.ts
+++ b/app/src/components/table/styles.ts
@@ -1,9 +1,9 @@
import { CSSProperties } from "react";
import { Column } from "@tanstack/react-table";
-import { css, Theme } from "@emotion/react";
+import { css } from "@emotion/react";
-export const tableCSS = (theme: Theme) => css`
- font-size: ${theme.typography.sizes.medium.fontSize}px;
+export const tableCSS = css`
+ font-size: var(--ac-global-font-size-s);
width: 100%;
border-collapse: separate;
border-spacing: 0;
@@ -13,7 +13,8 @@ export const tableCSS = (theme: Theme) => css`
z-index: 1;
tr {
th {
- padding: ${theme.spacing.margin4}px ${theme.spacing.margin16}px;
+ padding: var(--ac-global-dimension-size-50)
+ var(--ac-global-dimension-size-200);
background-color: var(--ac-global-color-grey-100);
position: relative;
text-align: left;
@@ -26,8 +27,8 @@ export const tableCSS = (theme: Theme) => css`
cursor: pointer;
}
.sort-icon {
- margin-left: ${theme.spacing.margin4}px;
- font-size: ${theme.typography.sizes.small.fontSize}px;
+ margin-left: var(--ac-global-dimension-size-50);
+ font-size: var(--ac-global-font-size-xs);
vertical-align: middle;
display: inline-block;
}
@@ -70,7 +71,8 @@ export const tableCSS = (theme: Theme) => css`
background-color: rgba(var(--ac-global-color-grey-300-rgb), 0.3);
}
& > td {
- padding: ${theme.spacing.margin8}px ${theme.spacing.margin16}px;
+ padding: var(--ac-global-dimension-size-100)
+ var(--ac-global-dimension-size-200);
}
}
}
@@ -89,24 +91,23 @@ export const borderedTableCSS = css`
}
`;
-export const selectableTableCSS = (theme: Theme) =>
- css(
- tableCSS(theme),
- css`
- tbody:not(.is-empty) {
- tr {
- cursor: pointer;
- }
+export const selectableTableCSS = css(
+ tableCSS,
+ css`
+ tbody:not(.is-empty) {
+ tr {
+ cursor: pointer;
}
- `
- );
+ }
+ `
+);
-export const paginationCSS = (theme: Theme) => css`
+export const paginationCSS = css`
display: flex;
justify-content: flex-end;
align-items: center;
- padding: ${theme.spacing.margin8}px;
- gap: ${theme.spacing.margin4}px;
+ padding: var(--ac-global-dimension-size-100);
+ gap: var(--ac-global-dimension-size-50);
border-top: 1px solid var(--ac-global-color-grey-300);
`;
diff --git a/app/src/components/trace/AnnotationActionMenu.tsx b/app/src/components/trace/AnnotationActionMenu.tsx
index 983f14e194..1e700338ec 100644
--- a/app/src/components/trace/AnnotationActionMenu.tsx
+++ b/app/src/components/trace/AnnotationActionMenu.tsx
@@ -1,8 +1,8 @@
import React from "react";
-import { ActionMenu, Item, Text } from "@arizeai/components";
+import { ActionMenu, Item } from "@arizeai/components";
-import { Flex, Icon, Icons } from "@phoenix/components";
+import { Flex, Icon, Icons, Text } from "@phoenix/components";
type AnnotationActionMenuProps = {
onDelete: () => void;
diff --git a/app/src/components/trace/LatencyText.tsx b/app/src/components/trace/LatencyText.tsx
index f1e731b74d..e96facf43e 100644
--- a/app/src/components/trace/LatencyText.tsx
+++ b/app/src/components/trace/LatencyText.tsx
@@ -1,16 +1,14 @@
import React, { useMemo } from "react";
-import { Text, TextProps } from "@arizeai/components";
-
-import { Flex, Icon, Icons } from "@phoenix/components";
+import { Flex, Icon, Icons, Text, TextProps } from "@phoenix/components";
import { formatFloat } from "@phoenix/utils/numberFormatUtils";
export function LatencyText({
latencyMs,
- textSize = "medium",
+ size = "M",
showIcon = true,
}: {
latencyMs: number;
- textSize?: TextProps["textSize"];
+ size?: TextProps["size"];
/**
* Whether to show the clock icon.
* @default true
@@ -43,11 +41,11 @@ export function LatencyText({
gap="size-50"
>
{showIcon ? (
-
+
} />
) : null}
-
+
{latencyText}
diff --git a/app/src/components/trace/SpanAnnotationActionMenu.tsx b/app/src/components/trace/SpanAnnotationActionMenu.tsx
index 355c2734f8..621fb61d52 100644
--- a/app/src/components/trace/SpanAnnotationActionMenu.tsx
+++ b/app/src/components/trace/SpanAnnotationActionMenu.tsx
@@ -6,10 +6,10 @@ import React, {
} from "react";
import { graphql, useMutation } from "react-relay";
-import { Dialog, DialogContainer, Text } from "@arizeai/components";
+import { Dialog, DialogContainer } from "@arizeai/components";
import { NoticeConfig } from "@arizeai/components/dist/notification/types";
-import { Button, Flex, View } from "@phoenix/components";
+import { Button, Flex, Text, View } from "@phoenix/components";
import { SpanAnnotationActionMenuDeleteMutation } from "./__generated__/SpanAnnotationActionMenuDeleteMutation.graphql";
import { AnnotationActionMenu } from "./AnnotationActionMenu";
diff --git a/app/src/components/trace/TokenCount.tsx b/app/src/components/trace/TokenCount.tsx
index c1185b331f..047957bb2a 100644
--- a/app/src/components/trace/TokenCount.tsx
+++ b/app/src/components/trace/TokenCount.tsx
@@ -1,15 +1,9 @@
import React from "react";
import { css } from "@emotion/react";
-import {
- Text,
- TextProps,
- Tooltip,
- TooltipTrigger,
- TriggerWrap,
-} from "@arizeai/components";
+import { Tooltip, TooltipTrigger, TriggerWrap } from "@arizeai/components";
-import { Flex, Icon, Icons } from "@phoenix/components";
+import { Flex, Icon, Icons, Text, TextProps } from "@phoenix/components";
type TokenCountProps = {
/**
@@ -27,7 +21,7 @@ type TokenCountProps = {
/**
* The size of the icon and text
*/
- textSize?: TextProps["textSize"];
+ size?: TextProps["size"];
};
/**
@@ -37,7 +31,7 @@ export function TokenCount(props: TokenCountProps) {
return (
- {props.tokenCountTotal}
+ {props.tokenCountTotal}
@@ -60,7 +54,7 @@ function TokenItem({
...textProps
}: {
children: number;
- textSize?: TextProps["textSize"];
+ size?: TextProps["size"];
}) {
return (
diff --git a/app/src/components/trace/TraceTree.tsx b/app/src/components/trace/TraceTree.tsx
index 09055ebff0..d318cd8995 100644
--- a/app/src/components/trace/TraceTree.tsx
+++ b/app/src/components/trace/TraceTree.tsx
@@ -335,11 +335,11 @@ function SpanTreeEdgeConnector({
css`
+ css={css`
position: absolute;
border-left: 1px solid
${statusCode === "ERROR"
- ? theme.colors.statusDanger
+ ? "var(--ac-global-color-danger)"
: "var(--ac-global-color-grey-700)"};
top: 0;
left: ${nestingLevel * NESTING_INDENT + 29}px;
@@ -358,25 +358,23 @@ function SpanTreeEdge({
statusCode: SpanStatusCodeType;
nestingLevel: number;
}) {
+ const color =
+ statusCode === "ERROR"
+ ? "var(--ac-global-color-danger)"
+ : "var(--ac-global-color-grey-700)";
return (
{
- const color =
- statusCode === "ERROR"
- ? theme.colors.statusDanger
- : "var(--ac-global-color-grey-700)";
- return css`
- position: absolute;
- border-left: 1px solid ${color};
- border-bottom: 1px solid ${color};
- border-radius: 0 0 0 11px;
- top: -5px;
- left: ${nestingLevel * NESTING_INDENT + 29}px;
- width: 15px;
- height: 24px;
- `;
- }}
+ css={css`
+ position: absolute;
+ border-left: 1px solid ${color};
+ border-bottom: 1px solid ${color};
+ border-radius: 0 0 0 11px;
+ top: -5px;
+ left: ${nestingLevel * NESTING_INDENT + 29}px;
+ width: 15px;
+ height: 24px;
+ `}
>
);
}
diff --git a/app/src/components/trace/TraceTreeContext.tsx b/app/src/components/trace/TraceTreeContext.tsx
index 49ec5c662a..0f527ed93d 100644
--- a/app/src/components/trace/TraceTreeContext.tsx
+++ b/app/src/components/trace/TraceTreeContext.tsx
@@ -9,7 +9,7 @@ import React, {
export type TraceTreeContextType = {
isCollapsed: boolean;
- setIsCollapsed: (theme: boolean) => void;
+ setIsCollapsed: (collapsed: boolean) => void;
};
export const TraceTreeConnext = createContext (
diff --git a/app/src/components/types/sizing.ts b/app/src/components/types/sizing.ts
index 667f40da14..a4bbd85277 100644
--- a/app/src/components/types/sizing.ts
+++ b/app/src/components/types/sizing.ts
@@ -1,8 +1,13 @@
-export type Size = "S" | "M" | "L";
+export type Size = "XS" | "S" | "M" | "L" | "XL" | "XXL";
+
+export type ComponentSize = Omit;
+
+export type TextSize = Size;
+
export type SizingProps = {
/**
* The size of the component
* @default 'M'
*/
- size?: Size;
+ size?: ComponentSize;
};
diff --git a/app/src/components/types/style.ts b/app/src/components/types/style.ts
index 315fc5cab3..7443a6d095 100644
--- a/app/src/components/types/style.ts
+++ b/app/src/components/types/style.ts
@@ -577,3 +577,10 @@ export interface FlexStyleProps extends BoxAlignmentStyleProps, StyleProps {
}
export type Responsive = T | ResponsiveProp;
+
+export type TextColorValue =
+ | "text-900"
+ | "text-700"
+ | "text-300"
+ | "inherit"
+ | ColorValue;
diff --git a/app/src/pages/auth/ForgotPasswordPage.tsx b/app/src/pages/auth/ForgotPasswordPage.tsx
index caf855a377..e3727832d7 100644
--- a/app/src/pages/auth/ForgotPasswordPage.tsx
+++ b/app/src/pages/auth/ForgotPasswordPage.tsx
@@ -1,9 +1,7 @@
import React, { useState } from "react";
import { css } from "@emotion/react";
-import { Heading } from "@arizeai/components";
-
-import { Flex, Link } from "@phoenix/components";
+import { Flex, Heading, Link } from "@phoenix/components";
import { AuthLayout } from "./AuthLayout";
import { ForgotPasswordForm } from "./ForgotPasswordForm";
diff --git a/app/src/pages/dataset/DatasetPage.tsx b/app/src/pages/dataset/DatasetPage.tsx
index 25cc10294f..5c3f8c9db4 100644
--- a/app/src/pages/dataset/DatasetPage.tsx
+++ b/app/src/pages/dataset/DatasetPage.tsx
@@ -2,16 +2,17 @@ import React, { Suspense, useCallback, useMemo } from "react";
import { Outlet, useLoaderData, useLocation, useNavigate } from "react-router";
import { css } from "@emotion/react";
+import { ActionMenu, Counter, Item, TabPane, Tabs } from "@arizeai/components";
+
import {
- ActionMenu,
- Counter,
- Item,
- TabPane,
- Tabs,
+ Button,
+ Flex,
+ Icon,
+ Icons,
+ Loading,
Text,
-} from "@arizeai/components";
-
-import { Button, Flex, Icon, Icons, Loading, View } from "@phoenix/components";
+ View,
+} from "@phoenix/components";
import { useNotifySuccess } from "@phoenix/contexts";
import {
DatasetProvider,
@@ -120,7 +121,7 @@ function DatasetPageContent({
{/* TODO(datasets): Add an icon here to make the UI cohesive */}
{/* } /> */}
-
+
{dataset.name}
{dataset.description || "--"}
diff --git a/app/src/pages/dataset/RunExperimentButton.tsx b/app/src/pages/dataset/RunExperimentButton.tsx
index c9a65efd2e..8f70648d07 100644
--- a/app/src/pages/dataset/RunExperimentButton.tsx
+++ b/app/src/pages/dataset/RunExperimentButton.tsx
@@ -1,8 +1,15 @@
import React, { ReactNode, useCallback, useMemo, useState } from "react";
-import { Dialog, DialogContainer, Text } from "@arizeai/components";
+import { Dialog, DialogContainer } from "@arizeai/components";
-import { Button, ExternalLink, Icon, Icons, View } from "@phoenix/components";
+import {
+ Button,
+ ExternalLink,
+ Icon,
+ Icons,
+ Text,
+ View,
+} from "@phoenix/components";
import { IsAdmin, IsAuthenticated } from "@phoenix/components/auth";
import { CodeWrap } from "@phoenix/components/code/CodeWrap";
import { PythonBlockWithCopy } from "@phoenix/components/code/PythonBlockWithCopy";
diff --git a/app/src/pages/datasets/DatasetActionMenu.tsx b/app/src/pages/datasets/DatasetActionMenu.tsx
index 87b4302ed8..c3eec1f947 100644
--- a/app/src/pages/datasets/DatasetActionMenu.tsx
+++ b/app/src/pages/datasets/DatasetActionMenu.tsx
@@ -1,8 +1,8 @@
import React, { ReactNode, useCallback, useState } from "react";
-import { ActionMenu, DialogContainer, Item, Text } from "@arizeai/components";
+import { ActionMenu, DialogContainer, Item } from "@arizeai/components";
-import { Flex, Icon, Icons } from "@phoenix/components";
+import { Flex, Icon, Icons, Text } from "@phoenix/components";
import { DeleteDatasetDialog } from "./DeleteDatasetDialog";
import { EditDatasetDialog } from "./EditDatasetDialog";
diff --git a/app/src/pages/datasets/DatasetsPage.tsx b/app/src/pages/datasets/DatasetsPage.tsx
index 81d7e8286e..50044999ab 100644
--- a/app/src/pages/datasets/DatasetsPage.tsx
+++ b/app/src/pages/datasets/DatasetsPage.tsx
@@ -2,15 +2,9 @@ import React, { ReactNode, Suspense, useCallback, useState } from "react";
import { graphql, useLazyLoadQuery } from "react-relay";
import { useNavigate } from "react-router";
-import {
- ActionMenu,
- Dialog,
- DialogContainer,
- Heading,
- Item,
-} from "@arizeai/components";
+import { ActionMenu, Dialog, DialogContainer, Item } from "@arizeai/components";
-import { Flex, Icon, Icons, Loading, View } from "@phoenix/components";
+import { Flex, Heading, Icon, Icons, Loading, View } from "@phoenix/components";
import { CreateDatasetForm } from "@phoenix/components/dataset/CreateDatasetForm";
import { useNotifyError, useNotifySuccess } from "@phoenix/contexts";
diff --git a/app/src/pages/datasets/DeleteDatasetDialog.tsx b/app/src/pages/datasets/DeleteDatasetDialog.tsx
index 30b5add03f..873fa7506e 100644
--- a/app/src/pages/datasets/DeleteDatasetDialog.tsx
+++ b/app/src/pages/datasets/DeleteDatasetDialog.tsx
@@ -2,9 +2,9 @@ import React, { startTransition, useCallback } from "react";
import { useMutation } from "react-relay";
import { graphql } from "relay-runtime";
-import { Dialog, Text } from "@arizeai/components";
+import { Dialog } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { DeleteDatasetDialogMutation } from "./__generated__/DeleteDatasetDialogMutation.graphql";
diff --git a/app/src/pages/dimension/DimensionCardinalityStats.tsx b/app/src/pages/dimension/DimensionCardinalityStats.tsx
index 54dd2819fb..30a2981f79 100644
--- a/app/src/pages/dimension/DimensionCardinalityStats.tsx
+++ b/app/src/pages/dimension/DimensionCardinalityStats.tsx
@@ -1,8 +1,7 @@
import React from "react";
import { graphql, useFragment } from "react-relay";
-import { Text } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import { intFormatter } from "@phoenix/utils/numberFormatUtils";
import { DimensionCardinalityStats_dimension$key } from "./__generated__/DimensionCardinalityStats_dimension.graphql";
@@ -33,12 +32,12 @@ export function DimensionCardinalityStats(props: {
return (
<>
-
+
Cardinality
- {intFormatter(data.cardinality)}
+ {intFormatter(data.cardinality)}
{data.referenceCardinality != null && (
-
+
{intFormatter(data.referenceCardinality)}
)}
diff --git a/app/src/pages/dimension/DimensionCardinalityTimeSeries.tsx b/app/src/pages/dimension/DimensionCardinalityTimeSeries.tsx
index dae513919a..24d492a96e 100644
--- a/app/src/pages/dimension/DimensionCardinalityTimeSeries.tsx
+++ b/app/src/pages/dimension/DimensionCardinalityTimeSeries.tsx
@@ -11,8 +11,7 @@ import {
YAxis,
} from "recharts";
-import { Text, theme } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipDivider,
@@ -54,7 +53,7 @@ function TooltipContent({
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
timeTickFormatter(new Date(x))}
/>
} />
diff --git a/app/src/pages/dimension/DimensionCountStats.tsx b/app/src/pages/dimension/DimensionCountStats.tsx
index 59b16b9a9b..8b8332367f 100644
--- a/app/src/pages/dimension/DimensionCountStats.tsx
+++ b/app/src/pages/dimension/DimensionCountStats.tsx
@@ -1,8 +1,7 @@
import React from "react";
import { graphql, useFragment } from "react-relay";
-import { Text } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import { intFormatter } from "@phoenix/utils/numberFormatUtils";
import { DimensionCountStats_dimension$key } from "./__generated__/DimensionCountStats_dimension.graphql";
@@ -25,10 +24,10 @@ export function DimensionCountStats(props: {
return (
<>
-
+
Total Count
- {intFormatter(count)}
+ {intFormatter(count)}
>
);
}
diff --git a/app/src/pages/dimension/DimensionCountTimeSeries.tsx b/app/src/pages/dimension/DimensionCountTimeSeries.tsx
index d467ab891f..e67b89710e 100644
--- a/app/src/pages/dimension/DimensionCountTimeSeries.tsx
+++ b/app/src/pages/dimension/DimensionCountTimeSeries.tsx
@@ -11,8 +11,7 @@ import {
YAxis,
} from "recharts";
-import { Text, theme } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipItem,
@@ -51,7 +50,7 @@ function TooltipContent({
typeof count === "number" ? numberFormatter.format(count) : "--";
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
timeTickFormatter(new Date(x))}
/>
-
+
{label}
{`Distribution comparison at ${fullTimeFormatter(
new Date(timeRange.end)
@@ -242,7 +240,7 @@ export function DimensionDriftBreakdownSegmentBarChart(props: {
style={{ fill: "var(--ac-global-text-color-700)" }}
/>
-
+
PSI
{contextualHelp}
- {floatFormatter(data.psi)}
+ {floatFormatter(data.psi)}
>
);
}
diff --git a/app/src/pages/dimension/DimensionDriftTimeSeries.tsx b/app/src/pages/dimension/DimensionDriftTimeSeries.tsx
index 641840e1ab..88052ed516 100644
--- a/app/src/pages/dimension/DimensionDriftTimeSeries.tsx
+++ b/app/src/pages/dimension/DimensionDriftTimeSeries.tsx
@@ -15,9 +15,7 @@ import {
import { CategoricalChartFunc } from "recharts/types/chart/generateCategoricalChart";
import { css } from "@emotion/react";
-import { Text, theme } from "@arizeai/components";
-
-import { Icon, Icons } from "@phoenix/components";
+import { Icon, Icons, Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipDivider,
@@ -57,7 +55,7 @@ function TooltipContent({
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
timeTickFormatter(new Date(x))}
/>
} />
diff --git a/app/src/pages/dimension/DimensionPercentEmptyStats.tsx b/app/src/pages/dimension/DimensionPercentEmptyStats.tsx
index 7a6734decc..982d68ced8 100644
--- a/app/src/pages/dimension/DimensionPercentEmptyStats.tsx
+++ b/app/src/pages/dimension/DimensionPercentEmptyStats.tsx
@@ -1,8 +1,7 @@
import React from "react";
import { graphql, useFragment } from "react-relay";
-import { Text } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import { percentFormatter } from "@phoenix/utils/numberFormatUtils";
import { DimensionPercentEmptyStats_dimension$key } from "./__generated__/DimensionPercentEmptyStats_dimension.graphql";
@@ -33,12 +32,12 @@ export function DimensionPercentEmptyStats(props: {
return (
<>
-
+
% Empty
- {percentFormatter(data.percentEmpty)}
+ {percentFormatter(data.percentEmpty)}
{data.referencePercentEmpty != null && (
-
+
{percentFormatter(data.referencePercentEmpty)}
)}
diff --git a/app/src/pages/dimension/DimensionPercentEmptyTimeSeries.tsx b/app/src/pages/dimension/DimensionPercentEmptyTimeSeries.tsx
index c89433b3f7..10cb1e3b24 100644
--- a/app/src/pages/dimension/DimensionPercentEmptyTimeSeries.tsx
+++ b/app/src/pages/dimension/DimensionPercentEmptyTimeSeries.tsx
@@ -11,8 +11,7 @@ import {
YAxis,
} from "recharts";
-import { Text, theme } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipItem,
@@ -52,7 +51,7 @@ function TooltipContent({
: "--";
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
timeTickFormatter(new Date(x))}
/>
} />
diff --git a/app/src/pages/dimension/DimensionQuantilesStats.tsx b/app/src/pages/dimension/DimensionQuantilesStats.tsx
index 35793c3543..22c56ce17d 100644
--- a/app/src/pages/dimension/DimensionQuantilesStats.tsx
+++ b/app/src/pages/dimension/DimensionQuantilesStats.tsx
@@ -2,8 +2,7 @@ import React from "react";
import { graphql, useFragment } from "react-relay";
import { css } from "@emotion/react";
-import { Text } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import { numberFormatter } from "@phoenix/utils/numberFormatUtils";
import { DimensionQuantilesStats_dimension$key } from "./__generated__/DimensionQuantilesStats_dimension.graphql";
@@ -44,10 +43,10 @@ export function DimensionQuantilesStats(props: {
align-items: flex-end;
`}
>
-
+
{statName}
-
+
{numberFormatter(stat as number | null)}
diff --git a/app/src/pages/dimension/DimensionQuantilesTimeSeries.tsx b/app/src/pages/dimension/DimensionQuantilesTimeSeries.tsx
index fb18346b9e..375b7a543a 100644
--- a/app/src/pages/dimension/DimensionQuantilesTimeSeries.tsx
+++ b/app/src/pages/dimension/DimensionQuantilesTimeSeries.tsx
@@ -15,8 +15,7 @@ import {
YAxis,
} from "recharts";
-import { Text, theme } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipItem,
@@ -79,7 +78,7 @@ function TooltipContent({
const data: ChartDataItem = payload[0].payload;
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
timeTickFormatter(new Date(x))}
/>
} />
diff --git a/app/src/pages/dimension/DimensionSegmentsBarChart.tsx b/app/src/pages/dimension/DimensionSegmentsBarChart.tsx
index c1ffbcfff0..496c6d2bba 100644
--- a/app/src/pages/dimension/DimensionSegmentsBarChart.tsx
+++ b/app/src/pages/dimension/DimensionSegmentsBarChart.tsx
@@ -12,8 +12,6 @@ import {
YAxis,
} from "recharts";
-import { theme } from "@arizeai/components";
-
import {
ChartTooltip,
ChartTooltipItem,
@@ -147,7 +145,7 @@ export function DimensionSegmentsBarChart(props: {
style={{ fill: "var(--ac-global-text-color-700)" }}
/>
css`
+ css={css`
.ac-action-button {
background: none;
border: none;
color: ${"var(--ac-global-text-color-700)"};
- font-size: ${theme.typography.sizes.small.fontSize}px;
- line-height: ${theme.typography.sizes.small.lineHeight}px;
+ font-size: var(--ac-global-font-size-xs);
+ line-height: var(--ac-global-line-height-xs);
cursor: pointer;
outline: none;
&:hover {
diff --git a/app/src/pages/embedding/EmbeddingPage.tsx b/app/src/pages/embedding/EmbeddingPage.tsx
index a057979b6d..aadfd8e598 100644
--- a/app/src/pages/embedding/EmbeddingPage.tsx
+++ b/app/src/pages/embedding/EmbeddingPage.tsx
@@ -676,12 +676,12 @@ const ClustersPanelContents = React.memo(function ClustersPanelContents() {
css`
+ css={css`
flex: 1 1 auto;
display: flex;
flex-direction: column;
- gap: ${theme.spacing.margin8}px;
- margin: ${theme.spacing.margin8}px;
+ gap: var(--ac-global-dimension-size-100);
+ margin: var(--ac-global-dimension-size-100);
`}
>
{clusters.map((cluster) => {
diff --git a/app/src/pages/embedding/EventDetails.tsx b/app/src/pages/embedding/EventDetails.tsx
index 86f2eb0bdd..6d682b8fa9 100644
--- a/app/src/pages/embedding/EventDetails.tsx
+++ b/app/src/pages/embedding/EventDetails.tsx
@@ -7,15 +7,9 @@ import {
} from "@tanstack/react-table";
import { css } from "@emotion/react";
-import {
- Accordion,
- AccordionItem,
- Counter,
- Heading,
- Label,
-} from "@arizeai/components";
+import { Accordion, AccordionItem, Counter, Label } from "@arizeai/components";
-import { Flex, Icon, Icons, View } from "@phoenix/components";
+import { Flex, Heading, Icon, Icons, View } from "@phoenix/components";
import { Empty } from "@phoenix/components/Empty";
import { tableCSS } from "@phoenix/components/table/styles";
import { numberFormatter } from "@phoenix/utils/numberFormatUtils";
@@ -400,9 +394,10 @@ function TableEmpty() {
css`
+ css={css`
text-align: center;
- padding: ${theme.spacing.margin24}px ${theme.spacing.margin24}px !important;
+ padding: var(--ac-global-dimension-size-300)
+ var(--ac-global-dimension-size-300) !important;
`}
>
- Analysis Metric
+
+ Analysis Metric
+
Select a metric to drive the analysis of your embeddings.
- To analyze the the drift between your two inferencess, select a drift
+ To analyze the the drift between your two inferences, select a drift
metric and the UI will highlight areas of high drift.
diff --git a/app/src/pages/embedding/MetricTimeSeries.tsx b/app/src/pages/embedding/MetricTimeSeries.tsx
index 4d69ae973f..27e2ac85f9 100644
--- a/app/src/pages/embedding/MetricTimeSeries.tsx
+++ b/app/src/pages/embedding/MetricTimeSeries.tsx
@@ -15,15 +15,9 @@ import {
import { CategoricalChartFunc } from "recharts/types/chart/generateCategoricalChart";
import { css } from "@emotion/react";
-import {
- Content,
- ContextualHelp,
- Heading,
- Text,
- theme,
-} from "@arizeai/components";
+import { Content, ContextualHelp } from "@arizeai/components";
-import { Icon, Icons } from "@phoenix/components";
+import { Heading, Icon, Icons, Text } from "@phoenix/components";
import {
ChartTooltip,
ChartTooltipDivider,
@@ -81,7 +75,7 @@ function TooltipContent({
typeof count === "number" ? numberFormatter.format(count) : "--";
return (
- {`${fullTimeFormatter(
+ {`${fullTimeFormatter(
new Date(label)
)}`}
} />
diff --git a/app/src/pages/embedding/PointSelectionPanelContent.tsx b/app/src/pages/embedding/PointSelectionPanelContent.tsx
index f26515ad76..369ecf36ff 100644
--- a/app/src/pages/embedding/PointSelectionPanelContent.tsx
+++ b/app/src/pages/embedding/PointSelectionPanelContent.tsx
@@ -9,10 +9,9 @@ import {
DialogContainer,
TabPane,
Tabs,
- Text,
} from "@arizeai/components";
-import { Button, Icon } from "@phoenix/components";
+import { Button, Icon, Text } from "@phoenix/components";
import { Toolbar } from "@phoenix/components/filter";
import { SelectionDisplayRadioGroup } from "@phoenix/components/pointcloud";
import { SelectionGridSizeRadioGroup } from "@phoenix/components/pointcloud/SelectionGridSizeRadioGroup";
diff --git a/app/src/pages/example/ExampleDetailsDialog.tsx b/app/src/pages/example/ExampleDetailsDialog.tsx
index 7d9abe6935..6f77b3676f 100644
--- a/app/src/pages/example/ExampleDetailsDialog.tsx
+++ b/app/src/pages/example/ExampleDetailsDialog.tsx
@@ -4,15 +4,15 @@ import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
import { useNavigate } from "react-router";
import { css } from "@emotion/react";
+import { Card, CardProps, Dialog, DialogContainer } from "@arizeai/components";
+
import {
- Card,
- CardProps,
- Dialog,
- DialogContainer,
+ Button,
+ CopyToClipboardButton,
+ Flex,
Heading,
-} from "@arizeai/components";
-
-import { Button, CopyToClipboardButton, Flex, View } from "@phoenix/components";
+ View,
+} from "@phoenix/components";
import { JSONBlock } from "@phoenix/components/code";
import { resizeHandleCSS } from "@phoenix/components/resize";
import { useNotifySuccess } from "@phoenix/contexts";
diff --git a/app/src/pages/example/ExampleExperimentRunsTable.tsx b/app/src/pages/example/ExampleExperimentRunsTable.tsx
index fb08a133be..66a9dd737c 100644
--- a/app/src/pages/example/ExampleExperimentRunsTable.tsx
+++ b/app/src/pages/example/ExampleExperimentRunsTable.tsx
@@ -9,9 +9,7 @@ import {
} from "@tanstack/react-table";
import { css } from "@emotion/react";
-import { Text } from "@arizeai/components";
-
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import {
AnnotationLabel,
AnnotationTooltip,
@@ -32,9 +30,10 @@ export function ExampleExperimentsTableEmpty() {
css`
+ css={css`
text-align: center;
- padding: ${theme.spacing.margin24}px ${theme.spacing.margin24}px !important;
+ padding: var(--ac-global-dimension-size-300)
+ var(--ac-global-dimension-size-300) !important;
`}
>
No experiments have been run for this example.
diff --git a/app/src/pages/examples/ExampleSelectionToolbar.tsx b/app/src/pages/examples/ExampleSelectionToolbar.tsx
index ca0e8cf886..3acef444d9 100644
--- a/app/src/pages/examples/ExampleSelectionToolbar.tsx
+++ b/app/src/pages/examples/ExampleSelectionToolbar.tsx
@@ -2,9 +2,9 @@ import React, { ReactNode, useCallback, useState } from "react";
import { graphql, useMutation } from "react-relay";
import { css } from "@emotion/react";
-import { DialogContainer, Text } from "@arizeai/components";
+import { DialogContainer } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { useNotifyError, useNotifySuccess } from "@phoenix/contexts";
import { useDatasetContext } from "@phoenix/contexts/DatasetContext";
diff --git a/app/src/pages/experiment/ExperimentComparePage.tsx b/app/src/pages/experiment/ExperimentComparePage.tsx
index 98b620b5fb..752194a73b 100644
--- a/app/src/pages/experiment/ExperimentComparePage.tsx
+++ b/app/src/pages/experiment/ExperimentComparePage.tsx
@@ -2,9 +2,9 @@ import React, { startTransition, Suspense, useState } from "react";
import { useLoaderData, useSearchParams } from "react-router-dom";
import { css } from "@emotion/react";
-import { Alert, Heading, Switch } from "@arizeai/components";
+import { Alert, Switch } from "@arizeai/components";
-import { Flex, Loading, View } from "@phoenix/components";
+import { Flex, Heading, Loading, View } from "@phoenix/components";
import { experimentCompareLoaderQuery$data } from "./__generated__/experimentCompareLoaderQuery.graphql";
import { ExperimentCompareTable } from "./ExperimentCompareTable";
diff --git a/app/src/pages/experiment/ExperimentCompareTable.tsx b/app/src/pages/experiment/ExperimentCompareTable.tsx
index d7452ab094..f21a0d8caf 100644
--- a/app/src/pages/experiment/ExperimentCompareTable.tsx
+++ b/app/src/pages/experiment/ExperimentCompareTable.tsx
@@ -24,9 +24,7 @@ import {
CardProps,
Dialog,
DialogContainer,
- Heading,
Item,
- Text,
Tooltip,
TooltipTrigger,
} from "@arizeai/components";
@@ -35,8 +33,10 @@ import {
Button,
CopyToClipboardButton,
Flex,
+ Heading,
Icon,
Icons,
+ Text,
View,
ViewSummaryAside,
} from "@phoenix/components";
@@ -442,7 +442,7 @@ export function ExperimentCompareTable(props: ExampleCompareTableProps) {
return (
css(tableCSS(theme), borderedTableCSS)}
+ css={css(tableCSS, borderedTableCSS)}
style={{
...columnSizeVars,
width: table.getTotalSize(),
diff --git a/app/src/pages/experiment/ExperimentMultiSelector.tsx b/app/src/pages/experiment/ExperimentMultiSelector.tsx
index a2401fc263..ad38001261 100644
--- a/app/src/pages/experiment/ExperimentMultiSelector.tsx
+++ b/app/src/pages/experiment/ExperimentMultiSelector.tsx
@@ -8,10 +8,9 @@ import {
FieldProps,
Item,
ListBox,
- Text,
} from "@arizeai/components";
-import { Flex } from "@phoenix/components";
+import { Flex, Text } from "@phoenix/components";
import { SequenceNumberLabel } from "@phoenix/components/experiment/SequenceNumberLabel";
import { ExperimentMultiSelector__experiments$key } from "./__generated__/ExperimentMultiSelector__experiments.graphql";
@@ -101,7 +100,7 @@ export function ExperimentMultiSelector(
{experiment.name}
-
+
{new Date(experiment.createdAt).toLocaleString()}
diff --git a/app/src/pages/experiments/ErrorRateCell.tsx b/app/src/pages/experiments/ErrorRateCell.tsx
index 36cfe2363a..2f2afca8b6 100644
--- a/app/src/pages/experiments/ErrorRateCell.tsx
+++ b/app/src/pages/experiments/ErrorRateCell.tsx
@@ -1,8 +1,7 @@
import React, { useMemo } from "react";
import { CellContext } from "@tanstack/react-table";
-import { Text } from "@arizeai/components";
-
+import { Text } from "@phoenix/components";
import { percentFormatter } from "@phoenix/utils/numberFormatUtils";
/**
* A table cell that nicely formats the error rate,
diff --git a/app/src/pages/experiments/ExperimentSelectionToolbar.tsx b/app/src/pages/experiments/ExperimentSelectionToolbar.tsx
index a5cce1410c..e31cfb7ab8 100644
--- a/app/src/pages/experiments/ExperimentSelectionToolbar.tsx
+++ b/app/src/pages/experiments/ExperimentSelectionToolbar.tsx
@@ -3,9 +3,9 @@ import { graphql, useMutation } from "react-relay";
import { useNavigate } from "react-router";
import { css } from "@emotion/react";
-import { Dialog, DialogContainer, Text } from "@arizeai/components";
+import { Dialog, DialogContainer } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { useNotifyError, useNotifySuccess } from "@phoenix/contexts";
interface SelectedExperiment {
diff --git a/app/src/pages/experiments/ExperimentsTable.tsx b/app/src/pages/experiments/ExperimentsTable.tsx
index 76fd0113e5..228065b53c 100644
--- a/app/src/pages/experiments/ExperimentsTable.tsx
+++ b/app/src/pages/experiments/ExperimentsTable.tsx
@@ -10,15 +10,13 @@ import {
import { css } from "@emotion/react";
import {
- Heading,
HelpTooltip,
ProgressBar,
- Text,
TooltipTrigger,
TriggerWrap,
} from "@arizeai/components";
-import { Flex, Link, View } from "@phoenix/components";
+import { Flex, Heading, Link, Text, View } from "@phoenix/components";
import { AnnotationColorSwatch } from "@phoenix/components/annotation";
import { SequenceNumberLabel } from "@phoenix/components/experiment";
import { ExperimentActionMenu } from "@phoenix/components/experiment/ExperimentActionMenu";
@@ -53,7 +51,7 @@ export function ExperimentsTableEmpty() {
css={css`
text-align: center;
padding: var(--ac-global-dimension-size-400) !important;
- .ac-button {
+ button {
margin-top: var(--ac-global-dimension-size-200);
margin-left: auto;
margin-right: auto;
@@ -449,28 +447,28 @@ function AnnotationAggregationCell({
-
+
Mean Score
- {floatFormatter(value)}
+ {floatFormatter(value)}
-
+
All Experiments Min
- {floatFormatter(min)}
+ {floatFormatter(min)}
-
+
All Experiments Max
- {floatFormatter(max)}
+ {floatFormatter(max)}
-
+
Mean Score Percentile
- {formatPercent(percentile)}
+ {formatPercent(percentile)}
diff --git a/app/src/pages/playground/ModelConfigButton.tsx b/app/src/pages/playground/ModelConfigButton.tsx
index c3cf5f7e57..f3d2ea26b2 100644
--- a/app/src/pages/playground/ModelConfigButton.tsx
+++ b/app/src/pages/playground/ModelConfigButton.tsx
@@ -16,14 +16,13 @@ import {
DialogContainer,
Item,
Picker,
- Text,
TextField,
Tooltip,
TooltipTrigger,
TriggerWrap,
} from "@arizeai/components";
-import { Button, Flex, Icon, Icons } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text } from "@phoenix/components";
import {
AZURE_OPENAI_API_VERSIONS,
ModelProviders,
diff --git a/app/src/pages/playground/NoInstalledProvider.tsx b/app/src/pages/playground/NoInstalledProvider.tsx
index 3624f3a3f1..c89d291886 100644
--- a/app/src/pages/playground/NoInstalledProvider.tsx
+++ b/app/src/pages/playground/NoInstalledProvider.tsx
@@ -1,8 +1,6 @@
import React from "react";
-import { Text } from "@arizeai/components";
-
-import { Flex, View } from "@phoenix/components";
+import { Flex, Text, View } from "@phoenix/components";
import { PythonBlock } from "@phoenix/components/code";
import { Empty } from "@phoenix/components/Empty";
diff --git a/app/src/pages/playground/Playground.tsx b/app/src/pages/playground/Playground.tsx
index 1bdf91f9ef..4f52ca6803 100644
--- a/app/src/pages/playground/Playground.tsx
+++ b/app/src/pages/playground/Playground.tsx
@@ -10,9 +10,17 @@ import {
} from "react-router-dom";
import { css } from "@emotion/react";
-import { Accordion, AccordionItem, Heading } from "@arizeai/components";
+import { Accordion, AccordionItem } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, Loading, View } from "@phoenix/components";
+import {
+ Button,
+ Flex,
+ Heading,
+ Icon,
+ Icons,
+ Loading,
+ View,
+} from "@phoenix/components";
import { ConfirmNavigationDialog } from "@phoenix/components/ConfirmNavigation";
import { resizeHandleCSS } from "@phoenix/components/resize";
import { TemplateLanguages } from "@phoenix/components/templateEditor/constants";
diff --git a/app/src/pages/playground/PlaygroundCredentialsDropdown.tsx b/app/src/pages/playground/PlaygroundCredentialsDropdown.tsx
index 18a9d0c9f3..4d266ebb31 100644
--- a/app/src/pages/playground/PlaygroundCredentialsDropdown.tsx
+++ b/app/src/pages/playground/PlaygroundCredentialsDropdown.tsx
@@ -6,12 +6,10 @@ import {
DropdownMenu,
DropdownTrigger,
Form,
- Heading,
- Text,
TextField,
} from "@arizeai/components";
-import { Flex, View } from "@phoenix/components";
+import { Flex, Heading, Text, View } from "@phoenix/components";
import { useCredentialsContext } from "@phoenix/contexts/CredentialsContext";
import { usePlaygroundContext } from "@phoenix/contexts/PlaygroundContext";
export const ProviderToCredentialNameMap: Record = {
diff --git a/app/src/pages/playground/PlaygroundDatasetExamplesTable.tsx b/app/src/pages/playground/PlaygroundDatasetExamplesTable.tsx
index a054c1d78b..b74bc4eae0 100644
--- a/app/src/pages/playground/PlaygroundDatasetExamplesTable.tsx
+++ b/app/src/pages/playground/PlaygroundDatasetExamplesTable.tsx
@@ -33,14 +33,9 @@ import {
} from "relay-runtime";
import { css } from "@emotion/react";
-import {
- DialogContainer,
- Text,
- Tooltip,
- TooltipTrigger,
-} from "@arizeai/components";
+import { DialogContainer, Tooltip, TooltipTrigger } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, Loading } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Loading, Text } from "@phoenix/components";
import { AlphabeticIndexIcon } from "@phoenix/components/AlphabeticIndexIcon";
import { JSONText } from "@phoenix/components/code/JSONText";
import { borderedTableCSS, tableCSS } from "@phoenix/components/table/styles";
@@ -316,7 +311,7 @@ function ExampleOutputContent({
return (
-
+
{errorMessage != null ? (
{errorMessage}
) : null}
@@ -895,7 +890,7 @@ export function PlaygroundDatasetExamplesTable({
onScroll={(e) => fetchMoreOnBottomReached(e.target as HTMLDivElement)}
>
css(tableCSS(theme), borderedTableCSS)}
+ css={css(tableCSS, borderedTableCSS)}
style={{
...columnSizeVars,
width: table.getTotalSize(),
diff --git a/app/src/pages/playground/PlaygroundDatasetSection.tsx b/app/src/pages/playground/PlaygroundDatasetSection.tsx
index 4a0ee69fda..9b6f8b20ea 100644
--- a/app/src/pages/playground/PlaygroundDatasetSection.tsx
+++ b/app/src/pages/playground/PlaygroundDatasetSection.tsx
@@ -2,9 +2,7 @@ import React, { useMemo } from "react";
import { graphql, useLazyLoadQuery } from "react-relay";
import { useNavigate } from "react-router";
-import { Text } from "@arizeai/components";
-
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { usePlaygroundContext } from "@phoenix/contexts/PlaygroundContext";
import { PlaygroundDatasetSectionQuery } from "./__generated__/PlaygroundDatasetSectionQuery.graphql";
@@ -41,7 +39,7 @@ export function PlaygroundDatasetSection({ datasetId }: { datasetId: string }) {
-
+
{tools.map((tool) => {
return (
-
+
{annotationName}
- --}>
+ --}>
0;
if (!hasMeanScore && !hasLabelFractions) {
- return --;
+ return --;
}
return (
@@ -150,9 +145,7 @@ function AnnotationSummaryValue(props: {
) : null}
-
- {hasMeanScore ? formatFloat(meanScore) : "--"}
-
+ {hasMeanScore ? formatFloat(meanScore) : "--"}
diff --git a/app/src/pages/project/AnnotationTooltipFilterActions.tsx b/app/src/pages/project/AnnotationTooltipFilterActions.tsx
index fafcb0f110..5613345766 100644
--- a/app/src/pages/project/AnnotationTooltipFilterActions.tsx
+++ b/app/src/pages/project/AnnotationTooltipFilterActions.tsx
@@ -1,9 +1,7 @@
import React, { PropsWithChildren, useMemo } from "react";
import { css } from "@emotion/react";
-import { Text } from "@arizeai/components";
-
-import { View } from "@phoenix/components";
+import { Text, View } from "@phoenix/components";
import { useSpanFilterCondition } from "./SpanFilterConditionContext";
@@ -70,9 +68,7 @@ export function AnnotationTooltipFilterActions(
marginStart="size-200"
width={300}
>
-
- Filters
-
+ Filters
-
+
{evaluationName}
- --}>
+ --}>
-
+
Total Traces
- {intFormatter(data?.traceCount)}
+ {intFormatter(data?.traceCount)}
-
+
Total Tokens
- {intFormatter(tokenCountTotal)}
+ {intFormatter(tokenCountTotal)}
-
+
Latency P50
{latencyMsP50 != null ? (
-
+
) : (
- --
+ --
)}
-
+
Latency P99
{latencyMsP99 != null ? (
-
+
) : (
- --
+ --
)}
{spanAnnotationNames.map((name) => (
diff --git a/app/src/pages/project/ProjectTableEmpty.tsx b/app/src/pages/project/ProjectTableEmpty.tsx
index aaa2857f40..670f981537 100644
--- a/app/src/pages/project/ProjectTableEmpty.tsx
+++ b/app/src/pages/project/ProjectTableEmpty.tsx
@@ -36,9 +36,10 @@ export function ProjectTableEmpty({ projectName }: { projectName: string }) {
css`
+ css={css`
text-align: center;
- padding: ${theme.spacing.margin24}px ${theme.spacing.margin24}px !important;
+ padding: var(--ac-global-dimension-size-300)
+ var(--ac-global-dimension-size-300) !important;
`}
>
diff --git a/app/src/pages/project/PythonSessionsGuide.tsx b/app/src/pages/project/PythonSessionsGuide.tsx
index 8ea4d0e91b..18102501ae 100644
--- a/app/src/pages/project/PythonSessionsGuide.tsx
+++ b/app/src/pages/project/PythonSessionsGuide.tsx
@@ -1,8 +1,6 @@
import React from "react";
-import { Heading, Text } from "@arizeai/components";
-
-import { ExternalLink, View } from "@phoenix/components";
+import { ExternalLink, Heading, Text, View } from "@phoenix/components";
import { CodeWrap, PythonBlockWithCopy } from "@phoenix/components/code";
const INSTALL_OPENINFERENCE_INSTRUMENTATION_PYTHON = `pip install openinference-instrumentation`;
diff --git a/app/src/pages/project/RetrievalEvaluationLabel.tsx b/app/src/pages/project/RetrievalEvaluationLabel.tsx
index bcc70181d0..4f9f50970c 100644
--- a/app/src/pages/project/RetrievalEvaluationLabel.tsx
+++ b/app/src/pages/project/RetrievalEvaluationLabel.tsx
@@ -1,14 +1,9 @@
import React, { useMemo } from "react";
import { css } from "@emotion/react";
-import {
- HelpTooltip,
- Text,
- TooltipTrigger,
- TriggerWrap,
-} from "@arizeai/components";
+import { HelpTooltip, TooltipTrigger, TriggerWrap } from "@arizeai/components";
-import { Flex } from "@phoenix/components";
+import { Flex, Text } from "@phoenix/components";
import { baseAnnotationLabelCSS } from "@phoenix/components/annotation";
import { ColorSwatch } from "@phoenix/components/ColorSwatch";
import { formatFloat } from "@phoenix/utils/numberFormatUtils";
@@ -51,18 +46,18 @@ export function RetrievalEvaluationLabel(props: RetrievalEvaluationLabelProps) {
{name ? (
-
+
{name}
) : null}
-
+
{label}
- {labelValue}
+ {labelValue}
diff --git a/app/src/pages/project/SessionsTableEmpty.tsx b/app/src/pages/project/SessionsTableEmpty.tsx
index 88b031ac07..c85f854cc1 100644
--- a/app/src/pages/project/SessionsTableEmpty.tsx
+++ b/app/src/pages/project/SessionsTableEmpty.tsx
@@ -38,9 +38,10 @@ export function SessionsTableEmpty() {
|
css`
+ css={css`
text-align: center;
- padding: ${theme.spacing.margin24}px ${theme.spacing.margin24}px !important;
+ padding: var(--ac-global-dimension-size-300)
+ var(--ac-global-dimension-size-300) !important;
`}
>
diff --git a/app/src/pages/project/SpanFilterConditionField.tsx b/app/src/pages/project/SpanFilterConditionField.tsx
index c1cc959b0b..bbbbf5a8db 100644
--- a/app/src/pages/project/SpanFilterConditionField.tsx
+++ b/app/src/pages/project/SpanFilterConditionField.tsx
@@ -22,12 +22,11 @@ import {
Form,
HelpTooltip,
PopoverTrigger,
- Text,
TooltipTrigger,
TriggerWrap,
} from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { useTheme } from "@phoenix/contexts";
import environment from "@phoenix/RelayEnvironment";
diff --git a/app/src/pages/project/SpansTable.tsx b/app/src/pages/project/SpansTable.tsx
index c625e27435..915277477c 100644
--- a/app/src/pages/project/SpansTable.tsx
+++ b/app/src/pages/project/SpansTable.tsx
@@ -18,9 +18,9 @@ import {
} from "@tanstack/react-table";
import { css } from "@emotion/react";
-import { Content, ContextualHelp, Heading } from "@arizeai/components";
+import { Content, ContextualHelp } from "@arizeai/components";
-import { Flex, Icon, Icons, Link, View } from "@phoenix/components";
+import { Flex, Heading, Icon, Icons, Link, View } from "@phoenix/components";
import {
AnnotationLabel,
AnnotationTooltip,
diff --git a/app/src/pages/project/TracesTable.tsx b/app/src/pages/project/TracesTable.tsx
index 428f7d8793..e4c408daa9 100644
--- a/app/src/pages/project/TracesTable.tsx
+++ b/app/src/pages/project/TracesTable.tsx
@@ -22,9 +22,9 @@ import {
} from "@tanstack/react-table";
import { css } from "@emotion/react";
-import { Content, ContextualHelp, Heading } from "@arizeai/components";
+import { Content, ContextualHelp } from "@arizeai/components";
-import { Flex, Icon, Icons, Link, View } from "@phoenix/components";
+import { Flex, Heading, Icon, Icons, Link, View } from "@phoenix/components";
import {
AnnotationLabel,
AnnotationTooltip,
diff --git a/app/src/pages/project/TypeScriptSessionsGuide.tsx b/app/src/pages/project/TypeScriptSessionsGuide.tsx
index e3cceb0c83..b523148609 100644
--- a/app/src/pages/project/TypeScriptSessionsGuide.tsx
+++ b/app/src/pages/project/TypeScriptSessionsGuide.tsx
@@ -1,8 +1,6 @@
import React from "react";
-import { Heading, Text } from "@arizeai/components";
-
-import { ExternalLink, View } from "@phoenix/components";
+import { ExternalLink, Heading, Text, View } from "@phoenix/components";
import { CodeWrap, PythonBlockWithCopy } from "@phoenix/components/code";
import { TypeScriptBlockWithCopy } from "@phoenix/components/code/TypeScriptBlockWithCopy";
diff --git a/app/src/pages/projects/NewProjectButton.tsx b/app/src/pages/projects/NewProjectButton.tsx
index 09d5556e93..1a065661a2 100644
--- a/app/src/pages/projects/NewProjectButton.tsx
+++ b/app/src/pages/projects/NewProjectButton.tsx
@@ -1,8 +1,15 @@
import React, { ReactNode, useState } from "react";
-import { Dialog, DialogContainer, Text } from "@arizeai/components";
+import { Dialog, DialogContainer } from "@arizeai/components";
-import { Button, ExternalLink, Icon, Icons, View } from "@phoenix/components";
+import {
+ Button,
+ ExternalLink,
+ Icon,
+ Icons,
+ Text,
+ View,
+} from "@phoenix/components";
import { CodeLanguage, CodeLanguageRadioGroup } from "@phoenix/components/code";
import { TypeScriptProjectGuide } from "@phoenix/components/project/TypeScriptProjectGuide";
diff --git a/app/src/pages/projects/ProjectActionMenu.tsx b/app/src/pages/projects/ProjectActionMenu.tsx
index ee72185661..ea84f05ae0 100644
--- a/app/src/pages/projects/ProjectActionMenu.tsx
+++ b/app/src/pages/projects/ProjectActionMenu.tsx
@@ -6,15 +6,9 @@ import React, {
} from "react";
import { graphql, useMutation } from "react-relay";
-import {
- ActionMenu,
- Dialog,
- DialogContainer,
- Item,
- Text,
-} from "@arizeai/components";
+import { ActionMenu, Dialog, DialogContainer, Item } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { ProjectActionMenuClearMutation } from "./__generated__/ProjectActionMenuClearMutation.graphql";
import { ProjectActionMenuDeleteMutation } from "./__generated__/ProjectActionMenuDeleteMutation.graphql";
diff --git a/app/src/pages/projects/ProjectsPage.tsx b/app/src/pages/projects/ProjectsPage.tsx
index c3faa8387d..1a9aff4690 100644
--- a/app/src/pages/projects/ProjectsPage.tsx
+++ b/app/src/pages/projects/ProjectsPage.tsx
@@ -9,9 +9,9 @@ import { graphql, useLazyLoadQuery, usePaginationFragment } from "react-relay";
import { formatDistance } from "date-fns";
import { css } from "@emotion/react";
-import { Heading, Text, useNotification } from "@arizeai/components";
+import { useNotification } from "@arizeai/components";
-import { Flex, Link, Loading, View } from "@phoenix/components";
+import { Flex, Heading, Link, Loading, Text, View } from "@phoenix/components";
import {
ConnectedLastNTimeRangePicker,
useLastNTimeRange,
@@ -325,7 +325,7 @@ function ProjectItem({
>
{project.name}
-
+
{lastUpdatedText}
@@ -341,25 +341,25 @@ function ProjectItem({
-
+
Total Traces
- {intFormatter(traceCount)}
+ {intFormatter(traceCount)}
-
+
Total Tokens
- {intFormatter(tokenCountTotal)}
+ {intFormatter(tokenCountTotal)}
-
+
Latency P50
{latencyMsP50 != null ? (
-
+
) : (
- --
+ --
)}
diff --git a/app/src/pages/projects/RemoveProjectDataForm.tsx b/app/src/pages/projects/RemoveProjectDataForm.tsx
index 76d1ec1c62..dec383331b 100644
--- a/app/src/pages/projects/RemoveProjectDataForm.tsx
+++ b/app/src/pages/projects/RemoveProjectDataForm.tsx
@@ -3,9 +3,9 @@ import { Controller, useForm } from "react-hook-form";
import { graphql, useMutation } from "react-relay";
import { isValid as dateIsValid, parseISO } from "date-fns";
-import { Text, TextField } from "@arizeai/components";
+import { TextField } from "@arizeai/components";
-import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
+import { Button, Flex, Icon, Icons, Text, View } from "@phoenix/components";
import { ONE_MONTH_MS } from "@phoenix/constants/timeConstants";
import { RemoveProjectDataFormMutation } from "./__generated__/RemoveProjectDataFormMutation.graphql";
diff --git a/app/src/pages/settings/DeleteUserDialog.tsx b/app/src/pages/settings/DeleteUserDialog.tsx
index 668996a6ba..72e02409ca 100644
--- a/app/src/pages/settings/DeleteUserDialog.tsx
+++ b/app/src/pages/settings/DeleteUserDialog.tsx
@@ -1,9 +1,9 @@
import React, { useCallback } from "react";
import { graphql, useMutation } from "react-relay";
-import { Dialog, Text } from "@arizeai/components";
+import { Dialog } from "@arizeai/components";
-import { Button, Flex, View } from "@phoenix/components";
+import { Button, Flex, Text, View } from "@phoenix/components";
import { useNotifyError, useNotifySuccess } from "@phoenix/contexts";
export function DeleteUserDialog({
diff --git a/app/src/pages/settings/UserActionMenu.tsx b/app/src/pages/settings/UserActionMenu.tsx
index fb3fdbc2a6..b0ad5c0dfd 100644
--- a/app/src/pages/settings/UserActionMenu.tsx
+++ b/app/src/pages/settings/UserActionMenu.tsx
@@ -1,6 +1,6 @@
import React, { ReactNode, useCallback, useMemo, useState } from "react";
-import { ActionMenu, DialogContainer, Item, Text } from "@arizeai/components";
+import { ActionMenu, DialogContainer, Item } from "@arizeai/components";
import { Flex, Icon, Icons } from "@phoenix/components";
@@ -56,7 +56,7 @@ export function UserActionMenu(props: UserActionMenuProps) {
alignItems={"center"}
>
} />
- Delete
+ <>Delete>
);
@@ -70,7 +70,7 @@ export function UserActionMenu(props: UserActionMenuProps) {
alignItems={"center"}
>
} />
- Reset Password
+ <>Reset Password>
);
diff --git a/app/src/pages/settings/UserRoleChangeDialog.tsx b/app/src/pages/settings/UserRoleChangeDialog.tsx
index e48bc51fcb..9be207dfc0 100644
--- a/app/src/pages/settings/UserRoleChangeDialog.tsx
+++ b/app/src/pages/settings/UserRoleChangeDialog.tsx
@@ -1,9 +1,9 @@
import React, { useCallback } from "react";
import { graphql, useMutation } from "react-relay";
-import { Dialog, Text } from "@arizeai/components";
+import { Dialog } from "@arizeai/components";
-import { Button, Flex, View } from "@phoenix/components";
+import { Button, Flex, Text, View } from "@phoenix/components";
import { normalizeUserRole } from "@phoenix/constants";
import { useNotifyError, useNotifySuccess } from "@phoenix/contexts";
diff --git a/app/src/pages/support/SupportPage.tsx b/app/src/pages/support/SupportPage.tsx
index f54be384de..785419704a 100644
--- a/app/src/pages/support/SupportPage.tsx
+++ b/app/src/pages/support/SupportPage.tsx
@@ -1,9 +1,7 @@
import React, { ReactNode } from "react";
import { css } from "@emotion/react";
-import { Heading, Text } from "@arizeai/components";
-
-import { Flex, Icon, Icons, View } from "@phoenix/components";
+import { Flex, Heading, Icon, Icons, Text, View } from "@phoenix/components";
const supportItemsCSS = css`
display: grid;
@@ -101,9 +99,7 @@ const SupportItem = ({
{icon}
{title}
-
- {description}
-
+ {description}
);
};
diff --git a/app/src/pages/trace/SessionDetails.tsx b/app/src/pages/trace/SessionDetails.tsx
index 7e7cbb1178..c50d0a7013 100644
--- a/app/src/pages/trace/SessionDetails.tsx
+++ b/app/src/pages/trace/SessionDetails.tsx
@@ -2,9 +2,7 @@ import React from "react";
import { graphql, useLazyLoadQuery } from "react-relay";
import { css } from "@emotion/react";
-import { Text } from "@arizeai/components";
-
-import { Flex, View } from "@phoenix/components";
+import { Flex, Text, View } from "@phoenix/components";
import { LatencyText } from "@phoenix/components/trace/LatencyText";
import { TokenCount } from "@phoenix/components/trace/TokenCount";
@@ -25,36 +23,36 @@ function SessionDetailsHeader({
}) {
return (
-
+
Traces Count
- {traceCount}
+ {traceCount}
{tokenUsage != null ? (
-
+
Total Tokens
) : null}
{latencyP50 != null ? (
-
+
Latency P50
-
+
) : null}
diff --git a/app/src/pages/trace/SessionDetailsTraceList.tsx b/app/src/pages/trace/SessionDetailsTraceList.tsx
index d3d765e20e..4febba756f 100644
--- a/app/src/pages/trace/SessionDetailsTraceList.tsx
+++ b/app/src/pages/trace/SessionDetailsTraceList.tsx
@@ -1,13 +1,12 @@
import React, { useMemo } from "react";
import { isNumber, isString } from "lodash";
-import { Text } from "@arizeai/components";
import {
SemanticAttributePrefixes,
UserAttributePostfixes,
} from "@arizeai/openinference-semantic-conventions";
-import { Flex, Icon, Icons, Link, View } from "@phoenix/components";
+import { Flex, Icon, Icons, Link, Text, View } from "@phoenix/components";
import {
AnnotationLabel,
AnnotationTooltip,
@@ -65,14 +64,12 @@ function RootSpanMessage({
borderRadius={"medium"}
borderColor={"dark"}
borderWidth={"thin"}
- padding={"size-200"}
+ padding="size-200"
maxWidth={"70%"}
{...styles}
>
-
- {role}
-
+ {role}
{mimeType === "json" ? (
) : (
@@ -112,7 +109,7 @@ function RootSpanDetails({
justifyContent={"space-between"}
height={"100%"}
>
-
+
Trace #{index + 1}
- Feedback
+ Feedback
{rootSpan.spanAnnotations.length > 0
? rootSpan.spanAnnotations.map((annotation) => (
@@ -224,12 +221,12 @@ export function SessionDetailsTraceList({
-
+
diff --git a/app/src/pages/trace/SpanAnnotationsEmpty.tsx b/app/src/pages/trace/SpanAnnotationsEmpty.tsx
index 1c217432dc..83e2f738ba 100644
--- a/app/src/pages/trace/SpanAnnotationsEmpty.tsx
+++ b/app/src/pages/trace/SpanAnnotationsEmpty.tsx
@@ -1,12 +1,7 @@
import React, { ReactNode, useState } from "react";
import { css } from "@emotion/react";
-import {
- Dialog,
- DialogContainer,
- EmptyGraphic,
- Text,
-} from "@arizeai/components";
+import { Dialog, DialogContainer, EmptyGraphic } from "@arizeai/components";
import {
Button,
@@ -14,6 +9,7 @@ import {
Flex,
Icon,
Icons,
+ Text,
View,
} from "@phoenix/components";
@@ -40,7 +36,7 @@ export function SpanAnnotationsEmpty() {
);
};
return (
-
+
No annotations for this span
diff --git a/app/src/pages/trace/SpanAside.tsx b/app/src/pages/trace/SpanAside.tsx
index fd82f77630..ce8fcbb1d4 100644
--- a/app/src/pages/trace/SpanAside.tsx
+++ b/app/src/pages/trace/SpanAside.tsx
@@ -2,9 +2,7 @@ import React, { PropsWithChildren, useMemo } from "react";
import { graphql, useRefetchableFragment } from "react-relay";
import { css } from "@emotion/react";
-import { Text } from "@arizeai/components";
-
-import { Flex, View } from "@phoenix/components";
+import { Flex, Text, View } from "@phoenix/components";
import { AnnotationLabel } from "@phoenix/components/annotation";
import { LatencyText } from "@phoenix/components/trace/LatencyText";
import { SpanStatusCodeIcon } from "@phoenix/components/trace/SpanStatusCodeIcon";
@@ -83,23 +81,21 @@ export function SpanAside(props: { span: SpanAside_span$key }) {
-
- {code}
-
+ {code}
- {fullTimeFormatter(startDate)}
+ {fullTimeFormatter(startDate)}
{endDate && (
- {fullTimeFormatter(endDate)}
+ {fullTimeFormatter(endDate)}
)}
-
+
{typeof latencyMs === "number" ? (
-
+
) : (
"--"
)}
@@ -111,7 +107,7 @@ export function SpanAside(props: { span: SpanAside_span$key }) {
tokenCountTotal={tokenCountTotal}
tokenCountPrompt={tokenCountPrompt ?? 0}
tokenCountCompletion={tokenCountCompletion ?? 0}
- textSize="xlarge"
+ size="L"
/>
) : null}
@@ -140,7 +136,7 @@ function LabeledValue({
}: PropsWithChildren<{ label: string }>) {
return (
-
+
{label}
{children}
diff --git a/app/src/pages/trace/SpanDetails.tsx b/app/src/pages/trace/SpanDetails.tsx
index 1d1105cc62..4e55554103 100644
--- a/app/src/pages/trace/SpanDetails.tsx
+++ b/app/src/pages/trace/SpanDetails.tsx
@@ -22,7 +22,6 @@ import {
Counter,
DialogContainer,
EmptyGraphic,
- Heading,
Label,
LabelProps,
List,
@@ -30,7 +29,6 @@ import {
TabbedCard,
TabPane,
Tabs,
- Text,
Tooltip,
TooltipTrigger,
} from "@arizeai/components";
@@ -50,8 +48,10 @@ import {
CopyToClipboardButton,
ExternalLink,
Flex,
+ Heading,
Icon,
Icons,
+ Text,
View,
ViewProps,
} from "@phoenix/components";
@@ -591,7 +591,7 @@ function LLMSpanInfo(props: { span: Span; spanAttributes: AttributeObject }) {
return (
-
+
{modelName}
@@ -1238,13 +1238,13 @@ function DocumentItem({
| | | |