feat(web): route owner decision record outcomes
This commit is contained in:
@@ -336,6 +336,7 @@ def validate(root: Path) -> None:
|
||||
"s2_85_iwooos_owner_response_human_decision_queue_board",
|
||||
"s2_86_iwooos_owner_response_decision_record_draft_guard_board",
|
||||
"s2_87_iwooos_owner_response_formal_record_candidate_preflight_board",
|
||||
"s2_88_iwooos_owner_response_formal_record_candidate_outcome_board",
|
||||
]
|
||||
assert_equal(
|
||||
"progress_delta_ledger.delta_ids",
|
||||
@@ -530,6 +531,11 @@ def validate(root: Path) -> None:
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
"show_iwooos_owner_response_formal_record_candidate_preflight_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_formal_record_candidate_outcome_board",
|
||||
)
|
||||
assert_contains(
|
||||
"rollup.next_safe_actions.action_ids",
|
||||
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
|
||||
@@ -6801,6 +6807,49 @@ def validate(root: Path) -> None:
|
||||
iwooos_projection_page,
|
||||
text,
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.owner_response_formal_record_candidate_outcome_lanes",
|
||||
iwooos_projection_page,
|
||||
"ownerResponseFormalRecordCandidateOutcomeLanes",
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.owner_response_formal_record_candidate_outcome_testid",
|
||||
iwooos_projection_page,
|
||||
'data-testid="iwooos-owner-response-formal-record-candidate-outcome-board"',
|
||||
)
|
||||
assert_text_contains(
|
||||
"iwooos_page.owner_response_formal_record_candidate_outcome_component",
|
||||
iwooos_projection_page,
|
||||
"OwnerResponseFormalRecordCandidateOutcomeBoard",
|
||||
)
|
||||
for text in [
|
||||
"owner_response_formal_record_candidate_outcome_lane_count=8",
|
||||
"owner_response_formal_record_candidate_ready_count=0",
|
||||
"owner_response_formal_record_candidate_returned_count=0",
|
||||
"owner_response_formal_record_candidate_quarantine_count=0",
|
||||
"owner_response_formal_record_candidate_rejected_count=0",
|
||||
"owner_response_formal_record_candidate_promoted_count=0",
|
||||
"owner_response_formal_record_candidate_review_only=true",
|
||||
"owner_response_formal_record_auto_promotion_allowed=false",
|
||||
"owner_response_formal_record_write_authorized=false",
|
||||
"owner_response_formal_record_approval_authorized=false",
|
||||
"owner_response_formal_record_execution_authorized=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.owner_response_formal_record_candidate_outcome_boundary",
|
||||
iwooos_projection_page,
|
||||
text,
|
||||
)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
@@ -7232,6 +7281,57 @@ def validate(root: Path) -> None:
|
||||
list(web_messages_en["iwooos"]["ownerResponseFormalRecordCandidatePreflightBoard"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"title",
|
||||
"subtitle",
|
||||
"laneLabel",
|
||||
"resultLabel",
|
||||
"guardLabel",
|
||||
"boundaryTitle",
|
||||
"summary",
|
||||
"items",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard",
|
||||
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard",
|
||||
list(web_messages_en["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in ["lanes", "ready", "promoted", "runtime"]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard.summary",
|
||||
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard.summary",
|
||||
list(web_messages_en["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"]["summary"].keys()),
|
||||
key,
|
||||
)
|
||||
for key in [
|
||||
"remainCandidateWaiting",
|
||||
"returnToDraft",
|
||||
"needsEvidenceRefresh",
|
||||
"needsReviewerClarification",
|
||||
"readyForRecordOwner",
|
||||
"quarantineSensitivePayload",
|
||||
"rejectMutationRequest",
|
||||
"runtimeOrCutoverGateRequired",
|
||||
]:
|
||||
assert_contains(
|
||||
"web_messages.zh-TW.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard.items",
|
||||
list(web_messages_zh["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
assert_contains(
|
||||
"web_messages.en.iwooos.ownerResponseFormalRecordCandidateOutcomeBoard.items",
|
||||
list(web_messages_en["iwooos"]["ownerResponseFormalRecordCandidateOutcomeBoard"]["items"].keys()),
|
||||
key,
|
||||
)
|
||||
|
||||
owner_summary = owner_rollup["summary"]
|
||||
assert_equal("owner_rollup.total_received_response_count", owner_summary["total_received_response_count"], 0)
|
||||
|
||||
Reference in New Issue
Block a user