Skip to content

Commit

Permalink
chore(components): migrate prompt components
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Dec 31, 2024
1 parent 9b29ebf commit bab4a1c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
4 changes: 1 addition & 3 deletions app/src/pages/prompt/PromptChatMessages.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React from "react";
import { graphql, useFragment } from "react-relay";

import { Text } from "@arizeai/components";

import { Flex } from "@phoenix/components";
import { Flex, Text } from "@phoenix/components";
import { TemplateLanguages } from "@phoenix/components/templateEditor/constants";
import { TemplateLanguage } from "@phoenix/components/templateEditor/types";

Expand Down
4 changes: 2 additions & 2 deletions app/src/pages/prompt/PromptInvocationParameters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { useMemo } from "react";
import { graphql, useFragment } from "react-relay";
import isObject from "lodash/isObject";

import { List, ListItem, Text } from "@arizeai/components";
import { List, ListItem } from "@arizeai/components";

import { Flex, View } from "@phoenix/components";
import { Flex, Text, View } from "@phoenix/components";

import { PromptInvocationParameters__main$key } from "./__generated__/PromptInvocationParameters__main.graphql";

Expand Down
4 changes: 1 addition & 3 deletions app/src/pages/prompt/PromptLatestVersionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import React, { useMemo } from "react";
import { graphql, useFragment } from "react-relay";
import { css } from "@emotion/react";

import { Text } from "@arizeai/components";

import { Flex, Icon, Icons } from "@phoenix/components";
import { Flex, Icon, Icons, Text } from "@phoenix/components";

import { PromptLatestVersionsListFragment$key } from "./__generated__/PromptLatestVersionsListFragment.graphql";

Expand Down
4 changes: 2 additions & 2 deletions app/src/pages/prompt/PromptLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Outlet, useLocation, useNavigate } from "react-router";
import { graphql } from "relay-runtime";
import { css } from "@emotion/react";

import { Counter, Heading, TabPane, Tabs } from "@arizeai/components";
import { Counter, TabPane, Tabs } from "@arizeai/components";

import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
import { Button, Flex, Heading, Icon, Icons, View } from "@phoenix/components";

import { PromptLayout__main$key } from "./__generated__/PromptLayout__main.graphql";
import { usePromptIdLoader } from "./usePromptIdLoader";
Expand Down
4 changes: 1 addition & 3 deletions app/src/pages/prompt/PromptVersionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { graphql, useFragment } from "react-relay";
import { Link } from "react-router-dom";
import { css } from "@emotion/react";

import { Text } from "@arizeai/components";

import { Flex, View } from "@phoenix/components";
import { Flex, Text, View } from "@phoenix/components";
import { Truncate } from "@phoenix/components/utility/Truncate";

import {
Expand Down
4 changes: 1 addition & 3 deletions app/src/pages/prompts/PromptsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import React from "react";
import { useLoaderData, useNavigate } from "react-router";

import { Heading } from "@arizeai/components";

import { Button, Flex, Icon, Icons, View } from "@phoenix/components";
import { Button, Flex, Heading, Icon, Icons, View } from "@phoenix/components";

import { promptsLoaderQuery$data } from "./__generated__/promptsLoaderQuery.graphql";
import { PromptsTable } from "./PromptsTable";
Expand Down

0 comments on commit bab4a1c

Please sign in to comment.