Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🪟 refactor: Portal Control for Shared View Settings and Google Balance Support (#10786)

Danny Avila711d21365dbc
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}
/>
</div>
);
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({
<OGDialogTitle>{settingsLabel}</OGDialogTitle>
</OGDialogHeader>
<div className="flex flex-col gap-4 pt-2 text-sm">
- <ThemeSelector theme={theme} onChange={onThemeChange} />
+ <div className="relative focus-within:z-[100]">
+ <ThemeSelector theme={theme} onChange={onThemeChange} portal={false} />
+ </div>
<div className="bg-border-medium/60 h-px w-full" />
- <LangSelector langcode={langcode} onChange={onLangChange} portal={false} />
+ <div className="relative focus-within:z-[100]">
+ <LangSelector langcode={langcode} onChange={onLangChange} portal={false} />
+ </div>
</div>
</OGDialogContent>
</OGDialog>
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 = [