Simplify Codex takeover notice copy and match hint styling

Restyle the proxy-takeover notice in the Codex editor from the boxed
Alert to the amber inline-hint style used by the endpoint hints, and drop
implementation jargon (127.0.0.1 / PROXY_MANAGED) that users could not
interpret. The notice and the auth/config hints now simply state that the
form shows the stored provider config rather than the proxy-managed live
config. i18n synced across en/zh/ja/zh-TW.
This commit is contained in:
Jason
2026-05-31 21:20:00 +08:00
parent 2a131a5572
commit aeaa016cae
5 changed files with 16 additions and 19 deletions
@@ -1,9 +1,7 @@
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { Info } from "lucide-react";
import { CodexAuthSection, CodexConfigSection } from "./CodexConfigSections";
import { CodexCommonConfigModal } from "./CodexCommonConfigModal";
import { Alert, AlertDescription } from "@/components/ui/alert";
interface CodexConfigEditorProps {
authValue: string;
@@ -74,12 +72,11 @@ const CodexConfigEditor: React.FC<CodexConfigEditorProps> = ({
return (
<div className="space-y-6">
{isProxyTakeover && (
<Alert>
<Info className="h-4 w-4" />
<AlertDescription>
<div className="p-3 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-700 rounded-lg">
<p className="text-xs text-amber-600 dark:text-amber-400">
{t("codexConfig.proxyTakeoverStorageNotice")}
</AlertDescription>
</Alert>
</p>
</div>
)}
{/* Auth JSON Section */}