Files
breadcrumb-the-shire/pages/admin/settings/index(default).phtml
fs 5b972b3633 refactor(settings): declutter account-access, group registration with user defaults
Three related cleanups in the same area:

- Account-access loses 4 info blockquotes that paraphrased their cards,
  4 redundant "allowed range" hints (the input min/max + DB descriptions
  already convey the bounds), and the fieldset wrappers around single
  checkboxes.
- The registration toggle moves out of account-access into general's
  user-creation card (renamed to "User onboarding"), so all "new user"
  settings live together while account-access stays focused on existing
  user sessions.
- Both feature toggles (allow registration, Microsoft auto-remember)
  switch to role="switch" with the description sitting outside the label
  as <small class="muted">, matching the tenant form pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 09:29:01 +02:00

84 lines
2.4 KiB
PHTML

<?php
/**
* Landing hub for admin/settings.
*
* Each section is a standalone subpage reachable via its own URL
* (admin/settings/<section>). This page renders a tile grid of entry points.
*/
?>
<div class="app-dashboard-titlebar">
<h1><?php e(t('Settings')); ?></h1>
</div>
<hr>
<div class="app-dashboard">
<div class="app-tiles">
<?php
appTile([
'href' => 'admin/settings/general',
'label' => t('General'),
'icon' => 'bi bi-sliders',
'iconTone' => 'blue',
'tooltip' => t('App title, language, registration and new-user defaults'),
]);
appTile([
'href' => 'admin/settings/account-access',
'label' => t('Account access'),
'icon' => 'bi bi-shield-lock',
'iconTone' => 'violet',
'tooltip' => t('Sessions, login persistence, login tokens'),
]);
appTile([
'href' => 'admin/settings/user-lifecycle',
'label' => t('User lifecycle'),
'icon' => 'bi bi-arrow-repeat',
'iconTone' => 'red',
'tooltip' => t('Inactivity deactivation and deletion policy'),
]);
appTile([
'href' => 'admin/settings/audit',
'label' => t('Audit log'),
'icon' => 'bi bi-journal-text',
'iconTone' => 'orange',
'tooltip' => t('System audit log enable and retention'),
]);
appTile([
'href' => 'admin/settings/telemetry',
'label' => t('Telemetry'),
'icon' => 'bi bi-graph-up',
'iconTone' => 'green',
'tooltip' => t('Frontend telemetry collection and event allowlist'),
]);
appTile([
'href' => 'admin/settings/email',
'label' => t('Email'),
'icon' => 'bi bi-envelope',
'iconTone' => 'amber',
'tooltip' => t('SMTP connection and sender details'),
]);
appTile([
'href' => 'admin/settings/api',
'label' => t('API'),
'icon' => 'bi bi-key',
'iconTone' => 'emerald',
'tooltip' => t('API token policy and CORS allowlist'),
]);
appTile([
'href' => 'admin/settings/sso',
'label' => t('Microsoft SSO'),
'icon' => 'bi bi-microsoft',
'iconTone' => 'cyan',
'tooltip' => t('Shared Microsoft Entra ID credentials'),
]);
appTile([
'href' => 'admin/settings/branding',
'label' => t('Branding'),
'icon' => 'bi bi-palette',
'iconTone' => 'pink',
'tooltip' => t('App logo and favicon'),
]);
?>
</div>
</div>