- feat(mcp): unify notifications via onNotify in form and wizard

- refactor(mcp): remove HTML5 required to avoid native popups

- refactor(ui): propagate onNotify from App → McpPanel → McpFormModal → McpWizardModal

- feat(settings): use onNotify for export and file-selection feedback

- fix(ui): notify link-open failures via onNotify; remove unused appType prop from ProviderList

- chore: format codebase and ensure typecheck passes
This commit is contained in:
Jason
2025-10-10 20:52:16 +08:00
parent bfdf7d4ad5
commit e88562be98
10 changed files with 99 additions and 22 deletions
+8 -2
View File
@@ -18,7 +18,8 @@ const EditProviderModal: React.FC<EditProviderModalProps> = ({
onClose,
}) => {
const { t } = useTranslation();
const [effectiveProvider, setEffectiveProvider] = useState<Provider>(provider);
const [effectiveProvider, setEffectiveProvider] =
useState<Provider>(provider);
// 若为当前应用且正在编辑“当前供应商”,则优先读取 live 配置作为初始值(Claude/Codex 均适用)
useEffect(() => {
@@ -51,10 +52,15 @@ const EditProviderModal: React.FC<EditProviderModalProps> = ({
});
};
const title =
appType === "claude"
? t("provider.editClaudeProvider")
: t("provider.editCodexProvider");
return (
<ProviderForm
appType={appType}
title={t("common.edit")}
title={title}
submitText={t("common.save")}
initialData={effectiveProvider}
showPresets={false}