Skip to content

#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

Open
wants to merge 19 commits into
base: dev
Choose a base branch
from

Conversation

MinjaeKimmm
Copy link
Contributor

Summary

It closes #554

Extra info

Images or Screenshots

Further Work

  • Do something...

@MinjaeKimmm MinjaeKimmm linked an issue Oct 29, 2024 that may be closed by this pull request
2 tasks
@MinjaeKimmm MinjaeKimmm force-pushed the 554-송금-독측-메일-관련-기능 branch from 1fe55f6 to 92fd170 Compare October 29, 2024 12:54
@kmc7468 kmc7468 changed the title 554 송금 독측 메일 관련 기능 #554 송금 독측 메일 관련 기능 Jul 22, 2025
@kmc7468 kmc7468 requested review from Copilot, kmc7468, TaehyeonPark, Halo-sparcs and Mun09 and removed request for kmc7468 July 22, 2025 15:07
Copy link

@Copilot Copilot AI left a 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

Copy link
Member

@kmc7468 kmc7468 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 컨벤션 관련해서 몇 가지 코멘트 남겨드렸는데 확인 부탁드립니다~~

@kmc7468 kmc7468 requested a review from thxx132 August 1, 2025 10:27
Copy link
Member

@kmc7468 kmc7468 left a 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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 import는 이제 필요 없을 것 같네요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reportEmailPage 코드에서 emailPage로 content 파라미터 넘길때 origin을 사용하는 곳이 있습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

송금 독측 메일 관련 기능
3 participants