fix(web): remove internal handoff copy from product pages
This commit is contained in:
@@ -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"',
|
||||
|
||||
Reference in New Issue
Block a user