feat(web): show owner response validation run detail
This commit is contained in:
@@ -91,6 +91,9 @@ def validate(root: Path) -> None:
|
||||
awooop_runs_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "awooop" / "runs" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
awooop_run_detail_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "awooop" / "runs" / "[run_id]" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
awooop_approvals_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "awooop" / "approvals" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
@@ -311,6 +314,7 @@ def validate(root: Path) -> None:
|
||||
"s2_75_awooop_approvals_owner_response_validation_boundary",
|
||||
"s2_76_awooop_tenants_owner_response_validation_scope",
|
||||
"s2_77_awooop_runs_owner_response_validation_boundary",
|
||||
"s2_78_awooop_run_detail_owner_response_validation_boundary",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -455,6 +459,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_awooop_runs_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_awooop_run_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)],
|
||||
@@ -5966,6 +5975,85 @@ def validate(root: Path) -> None:
|
||||
key,
|
||||
)
|
||||
|
||||
assert_text_contains(
|
||||
"awooop_run_detail_page.owner_response_validation_detail_boundary_panel",
|
||||
awooop_run_detail_page,
|
||||
"OwnerResponseValidationDetailBoundaryPanel",
|
||||
)
|
||||
assert_text_contains(
|
||||
"awooop_run_detail_page.owner_response_validation_detail_refs",
|
||||
awooop_run_detail_page,
|
||||
"ownerResponseValidationDetailRefs",
|
||||
)
|
||||
assert_text_contains(
|
||||
"awooop_run_detail_page.owner_response_validation_detail_iwooos_link",
|
||||
awooop_run_detail_page,
|
||||
'href="/iwooos"',
|
||||
)
|
||||
for text in [
|
||||
"source_control_owner_response_validation_rollup_v1",
|
||||
"gitea_inventory_owner_attestation_response_v1",
|
||||
"github_target_owner_decision_response_v1",
|
||||
"source_control_ref_truth_owner_response_v1",
|
||||
"source_control_workflow_secret_name_owner_response_v1",
|
||||
"owner_response_validation_received_count=0",
|
||||
"owner_response_validation_accepted_count=0",
|
||||
"owner_response_validation_rejected_count=0",
|
||||
"run_detail_owner_response_linked=false",
|
||||
"run_detail_approval_record_created=false",
|
||||
"mcp_execution_authorized=false",
|
||||
"remediation_execution_authorized=false",
|
||||
"platform_run_creation_authorized=false",
|
||||
"execution_router_linked=false",
|
||||
"repo_creation_authorized=false",
|
||||
"refs_sync_authorized=false",
|
||||
"workflow_modification_authorized=false",
|
||||
"secret_value_collection_allowed=false",
|
||||
"github_primary_switch_authorized=false",
|
||||
"runtime_execution_authorized=false",
|
||||
"action_buttons_allowed=false",
|
||||
]:
|
||||
assert_text_contains("awooop_run_detail_page.owner_response_validation_detail_boundary", awooop_run_detail_page, text)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
"badge",
|
||||
"openIwooos",
|
||||
"detailRefsTitle",
|
||||
"boundaryLabel",
|
||||
"boundaryTitle",
|
||||
"boundaryDetail",
|
||||
"metrics",
|
||||
"detailRefs",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.awooop.runDetail.ownerResponseValidationDetailBoundary",
|
||||
list(web_messages_zh["awooop"]["runDetail"]["ownerResponseValidationDetailBoundary"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.awooop.runDetail.ownerResponseValidationDetailBoundary",
|
||||
list(web_messages_en["awooop"]["runDetail"]["ownerResponseValidationDetailBoundary"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"validationRollup",
|
||||
"giteaAttestation",
|
||||
"githubTarget",
|
||||
"refsTruth",
|
||||
"workflowSecret",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.awooop.runDetail.ownerResponseValidationDetailBoundary.detailRefs",
|
||||
list(web_messages_zh["awooop"]["runDetail"]["ownerResponseValidationDetailBoundary"]["detailRefs"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.awooop.runDetail.ownerResponseValidationDetailBoundary.detailRefs",
|
||||
list(web_messages_en["awooop"]["runDetail"]["ownerResponseValidationDetailBoundary"]["detailRefs"].keys()),
|
||||
key,
|
||||
)
|
||||
|
||||
assert_text_contains("awooop_approvals_page.security_owner_response_panel", awooop_approvals_page, "SecurityOwnerResponseGatePanel")
|
||||
assert_text_contains("awooop_approvals_page.iwooos_link", awooop_approvals_page, 'href="/iwooos"')
|
||||
for text in [
|
||||
|
||||
Reference in New Issue
Block a user