fix: sync G01 role shortcuts

This commit is contained in:
rain
2026-07-21 13:06:36 +08:00
parent 8468cc0f89
commit 668b4ef55f
4 changed files with 212 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
$ErrorActionPreference = 'Stop'
$page = Get-Content -Raw 'pages/genealogy/g01-my-genealogies.vue'
function Assert-Contains([string]$Content, [string]$Pattern, [string]$Message) {
if (-not $Content.Contains($Pattern)) { throw $Message }
}
Assert-Contains $page 'v-for="item in visibleShortcuts"' 'G01 must render the membership-filtered shortcut list'
Assert-Contains $page '{{ currentRoleLabel }}' 'G01 must render the membership-derived role label'
Assert-Contains $page 'currentGenealogy.value?.membership === "created"' 'G01 must derive owner state from membership'
Assert-Contains $page 'item.key !== "applications"' 'G01 must remove application review for joined members'
Write-Output 'G01-ROLE-SHORTCUT-CONTRACT PASS'