feat(web): add security entry role map

This commit is contained in:
Your Name
2026-05-24 14:10:20 +08:00
parent a12de89233
commit 7b851b0169
8 changed files with 390 additions and 1 deletions

View File

@@ -359,6 +359,7 @@ def validate(root: Path) -> None:
"s2_105_iwooos_s49_owner_response_request_draft_board",
"s2_106_iwooos_s49_owner_response_dispatch_flow_board",
"s2_107_security_compliance_iwooos_frontstage_bridge",
"s2_108_iwooos_frontstage_security_entry_roles",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -618,6 +619,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_security_compliance_frontstage_bridge",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_frontstage_security_entry_roles",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -8110,6 +8116,89 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["securityComplianceFrontStage"]["items"].keys()),
key,
)
assert_text_contains(
"iwooos_page.frontstage_security_entry_roles_testid",
iwooos_projection_page,
'data-testid="iwooos-frontstage-security-entry-roles-board"',
)
assert_text_contains(
"iwooos_page.frontstage_security_entry_roles_component",
iwooos_projection_page,
"FrontstageSecurityEntryRolesBoard",
)
for text in [
"frontstage_security_entry_role_count=5",
"frontstage_security_primary_entry=iwooos",
"frontstage_security_familiar_entry=security_compliance",
"frontstage_security_execution_entry_count=0",
"frontstage_security_links_read_only=true",
"frontstage_security_operator_confusion_reduction=true",
"frontstage_security_action_buttons_allowed=false",
"runtime_execution_authorized=false",
"active_runtime_gate_count=0",
"action_buttons_allowed=false",
"not_authorization=true",
"secret_value_collection_allowed=false",
"repo_creation_authorized=false",
"refs_sync_authorized=false",
"workflow_modification_authorized=false",
"github_primary_switch_authorized=false",
"gitea_disablement_authorized=false",
]:
assert_text_contains(
"iwooos_page.frontstage_security_entry_roles_boundary",
iwooos_projection_page,
text,
)
assert_contains(
"web_messages.zh-TW.iwooos.frontstageEntryRoles",
list(web_messages_zh["iwooos"].keys()),
"frontstageEntryRoles",
)
assert_contains(
"web_messages.en.iwooos.frontstageEntryRoles",
list(web_messages_en["iwooos"].keys()),
"frontstageEntryRoles",
)
for key in ["title", "subtitle", "summary", "items", "routeLabel", "boundaryTitle", "boundaryIntro"]:
assert_contains(
"web_messages.zh-TW.iwooos.frontstageEntryRoles.keys",
list(web_messages_zh["iwooos"]["frontstageEntryRoles"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.frontstageEntryRoles.keys",
list(web_messages_en["iwooos"]["frontstageEntryRoles"].keys()),
key,
)
for key in ["entries", "primary", "familiar", "execution"]:
assert_contains(
"web_messages.zh-TW.iwooos.frontstageEntryRoles.summary",
list(web_messages_zh["iwooos"]["frontstageEntryRoles"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.frontstageEntryRoles.summary",
list(web_messages_en["iwooos"]["frontstageEntryRoles"]["summary"].keys()),
key,
)
for key in [
"iwooosOverview",
"securityComplianceHub",
"securityMonitor",
"complianceStats",
"awooopApprovals",
]:
assert_contains(
"web_messages.zh-TW.iwooos.frontstageEntryRoles.items",
list(web_messages_zh["iwooos"]["frontstageEntryRoles"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.frontstageEntryRoles.items",
list(web_messages_en["iwooos"]["frontstageEntryRoles"]["items"].keys()),
key,
)
for key in [
"title",
"subtitle",