refactor(settings/audit): conditional retention disclosure + flat layout

Drops the wrapping details-card so the audit toggle and retention input
read like the email page. The audit switch now uses role="switch" and a
new app-settings-audit component (built on the existing
createConditionalToggleInit primitive) hides the retention block when
audit is disabled — the input is meaningless without audit on, and the
control state syncs automatically on toggle. The redundant info
blockquote and the toggle's paraphrased DB description are gone.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 11:50:04 +02:00
parent 466fcac866
commit 5f3aff08cb
4 changed files with 42 additions and 23 deletions

View File

@@ -27,6 +27,7 @@ trait FrontendRuntimeContractSupport
'web/js/components/app-custom-field-options-toggle.js',
'web/js/components/app-tenant-sso-toggle.js',
'web/js/components/app-settings-telemetry.js',
'web/js/components/app-settings-audit.js',
'web/js/components/app-standard-detail-page.js',
'web/js/components/app-auto-submit.js',
'modules/bookmarks/web/js/components/app-bookmark-save.js',