From 399c3a11eaccf558b08a4a78e8cf187e3a793893 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Tue, 29 Sep 2026 19:40:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(B05):=20=EB=85=B8=EC=84=A0=20=EC=B6=94?= =?UTF-8?q?=EC=B2=9C=20=E2=80=94=20=EC=95=8C=EC=95=BD=20=EC=9D=B4=EB=A6=84?= =?UTF-8?q?=20=E3=80=8C=EA=B8=B0=EC=9A=B8=EA=B8=B0=20=EC=88=9C=ED=95=9C?= =?UTF-8?q?=E3=80=8D=20=C2=B7=20=EC=A0=81=EC=9A=A9=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EA=B8=80=20=EB=8B=A4=EB=93=AC=EC=9D=8C=20=C2=B7=20=EB=8F=84?= =?UTF-8?q?=EA=B5=AC=20=EB=A7=89=EB=8C=80=20=EA=B5=AC=EC=84=B1=20=EC=8B=9C?= =?UTF-8?q?=ED=97=98=20=EC=B6=94=EA=B0=80=20(PLAN=2023-2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_019BVZd1M6WUf1YEy9gbAE1G --- .../B05_Profile_UI_RouteEdit_Initial.ts | 2 +- .../B05_Profile_UI_RouteEdit_Initial_Model.ts | 2 +- .../tester/test_b05_routeedit_initial.py | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts index 5e989147..2545db0e 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Initial.ts @@ -137,7 +137,7 @@ export function createInitialPanel(params: InitialPanelParams): InitialPanel { render(); params.apply( copy(picked.snapshot), - `추천을 「${choiceLabel(picked.logic, picked.weights)}」로 바꿨습니다 — 다시 계산은 [확인]에서.`, + `노선 추천 「${choiceLabel(picked.logic, picked.weights)}」 적용 — 다시 계산은 [확인]에서.`, ); }, }); diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts index 3fdf7292..a8ad81c6 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Initial_Model.ts @@ -18,7 +18,7 @@ type Vertex = [number, number]; export const LOGIC_LABEL: Record = { follow: "예상노선 추적", earthwork: "토공 최소", - gentle: "기울기 순한 노선", + gentle: "기울기 순한", weighted: "비중 계산", }; diff --git a/resources/tester/test_b05_routeedit_initial.py b/resources/tester/test_b05_routeedit_initial.py index 4b1d1b4d..5b79e2e4 100644 --- a/resources/tester/test_b05_routeedit_initial.py +++ b/resources/tester/test_b05_routeedit_initial.py @@ -163,3 +163,22 @@ def test_미리_보기_지도_선(results): ] assert lines["empty"] == [] assert lines["oneDot"] == [] # 점 하나로는 선이 안 됨 + + +def test_도구_막대는_노선_추천_하나만(): + """편집 창 도구 막대 — [노선 추천] 하나 · 추천 묶음(로직 단추 · 슬라이더 · 제약 칸) 없음 · + 「연 상태로」 없음. 그 묶음은 모달(`_Recommend`)로 옮겼다.""" + page = os.path.join(HERE, "..", "..", "B05_Profile") + chrome = open(os.path.join(page, "B05_Profile_UI_RouteEdit_Chrome.ts"), encoding="utf-8").read() + assert chrome.count('data-act="recommend"') == 1 + assert "연 상태로" not in chrome and "history-reset" not in chrome + assert chrome.index('data-act="recommend"') < chrome.index('data-act="contour-minor"') + initial = open( + os.path.join(page, "B05_Profile_UI_RouteEdit_Initial.ts"), encoding="utf-8" + ).read() + assert "data-criteria" not in initial and "data-weight" not in initial + recommend = open( + os.path.join(page, "B05_Profile_UI_RouteEdit_Recommend.ts"), encoding="utf-8" + ).read() + for name in ("follow", "earthwork", "gentle", "weighted"): + assert f'"{name}"' in recommend