Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 0 additions & 188 deletions web/src/components/OrchestratorTab.tsx

This file was deleted.

16 changes: 13 additions & 3 deletions web/src/pages/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ import { CredentialsTab } from "./settings/CredentialsTab";
import { PromptsTab } from "./settings/PromptsTab";
import { UsageTab } from "./settings/UsageTab";
import { ProfileTab } from "./settings/ProfileTab";
import { OrchestratorTab } from "./settings/OrchestratorTab";

type SettingsTab = "connections" | "credentials" | "prompts" | "usage" | "profile";
type SettingsTab = "connections" | "credentials" | "prompts" | "orchestrator" | "usage" | "profile";

function readSettingsTab(): SettingsTab {
const raw = readTabParam();
if (raw === "connections" || raw === "credentials" || raw === "prompts" || raw === "usage" || raw === "profile") {
if (
raw === "connections" || raw === "credentials" || raw === "prompts" ||
raw === "orchestrator" || raw === "usage" || raw === "profile"
) {
return raw;
}
return "connections";
Expand Down Expand Up @@ -63,7 +67,7 @@ export function SettingsPage({ token, user, profile, signOut, onNavigate, onUpda
}, []);

const handleTabChange = (next: string) => {
const t = (["connections", "credentials", "prompts", "usage", "profile"].includes(next)
const t = (["connections", "credentials", "prompts", "orchestrator", "usage", "profile"].includes(next)
? next
: "connections") as SettingsTab;
setTab(t);
Expand All @@ -76,6 +80,7 @@ export function SettingsPage({ token, user, profile, signOut, onNavigate, onUpda
{ key: "connections", label: "Connections" },
{ key: "credentials", label: "Credentials" },
{ key: "prompts", label: "Prompts" },
{ key: "orchestrator", label: "Orchestrator" },
{ key: "usage", label: "Usage" },
{ key: "profile", label: "Profile" },
],
Expand Down Expand Up @@ -105,6 +110,11 @@ export function SettingsPage({ token, user, profile, signOut, onNavigate, onUpda
<PromptsTab token={token} />
</ErrorBoundary>
)}
{tab === "orchestrator" && (
<ErrorBoundary tabKey="settings:orchestrator">
<OrchestratorTab token={token} />
</ErrorBoundary>
)}
{tab === "usage" && (
<ErrorBoundary tabKey="settings:usage">
<UsageTab token={token} profile={profile} onUpdateProfile={onUpdateProfile} />
Expand Down
Loading
Loading