feat(web): add iwooos evidence preflight

This commit is contained in:
Your Name
2026-05-24 16:33:57 +08:00
parent 878674379d
commit ccafbb9cdd
8 changed files with 382 additions and 2 deletions

View File

@@ -367,6 +367,7 @@ def validate(root: Path) -> None:
"s2_113_iwooos_progress_movement_signal_strip",
"s2_114_iwooos_first_progress_unlock_path",
"s2_115_iwooos_first_unlock_evidence_packet",
"s2_116_iwooos_first_unlock_evidence_packet_preflight_outcomes",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -666,6 +667,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_first_unlock_evidence_packet",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_iwooos_first_unlock_evidence_packet_preflight_outcomes",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -8724,6 +8730,91 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["firstUnlockEvidencePacket"]["items"].keys()),
key,
)
assert_text_contains(
"iwooos_page.first_unlock_evidence_packet_preflight_outcome_testid",
iwooos_projection_page,
'data-testid="iwooos-first-unlock-evidence-packet-preflight-outcome-board"',
)
assert_text_contains(
"iwooos_page.first_unlock_evidence_packet_preflight_outcome_component",
iwooos_projection_page,
"IwoooSFirstUnlockEvidencePacketPreflightOutcomeBoard",
)
for text in [
"iwooos_first_unlock_evidence_packet_preflight_outcome_lane_count=6",
"iwooos_first_unlock_evidence_packet_preflight_ready_for_review_count=0",
"iwooos_first_unlock_evidence_packet_preflight_needs_supplement_count=0",
"iwooos_first_unlock_evidence_packet_preflight_quarantined_count=0",
"iwooos_first_unlock_evidence_packet_preflight_rejected_count=0",
"iwooos_first_unlock_evidence_packet_review_accepted_count=0",
"iwooos_first_unlock_evidence_packet_headline_review_authorized=false",
"iwooos_first_unlock_evidence_packet_runtime_gate_opened=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.first_unlock_evidence_packet_preflight_outcome_boundary",
iwooos_projection_page,
text,
)
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketPreflightOutcomes",
list(web_messages_zh["iwooos"].keys()),
"firstUnlockEvidencePacketPreflightOutcomes",
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketPreflightOutcomes",
list(web_messages_en["iwooos"].keys()),
"firstUnlockEvidencePacketPreflightOutcomes",
)
for key in ["title", "subtitle", "summary", "items", "laneLabel", "boundaryTitle", "boundaryIntro"]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketPreflightOutcomes.keys",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketPreflightOutcomes.keys",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"].keys()),
key,
)
for key in ["lanes", "ready", "quarantine", "accepted"]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketPreflightOutcomes.summary",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketPreflightOutcomes.summary",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"]["summary"].keys()),
key,
)
for key in [
"readyForReview",
"needsOwnerMetadata",
"needsScopeRefs",
"quarantineRawPayload",
"rejectSecretValue",
"waitingReviewer",
]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketPreflightOutcomes.items",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketPreflightOutcomes.items",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"]["items"].keys()),
key,
)
for key in [
"title",
"subtitle",