Skip to content

Commit

Permalink
remove showPerformanceTab (#9860)
Browse files Browse the repository at this point in the history
* remove showPerformanceTab

* Cleanup
  • Loading branch information
albandum authored Jan 9, 2025
1 parent 7a79e4f commit a2f22d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions front/components/assistant/AssistantDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import type {
AgentConfigurationType,
WorkspaceType,
} from "@dust-tt/types";
import { removeNulls } from "@dust-tt/types";
import { isBuilder, removeNulls } from "@dust-tt/types";
import { useCallback, useState } from "react";

import { AssistantDetailsButtonBar } from "@app/components/assistant/AssistantDetailsButtonBar";
Expand All @@ -57,7 +57,6 @@ type AssistantDetailsProps = {
owner: WorkspaceType;
onClose: () => void;
assistantId: string | null;
showPerformanceTab?: boolean;
};

function AssistantDetailsInfo({
Expand Down Expand Up @@ -265,7 +264,6 @@ export function AssistantDetails({
assistantId,
onClose,
owner,
showPerformanceTab = false,
}: AssistantDetailsProps) {
const [isUpdatingScope, setIsUpdatingScope] = useState(false);
const [selectedTab, setSelectedTab] = useState("info");
Expand Down Expand Up @@ -349,7 +347,7 @@ export function AssistantDetails({
{agentConfiguration && (
<div className="flex flex-col gap-5 pt-6 text-sm text-foreground">
<DescriptionSection />
{showPerformanceTab && (
{isBuilder(owner) && (
<Tabs value={selectedTab}>
<TabsList>
<TabsTrigger
Expand Down
1 change: 0 additions & 1 deletion front/pages/w/[wId]/builder/assistants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export default function WorkspaceAssistants({
navChildren={<AssistantSidebarMenu owner={owner} />}
>
<AssistantDetails
showPerformanceTab
owner={owner}
assistantId={showDetails?.sId || null}
onClose={() => setShowDetails(null)}
Expand Down

0 comments on commit a2f22d5

Please sign in to comment.