Review changes batch 6 of 6
This commit is contained in:
@@ -53,11 +53,12 @@ if ($pages -match 'pages/genealogy/g04-first-ancestor') {
|
||||
throw 'G04 first-person route must be merged into G03'
|
||||
}
|
||||
$createFlow = Get-Content -Raw -Encoding UTF8 (Join-Path $root 'pages/genealogy/g03-create-genealogy.vue')
|
||||
foreach ($token in @('step=ancestor', 'createPerson', 'genealogyContext')) {
|
||||
foreach ($token in @('step=ancestor', 'submitAncestor', 'genealogyId')) {
|
||||
if ($createFlow -notmatch [regex]::Escape($token)) {
|
||||
throw "Missing G03 first-person flow: $token"
|
||||
}
|
||||
}
|
||||
if ($createFlow -match 'createPerson') { throw 'G03 must not retain the removed createPerson entrypoint' }
|
||||
foreach ($route in @('pages/family/f04-article-list', 'pages/family/f02-publish-feed')) {
|
||||
if ($pages -notmatch [regex]::Escape($route)) {
|
||||
throw "Missing content page route: $route"
|
||||
@@ -69,7 +70,11 @@ foreach ($pageFile in @('pages/genealogy/g05-genealogy-overview.vue', 'pages/tre
|
||||
if ($page -match "id=1001|id=3") {
|
||||
throw "Hard-coded route ID remains in $pageFile"
|
||||
}
|
||||
if ($page -notmatch 'genealogyContext') {
|
||||
if ($pageFile -eq 'pages/genealogy/g05-genealogy-overview.vue') {
|
||||
if ($page -notmatch "const genealogyId = ref\(''\)" -or $page -notmatch 'query\.genealogyId') {
|
||||
throw 'G05 must own its explicit genealogyId route context'
|
||||
}
|
||||
} elseif ($page -notmatch 'genealogyContext') {
|
||||
throw "Missing genealogy context in $pageFile"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user