feat(common-config): show first-run notice dialog when editing providers

Display a one-time informational dialog explaining the Common Config
Snippet feature when users first open the add/edit provider form.
Uses a derived isOpen state from settings to avoid race conditions.
Adds commonConfigConfirmed flag to both TS and Rust settings types.
This commit is contained in:
Jason
2026-04-09 16:48:21 +08:00
parent ecb1fed5db
commit fa4297f4d3
6 changed files with 56 additions and 5 deletions
+2
View File
@@ -268,6 +268,8 @@ export interface Settings {
firstRunNoticeConfirmed?: boolean;
// User has confirmed the auto-sync traffic warning
autoSyncConfirmed?: boolean;
// User has confirmed the common config first-run notice
commonConfigConfirmed?: boolean;
// 首选语言(可选,默认中文)
language?: "en" | "zh" | "ja";