feat(B06): 횡단 카드 구조물 pill 을 배수관 표기로 통일
관종·관경(`파형강관 D1200`) 대신 표시 이름 `배수관` 하나만 적음 — 2026-08-17 확정한 `PIPE_DISPLAY_NAME` 규칙과 같은 표기. 관종·관경은 툴팁에 남김. 판정은 `PIPE_TYPES` 목록으로 하고 저장 라벨은 손대지 않음 — 재진입 이관이 라벨 문자열로 구조물 종류를 되짚기 때문임. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
* 만든다. 여기 있는 것은 전부 **읽어서 붙이는 값**이라 카드 상태(줌·선택)를 건드리지 않는다.
|
* 만든다. 여기 있는 것은 전부 **읽어서 붙이는 값**이라 카드 상태(줌·선택)를 건드리지 않는다.
|
||||||
* ========================================================================== */
|
* ========================================================================== */
|
||||||
|
|
||||||
|
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 { CrossSection } from "./B06_Section_Api_Fetch";
|
||||||
import type { RockBoundaryControl } from "./B06_Section_UI_Cross_Design";
|
import type { RockBoundaryControl } from "./B06_Section_UI_Cross_Design";
|
||||||
import {
|
import {
|
||||||
@@ -80,11 +82,16 @@ export function appendCardHeader(
|
|||||||
openSlope.title = L("B06_Cross_SlopeUnclosed_Tip");
|
openSlope.title = L("B06_Cross_SlopeUnclosed_Tip");
|
||||||
meta.append(openSlope);
|
meta.append(openSlope);
|
||||||
}
|
}
|
||||||
if (section.structure) {
|
const structureName = section.structure;
|
||||||
|
if (structureName) {
|
||||||
const structure = document.createElement("span");
|
const structure = document.createElement("span");
|
||||||
structure.className = "b06-cross-card__structure";
|
structure.className = "b06-cross-card__structure";
|
||||||
structure.textContent = section.structure;
|
// 배수관은 관종·관경(`파형강관 D1200`)이 아니라 표시 이름 하나로 적는다
|
||||||
structure.title = `구조물: ${section.structure}`;
|
// (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;
|
||||||
|
structure.title = `구조물: ${structureName}`;
|
||||||
meta.append(structure);
|
meta.append(structure);
|
||||||
}
|
}
|
||||||
// 측점 종류는 시·종점(BP/EP)만 적는다 — "일반측점"은 대다수라 정보가 없다(2026-08-02 사용자 지시).
|
// 측점 종류는 시·종점(BP/EP)만 적는다 — "일반측점"은 대다수라 정보가 없다(2026-08-02 사용자 지시).
|
||||||
|
|||||||
Reference in New Issue
Block a user