From 6e175d0bac3f9e30a87409d42803c05da1a6869c Mon Sep 17 00:00:00 2001 From: king Date: Tue, 29 Sep 2026 16:16:07 +0900 Subject: [PATCH] =?UTF-8?q?fix(performance):=20=EB=A7=A4=EC=B6=9C=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EA=B2=B0=EA=B3=BC=20?= =?UTF-8?q?=E2=80=94=20=EC=9D=B8=EC=A6=9D=EC=A0=95=EB=B3=B4=20=EB=AF=B8?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=87=BC=ED=95=91=EB=AA=B0=EC=9D=80=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8(=EB=B9=A8=EA=B0=95)=EA=B0=80=20=EC=95=84?= =?UTF-8?q?=EB=8B=8C=20=ED=9A=8C=EC=83=89=20=ED=95=9C=20=EC=A4=84=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 실패는 인증 실패·API 오류처럼 손봐야 하는 것만 표시. 미설정/연동 준비 중은 이름만 모아 표시. Co-Authored-By: Claude Opus 5.5 --- app/modules/performance/templates/performance/index.html | 2 +- app/modules/performance/templates/performance/settings.html | 2 +- app/static/performance.js | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/modules/performance/templates/performance/index.html b/app/modules/performance/templates/performance/index.html index c6a0b21..ef87ca1 100644 --- a/app/modules/performance/templates/performance/index.html +++ b/app/modules/performance/templates/performance/index.html @@ -235,4 +235,4 @@ } | tojson }} {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/performance/templates/performance/settings.html b/app/modules/performance/templates/performance/settings.html index 39f2a7d..2cdec23 100644 --- a/app/modules/performance/templates/performance/settings.html +++ b/app/modules/performance/templates/performance/settings.html @@ -118,4 +118,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/static/performance.js b/app/static/performance.js index aea815b..e61f20d 100644 --- a/app/static/performance.js +++ b/app/static/performance.js @@ -127,13 +127,16 @@ syncBtn.textContent = "업데이트 중…"; try { const res = await api("POST", "/performance/api/sync", {}); - const ok = [], bad = [], pending = [], busy = []; + // 실패(빨강)는 인증 실패·API 오류처럼 손봐야 하는 것만. 인증정보를 아직 안 넣은 쇼핑몰(미설정)과 + // 수집을 아직 만들지 않은 쇼핑몰(연동 준비 중)은 회색 한 줄로 이름만. + const ok = [], bad = [], pending = [], unset = [], busy = []; let changed = 0; (res.results || []).forEach(function (r) { const name = (data.names || {})[r.code] || r.code; if (r.skipped) busy.push(name); else if (r.ok) { ok.push(name + " " + fmt(r.upserted) + "건"); changed += r.upserted; } else if (r.status === "not_implemented") pending.push(name); + else if (r.status === "not_configured") unset.push(name); else bad.push(name + "(" + (r.label || r.status) + (r.message ? ": " + r.message : "") + ")"); }); const parts = []; @@ -141,6 +144,7 @@ if (bad.length) parts.push("실패 " + esc(bad.join(", "))); if (busy.length) parts.push("이미 진행 중 " + esc(busy.join(", "))); if (pending.length) parts.push('연동 준비 중: ' + esc(pending.join(", ")) + ""); + if (unset.length) parts.push('인증정보 미설정: ' + esc(unset.join(", ")) + ""); resultBox.innerHTML = parts.join(" · ") || "업데이트할 쇼핑몰이 없습니다."; resultBox.className = "perf-notice" + (bad.length ? " is-warn" : " is-ok"); resultBox.hidden = false;