Skip to content

fix(estimates): send quotes from ask@papercraft.kr - #47

Merged
brekarta-stack merged 3 commits into
mainfrom
brekarta-stack/견적서-자동화
Oct 1, 2026

Hidden character warning

The head ref may contain hidden characters: "brekarta-stack/\uacac\uc801\uc11c-\uc790\ub3d9\ud654"
Merged

brekarta-stack merged 3 commits into
mainfrom
brekarta-stack/견적서-자동화

Conversation

@brekarta-stack

Copy link
Copy Markdown
Owner

Why

견적서 메일의 보내는 사람이 문의 폼 발신 주소(INQUIRY_FROM_EMAIL = PE Studio <no-reply@papercraft.kr>)를 물려받고 있었다. 고객에게는 답장을 받지 않는 주소로 보이고, 회신(Reply-To)·보관 사본(BCC)은 ask@papercraft.kr 라 계정이 갈렸다.

What

  • prepareSend()의 From 기본값을 PE Studio <ask@papercraft.kr>(SUPPLIER.managerEmail)로. ESTIMATE_FROM_EMAIL 로 여전히 덮어쓸 수 있다.
  • 주소에 기본값이 생겼으므로 발송 가드는 RESEND_API_KEY 만 본다.
  • 가드 테스트 추가(tests/estimate.test.mjs): 기본값·문의 폼 주소 미사용·회신·보관 사본이 한 계정인지.

도메인(papercraft.kr)은 Resend 에 이미 인증돼 있어 발신 설정 변경은 필요 없다. 구글 드라이브 연결(ask@papercraft.kr)과 기록의 수행자 표시(로그인한 관리자 계정)는 이 변경과 무관하다.

Verification

npm test 241/241, tsc, eslint, next build.

🤖 Generated with Claude Code

brekarta-stack and others added 3 commits September 22, 2026 23:42
Supabase cached egress hit 134% of the free quota on 2026-09-22 and the
project was restricted. PR #44 routed image traffic through the Vercel
optimizer; this cuts what is left.

- Admin tool on /admin/setup shrinks root-level images in the public
  `uploads` bucket in place (same path and format, width capped at 1920)
  after backing each original up to the private `uploads-originals`
  bucket. Dry-run is list-only; apply/restore run in 40s batches and the
  panel can resume from where a failure stopped.
- Safety: folders (customer attachments, deliverables), GIF/SVG,
  animated, lossless WebP, CMYK colour handling, truncated and
  mislabelled files are skipped or handled; a pre-existing backup with
  different bytes blocks the overwrite; restore only touches files whose
  mark and recorded size still match (or whose bytes match a re-shrink
  of the backup), so a later same-name replacement is never clobbered.
- Blog list, related posts, sitemap, RSS and llms.txt read posts without
  the body column; portfolio case- slug lookup fetches ids first; admin
  list thumbnails go through the optimizer at 256px.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The estimate mailer inherited INQUIRY_FROM_EMAIL (no-reply@papercraft.kr),
the inquiry-form sender, so customers received quotes from an address that
cannot take replies while Reply-To and the archive BCC pointed at
ask@papercraft.kr. Default the From to SUPPLIER.managerEmail so all three
land on one account; ESTIMATE_FROM_EMAIL still overrides it.

Sending no longer fails when no from-address env is set, so the guard only
checks RESEND_API_KEY.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
actioncraft-web Ready Ready Preview Oct 1, 2026 6:04am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 580f4cc9 Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant