diff --git a/app/src/contexts/FeatureFlagsContext.tsx b/app/src/contexts/FeatureFlagsContext.tsx index 70c7eb7a0e..866db0ec51 100644 --- a/app/src/contexts/FeatureFlagsContext.tsx +++ b/app/src/contexts/FeatureFlagsContext.tsx @@ -3,7 +3,7 @@ import { useHotkeys } from "react-hotkeys-hook"; import { Dialog, DialogContainer, Switch, View } from "@arizeai/components"; -type FeatureFlag = "playground"; +type FeatureFlag = "__RESET__"; export type FeatureFlagsContextType = { featureFlags: Record; setFeatureFlags: (featureFlags: Record) => void; @@ -12,7 +12,7 @@ export type FeatureFlagsContextType = { export const LOCAL_STORAGE_FEATURE_FLAGS_KEY = "arize-phoenix-feature-flags"; const DEFAULT_FEATURE_FLAGS: Record = { - playground: false, + __RESET__: false, }; function getFeatureFlags(): Record { diff --git a/app/src/pages/Layout.tsx b/app/src/pages/Layout.tsx index f54e586b08..fca348eefd 100644 --- a/app/src/pages/Layout.tsx +++ b/app/src/pages/Layout.tsx @@ -17,7 +17,6 @@ import { TopNavbar, } from "@phoenix/components/nav"; import { useNotifyError } from "@phoenix/contexts"; -import { useFeatureFlag } from "@phoenix/contexts/FeatureFlagsContext"; import { useFunctionality } from "@phoenix/contexts/FunctionalityContext"; import { prependBasename } from "@phoenix/utils/routingUtils"; @@ -97,7 +96,6 @@ function SideNav() { message: "Failed to log out: " + response.statusText, }); }, [navigate, notifyError]); - const playgroundEnabled = useFeatureFlag("playground"); return ( @@ -126,15 +124,13 @@ function SideNav() { icon={} />} /> - {playgroundEnabled && ( -
  • - } />} - /> -
  • - )} +
  • + } />} + /> +
  • ( graphql` @@ -245,18 +243,16 @@ export function SpanDetails({ {span.name} - {isPromptPlaygroundEnabled ? ( - - ) : null} +