完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
+3 -13
View File
@@ -15,33 +15,23 @@ function Assert-NoCssSurface {
}
$root = Split-Path -Parent $PSScriptRoot
$g01 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g01-my-genealogies.vue') -Raw -Encoding utf8
$g05 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g05-genealogy-overview.vue') -Raw -Encoding utf8
$profiles = Get-Content -LiteralPath (Join-Path $root 'styles/adaptive-frame-profiles.scss') -Raw -Encoding utf8
$runtimeSmoke = Get-Content -LiteralPath (Join-Path $root 'tests/g05-overview-runtime-smoke.js') -Raw -Encoding utf8
$asset = Join-Path $root 'static/assets/modules/genealogy/opaque/g05-overview-surface.png'
Assert-Contains $g01 'g05-genealogy-overview?genealogyId=' 'G01 must open G05 with the genealogyId query contract'
if ($g01 -match 'g05-genealogy-overview\?id=') { throw 'G01 must not retain the obsolete G05 id query key' }
foreach ($required in @(
'const overviewState = ref("loading")',
"query.genealogyId",
'const viewMode = ref("member")',
'const accessRole = ref("owner")',
'const overviewFixture = {',
'const accessRole = ref("guest")',
'findGenealogyFixture',
'overview-ready',
'overview-public',
'overview-state--empty',
'overview-state--error',
'overview-state--no-permission',
'adaptive.adaptive-g05-overview-surface',
'/pages/genealogy/g03-create-genealogy?step=ancestor&genealogyId=',
'/pages/tree/t01-tree-overview?genealogyId=',
'/pages/genealogy/g10-application-review?genealogyId=',
'/pages/genealogy/g11-genealogy-settings?genealogyId=',
'/pages/genealogy/g12-generation-poems?genealogyId=',
'/pages/family/f01-family-feed'
'adaptive.adaptive-g05-overview-surface'
)) {
Assert-Contains $g05 $required "Missing G05 overview contract: $required"
}