From 711d21365dbc8768d3931e9732d1e3c405a6f389 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Wed, 3 Dec 2025 10:29:23 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9F=20refactor:=20Portal=20Control=20f?= =?UTF-8?q?or=20Shared=20View=20Settings=20and=20Google=20Balance=20Suppor?= =?UTF-8?q?t=20(#10786)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Add support for Google model endpoint in balance check * feat: Add portal prop to ThemeSelector and LangSelector in ShareView --- .../src/components/Nav/SettingsTabs/General/General.tsx | 3 +++ client/src/components/Share/ShareView.tsx | 8 ++++++-- packages/data-provider/src/config.ts | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/components/Nav/SettingsTabs/General/General.tsx b/client/src/components/Nav/SettingsTabs/General/General.tsx index 1157f9fc8e..4a56dd6d25 100644 --- a/client/src/components/Nav/SettingsTabs/General/General.tsx +++ b/client/src/components/Nav/SettingsTabs/General/General.tsx @@ -41,9 +41,11 @@ const toggleSwitchConfigs = [ export const ThemeSelector = ({ theme, onChange, + portal = true, }: { theme: string; onChange: (value: string) => void; + portal?: boolean; }) => { const localize = useLocalize(); @@ -67,6 +69,7 @@ export const ThemeSelector = ({ testId="theme-selector" className="z-50" aria-labelledby={labelId} + portal={portal} /> ); diff --git a/client/src/components/Share/ShareView.tsx b/client/src/components/Share/ShareView.tsx index a404796757..f58064acc8 100644 --- a/client/src/components/Share/ShareView.tsx +++ b/client/src/components/Share/ShareView.tsx @@ -227,9 +227,13 @@ function ShareHeader({ {settingsLabel}
- +
+ +
- +
+ +
diff --git a/packages/data-provider/src/config.ts b/packages/data-provider/src/config.ts index 495d7cae6d..72fcdafc96 100644 --- a/packages/data-provider/src/config.ts +++ b/packages/data-provider/src/config.ts @@ -1133,6 +1133,7 @@ export const supportsBalanceCheck = { [EModelEndpoint.azureAssistants]: true, [EModelEndpoint.azureOpenAI]: true, [EModelEndpoint.bedrock]: true, + [EModelEndpoint.google]: true, }; export const visionModels = [