fix(web): remove internal handoff copy from product pages
All checks were successful
CD Pipeline / tests (push) Successful in 1m21s
Code Review / ai-code-review (push) Successful in 14s
CD Pipeline / build-and-deploy (push) Successful in 4m31s
CD Pipeline / post-deploy-checks (push) Successful in 1m53s

This commit is contained in:
Your Name
2026-06-01 15:12:34 +08:00
parent f6a7a614ac
commit b937edadf3
4 changed files with 349 additions and 303 deletions

View File

@@ -244,8 +244,32 @@ def validate(root: Path) -> None:
web_messages_en,
web_messages_zh,
)
product_voice_sections = [
web_messages_zh["dashboard"]["homeCommandMap"],
web_messages_zh["dashboard"]["automationDelivery"],
web_messages_zh["dashboard"]["automationDiagrams"],
web_messages_zh["securityCompliance"],
web_messages_zh["iwooos"],
]
iwooos_visible_text = "\n".join(collect_string_values(web_messages_zh["iwooos"]))
product_visible_text = "\n".join(
text for section in product_voice_sections for text in collect_string_values(section)
)
for forbidden in [
"S2.",
"回應「",
"專業建議",
"本輪",
"這裡",
"到底",
"空泛",
"不再只",
"卡在哪",
"初期框架",
"Claude",
"Codex",
"交辦",
"對話",
"不用讀",
"不用翻對話",
"使用者最",
@@ -270,7 +294,7 @@ def validate(root: Path) -> None:
"目前卡點",
"主要卡點",
]:
assert_text_not_contains("web_messages.zh-TW.iwooos.product_voice", iwooos_visible_text, forbidden)
assert_text_not_contains("web_messages.zh-TW.product_voice", product_visible_text, forbidden)
for text in [
"IwoooSVisualCommandDashboard",
'data-testid="iwooos-visual-command-dashboard"',