Skip to content

feat(document): 합성 문서 유형과 원본 미리보기 지원 - #334

Merged
BcKmini merged 3 commits into
mainfrom
feat/333-demo-document-preview
Aug 14, 2026
Merged

feat(document): 합성 문서 유형과 원본 미리보기 지원#334
BcKmini merged 3 commits into
mainfrom
feat/333-demo-document-preview

Conversation

@hywznn

@hywznn hywznn commented Aug 13, 2026

Copy link
Copy Markdown
Member

요약

  • 서버의 신규 합성 문서 유형과 DRAFT 상태 라벨을 지원합니다.
  • 문서 상세를 단건 API로 조회하고 인증된 원본 이미지 blob 미리보기를 제공합니다.
  • PDF/HWP/HWPX 등 비이미지 원본 다운로드와 한글 파일명을 유지합니다.

검증

  • bun run test: 84 files / 445 tests 통과
  • bun run lint: error 0 (기존 routes fast-refresh warning 13)
  • bun run build: 성공
  • 실제 로컬 PostgreSQL/API 연결 브라우저 검증
    • 문서함에 합성 16건 유형·상태·유효기간 표시
    • 응웬반A 상세에 Gold 문서 12건 연결
    • 이미지 blob 1200×760 로드, console error 0
    • PDF/HWPX 다운로드는 Server API에서 MIME·바이트 검증

Closes #333

@BcKmini
BcKmini marked this pull request as ready for review August 14, 2026 00:36
Comment thread src/api/documents.test.ts
function jsonResponse(body: unknown) {
return new Response(JSON.stringify(body), { status: 200, headers: { 'Content-Type': 'application/json' } })
return new Response(JSON.stringify(body), {
status: 200,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

200 확인이용

Comment thread src/api/documents.ts
}

export interface DocumentDetailResponse extends DocumentItemResponse {
task_id: string | null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

확인이용

]
const fileDocument = detail({
worker_document_id: 'D-1',
display_name: '응웬반A',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

하나만.?

]
const fileDocument = detail({
worker_document_id: 'D-1',
display_name: '응웬반A',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

동일하게 하나만?

}

export const SUBMISSION_STATUS_LABEL: Record<SubmissionStatus, string> = {
DRAFT: '초안',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

확인해보겠습니다

@BcKmini
BcKmini merged commit 5176fb6 into main Aug 14, 2026
1 check passed
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.

feat: 합성 문서 유형과 원본 미리보기 지원

2 participants