feat(web): show awooop security coverage

This commit is contained in:
Your Name
2026-05-21 15:15:38 +08:00
parent 5af90d1367
commit fdf3095e1b
8 changed files with 421 additions and 3 deletions

View File

@@ -328,6 +328,7 @@ def validate(root: Path) -> None:
"s2_77_awooop_runs_owner_response_validation_boundary",
"s2_78_awooop_run_detail_owner_response_validation_boundary",
"s2_79_awooop_approval_detail_owner_response_validation_boundary",
"s2_80_iwooos_awooop_route_coverage_board",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -482,6 +483,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_awooop_approval_detail_owner_response_validation_boundary",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_awooop_route_coverage_board",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -6481,6 +6487,36 @@ def validate(root: Path) -> None:
'data-testid="iwooos-source-control-readiness-board"',
)
assert_text_contains("iwooos_page.source_control_readiness_component", iwooos_projection_page, "SourceControlReadinessCard")
assert_text_contains("iwooos_page.awooop_coverage_board", iwooos_projection_page, "awooopCoverageStatuses")
assert_text_contains(
"iwooos_page.awooop_coverage_testid",
iwooos_projection_page,
'data-testid="iwooos-awooop-coverage-board"',
)
assert_text_contains("iwooos_page.awooop_coverage_component", iwooos_projection_page, "AwoooPCoverageStatusCard")
for text in [
"/awooop",
"/awooop/work-items",
"/awooop/contracts",
"/awooop/tenants",
"/awooop/runs",
"/awooop/runs/[run_id]",
"/awooop/approvals",
"/awooop/approvals/[run_id]",
"awooop_route_coverage_count=8",
"awooop_route_coverage_visible_count=8",
"runtime_execution_authorized=false",
"active_runtime_gate_count=0",
"action_buttons_allowed=false",
"not_authorization=true",
"repo_creation_authorized=false",
"refs_sync_authorized=false",
"workflow_modification_authorized=false",
"secret_value_collection_allowed=false",
"github_primary_switch_authorized=false",
"gitea_disablement_authorized=false",
]:
assert_text_contains("iwooos_page.awooop_coverage_boundary", iwooos_projection_page, text)
for key in [
"title",
"subtitle",
@@ -6586,6 +6622,39 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["sourceControlReadiness"]["items"].keys()),
key,
)
for key in ["title", "subtitle", "routeLabel", "stageLabel", "boundaryLabel", "guardTitle", "summary", "items"]:
assert_contains(
"web_messages.zh-TW.iwooos.awooopCoverage",
list(web_messages_zh["iwooos"]["awooopCoverage"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.awooopCoverage",
list(web_messages_en["iwooos"]["awooopCoverage"].keys()),
key,
)
for key in ["routes", "covered", "runtimeGates", "actions"]:
assert_contains(
"web_messages.zh-TW.iwooos.awooopCoverage.summary",
list(web_messages_zh["iwooos"]["awooopCoverage"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.awooopCoverage.summary",
list(web_messages_en["iwooos"]["awooopCoverage"]["summary"].keys()),
key,
)
for key in ["home", "workItems", "contracts", "tenants", "runs", "runDetail", "approvals", "approvalDecision"]:
assert_contains(
"web_messages.zh-TW.iwooos.awooopCoverage.items",
list(web_messages_zh["iwooos"]["awooopCoverage"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.awooopCoverage.items",
list(web_messages_en["iwooos"]["awooopCoverage"]["items"].keys()),
key,
)
owner_summary = owner_rollup["summary"]
assert_equal("owner_rollup.total_received_response_count", owner_summary["total_received_response_count"], 0)