feat(housekeeping): cut over administration to ase

This commit is contained in:
Simo committed 2026-08-30 20:35:22 +02:00
1 parent c9e35cf602
commit 2b8f73a91d
457 files changed
+589 -55936

No files matched your search

+12 -3
View File
@@ -1,14 +1,23 @@
import { spawnSync } from "node:child_process";
import { resolve } from "node:path";
import { discoverLegacyPages } from "../src/features/housekeeping/migration/discover-legacy-pages";
import {
discoverLegacyPages,
recordedLegacyPages,
} from "../src/features/housekeeping/migration/discover-legacy-pages";
import { HOUSEKEEPING_MIGRATION_MATRIX } from "../src/features/housekeeping/migration/matrix";
import { validateMigrationEntries } from "../src/features/housekeeping/migration/validate-matrix";
const discovered = discoverLegacyPages();
const recorded = recordedLegacyPages(HOUSEKEEPING_MIGRATION_MATRIX);
const issues = validateMigrationEntries(
discovered,
recorded,
HOUSEKEEPING_MIGRATION_MATRIX,
);
if (discovered.length > 0) {
issues.push(
`legacy UI routes remain after cutover: ${discovered.map((page) => page.legacyPath).join(", ")}`,
);
}
const parityTest = spawnSync(
process.execPath,
@@ -31,7 +40,7 @@ if (issues.length > 0 || !parityPassed) {
process.exitCode = 1;
} else {
console.log(
`Housekeeping migration matrix: ${HOUSEKEEPING_MIGRATION_MATRIX.length}/${discovered.length} valid`,
`Housekeeping migration matrix: ${HOUSEKEEPING_MIGRATION_MATRIX.length}/${recorded.length} historical rows valid; legacy UI pages present=${discovered.length}`,
);
const removed = HOUSEKEEPING_MIGRATION_MATRIX.filter(
(row) => row.status === "REMOVED",