fix(B05): 노선 추천 — 알약 이름 「기울기 순한」 · 적용 알림 글 다듬음 · 도구 막대 구성 시험 추가 (PLAN 23-2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019BVZd1M6WUf1YEy9gbAE1G
This commit is contained in:
2026-09-29 19:40:43 +09:00
co-authored by Claude Sonnet 5.5
parent e7ee049548
commit 399c3a11ea
3 changed files with 21 additions and 2 deletions
@@ -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)}」 적용 — 다시 계산은 [확인]에서.`,
);
},
});
@@ -18,7 +18,7 @@ type Vertex = [number, number];
export const LOGIC_LABEL: Record<RouteInitialLogic, string> = {
follow: "예상노선 추적",
earthwork: "토공 최소",
gentle: "기울기 순한 노선",
gentle: "기울기 순한",
weighted: "비중 계산",
};
@@ -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