-
Notifications
You must be signed in to change notification settings - Fork 1
#554 송금 독측 메일 관련 기능 #555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
The head ref may contain hidden characters: "554-\uC1A1\uAE08-\uB3C5\uCE21-\uBA54\uC77C-\uAD00\uB828-\uAE30\uB2A5"
#554 송금 독측 메일 관련 기능 #555
Conversation
1fe55f6
to
92fd170
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements email tracking functionality for report-related emails in the taxi service system. It adds the ability to track when emails are opened by embedding a tracking pixel and storing tracking data in the database.
- Adds email open tracking with unique tracking IDs and database storage
- Implements a new email tracking endpoint for handling pixel requests
- Enhances error handling with Slack notifications for email failures
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/views/reportEmailPage.ts | Updated email templates to include trackingId parameter |
src/views/emailPage.ts | Added tracking pixel with URL generation for open detection |
src/services/reports.js | Integrated email tracking record creation with UUID generation |
src/services/email.ts | New service to handle email open tracking requests |
src/routes/emails.ts | New router for email-related endpoints |
src/routes/admin.js | Added emailModel to admin resources |
src/modules/stores/mongo.ts | Added email schema for tracking data storage |
src/modules/slackNotification.ts | Added email failure notification function |
src/modules/email.ts | Enhanced error handling and TypeScript conversion |
src/index.ts | Registered email router with origin validation bypass |
package.json | Updated nodemailer and added uuid dependencies |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! 컨벤션 관련해서 몇 가지 코멘트 남겨드렸는데 확인 부탁드립니다~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 감사합니다! 이게 진짜 마지막 리뷰가 될 것 같습니다.
그리고 loadenv 쪽 제가 부탁드린거 아직 반영이 안됐어요...! jwt에 있는 issuer 쪽 수정이 필요합니다. 확인 부탁드려요
@@ -1,27 +1,28 @@ | |||
import type { ObjectId } from "mongoose"; | |||
import emailPage from "./emailPage"; | |||
import { frontUrl as origin } from "@/loadenv"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 import는 이제 필요 없을 것 같네요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reportEmailPage 코드에서 emailPage로 content 파라미터 넘길때 origin을 사용하는 곳이 있습니다.
Summary
It closes #554
Extra info
Images or Screenshots
Further Work