fix(M01): 로직 개선 시험 — 호표 묶음을 서버 비목 몫으로 나눔 · 「표 찾기 찾기」 겹침 · 모달 걸린 줄 맞힘

- 호표 묶음 소계가 텍스트 수식 소계와 같아짐(로직을 부르는 줄도 노무비·재료비·경비로 나뉘어 「그 밖」이 사라짐)
- 표 줄의 빈 칸은 조건에서 빼 서버 찾기()와 같게 걸린 줄을 맞힘
- 표 꼬리표를 「표」로 줄이고 걸린 줄 없음 안내글을 바로잡음

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WRFJmmhPi4exAzHgPZHMT
This commit is contained in:
2026-09-21 21:35:19 +09:00
co-authored by Claude Sonnet 5
parent bf7764fb99
commit 42243ba19b
3 changed files with 29 additions and 9 deletions
@@ -34,7 +34,17 @@ function tableView(
table: TableRow,
values: Record<string, string>,
): HTMLElement {
const hit = matchRow(table, find.find.conds, { values, middle: {} });
// 표 줄의 빈 칸은 「무엇이든」 — 서버 찾기()와 같게 그 칸은 조건에서 뺌
const hit =
(table. ?? []).find((line) =>
matchRow(
{ ...table, : [line] },
find.find.conds.filter(
([col]) => line[col] !== undefined && line[col] !== null && line[col] !== "",
),
{ values, middle: {} },
),
) ?? null;
const cols = [...Object.keys(table. ?? {}), ...Object.keys(table. ?? {})];
const rows = (table. ?? []).map((line) =>
el("tr", {