Repository navigation
feat: 신고 문서 작성 기능 보완 - #96
Merged
Merged
Conversation
신고 문서는 로그인이 필요한 API라 링크로 열 수 없어서 blob으로 받아 저장한다. 요약이 없으면(원문이 짧거나 만들지 못함) 요약 영역을 그리지 않고, AI 요약이라 원문과 다를 수 있다는 안내를 함께 보여준다. 서버 응답 변경(summary 추가, documentSimulated 제거)에 맞춰 타입을 고쳤다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
신고 완료 화면과 신고 문서 상세에서 PDF를 내려받고 AI 요약을 볼 수 있게 한다. 더 쓰지 않는 fileSimulated/viewFile 문구는 지웠다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ryusuye0n
commented
Nov 9, 2026
ryusuye0n
left a comment
Contributor
Author
There was a problem hiding this comment.
서버 #62(요약·PDF)에 맞춰 링크 대신 인증 요청으로 blob을 받아 저장하고, 요약이 없으면 원문을 대신 보여주지 않는 점이 좋습니다. 서버 쪽 GET /reports/{id}/document는 소유자만 받고 attachment로 내려주며, 요약은 생성·수정 때 동기로 만들어서 클라이언트가 폴링할 필요가 없다는 것도 확인했습니다. 수정 후 setQueryData로 캐시를 갱신하는 흐름도 요약과 잘 맞습니다.
기준 브랜치가 main입니다. 이 PR의 브랜치는 develop보다 2커밋만 앞서 있는데 main보다는 79커밋 앞서 있어서, 지금 상태로 머지하면 develop의 변경 77커밋이 이 PR을 통해 main으로 같이 들어갑니다(변경 파일 40개, diff 약 160KB). 다른 PR들은 모두 develop을 대상으로 하고 있으니 기준 브랜치를 develop으로 바꿔 주세요. 바꾸면 diff가 설명대로 7개 파일(신고 문서 관련)만 남습니다. 설명에 "서버 #61 관련 PR"이라고 적힌 부분도 서버 PR 번호는 #62라서 맞춰 주세요.
This was referenced Nov 9, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📍 개요
🛠️ 작업 내용
ReportDocumentDownloadButton: "신고 문서(PDF) 내려받기" (인증 요청으로 받아 파일 저장)ReportSummary: AI 요약 표시. 요약이 없으면 칸을 숨기고 원문을 요약처럼 대신 보여주지 않음. "AI 요약이라 원문과 다를 수 있음" 안내 포함Step4Generated(신고 완료),ReportHistoryDetailPage(신고 상세)에 적용entities/report/api.ts에 문서 다운로드 API, 문구는reportDocumentMessages.ts,mypageMessages.ts에 분리확인
npx tsc --noEmit,eslint오류 없음배포 순서
서버 PR(#61)을 먼저 배포한 뒤 이 PR 배포(반대면 버튼 실패)
📸 결과물
(서버 배포 후 신고 완료 화면, 신고 상세 스크린샷 첨부)
🔗 관련 링크