feat(web): add s49 preflight outcome

This commit is contained in:
Your Name
2026-05-24 12:56:21 +08:00
parent e064776272
commit a6faac2889
8 changed files with 442 additions and 2 deletions

View File

@@ -352,6 +352,7 @@ def validate(root: Path) -> None:
"s2_101_iwooos_s49_owner_response_work_order_board",
"s2_102_iwooos_s49_owner_response_envelope_board",
"s2_103_iwooos_s49_owner_response_envelope_preflight_board",
"s2_104_iwooos_s49_owner_response_envelope_preflight_outcome_board",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -7719,6 +7720,90 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["s49OwnerResponseEnvelopePreflight"]["items"].keys()),
key,
)
assert_text_contains(
"iwooos_page.s49_owner_response_envelope_preflight_outcome_lanes",
iwooos_projection_page,
"s49OwnerResponseEnvelopePreflightOutcomeLanes",
)
assert_text_contains(
"iwooos_page.s49_owner_response_envelope_preflight_outcome_testid",
iwooos_projection_page,
'data-testid="iwooos-s49-owner-response-envelope-preflight-outcome-board"',
)
assert_text_contains(
"iwooos_page.s49_owner_response_envelope_preflight_outcome_component",
iwooos_projection_page,
"S49OwnerResponseEnvelopePreflightOutcomeBoard",
)
for text in [
"s4_9_owner_response_envelope_preflight_outcome_lane_count=7",
"s4_9_owner_response_envelope_preflight_ready_for_intake_count=0",
"s4_9_owner_response_envelope_preflight_quarantined_count=0",
"s4_9_owner_response_envelope_preflight_rejected_count=0",
"s4_9_owner_response_envelope_submitted_count=0",
"s4_9_owner_response_envelope_accepted_count=0",
"s4_9_owner_response_request_sent=false",
"s4_9_owner_response_received_count=0",
"s4_9_owner_response_accepted_count=0",
"owner_response_acceptance_gate_open=false",
"audit_events_emitted=0",
"progress_review_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.s49_owner_response_envelope_preflight_outcome_boundary",
iwooos_projection_page,
text,
)
assert_contains(
"web_messages.zh-TW.iwooos.s49OwnerResponseEnvelopePreflightOutcome",
list(web_messages_zh["iwooos"].keys()),
"s49OwnerResponseEnvelopePreflightOutcome",
)
assert_contains(
"web_messages.en.iwooos.s49OwnerResponseEnvelopePreflightOutcome",
list(web_messages_en["iwooos"].keys()),
"s49OwnerResponseEnvelopePreflightOutcome",
)
for key in ["title", "subtitle", "summary", "items", "boundaryTitle"]:
assert_contains(
"web_messages.zh-TW.iwooos.s49OwnerResponseEnvelopePreflightOutcome.keys",
list(web_messages_zh["iwooos"]["s49OwnerResponseEnvelopePreflightOutcome"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.s49OwnerResponseEnvelopePreflightOutcome.keys",
list(web_messages_en["iwooos"]["s49OwnerResponseEnvelopePreflightOutcome"].keys()),
key,
)
for key in [
"keepEnvelopeWaiting",
"requestFieldCompletion",
"requestDispositionCorrection",
"quarantineSensitiveEvidence",
"requestScopeCorrection",
"rejectMutationRequest",
"keepFollowupOwnerWaiting",
]:
assert_contains(
"web_messages.zh-TW.iwooos.s49OwnerResponseEnvelopePreflightOutcome.items",
list(web_messages_zh["iwooos"]["s49OwnerResponseEnvelopePreflightOutcome"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.s49OwnerResponseEnvelopePreflightOutcome.items",
list(web_messages_en["iwooos"]["s49OwnerResponseEnvelopePreflightOutcome"]["items"].keys()),
key,
)
for key in [
"title",
"subtitle",