initial budget ui on the provider

This commit is contained in:
Owen
2026-08-10 12:03:46 -04:00
parent 187936e5dd
commit 211d3a53f5
7 changed files with 676 additions and 1 deletions
@@ -0,0 +1,22 @@
"use client";
import { SettingsContainer } from "@app/components/Settings";
import { BudgetsEditor } from "@app/components/BudgetsEditor";
import { useAiProviderContext } from "@app/hooks/useAiProviderContext";
import { useTranslations } from "next-intl";
export default function AiProviderBudgetPage() {
const { provider } = useAiProviderContext();
const t = useTranslations();
return (
<SettingsContainer>
<BudgetsEditor
orgId={provider.orgId}
scope={{ type: "provider", id: provider.providerId }}
title={t("aiProviderBudgetSettings")}
description={t("aiProviderBudgetSettingsDescription")}
/>
</SettingsContainer>
);
}
@@ -76,6 +76,10 @@ export default async function AiProviderLayout({ children, params }: Props) {
{
title: t("aiProviderAuthSettings"),
href: "/{orgId}/settings/ai-providers/{providerId}/authentication"
},
{
title: t("aiProviderBudgetSettings"),
href: "/{orgId}/settings/ai-providers/{providerId}/budget"
}
];