feat(안내문 발송): DM 수동 보내기 — 이름 지우기·본문 편집·저장한 본문 목록

- 이름 목록: × 한 명씩 빼기·[전체 삭제], 이름 넣기는 목록에 더함
- 본문: 바로 고침(plaintext-only), {이름} 자리 = 분홍 칩, 이름 누르면 고친 글 + 이름 복사
- 저장한 본문(본문 오른쪽): 설정 DM 문구 + 저장한 것, 고르기·[저장]·[새 본문으로 저장]·× 지우기
- outreach_db 마이그레이션 002 outreach_dm_bodies + POST/PUT/DELETE /outreach/api/dm-bodies
  (002 미적용이면 목록 안내만, API 503)
- 캐시 버전 20261030c, 단위·API·실제 PG·브라우저 테스트

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 16:51:10 +09:00
parent 456dfe376f
commit 48cd7f0878
16 changed files with 454 additions and 63 deletions
+19 -8
View File
@@ -130,18 +130,29 @@
.otr-upload { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.otr .erp-btn:disabled { opacity: .45; cursor: default; }
/* DM 수동 보내기 탭(2026-10-30) — 왼쪽 이름(넣기 + 목록) | 오른쪽 이름이 들어간 DM 문구(이름 누르면 복사) */
/* DM 수동 보내기 탭(2026-10-30) — 왼쪽 이름(넣기 + 목록) | 가운데 본문(바로 고침, {이름} = 분홍 칩) | 오른쪽 저장한 본문 */
.otr-dm-file { cursor: pointer; }
.otr-dm-split { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.otr-dm-split { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(200px, 260px); gap: 14px; align-items: start; }
.otr .otr-dm-split .erp-card { min-height: 0; }
.otr-dm-names { list-style: none; margin: 10px 0 0; padding: 4px; border: 1px solid #e3e5e8; border-radius: 8px;
max-height: calc(100vh - 380px); min-height: 120px; overflow: auto; }
.otr-dm-name { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px;
.otr-dm-listhead { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.otr-dm-names { list-style: none; margin: 8px 0 0; padding: 4px; border: 1px solid #e3e5e8; border-radius: 8px;
max-height: calc(100vh - 420px); min-height: 120px; overflow: auto; }
.otr-dm-bodies { max-height: calc(100vh - 260px); margin-top: 0; }
.otr-dm-item { display: flex; align-items: center; gap: 2px; }
.otr-dm-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px;
padding: 7px 10px; border-radius: 6px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otr-dm-name:hover { background: #f3f4f6; }
.otr-dm-name.is-active { background: #111; color: #fff; }
.otr-dm-sub { opacity: .65; font-size: 12px; }
.otr-dm-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: #9a9ca1; font-size: 17px;
line-height: 1; cursor: pointer; }
.otr-dm-x:hover { background: #fdecec; color: #c22b10; }
.otr-dm-empty { padding: 8px 10px; font-size: 13px; }
.otr-dm-body { border: 1px solid #e3e5e8; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.7;
white-space: pre-wrap; word-break: break-word; max-height: calc(100vh - 220px); overflow: auto; background: #fafafa; }
.otr-dm-body b { color: #c1358a; }
.otr-dm-cur { font-weight: 400; color: #6d6e6f; font-size: 13px; }
.otr-dm-actions { margin: 0 0 8px; }
.otr-dm-body { border: 1px solid #d8dce2; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.7; min-height: 240px;
white-space: pre-wrap; word-break: break-word; max-height: calc(100vh - 300px); overflow: auto; background: #fff; outline: none; }
.otr-dm-body:focus { border-color: #8aa4d6; box-shadow: 0 0 0 3px rgba(69, 115, 210, .12); }
.otr-dm-tag { color: #c1358a; font-weight: 700; background: #fbe8f3; border-radius: 4px; padding: 0 2px; }
@media (max-width: 1180px) { .otr-dm-split { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); } .otr-dm-saved { grid-column: 1 / -1; } }
@media (max-width: 760px) { .otr-dm-split { grid-template-columns: 1fr; } }