From f86895553a3b63cc50063eb1dce32d605a98fac1 Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Sun, 3 May 2026 08:36:57 +0200 Subject: [PATCH] Settings: collapse advanced sections + dedicated About + default DB name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DB default name: "proserve" → "proserveapi" (matches the ASTERION install script that provisions XAMPP on client machines). - Settings dialog reorganized: 1. License de mise à jour [expanded] ← business-critical 2. Langue [expanded] ← user preference 3. ▸ PARAMÈTRES AVANCÉS [collapsed by default] contains Server, Installation, Cache, Database, Logs 4. À PROPOS [expanded] ← version + copyright - The Expander hides plumbing the casual user shouldn't touch (server URL, install root, MySQL config, cache directory) but keeps it one click away for power users / support diagnostics. - About card kept always-visible because version info is what support asks for first when troubleshooting. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/PSLauncher.App/Views/SettingsDialog.xaml | 55 +++++++++++++++----- src/PSLauncher.Core/Localization/Strings.cs | 8 +++ src/PSLauncher.Models/LocalConfig.cs | 6 ++- 3 files changed, 55 insertions(+), 14 deletions(-) diff --git a/src/PSLauncher.App/Views/SettingsDialog.xaml b/src/PSLauncher.App/Views/SettingsDialog.xaml index 0cd1a2c..8efda84 100644 --- a/src/PSLauncher.App/Views/SettingsDialog.xaml +++ b/src/PSLauncher.App/Views/SettingsDialog.xaml @@ -142,6 +142,18 @@ + + + + - + @@ -366,17 +378,7 @@ FontSize="11" FontWeight="Bold" Foreground="{StaticResource Brush.Text.Secondary}" Margin="0,0,0,8" /> - - - - - - - + @@ -399,6 +401,35 @@ + + + + + + + + + + + + + + + + diff --git a/src/PSLauncher.Core/Localization/Strings.cs b/src/PSLauncher.Core/Localization/Strings.cs index d88fc53..13f83e4 100644 --- a/src/PSLauncher.Core/Localization/Strings.cs +++ b/src/PSLauncher.Core/Localization/Strings.cs @@ -152,6 +152,14 @@ public static class Strings "تطبيق الترقيات تلقائياً عند تثبيت نسخة جديدة" ); public static string SettingsDbReplay => T("🔁 Rejouer les migrations", "🔁 Replay migrations", "🔁 重新执行迁移", "🔁 เรียกใช้การโยกย้ายอีกครั้ง", "🔁 إعادة تشغيل الترقيات"); + public static string SettingsAdvanced => T( + "▸ PARAMÈTRES AVANCÉS (serveur, installation, base de données, logs)", + "▸ ADVANCED SETTINGS (server, installation, database, logs)", + "▸ 高级设置(服务器、安装、数据库、日志)", + "▸ ตั้งค่าขั้นสูง (เซิร์ฟเวอร์ การติดตั้ง ฐานข้อมูล บันทึก)", + "▸ الإعدادات المتقدمة (الخادم، التثبيت، قاعدة البيانات، السجلات)" + ); + public static string SettingsAbout => T("À PROPOS", "ABOUT", "关于", "เกี่ยวกับ", "حول"); public static string SettingsDbHint => T( "Le launcher applique automatiquement les scripts SQL bundled dans _migrations/ de chaque ZIP PROSERVE. Mot de passe stocké chiffré DPAPI.", "The launcher automatically applies SQL scripts bundled in each PROSERVE ZIP's _migrations/ folder. Password stored DPAPI-encrypted.", diff --git a/src/PSLauncher.Models/LocalConfig.cs b/src/PSLauncher.Models/LocalConfig.cs index 671401f..7f378b0 100644 --- a/src/PSLauncher.Models/LocalConfig.cs +++ b/src/PSLauncher.Models/LocalConfig.cs @@ -57,9 +57,11 @@ public sealed class DatabaseConfig /// /// Nom de la base de données qui contient les tables de PROSERVE. - /// Default "proserve" — change si ton install crée la DB sous un autre nom. + /// Default "proserveapi" — c'est le nom utilisé par le script d'install ASTERION + /// qui provisionne XAMPP sur les machines clients. À surcharger seulement si la DB + /// a été créée sous un autre nom. /// - public string Database { get; set; } = "proserve"; + public string Database { get; set; } = "proserveapi"; /// /// Si true, le launcher applique automatiquement les migrations SQL bundled