Review changes batch 6 of 6

This commit is contained in:
2026-07-20 06:52:33 +08:00
parent db97d3da27
commit 5a31a75da0
160 changed files with 9206 additions and 572 deletions
+20
View File
@@ -0,0 +1,20 @@
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$g01 = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g01-my-genealogies.vue') -Raw -Encoding utf8
$appLoading = Get-Content -LiteralPath (Join-Path $root 'components/AppLoading.vue') -Raw -Encoding utf8
function Assert-Match {
param([string]$Content, [string]$Pattern, [string]$Message)
if ($Content -notmatch $Pattern) { throw $Message }
}
Assert-Match -Content $g01 -Pattern 'import AppLoading from "@/components/AppLoading\.vue";' -Message 'G01 loading state must import the global AppLoading component'
Assert-Match -Content $g01 -Pattern '(?s)<view v-if="isLoading" class="state-panel state-panel--loading">\s*<AppLoading\s+text="[^"]+"\s+description="[^"]+"\s*/>\s*</view>' -Message 'G01 loading state must pass its approved title and supporting copy directly to AppLoading'
Assert-Match -Content $appLoading -Pattern 'class="app-loading__seal"\s+src="/static/assets/foundation/transparent/brand-seal\.png"' -Message 'Global AppLoading must retain its approved red-gold seal asset'
Assert-Match -Content $appLoading -Pattern 'app-loading-seal-breathe' -Message 'Global AppLoading must retain its restrained seal breathing motion'
if ($g01 -match 'loading-seal') { throw 'G01 loading state must not retain the legacy hollow loading seal' }
if ($g01 -match 'state-copy--loading') { throw 'G01 loading state must not duplicate AppLoading description layout' }
Write-Output 'G01-LOADING-STATE-CONTRACT PASS'