feat(web): add iwooos supplement path

This commit is contained in:
Your Name
2026-05-24 16:49:17 +08:00
parent ccafbb9cdd
commit 46ed8a9b3c
8 changed files with 380 additions and 2 deletions

View File

@@ -368,6 +368,7 @@ def validate(root: Path) -> None:
"s2_114_iwooos_first_progress_unlock_path",
"s2_115_iwooos_first_unlock_evidence_packet",
"s2_116_iwooos_first_unlock_evidence_packet_preflight_outcomes",
"s2_117_iwooos_first_unlock_evidence_packet_supplement_path",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -672,6 +673,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_preflight_outcomes",
)
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_supplement_path",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
@@ -8815,6 +8821,94 @@ def validate(root: Path) -> None:
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketPreflightOutcomes"]["items"].keys()),
key,
)
assert_text_contains(
"iwooos_page.first_unlock_evidence_packet_supplement_path_testid",
iwooos_projection_page,
'data-testid="iwooos-first-unlock-evidence-packet-supplement-path-board"',
)
assert_text_contains(
"iwooos_page.first_unlock_evidence_packet_supplement_path_component",
iwooos_projection_page,
"IwoooSFirstUnlockEvidencePacketSupplementPathBoard",
)
for text in [
"iwooos_first_unlock_evidence_packet_supplement_path_step_count=5",
"iwooos_first_unlock_evidence_packet_supplement_current_focus=owner_metadata_and_scope_refs",
"iwooos_first_unlock_evidence_packet_supplement_ready_count=0",
"iwooos_first_unlock_evidence_packet_supplement_submitted_count=0",
"iwooos_first_unlock_evidence_packet_supplement_accepted_count=0",
"iwooos_first_unlock_evidence_packet_supplement_blocked_count=0",
"iwooos_first_unlock_evidence_packet_supplement_quarantined_count=0",
"iwooos_first_unlock_evidence_packet_supplement_request_sent=false",
"iwooos_first_unlock_evidence_packet_supplement_raw_payload_allowed=false",
"iwooos_first_unlock_evidence_packet_supplement_secret_value_allowed=false",
"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_supplement_path_boundary",
iwooos_projection_page,
text,
)
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPath",
list(web_messages_zh["iwooos"].keys()),
"firstUnlockEvidencePacketSupplementPath",
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPath",
list(web_messages_en["iwooos"].keys()),
"firstUnlockEvidencePacketSupplementPath",
)
for key in ["title", "subtitle", "summary", "items", "stepLabel", "boundaryTitle", "boundaryIntro"]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPath.keys",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPath"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPath.keys",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPath"].keys()),
key,
)
for key in ["steps", "ready", "submitted", "accepted"]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPath.summary",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPath"]["summary"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPath.summary",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPath"]["summary"].keys()),
key,
)
for key in [
"ownerMetadataPatch",
"scopeRefsPatch",
"redactionPatch",
"preflightTracePatch",
"reviewerQueuePatch",
]:
assert_contains(
"web_messages.zh-TW.iwooos.firstUnlockEvidencePacketSupplementPath.items",
list(web_messages_zh["iwooos"]["firstUnlockEvidencePacketSupplementPath"]["items"].keys()),
key,
)
assert_contains(
"web_messages.en.iwooos.firstUnlockEvidencePacketSupplementPath.items",
list(web_messages_en["iwooos"]["firstUnlockEvidencePacketSupplementPath"]["items"].keys()),
key,
)
for key in [
"title",
"subtitle",