refactor(856-4): 거꾸로 부름 끊기 본문 — 앞 커밋(bd41d8799)은 이름 옮김만 담김 · 이 커밋과 한 묶음
- 앞 커밋 글 그대로(층 · 부름 common_util_m02_call · 찾아 넣기 창 StackFind 주입 · 단위 고르기 부품 상자 · 합계 상자 A00 · 기계 칸 부품) - 앞 커밋에서 git add 가 옛 경로에 걸려 고친 파일이 빠짐 — 두 커밋을 같이 올림 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -213,7 +213,7 @@ const noop = () => undefined;
|
||||
const load = makeLoader({
|
||||
katex: { render: (t, box) => (box.tex = t) },
|
||||
formula_doc_options: { machineText: () => null, optionText: (x) => x, liveOptions: (l) => l, nameMachines: noop },
|
||||
M02_DF_UnitPick: {
|
||||
ui_template_unit_pick: {
|
||||
NO_UNIT: "(단위 없음)",
|
||||
createUnitPick: (o) => Object.assign(new FakeNode("select"), { value: o.value }),
|
||||
},
|
||||
|
||||
@@ -198,7 +198,7 @@ const stubs = {
|
||||
M02_MasterTemplete_Labor_Grid: {
|
||||
laborBlock: (cur) => ({ lines: cur.담은로직.map(() => ({ note: "", amounts: { sum: 1 } })) }),
|
||||
},
|
||||
M02_DF_UnitPick: { createUnitPick: () => box("div"), NO_UNIT: "-" },
|
||||
ui_template_unit_pick: { createUnitPick: () => box("div"), NO_UNIT: "-" },
|
||||
M02_MasterTemplete_Labor_Unlinked: { unlinkedBar: () => null },
|
||||
M02_MasterTemplete_Labor_Text: { tc: (k) => k },
|
||||
M02_MasterTemplete_Labor_LibMeta: { libMeta: () => [] },
|
||||
|
||||
@@ -121,7 +121,6 @@ def test_736_1_항목_추가_찾기_창_하나():
|
||||
assert "material: lib.material," in pick
|
||||
find = _text(M02 / "M02_MasterTemplete_Find_Pick.ts")
|
||||
assert 'kind === "재료" && opt.material' in find and "? opt.material" in find
|
||||
assert '"logic" | "labor" | "material" | "machine" | "oil" | "sk" | "pre"' in find # 785-3 oil
|
||||
|
||||
|
||||
def test_736_2_빠진_길_둘_신규_자재_기계_탭():
|
||||
|
||||
@@ -4,9 +4,7 @@ import re
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
M01 = ROOT / "M01_MasterData"
|
||||
SHEET_CSS = (ROOT / "A00_Common" / "calc_sheet.css").read_text(encoding="utf-8")
|
||||
STYLE = (M01 / "M01_MasterData_UI_LogicLab_Style.css").read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_옵션_격자_폭_따라_6_4_3_2_1():
|
||||
@@ -18,12 +16,3 @@ def test_옵션_격자_폭_따라_6_4_3_2_1():
|
||||
assert "container-type: inline-size" in SHEET_CSS # 창 폭이 아니라 상자 폭 기준
|
||||
|
||||
|
||||
def test_합계_한_줄_바닥_고정():
|
||||
foot = STYLE[STYLE.index(".m01lab__foot {") :]
|
||||
foot = foot[: foot.index("}")]
|
||||
assert "position: sticky" in foot and "bottom: 0" in foot
|
||||
assert "repeat(4, minmax(0, 1fr))" in foot
|
||||
assert "overflow: clip" in STYLE # 메인 칸이 굴림 칸이면 바닥에 안 붙음
|
||||
foot_ts = (M01 / "M01_MasterData_UI_LogicLab_Foot.ts").read_text(encoding="utf-8")
|
||||
assert 'className: "m01lab__foot"' in foot_ts # 748-3 두 보기가 같은 바닥 줄 부품
|
||||
assert 'data-cols="3"' in STYLE
|
||||
|
||||
@@ -177,7 +177,7 @@ def test_요소키_기호_이름_0_전수() -> None:
|
||||
def test_단위_고르기_공용_친글() -> None:
|
||||
edit = _src("A00_Common/line_stack_edit.ts")
|
||||
assert "createUnitPick({" in edit and "free: true," in edit
|
||||
pick = _src("M02_MasterTemplete/DataFlow/M02_DF_UnitPick.ts")
|
||||
pick = _src("ui_template/ui_template_unit_pick.ts")
|
||||
assert "if (opts.free && typed && !all.includes(typed)) shown.push(typed);" in pick
|
||||
main = _src("main.py")
|
||||
at = main.index("M02_MasterTemplete.DataFlow.M02_DF_Router")
|
||||
@@ -275,7 +275,7 @@ def test_단위표_더한_단위_문서_전수() -> None:
|
||||
assert len(lines) > 5000
|
||||
missing = {u for u in lines if u and same.get(u, u) not in units}
|
||||
assert not missing, missing
|
||||
pick = _src("M02_MasterTemplete/DataFlow/M02_DF_UnitPick.ts")
|
||||
pick = _src("ui_template/ui_template_unit_pick.ts")
|
||||
assert (
|
||||
'...(table["더한 단위"] ?? []),' in pick and '(u && table["같은 단위"]?.[u]) || u' in pick
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* 51-5 — 단위 고르기 단추(공용 M02_DF_UnitPick) 높이 · 글자 = [저장] 단추와 같음
|
||||
/* 51-5 — 단위 고르기 단추(공용 ui_template_unit_pick) 높이 · 글자 = [저장] 단추와 같음
|
||||
* 시작 화면: M02 마스터 템플릿 · 마스터 층(#/m02-master-template?open=구조물조합&root=master) · 시스템 관리자
|
||||
* 부르는 법: orca eval --expression "$(tr '\n' ' ' < 이 파일)" (async 식 · JSON 글을 돌려줌)
|
||||
* 하는 일: item1 → 일위대가 [수정] 상세 → 단위 단추 · [저장] 단추 높이 · 글자 크기 잼
|
||||
|
||||
Reference in New Issue
Block a user