feat(안내문 발송): DM 수동 보내기를 별도 탭(/outreach/dm)으로
- 탭 [발송 리스트] [DM 수동 보내기] + 맨 오른쪽 설정 톱니(_tabs.html)
- /outreach/dm: 왼쪽 이름 넣기·이름 목록, 오른쪽 본문 — 이름 누르면 {이름} 바뀌고 복사 + 짧은 안내
- 리스트 화면의 DM 수동 버튼·창은 뺌
- outreach.js/css 캐시 버전 20261030b, 화면·브라우저 테스트
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""안내문 발송 화면(index.html)을 진짜 ERP 셸로 렌더 — 브라우저 테스트용(2026-10-27).
|
||||
|
||||
python tests/js/render_outreach.py # → tests/js/.out/outreach.html, outreach_settings.html
|
||||
python tests/js/render_outreach.py # → tests/js/.out/outreach.html, outreach_dm.html, outreach_settings.html
|
||||
|
||||
화면 데이터는 실제 router._view 로 만든다(저장소 없이 줄만 가짜).
|
||||
"""
|
||||
@@ -36,10 +36,13 @@ def main() -> None:
|
||||
ctx = {"user": {"email": "me@miras.co.kr", "name": "나", "picture": ""}, "is_admin": False, "nav_items": [],
|
||||
"page_title": "안내문 발송", "page_subtitle": "", "template": t, "body_text": store.html_to_text(t["body"]),
|
||||
"needs_name": store.needs_name(t), "images": [], "rows": [_view(r, t) for r in raw],
|
||||
"dm_template": store.dm_text(t, store.NAME_TAG),
|
||||
"active_tab": "list",
|
||||
"logs": [], "gmail": {"available": True, "connected": True, "email": "me@miras.co.kr"}, "msg": ""}
|
||||
with open(os.path.join(OUT_DIR, "outreach.html"), "w", encoding="utf-8") as f:
|
||||
f.write(env.get_template("outreach/index.html").render(**ctx))
|
||||
# DM 수동 보내기 탭(2026-10-30)
|
||||
with open(os.path.join(OUT_DIR, "outreach_dm.html"), "w", encoding="utf-8") as f:
|
||||
f.write(env.get_template("outreach/dm.html").render(**{**ctx, "active_tab": "dm", "dm_template": store.dm_text(t, store.NAME_TAG)}))
|
||||
# 설정 화면 — 저장해 둔 서식 본문(HTML)·DM 문구로
|
||||
saved = store.normalize_template({
|
||||
"subject": "{이름}님께 제안", "fmt": "html", "dm_body": "안녕하세요 {이름}님, DM 입니다",
|
||||
|
||||
Reference in New Issue
Block a user