Skip to content

feat: 신고 문서 작성 기능 보완 - #96

Merged
ryusuye0n merged 4 commits into
developfrom
feat/report-pdf-summary
Nov 9, 2026
Merged

ryusuye0n merged 4 commits into
developfrom
feat/report-pdf-summary

Conversation

@ryusuye0n

@ryusuye0n ryusuye0n commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

📍 개요

서버(#61)의 신고서 PDF 내려받기 버튼과 AI 요약 표시를 추가하고, 임시 "문서 준비 중" 문구를 제거

🛠️ 작업 내용

  • ReportDocumentDownloadButton: "신고 문서(PDF) 내려받기" (인증 요청으로 받아 파일 저장)
  • ReportSummary: AI 요약 표시. 요약이 없으면 칸을 숨기고 원문을 요약처럼 대신 보여주지 않음. "AI 요약이라 원문과 다를 수 있음" 안내 포함
  • Step4Generated(신고 완료), ReportHistoryDetailPage(신고 상세)에 적용
  • entities/report/api.ts에 문서 다운로드 API, 문구는 reportDocumentMessages.ts, mypageMessages.ts에 분리
  • 기존 임시 "문서 준비 중" 안내 제거

확인

배포 순서
서버 PR(#61)을 먼저 배포한 뒤 이 PR 배포(반대면 버튼 실패)

📸 결과물

(서버 배포 후 신고 완료 화면, 신고 상세 스크린샷 첨부)

🔗 관련 링크

ryusuye0n and others added 2 commits November 8, 2026 23:19
신고 문서는 로그인이 필요한 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
@ryusuye0n ryusuye0n self-assigned this Nov 9, 2026
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
signal-web Ready Ready Preview Nov 9, 2026 1:06am UTC

@ryusuye0n ryusuye0n changed the title feat/report-pdf-summary feat: 신고 문서 작성 기능 보완 Nov 9, 2026

@ryusuye0n ryusuye0n left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

서버 #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라서 맞춰 주세요.

Comment thread src/views/ReportPage/Step4Generated.tsx Resolved

@hyooeunn hyooeunn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고하셨습니당

This branch was successfully deployed

1 active deployment
Preview — b062490b Deployed Nov 9, 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.

2 participants