修改完成

This commit is contained in:
2026-07-21 07:53:03 +08:00
parent 01d246c47b
commit ff60119277
172 changed files with 7982 additions and 2999 deletions
+11 -13
View File
@@ -7,7 +7,7 @@ function Assert-Contains {
function Assert-NoCssSurface {
param([string]$Content, [string]$ClassName)
foreach ($property in @('border', 'background', 'border-radius')) {
foreach ($property in @('border', 'border-radius')) {
$pattern = "(?s)\\.$ClassName\\s*\\{[^}]*\\b$property\\s*:"
if ($Content -match $pattern) { throw "G06 must not construct .$ClassName with CSS $property" }
}
@@ -27,16 +27,16 @@ 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')",
"const inviteState = ref('initial')",
'const mode = ref("search")',
'const searchState = ref("initial")',
'const inviteState = ref("initial")',
'const resultFixtures = [',
"relation: 'available'",
"relation: 'joined'",
"relation: 'pending'",
"relation: 'rejected'",
"relation: 'removed'",
"relation: 'owned'",
'relation: "available"',
'relation: "joined"',
'relation: "pending"',
'relation: "rejected"',
'relation: "removed"',
'relation: "owned"',
'parentName:',
'branchName:',
'manager:',
@@ -52,8 +52,6 @@ foreach ($required in @(
'section-divider.png',
'root-header-hall.png',
'search-controls',
'search-field__skin',
'search-action__skin',
'search-initial',
'search-results',
'search-empty',
@@ -79,7 +77,7 @@ if ($g06 -notmatch '(?s)\.search-controls\s*\{[^}]*display:\s*flex[^}]*align-ite
throw 'G06 search input and action must form one compact control row'
}
Assert-Contains -Content $g06 -Expected 'class="status-retry"' -Message 'G06 error retry action is missing'
Assert-Contains -Content $g06 -Expected 'src="/static/assets/foundation/transparent/a01-scroll-primary-v3.png"' -Message 'G06 error retry must use the approved A-series primary scroll asset'
Assert-Contains -Content $g06 -Expected 'background: url("/static/assets/foundation/transparent/a01-scroll-primary-v3.png")' -Message 'G06 error retry must use the approved A-series primary scroll asset as its real background'
if ($g06 -notmatch '(?s)\.status-retry\s*\{[^}]*width:\s*300rpx;[^}]*height:\s*76rpx;') {
throw 'G06 error retry must use the approved compact action size'
}