feat(B06): 종단면도 구조물 라벨도 배수관 표기로 통일

관종·관경(`파형강관 D1200`) 대신 `배수관` 을 적음 — 횡단 카드와 같은 규칙.
판정을 `structureDisplayName()`(`_UI_Section_Common`) 한 곳으로 모아 두 렌더러가
같은 문자열을 쓰게 함. 저장 라벨은 그대로 — 재진입 이관이 라벨로 종류를 되짚음.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-03 19:35:21 +09:00
co-authored by Claude Opus 5
parent f772401b06
commit b908a0b10d
3 changed files with 24 additions and 8 deletions
@@ -6,8 +6,6 @@
* 만든다. 여기 있는 것은 전부 **읽어서 붙이는 값**이라 카드 상태(줌·선택)를 건드리지 않는다.
* ========================================================================== */
import { PIPE_TYPES } from "@config/config_frontend";
import { PIPE_DISPLAY_NAME } from "../B05_Profile/B05_Profile_UI_IrregularStations";
import type { CrossSection } from "./B06_Section_Api_Fetch";
import type { RockBoundaryControl } from "./B06_Section_UI_Cross_Design";
import {
@@ -16,7 +14,12 @@ import {
sectionModeLabel,
} from "./B06_Section_UI_Cross_Design";
import { type FillSlopeLength, fillSlopeLengths } from "./B06_Section_UI_Cross_Fit";
import { type DesignChangeHandler, L, stationLabel } from "./B06_Section_UI_Section_Common";
import {
type DesignChangeHandler,
L,
stationLabel,
structureDisplayName,
} from "./B06_Section_UI_Section_Common";
/**
* 성토사면 경사길이 표기 칸 — 성토측이 없으면 null.
@@ -87,10 +90,8 @@ export function appendCardHeader(
const structure = document.createElement("span");
structure.className = "b06-cross-card__structure";
// 배수관은 관종·관경(`파형강관 D1200`)이 아니라 표시 이름 하나로 적는다
// (2026-09-03 사용자 지시 — 2026-08-17 확정한 `PIPE_DISPLAY_NAME` 규칙과 같다).
// 관종·관경은 툴팁에 남긴다.
const isPipe = PIPE_TYPES.some((kind) => structureName.startsWith(`${kind} D`));
structure.textContent = isPipe ? PIPE_DISPLAY_NAME : structureName;
// (2026-09-03 사용자 지시). 관종·관경은 툴팁에 남긴다.
structure.textContent = structureDisplayName(structureName);
structure.title = `구조물: ${structureName}`;
meta.append(structure);
}