验收20%

This commit is contained in:
2026-07-16 07:42:07 +08:00
parent 0dec90ffdd
commit cb25317412
108 changed files with 6477 additions and 1308 deletions
+20 -4
View File
@@ -27,11 +27,23 @@ if ($paths -contains 'pages/genealogy/g07-search-result') { throw 'G07 route mus
if (Test-Path -LiteralPath $g07) { throw 'G07 page file must be deleted; search results are a G06 state' }
foreach ($required in @(
"const mode = ref('search')",
"const searchState = ref('initial')",
"searchState.value = 'loading'",
"searchState.value = 'initial'",
"searchState.value = results.value.length ? 'results' : 'empty'",
'/pages/genealogy/g08-join-application?genealogyId=',
"const inviteState = ref('initial')",
'const resultFixtures = [',
"relation: 'available'",
"relation: 'joined'",
"relation: 'pending'",
"relation: 'rejected'",
"relation: 'removed'",
"relation: 'owned'",
'parentName:',
'branchName:',
'manager:',
'certification:',
'/pages/genealogy/g08-join-application?source=search&genealogyId=',
'/pages/genealogy/g08-join-application?source=invite&genealogyId=',
'/pages/genealogy/g05-genealogy-overview?mode=public&genealogyId=',
'search-page__header',
'g06-search-input-wide.png',
'g06-search-button.png',
@@ -50,6 +62,10 @@ foreach ($required in @(
Assert-Contains -Content $g06 -Expected $required -Message "Missing G06 flow contract: $required"
}
foreach ($forbidden in @("from '@/utils/api.js'", 'appApi.', 'uni.showToast', 'uni.showModal', 'uni.showLoading', 'uni.showActionSheet')) {
if ($g06 -match [regex]::Escape($forbidden)) { throw "G06 retains forbidden implementation: $forbidden" }
}
if ($g06 -match [regex]::Escape('appApi.applyToJoin')) { throw 'G06 must navigate to G08 instead of submitting an application directly' }
if ($g06 -match [regex]::Escape('g06-search-panel-v2.png')) { throw 'G06 must not embed the search controls in a large panel image' }
if ($g06 -match [regex]::Escape('search-hero')) { throw 'G06 must replace the floating hero with the selected title-strip hierarchy' }