feat(web): show owner response human decision queue

This commit is contained in:
Your Name
2026-05-21 18:04:29 +08:00
parent 13ca0bd0df
commit 956fa9a9a6
8 changed files with 418 additions and 3 deletions

View File

@@ -333,6 +333,7 @@ def validate(root: Path) -> None:
"s2_82_iwooos_owner_response_collection_board",
"s2_83_iwooos_owner_response_intake_safety_board",
"s2_84_iwooos_owner_response_review_outcome_board",
"s2_85_iwooos_owner_response_human_decision_queue_board",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -512,6 +513,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_owner_response_review_outcome_board",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_owner_response_human_decision_queue_board",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -6669,6 +6675,41 @@ def validate(root: Path) -> None:
"github_primary_switch_authorized=false",
]:
assert_text_contains("iwooos_page.owner_response_review_outcome_boundary", iwooos_projection_page, text)
assert_text_contains(
"iwooos_page.owner_response_human_decision_queue_items",
iwooos_projection_page,
"ownerResponseHumanDecisionQueueItems",
)
assert_text_contains(
"iwooos_page.owner_response_human_decision_queue_testid",
iwooos_projection_page,
'data-testid="iwooos-owner-response-human-decision-queue-board"',
)
assert_text_contains(
"iwooos_page.owner_response_human_decision_queue_component",
iwooos_projection_page,
"OwnerResponseHumanDecisionQueueBoard",
)
for text in [
"owner_response_human_decision_queue_item_count=6",
"owner_response_human_decision_ready_count=0",
"owner_response_human_decision_approved_count=0",
"owner_response_human_decision_runtime_gate_count=0",
"owner_response_human_decision_record_created=false",
"owner_response_human_decision_auto_approval_allowed=false",
"owner_response_human_decision_requires_reviewer=true",
"owner_response_human_decision_only_prepares_packet=true",
"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",
"github_primary_switch_authorized=false",
"gitea_disablement_authorized=false",
]:
assert_text_contains("iwooos_page.owner_response_human_decision_queue_boundary", iwooos_projection_page, text)
for key in [
"title",
"subtitle",
@@ -6961,6 +7002,46 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["ownerResponseReviewOutcomeBoard"]["items"].keys()),
key,
)
for key in ["title", "subtitle", "queueLabel", "prepLabel", "guardLabel", "boundaryTitle", "summary", "items"]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseHumanDecisionQueueBoard",
list(web_messages_zh["iwooos"]["ownerResponseHumanDecisionQueueBoard"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseHumanDecisionQueueBoard",
list(web_messages_en["iwooos"]["ownerResponseHumanDecisionQueueBoard"].keys()),
key,
)
for key in ["queueItems", "ready", "approved", "runtime"]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseHumanDecisionQueueBoard.summary",
list(web_messages_zh["iwooos"]["ownerResponseHumanDecisionQueueBoard"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseHumanDecisionQueueBoard.summary",
list(web_messages_en["iwooos"]["ownerResponseHumanDecisionQueueBoard"]["summary"].keys()),
key,
)
for key in [
"decisionPacketDraft",
"evidenceTraceBundle",
"reviewerAssignment",
"rollbackWindowCandidate",
"runtimeGateSeparated",
"sourceControlCutoverSeparated",
]:
assert_contains(
"web_messages.zh-TW.iwooos.ownerResponseHumanDecisionQueueBoard.items",
list(web_messages_zh["iwooos"]["ownerResponseHumanDecisionQueueBoard"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.ownerResponseHumanDecisionQueueBoard.items",
list(web_messages_en["iwooos"]["ownerResponseHumanDecisionQueueBoard"]["items"].keys()),
key,
)
owner_summary = owner_rollup["summary"]
assert_equal("owner_rollup.total_received_response_count", owner_summary["total_received_response_count"], 0)