fix(audit): restructure module pages to avoid admin/ path collision

Module pages must use a unique top-level directory (audit/) instead of
nesting under admin/ which collides with core's pages/admin/ during
module:build symlink creation. Routes still map admin/* URLs to the
audit/ page directory via manifest route targets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 08:13:37 +01:00
parent 0c351f6aff
commit e10b1215da
45 changed files with 230 additions and 81 deletions

View File

@@ -10,7 +10,7 @@ final class StatusTaxonomyUiContractTest extends TestCase
public function testImportAuditIndexTemplateDoesNotUseLegacyStatusMapper(): void
{
$content = $this->readProjectFile('modules/audit/pages/admin/import-audit/index(default).phtml');
$content = $this->readProjectFile('modules/audit/pages/audit/import-audit/index(default).phtml');
$moduleContent = $this->readProjectFile('modules/audit/web/js/pages/admin-import-audit-index.js');
$this->assertStringNotContainsString('const statusLabel = (value) =>', $moduleContent);
$this->assertStringNotContainsString("if (key === 'running')", $moduleContent);