From e11db7d9187d90786e892e4a3bb2e89832276626 Mon Sep 17 00:00:00 2001 From: fs Date: Sat, 25 Apr 2026 18:27:25 +0200 Subject: [PATCH] refactor(settings/sso): drop storage-metadata field hints, slim authority card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shared client ID and shared client secret carried "setting key for…" DB descriptions that describe the storage row, not what the field means to an admin — they leaked metadata into the form. The authority card also had an info blockquote that paraphrased the URL placeholder and the DB description below it. Kept: the tenant-opt-in blockquote on the credentials card (it explains that these values only apply where a tenant has enabled "Use shared app credentials", which isn't obvious otherwise) and the "leave empty to keep" hint on the secret input. Co-Authored-By: Claude Opus 4.7 (1M context) --- pages/admin/settings/sso(default).phtml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pages/admin/settings/sso(default).phtml b/pages/admin/settings/sso(default).phtml index 2f8fe3b..c846a04 100644 --- a/pages/admin/settings/sso(default).phtml +++ b/pages/admin/settings/sso(default).phtml @@ -12,8 +12,6 @@ $values = $values ?? []; $settings = $settings ?? []; $microsoftSharedClientId = (string) ($values['microsoft_shared_client_id'] ?? ''); $microsoftAuthority = (string) ($values['microsoft_authority'] ?? ''); -$microsoftSharedClientIdDesc = $settings['microsoft_shared_client_id']['description'] ?? 'setting.microsoft_shared_client_id'; -$microsoftSharedClientSecretDesc = $settings['microsoft_shared_client_secret_enc']['description'] ?? 'setting.microsoft_shared_client_secret_enc'; $microsoftAuthorityDesc = $settings['microsoft_authority']['description'] ?? 'setting.microsoft_authority'; $canUpdateSettings = (bool) ($canUpdateSettings ?? false); $isReadOnly = !$canUpdateSettings; @@ -62,12 +60,10 @@ $readonlyAttr = $isReadOnly ? 'readonly' : ''; @@ -81,9 +77,6 @@ $readonlyAttr = $isReadOnly ? 'readonly' : '';
-
- -