refactor(copy): 속성 복사의 원본 섹션 제거, 미리보기 표를 대상별 한 줄 요약으로

- 원본 교각은 패널 제목 아래 한 줄로 옮김 (별도 섹션 없음)
- 적용 미리보기 표를 "교각 · 바뀌는 값 · 건너뜀" 한 줄 요약으로 바꿈 (고른 교각만)
- 섹션 번호: 1 대상 교각, 2 복사할 항목, 3 변경 요약

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
ypshimandClaude Haiku 5.5 committed 2026-10-27 16:41:13 +09:00
1 parent 0dbd66d807
commit 9a338614a6
3 files changed
+13 -24

No files matched your search

+4 -11
View File
@@ -700,8 +700,8 @@ function renderCopyTargets(): void {
function renderCopyPreview(): void {
const src = activePier();
const items = chosenCopyItems();
const body = $<HTMLTableElement>('cp-preview').tBodies[0];
body.replaceChildren();
const box = $('cp-preview');
box.replaceChildren();
let applied = 0;
let skippedTotal = 0;
const selected = selectedCopyTargets();
@@ -712,15 +712,8 @@ function renderCopyPreview(): void {
const skipped = plan.skipped.map((k) => k.reason);
skippedTotal += skipped.length;
if (plan.changes.length) applied++;
const row = el('tr');
row.append(
el('td', t.input.name),
el('td', t.input.type),
el('td', String(plan.changes.length)),
el('td', String(skipped.length)),
el('td', [...labels, ...skipped].join(' · ') || '바뀌는 값 없음'),
);
body.appendChild(row);
const detail = [...labels, ...skipped.map((r) => `건너뜀: ${r}`)].join(' · ') || '바뀌는 값 없음';
box.appendChild(el('p', `${t.input.name} · ${detail}`, 'cp-line'));
}
const n = selected.length;
$('cp-summary').textContent = `${src?.input.name ?? ''} → ${n}기 · 항목 ${items.length}개 · 건너뜀 ${skippedTotal}건`;
+3
View File
@@ -821,6 +821,9 @@ body { background: #eef1f4; font-family: 'Noto Sans KR', system-ui, sans-serif;
/* Import preview: all piers' 받침·IP rows scroll inside the dialog. */
.pv-scroll { max-height: 240px; overflow: auto; }
/* 속성 복사: one line per target in the change summary. */
.copy-panel .cp-line { margin: 2px 0; font-size: 12px; }
/* 속성 복사: an inline panel at the bottom of the 부재별 편집창 (was a modal dialog). */
.copy-panel { margin-top: 12px; border-top: 1px solid #d5dde6; padding-top: 10px; }
.copy-panel .copy-head h3 { margin: 0 0 4px; font-size: 13px; }