diff --git a/scripts/smoke_frame_render.py b/scripts/smoke_frame_render.py index b8e7ee9..bfe9926 100644 --- a/scripts/smoke_frame_render.py +++ b/scripts/smoke_frame_render.py @@ -280,6 +280,17 @@ SELF_CHECK_FIXTURES: dict[str, dict] = { "emphasis_3_label": "실무 적용 불가", "emphasis_3_body": [{"text": "특수성 반영 어려움", "indent": 0}], }, + "bim_current_problems_paired": { + "title": "현황 및 문제점", + "issue_1_label": "개념 부재", + "issue_1_body": [{"text": "CAD 확장판 오인", "indent": 0}], + "issue_2_label": "잘못된 접근방식", + "issue_2_body": [{"text": "도구로만 인식", "indent": 0}], + "issue_3_label": "방향성 상실", + "issue_3_body": [{"text": "대형 S/W 의존", "indent": 0}], + "issue_4_label": "전제조건 오류", + "issue_4_body": [{"text": "건축·토목 혼용", "indent": 0}], + }, } diff --git a/templates/phase_z2/catalog/frame_contracts.yaml b/templates/phase_z2/catalog/frame_contracts.yaml index f489c73..46723cb 100644 --- a/templates/phase_z2/catalog/frame_contracts.yaml +++ b/templates/phase_z2/catalog/frame_contracts.yaml @@ -632,3 +632,71 @@ sw_reality_three_emphasis: body_key_pattern: "emphasis_{n}_body" empty_label: "" empty_body: [] + + +bim_current_problems_paired: + # Reason : V4 RS=1 (4 MDX sample 안 restructure 1). 32-frame all-in scope — + # **catalog-completeness activation** (NOT V4 endorsement — V4 신호 유효 단 restructure + # tier 이며 직접 use_as_is/light_edit 추천 없음). + # Pattern : cards/paired-rows-2x2 — 4 problem cards in 2x2 grid (BIM 수행 4 문제). + # Track A frame 8. Builder 재사용 = `quadrant_flat_slots` (F16 pattern, pad_to=4). + template_id: bim_current_problems_paired + frame_id: 1171281194 + family: cards + + source_shape: top_bullets + cardinality: + strict: 4 # 4 issues (2x2 grid) + overflow_policy: abort_or_review + + role_order: + - issue_1 + - issue_2 + - issue_3 + - issue_4 + + # min_height_px : F16 (quadrant 4) 와 동등 class. + # 2 row × 2 col × (label 24 + body 60) + title 30 + gaps + padding = ~280 + buffer 70 = **350**. + visual_hints: + min_height_px: 350 + + accepted_content_types: + - text_block + + sub_zones: + - id: issue_1 + role: main_text + accepts: [text_block] + cardinality: { strict: 1 } + partial_target_path: ".f17b__grid > .f17b__cell:nth-child(1)" + - id: issue_2 + role: main_text + accepts: [text_block] + cardinality: { strict: 1 } + partial_target_path: ".f17b__grid > .f17b__cell:nth-child(2)" + - id: issue_3 + role: main_text + accepts: [text_block] + cardinality: { strict: 1 } + partial_target_path: ".f17b__grid > .f17b__cell:nth-child(3)" + - id: issue_4 + role: main_text + accepts: [text_block] + cardinality: { strict: 1 } + partial_target_path: ".f17b__grid > .f17b__cell:nth-child(4)" + + payload: + title: + source: section.title + # Builder 재사용 = `quadrant_flat_slots` (F16 pattern, pad_to=4). + # F16 = TL/TR/BL/BR quadrant. F17 = paired-rows-2x2 (top-left/top-right/bottom-left/bottom-right). + # 차이 = key prefix only ("quadrant_N" vs "issue_N"). partial layout 동일 2x2 grid. + builder: quadrant_flat_slots + builder_options: + item_parser: quadrant_item # 재사용 + pad_to: 4 + truncate_at: 4 + label_key_pattern: "issue_{n}_label" + body_key_pattern: "issue_{n}_body" + empty_label: "" + empty_body: [] diff --git a/templates/phase_z2/families/bim_current_problems_paired.html b/templates/phase_z2/families/bim_current_problems_paired.html new file mode 100644 index 0000000..023b278 --- /dev/null +++ b/templates/phase_z2/families/bim_current_problems_paired.html @@ -0,0 +1,137 @@ + +{# +───────────────────────────────────────────────────────────────────────────── +Frame 17 = "현황 및 문제점" (cards/paired-rows-2x2). 4 problem cards in 2x2 grid. +Track A frame 8 (V4 RS=1 — restructure tier, V4 catalog-completeness 정합). +Builder 재사용 = `quadrant_flat_slots` (F16 pattern, pad_to=4) + `issue_{n}_*` keys. + +PROMOTED CSS : per-issue warning theme (4 distinct color tints), title gradient. +NOT PROMOTED : Figma source decoration / banner / texture / numbered badges — figma_to_html 보존. +ADAPTED : Figma absolute → 2x2 CSS grid + token-fixed typography. + +slots : title, issue_1/2/3/4_label, issue_1/2/3/4_body. +#} + + + +