fix(web): 隱藏頁首操作員個人縮寫
Some checks failed
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m31s
CD Pipeline / build-and-deploy (push) Successful in 4m22s
CD Pipeline / post-deploy-checks (push) Failing after 16s

This commit is contained in:
Your Name
2026-06-15 08:29:02 +08:00
parent 4ef5546ad4
commit 1ac6835235
2 changed files with 16 additions and 5 deletions

View File

@@ -276,6 +276,9 @@ def validate(root: Path) -> None:
sidebar = (root / "apps" / "web" / "src" / "components" / "layout" / "sidebar.tsx").read_text(
encoding="utf-8"
)
layout_header = (root / "apps" / "web" / "src" / "components" / "layout" / "header.tsx").read_text(
encoding="utf-8"
)
command_palette = (
root / "apps" / "web" / "src" / "components" / "command-palette" / "CommandPalette.tsx"
).read_text(encoding="utf-8")
@@ -350,6 +353,7 @@ def validate(root: Path) -> None:
governance_automation_inventory_tab,
iwooos_bridge,
public_security_redaction,
layout_header,
]
)
for forbidden in [
@@ -368,6 +372,8 @@ def validate(root: Path) -> None:
"ws={route.websocket_route_count}",
]:
assert_text_not_contains("frontend.tenants_visible_internal_implementation_text", awooop_tenants_page, forbidden)
assert_text_not_contains("frontend.layout_header.personal_initials", layout_header, ">OG<")
assert_text_contains("frontend.layout_header.operator_marker_icon", layout_header, "ShieldCheck")
for label, text in [
("awooop_home_page", awooop_home_page),