feat(web): show IwoooS run state in AwoooP
This commit is contained in:
@@ -64,6 +64,9 @@ def validate(root: Path) -> None:
|
||||
awooop_tenants_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "awooop" / "tenants" / "page.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
awooop_runs_page = (
|
||||
root / "apps" / "web" / "src" / "app" / "[locale]" / "awooop" / "runs" / "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")
|
||||
@@ -231,6 +234,7 @@ def validate(root: Path) -> None:
|
||||
"s2_55_awooop_approvals_iwooos_owner_response_gate_candidate",
|
||||
"s2_56_awooop_contracts_iwooos_security_contract_candidate",
|
||||
"s2_57_awooop_tenants_iwooos_tenant_scope_candidate",
|
||||
"s2_58_awooop_runs_iwooos_run_state_candidate",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -285,6 +289,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_awooop_tenants_iwooos_tenant_scope_candidate",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_awooop_runs_iwooos_run_state_candidate",
|
||||
)
|
||||
|
||||
assert_equal("rollout_policy.schema_version", rollout_policy["schema_version"], "security_rollout_policy_v1")
|
||||
assert_equal("rollout_policy.default_mode", rollout_policy["default_mode"], "observe")
|
||||
@@ -4919,6 +4928,49 @@ def validate(root: Path) -> None:
|
||||
key,
|
||||
)
|
||||
|
||||
assert_text_contains(
|
||||
"awooop_runs_page.security_run_state_panel",
|
||||
awooop_runs_page,
|
||||
"SecurityRunStateCandidatePanel",
|
||||
)
|
||||
assert_text_contains("awooop_runs_page.iwooos_link", awooop_runs_page, 'href="/iwooos"')
|
||||
for text in [
|
||||
"security_run_created=false",
|
||||
"execution_router_linked=false",
|
||||
"runtime_execution_authorized=false",
|
||||
"action_buttons_allowed=false",
|
||||
]:
|
||||
assert_text_contains("awooop_runs_page.security_run_boundary", awooop_runs_page, text)
|
||||
for text in [
|
||||
"security_mirror_run_state_candidate",
|
||||
"read_only_dry_run_only",
|
||||
"S4.9-S4.12 owner response waiting",
|
||||
"active runtime gates 0",
|
||||
]:
|
||||
assert_text_contains("awooop_runs_page.security_run_refs", awooop_runs_page, text)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
"badge",
|
||||
"runRefsTitle",
|
||||
"boundaryLabel",
|
||||
"boundaryTitle",
|
||||
"boundaryDetail",
|
||||
"openIwooos",
|
||||
"metrics",
|
||||
"runRefs",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.awooop.runs.securityRunStateCandidate",
|
||||
list(web_messages_zh["awooop"]["runs"]["securityRunStateCandidate"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.awooop.runs.securityRunStateCandidate",
|
||||
list(web_messages_en["awooop"]["runs"]["securityRunStateCandidate"].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