Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: account deletion locales & built-in provider notice (#17161)

YuTengjingfe6d244329aa
diff --git a/locales/en-US/modelProvider.json b/locales/en-US/modelProvider.json
index 8bee5a6265b..2f7b81e2e1a 100644
--- a/locales/en-US/modelProvider.json
+++ b/locales/en-US/modelProvider.json
@@ -177,6 +177,7 @@
"providerModels.config.baseURL.invalid": "Please enter a valid URL",
"providerModels.config.baseURL.placeholder": "https://your-proxy-url.com/v1",
"providerModels.config.baseURL.title": "API Proxy URL",
+ "providerModels.config.builtinNotice": "Built-in providers cannot be removed from the list. If you don’t use this provider, just disable it.",
"providerModels.config.checker.button": "Check",
"providerModels.config.checker.desc": "Test if the API Key and proxy URL are correctly filled",
"providerModels.config.checker.pass": "Check passed",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index a40ec696dff..7442667976a 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -11,13 +11,26 @@
"accountDeletion.confirmRequired": "Please confirm you understand the consequences",
"accountDeletion.confirmTitle": "Delete Account?",
"accountDeletion.desc": "Permanently delete your account and all associated data. This action cannot be undone.",
+ "accountDeletion.detailPlaceholder": "Tell us more (optional) — details help us improve",
+ "accountDeletion.divert.accountIssue": "You may not need to delete your account — you can change your email or link more sign-in methods in <0>Profile Settings</0>.",
+ "accountDeletion.divert.bug": "Sorry about that! Come tell us in our <0>Discord</0> community and we’ll follow up.",
"accountDeletion.pendingDesc": "Your account is scheduled for deletion",
"accountDeletion.pendingMessage": "Your account will be deleted in {{hours}} hours",
- "accountDeletion.reasonPlaceholder": "Please tell us why you want to delete your account...",
- "accountDeletion.reasonRequired": "Please provide a reason for deletion",
+ "accountDeletion.reasonLabel": "Why are you leaving?",
+ "accountDeletion.reasonOption.account_issue": "Account issues (duplicate account / changing email)",
+ "accountDeletion.reasonOption.bug": "I ran into a specific bug",
+ "accountDeletion.reasonOption.hard_to_use": "Hard to use or confusing",
+ "accountDeletion.reasonOption.missing_feature": "Missing features I need",
+ "accountDeletion.reasonOption.no_longer_needed": "I no longer need it",
+ "accountDeletion.reasonOption.other": "Other",
+ "accountDeletion.reasonOption.privacy": "Privacy concerns",
+ "accountDeletion.reasonOption.self_host": "I want to self-host",
+ "accountDeletion.reasonOption.switch_competitor": "Switching to another product",
+ "accountDeletion.reasonOption.too_expensive": "Too expensive",
"accountDeletion.requestButton": "Request Account Deletion",
"accountDeletion.requestFailed": "Failed to request account deletion",
"accountDeletion.requestSuccess": "Deletion request submitted",
+ "accountDeletion.reregisterNotice": "After deletion completes, the same email cannot be used to sign up again for {{days}} days.",
"accountDeletion.sectionTitle": "Account Deletion",
"accountDeletion.title": "Delete Account",
"advancedSettings": "Advanced Settings",
diff --git a/locales/zh-CN/modelProvider.json b/locales/zh-CN/modelProvider.json
index 8d58d59401f..43bf7cb2665 100644
--- a/locales/zh-CN/modelProvider.json
+++ b/locales/zh-CN/modelProvider.json
@@ -177,6 +177,7 @@
"providerModels.config.baseURL.invalid": "请输入合法的 URL",
"providerModels.config.baseURL.placeholder": "https://your-proxy-url.com/v1",
"providerModels.config.baseURL.title": "API 代理地址",
+ "providerModels.config.builtinNotice": "内置服务商不可从列表中移除,不使用时将其禁用即可。",
"providerModels.config.checker.button": "检查",
"providerModels.config.checker.desc": "测试 Api Key 与代理地址是否正确填写",
"providerModels.config.checker.pass": "检查通过",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 008672292a5..d1c5bd5a3ad 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -11,13 +11,26 @@
"accountDeletion.confirmRequired": "请确认您了解注销的后果",
"accountDeletion.confirmTitle": "确定要注销账号吗?",
"accountDeletion.desc": "永久删除您的账号及所有相关数据,此操作不可撤销。",
+ "accountDeletion.detailPlaceholder": "补充说明(可选)——您的反馈能帮助我们改进",
+ "accountDeletion.divert.accountIssue": "您可能无需注销账号——可在 <0>个人资料设置</0> 中更换邮箱或关联更多登录方式。",
+ "accountDeletion.divert.bug": "很抱歉给您带来困扰!欢迎加入我们的 <0>Discord</0> 社区反馈该问题,我们会跟进处理。",
"accountDeletion.pendingDesc": "您的账号已被安排删除",
"accountDeletion.pendingMessage": "您的账号将于 {{hours}} 小时后删除",
- "accountDeletion.reasonPlaceholder": "请告诉我们您为什么要注销账号...",
- "accountDeletion.reasonRequired": "请填写注销原因",
+ "accountDeletion.reasonLabel": "您为什么要离开?",
+ "accountDeletion.reasonOption.account_issue": "账号问题(重复账号 / 更换邮箱)",
+ "accountDeletion.reasonOption.bug": "遇到了具体的 Bug",
+ "accountDeletion.reasonOption.hard_to_use": "难以使用或感到困惑",
+ "accountDeletion.reasonOption.missing_feature": "缺少我需要的功能",
+ "accountDeletion.reasonOption.no_longer_needed": "我不再需要它了",
+ "accountDeletion.reasonOption.other": "其他",
+ "accountDeletion.reasonOption.privacy": "隐私顾虑",
+ "accountDeletion.reasonOption.self_host": "我想自行部署",
+ "accountDeletion.reasonOption.switch_competitor": "转用其他产品",
+ "accountDeletion.reasonOption.too_expensive": "价格太贵",
"accountDeletion.requestButton": "申请注销账号",
"accountDeletion.requestFailed": "申请注销账号失败",
"accountDeletion.requestSuccess": "注销申请已提交",
+ "accountDeletion.reregisterNotice": "注销完成后,同一邮箱在 {{days}} 天内无法再次注册。",
"accountDeletion.sectionTitle": "账号注销",
"accountDeletion.title": "注销账号",
"advancedSettings": "进阶配置",
diff --git a/packages/locales/src/default/modelProvider.ts b/packages/locales/src/default/modelProvider.ts
index b9e9f7dd91c..deeaef28dcd 100644
--- a/packages/locales/src/default/modelProvider.ts
+++ b/packages/locales/src/default/modelProvider.ts
@@ -196,6 +196,8 @@ export default {
'providerModels.config.baseURL.invalid': 'Please enter a valid URL',
'providerModels.config.baseURL.placeholder': 'https://your-proxy-url.com/v1',
'providerModels.config.baseURL.title': 'API Proxy URL',
+ 'providerModels.config.builtinNotice':
+ 'Built-in providers cannot be removed from the list. If you don’t use this provider, just disable it.',
'providerModels.config.checker.button': 'Check',
'providerModels.config.checker.desc': 'Test if the API Key and proxy URL are correctly filled',
'providerModels.config.checker.pass': 'Check passed',
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 9510537244a..9a300c883b8 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -26,10 +26,27 @@ export default {
'accountDeletion.confirmTitle': 'Delete Account?',
'accountDeletion.desc':
'Permanently delete your account and all associated data. This action cannot be undone.',
+ 'accountDeletion.detailPlaceholder': 'Tell us more (optional) — details help us improve',
+ 'accountDeletion.divert.accountIssue':
+ 'You may not need to delete your account — you can change your email or link more sign-in methods in <0>Profile Settings</0>.',
+ 'accountDeletion.divert.bug':
+ 'Sorry about that! Come tell us in our <0>Discord</0> community and we’ll follow up.',
'accountDeletion.pendingDesc': 'Your account is scheduled for deletion',
'accountDeletion.pendingMessage': 'Your account will be deleted in {{hours}} hours',
- 'accountDeletion.reasonPlaceholder': 'Please tell us why you want to delete your account...',
- 'accountDeletion.reasonRequired': 'Please provide a reason for deletion',
+ 'accountDeletion.reasonLabel': 'Why are you leaving?',
+ 'accountDeletion.reasonOption.account_issue':
+ 'Account issues (duplicate account / changing email)',
+ 'accountDeletion.reasonOption.bug': 'I ran into a specific bug',
+ 'accountDeletion.reasonOption.hard_to_use': 'Hard to use or confusing',
+ 'accountDeletion.reasonOption.missing_feature': 'Missing features I need',
+ 'accountDeletion.reasonOption.no_longer_needed': 'I no longer need it',
+ 'accountDeletion.reasonOption.other': 'Other',
+ 'accountDeletion.reasonOption.privacy': 'Privacy concerns',
+ 'accountDeletion.reasonOption.self_host': 'I want to self-host',
+ 'accountDeletion.reasonOption.switch_competitor': 'Switching to another product',
+ 'accountDeletion.reasonOption.too_expensive': 'Too expensive',
+ 'accountDeletion.reregisterNotice':
+ 'After deletion completes, the same email cannot be used to sign up again for {{days}} days.',
'accountDeletion.requestButton': 'Request Account Deletion',
'accountDeletion.requestFailed': 'Failed to request account deletion',
'accountDeletion.requestSuccess': 'Deletion request submitted',
diff --git a/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx b/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx
index a7ec40381a6..2b119f9b311 100644
--- a/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx
+++ b/src/routes/(main)/settings/provider/features/ProviderConfig/index.tsx
@@ -18,7 +18,7 @@ import { Switch } from '@lobehub/ui/base-ui';
import { useDebounceFn } from 'ahooks';
import { Form as AntdForm } from 'antd';
import { createStaticStyles, cssVar, cx, responsive } from 'antd-style';
-import { Loader2Icon, LockIcon } from 'lucide-react';
+import { InfoIcon, Loader2Icon, LockIcon } from 'lucide-react';
import { type ReactNode } from 'react';
import { memo, useCallback, useLayoutEffect, useRef } from 'react';
import { Trans, useTranslation } from 'react-i18next';
@@ -490,7 +490,19 @@ const ProviderConfig = memo<ProviderConfigProps>(
{extra}
{isCustom && <UpdateProviderInfo />}
{canDeactivate && !(enableBusinessFeatures && id === BRANDING_PROVIDER) && (
- <EnableSwitch id={id} key={id} />
+ <>
+ {!isCustom && (
+ <Tooltip title={t('providerModels.config.builtinNotice')}>
+ <Icon
+ color={cssVar.colorTextTertiary}
+ icon={InfoIcon}
+ size={16}
+ onClick={stopPropagation}
+ />
+ </Tooltip>
+ )}
+ <EnableSwitch id={id} key={id} />
+ </>
)}
</Flexbox>
);