DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
fix(profile): 保留弹窗 danger 图标并同步结构契约
hairyfa5caa60923fc
diff --git a/src/ui/dialog/core-upgrade-profile.tsx b/src/ui/dialog/core-upgrade-profile.tsxindex 96b9def7..3871a976 100644--- a/src/ui/dialog/core-upgrade-profile.tsx+++ b/src/ui/dialog/core-upgrade-profile.tsx@@ -47,7 +47,7 @@ export function CoreUpgradeProfileDialog(props: CoreUpgradeProfileDialogProps) {<AlertDialog.Dialog className="sm:max-w-[420px]"><AlertDialog.CloseTrigger /><AlertDialog.Header>- <AlertDialog.Icon status="warning" />+ <AlertDialog.Icon status="danger" /><AlertDialog.Heading>{t('core.breaking_title')}</AlertDialog.Heading></AlertDialog.Header><AlertDialog.Body className="space-y-3">diff --git a/test/core-upgrade-profile.test.ts b/test/core-upgrade-profile.test.tsindex 3d9edc19..85965981 100644--- a/test/core-upgrade-profile.test.ts+++ b/test/core-upgrade-profile.test.ts@@ -224,10 +224,10 @@ describe('警告对话框控件', () => {expect(source).toMatch(/isDisabled=\{!profileId\}/)})- it('warning 状态的 AlertDialog,警告文案同时给出源版本与目标版本', () => {+ it('danger 状态的 AlertDialog,警告文案同时给出源版本与目标版本', () => {const source = dialogSource()- expect(source).toMatch(/status="warning"/)+ expect(source).toMatch(/status="danger"/)expect(source).toMatch(/core\.breaking_desc', \{ from: props\.fromVersion, to: props\.toVersion \}/)})})