From 92068ffd597d92e9a7c68c29791e78546da2a670 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sat, 17 Oct 2026 15:13:11 +0900 Subject: [PATCH] =?UTF-8?q?feat(383-3):=20=EB=85=B8=EC=84=A0=20=EC=B6=94?= =?UTF-8?q?=EC=B2=9C=20[=EC=9E=AC=EA=B3=84=EC=82=B0]=20=E2=80=94=20?= =?UTF-8?q?=EC=B8=A1=EC=A0=90=20=EB=A7=9E=EC=B6=A4=20=EC=98=A4=EB=A5=B8?= =?UTF-8?q?=EC=AA=BD=20=EA=B0=99=EC=9D=80=20=EC=A4=84=20=C2=B7=20=EB=8A=98?= =?UTF-8?q?=20=EB=B3=B4=EC=9E=84=20=C2=B7=20=EB=B0=94=EA=BE=BC=20=EA=B2=83?= =?UTF-8?q?=20=EC=9E=88=EC=9D=84=20=EB=95=8C=EB=A7=8C=20=EC=BC=9C=EC=A7=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ji4nuyLVHcxrXWHTdb5nRD --- .../B05_Profile_UI_RouteEdit_Recommend.ts | 6 +++--- .../B05_Profile_UI_Style_RouteRecommend.css | 6 ++++++ resources/tester/test_383_3_rerun_row.py | 20 +++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 resources/tester/test_383_3_rerun_row.py diff --git a/B05_Profile/B05_Profile_UI_RouteEdit_Recommend.ts b/B05_Profile/B05_Profile_UI_RouteEdit_Recommend.ts index 46dcd9320..abe1232d2 100644 --- a/B05_Profile/B05_Profile_UI_RouteEdit_Recommend.ts +++ b/B05_Profile/B05_Profile_UI_RouteEdit_Recommend.ts @@ -198,7 +198,7 @@ export function openRecommendModal(params: RecommendParams): void { - +
@@ -397,8 +397,8 @@ export function openRecommendModal(params: RecommendParams): void { input.disabled = busy; }); q("[data-target-row]").hidden = logic !== "gradeline"; - rerun.hidden = !dirty; - rerun.disabled = busy || invalid.size > 0; + // 측점 맞춤 오른쪽 · 늘 보임 — 바꾼 것이 있을 때만 켜짐(383-3) + rerun.disabled = busy || !dirty || invalid.size > 0; const view = shownChoice(); applyButton.disabled = busy || dirty || !view || invalid.size > 0; const shown = metricsLines(view?.metrics ?? null); diff --git a/B05_Profile/B05_Profile_UI_Style_RouteRecommend.css b/B05_Profile/B05_Profile_UI_Style_RouteRecommend.css index 301a55451..91ea17858 100644 --- a/B05_Profile/B05_Profile_UI_Style_RouteRecommend.css +++ b/B05_Profile/B05_Profile_UI_Style_RouteRecommend.css @@ -409,6 +409,12 @@ align-self: flex-start; } +/* 측점 맞춤 · 재계산 한 줄(383-3) */ +.b05-routerec__row { + display: flex; + gap: var(--spacing-8); +} + .b05-routerec__lines { display: flex; flex-direction: column; diff --git a/resources/tester/test_383_3_rerun_row.py b/resources/tester/test_383_3_rerun_row.py new file mode 100644 index 000000000..b117b10c8 --- /dev/null +++ b/resources/tester/test_383_3_rerun_row.py @@ -0,0 +1,20 @@ +"""383-3 노선 추천 모달 [재계산] — 측점 맞춤 오른쪽 같은 줄 · 늘 보임 · 바꾼 것 있을 때만 켜짐. + +./venv/Scripts/python.exe -m pytest resources/tester/test_383_3_rerun_row.py -q +""" + +import re +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[2] +B05 = ROOT / "B05_Profile" + + +def test_재계산_한_줄_늘_보임_바꿨을_때만_켜짐() -> None: + ts = (B05 / "B05_Profile_UI_RouteEdit_Recommend.ts").read_text(encoding="utf-8") + assert re.search(r'
]*data-act="rerun">재계산', ts) + assert 'data-act="rerun" hidden' not in ts and "rerun.hidden" not in ts + assert "rerun.before(snapToggle)" in ts # 토글이 같은 줄 왼쪽 + assert "rerun.disabled = busy || !dirty || invalid.size > 0;" in ts + css = (B05 / "B05_Profile_UI_Style_RouteRecommend.css").read_text(encoding="utf-8") + assert re.search(r"\.b05-routerec__row \{\s*display: flex;", css)