fix(web): 隱藏頁首操作員個人縮寫
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user