2026-03-19 19:04:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Tests\Architecture;
|
|
|
|
|
|
|
|
|
|
final class DetailPageContractFiles
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* @return list<string>
|
|
|
|
|
*/
|
|
|
|
|
public static function standardDetailFormFiles(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'pages/admin/users/_form.phtml',
|
|
|
|
|
'pages/admin/tenants/_form.phtml',
|
|
|
|
|
'pages/admin/departments/_form.phtml',
|
|
|
|
|
'pages/admin/roles/_form.phtml',
|
|
|
|
|
'pages/admin/permissions/_form.phtml',
|
|
|
|
|
'pages/admin/scheduled-jobs/edit(default).phtml',
|
refactor(settings): split admin/settings into hub + per-section subpages
Splits the 755-line monolithic settings page into a tile-based landing hub
and six focused subpages (general, security, email, api, sso, branding),
each with its own form, CSRF scope and POST handler. Each subpage offers
Save / Save & close buttons plus a Cancel/back link to the hub.
Backend (AdminSettingsService, gateways, policies, DB schema) unchanged.
A new settingsSectionMergePost() helper overlays section POSTs onto the
current DB values so partial saves don't wipe unrelated fields (the
service defaults missing keys to 0/empty).
Sub-action files (logo/favicon/tokens/lifecycle) redirect to the matching
subpage, and architecture contracts now check the subpage files instead
of the removed monolithic index.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 22:43:12 +02:00
|
|
|
'pages/admin/settings/general(default).phtml',
|
2026-04-25 08:50:05 +02:00
|
|
|
'pages/admin/settings/account-access(default).phtml',
|
|
|
|
|
'pages/admin/settings/user-lifecycle(default).phtml',
|
|
|
|
|
'pages/admin/settings/audit(default).phtml',
|
|
|
|
|
'pages/admin/settings/telemetry(default).phtml',
|
refactor(settings): split admin/settings into hub + per-section subpages
Splits the 755-line monolithic settings page into a tile-based landing hub
and six focused subpages (general, security, email, api, sso, branding),
each with its own form, CSRF scope and POST handler. Each subpage offers
Save / Save & close buttons plus a Cancel/back link to the hub.
Backend (AdminSettingsService, gateways, policies, DB schema) unchanged.
A new settingsSectionMergePost() helper overlays section POSTs onto the
current DB values so partial saves don't wipe unrelated fields (the
service defaults missing keys to 0/empty).
Sub-action files (logo/favicon/tokens/lifecycle) redirect to the matching
subpage, and architecture contracts now check the subpage files instead
of the removed monolithic index.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 22:43:12 +02:00
|
|
|
'pages/admin/settings/email(default).phtml',
|
|
|
|
|
'pages/admin/settings/api(default).phtml',
|
|
|
|
|
'pages/admin/settings/sso(default).phtml',
|
2026-03-19 19:04:28 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|