fix(M01): 기본 로직 안내 글 — 관리자는 흐름도에서 고침 · 아니면 보기만

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016PSXsvyDxjNmufteN5bqmt
This commit is contained in:
2026-10-02 01:48:15 +09:00
co-authored by Claude Opus 5.5
parent 9269e9da97
commit d202a3a6d8
3 changed files with 10 additions and 3 deletions
@@ -236,6 +236,7 @@ export async function mountM01LogicLab(
onChange: touch,
calcHost: calc,
flowHost: flowOf(current.row) ? current.flowHost : undefined,
admin,
});
flowNow?.redrawLeft();
};
@@ -75,6 +75,8 @@ export interface DetailContext {
/** 흐름이 있는 로직 — 이 칸에 왼쪽 「지금 내용」(단가산출 상세 · 텍스트 수식 = `buildFlowView`)을 그림 ·
* 있으면 호표 · 읽는 식 두 묶음 대신 이 칸을 놓음(기본정보 · 시험 계산은 그대로) */
flowHost?: HTMLElement;
/** 시스템 관리자 — 기본 로직 안내 글이 다름(흐름도에서 고침 / 보기만) */
admin?: boolean;
}
type Group = "labor" | "material" | "cost" | "other";
@@ -181,7 +183,7 @@ function infoBox(ctx: DetailContext): HTMLElement {
return section(tl("Info_Title"), [
el("p", {
className: "m01-logic__muted",
text: tl(own ? "Info_Own" : "Info_ReadOnly"),
text: tl(own ? "Info_Own" : ctx.admin ? "Info_Base" : "Info_ReadOnly"),
}),
...reasons,
el("div", {
@@ -7,9 +7,13 @@ import { currentLanguageIndex } from "@ui/ui_template_locale";
const TEXT = {
Info_Title: ["기본정보", "Basic info"],
Info_Base: [
"기본 로직 — 식은 오른쪽 흐름도에서 고침(시스템 관리자) · 여기서는 비고만",
"Base logic — edit formulas in the flow diagram on the right (system admin) · only the note here",
],
Info_ReadOnly: [
"기본 로직은 품셈 원문 그대로라 여기서 고치지 못함 — 비고만 고칠 수 있음",
"Base logic follows the source book; only the note can be edited",
"기본 로직 — 보기만 · 비고만 고칠 수 있음",
"Base logic — view only · only the note can be edited",
],
Info_Own: [
"자체 로직 — 칸을 고치면 잠시 뒤 호표 소계와 텍스트 수식이 다시 계산됨",