merge: sub_laptop_5 52-14 — 충돌(이름 줄 꼴 표 tag) = 메인 쪽(text · bool 다 있음) · 겹친 text 키 하나 뺌

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FJqWQpoB1RE7hiaQ2wH8qV
This commit is contained in:
2026-10-06 00:11:32 +09:00
co-authored by Claude Opus 5.5
11 changed files with 234 additions and 18 deletions
+5 -1
View File
@@ -90,8 +90,11 @@ def collect_items(
한 건 = `{type_id, placement, chainage_m, start_m, end_m, options, 관연장, summary_item,
복사본}` ·
`복사본` = 그 구조물 집계 항목 복사본 폴더의 구조물 id(관 지점은 `pipe@측점` · 26-2b).
`복사본` = 그 구조물 집계 항목 복사본 폴더의 구조물 id(관 지점은 `pipe@측점` · 26-2b) ·
기타는 `그룹` = 사용자가 적은 상세 종류 이름(52-14).
"""
from M02_MasterTemplete.M02_Table_Fill_Spec import etc_label
types = types or structure_type_map()
lengths = pipe_lengths or {}
items: list[dict[str, Any]] = []
@@ -111,6 +114,7 @@ def collect_items(
"summary_item": item.summary_item,
"복사본": item.structure_id or f"#{index}",
"group_items": item.group_items,
**etc_label(item.type_id, item.options),
}
)
for point in read_pipe_points_file(pipe_points_path_in(Path(project_root))):
+13 -3
View File
@@ -4,7 +4,9 @@
집계 항목 = 잇기 `group_items[{잇기}{n}]` · 복사본 `{구조물 id}__{잇기}{n}` · 옵션 = 그 컨테이너 값.
열 바인딩이 읽는 칸이 갈래마다 달라(독립 기슭막이 `form` · `length_m` … · 관 `{유입|유출}_revet_*`)
컨테이너 값을 그 칸들에 함께 얹음 — 어느 출처로 읽어도 그 컨테이너 값.
짝: `A00_Common/design/design_structure_pipe.ts` 선택 컨테이너(머리 · 잇기 · 제목) — 시험이 대조.
짝: `A00_Common/design/design_structure_pipe.ts` · `_road.ts` 선택 컨테이너(머리 · 잇기 · 제목) —
시험이 대조.
기타(52-14) = 사용자가 적은 상세 종류 이름이 집계 건 이름(`그룹`) · 비면 「기타」.
"""
from __future__ import annotations
@@ -20,8 +22,16 @@ SPEC_CONTAINERS: dict[str, tuple[tuple[str, str, str], ...]] = {
("soil_add", "gsoiladd", "흙막이 추가"),
("chute_add", "gchuteadd", "도수로/돌붙임"),
),
"etc": (("etc_detail", "getcdetail", "상세 내용"),),
}
_TEXT = ("structure", "form")
_TEXT = ("structure", "form", "note")
def etc_label(type_id: str, options: dict[str, Any] | None) -> dict[str, str]:
"""기타 집계 건 이름 `{그룹: 상세 종류 이름}`(비면 「기타」) — 다른 종류는 빈 묶음."""
if type_id != "etc":
return {}
return {"그룹": str((options or {}).get("name") or "").strip() or "기타"}
def _as_options(values: dict[str, Any]) -> dict[str, Any]:
@@ -57,7 +67,7 @@ def container_rows(item: dict[str, Any], links: dict[str, Any]) -> list[dict[str
"options": {**item["options"], **_as_options(found[n])},
"summary_item": links.get(gid),
"복사본": f"{item['복사본']}{GROUP_JOIN}{gid}",
"그룹": f"{title} {n}",
"그룹": f"{item.get('그룹', title)} {n}",
}
)
return rows
@@ -28,8 +28,8 @@ const TAG: Record<NonNullable<SpecNameRow["tag"]>, OptionsTextKey> = {
optional: "SpecOptional",
select: "FormSelect",
number: "FormNumber",
auto: "FormAuto",
text: "FormText",
auto: "FormAuto",
bool: "FormBool",
};