Skip to content

[#68] [Feat] 버전 히스토리에 문서 버전 삭제 화면 연결 - #69

Merged
snowballourown merged 2 commits into
feature/64-apifrom
feature/68-front-delete-version-history
Nov 19, 2026
Merged

snowballourown merged 2 commits into
feature/64-apifrom
feature/68-front-delete-version-history

Conversation

@snowballourown

Copy link
Copy Markdown
Collaborator

변경 내용

버전 히스토리에서 본인이 업로드한 DocumentVersion을 삭제하고,
삭제 결과를 목록과 최신 버전 표시에 반영하도록 연결했습니다.

  • DocumentVersion 삭제 API 호출 모듈 추가
  • 본인이 업로드한 버전에만 삭제 버튼 표시
  • PROCESSING 상태의 삭제 버튼 비활성화
  • 확인창에 버전 번호·파일명·원본 Word·PDF·피드백 삭제 범위 표시
  • 취소 시 삭제 요청하지 않음
  • 삭제 직전 계정·CSRF 토큰 재확인
  • 확인·삭제·재조회 중 중복 요청 방지
  • 삭제 후 남은 최신 버전·개수·빈 목록 갱신
  • 마지막 버전 삭제 후에도 같은 Document의 새 버전 추가 링크 유지
  • 삭제 성공과 목록 갱신 실패를 구분하여 안내
  • 404 응답 후 실제 목록을 확인하여 남아 있는 버전을 잘못 숨기지 않도록 처리
  • 통신 오류 시 DELETE를 자동 재전송하지 않고 조회로 결과 확인
  • 계정 변경·권한 오류 시 기존 비공개 목록 제거
  • 늦은 응답과 취소된 타이머가 화면을 다시 변경하지 않도록 처리
  • 정적 모듈 캐시 식별자 갱신
  • docs/frontend/document-version-deletion.md에 동작·검증 결과 기록

검증

  • 삭제 API 호출 테스트 25개 통과
  • 히스토리 삭제 흐름 테스트 24개 통과
  • 기존 히스토리 조회·다운로드 테스트 11개 통과
  • Chrome에서 확인창 취소·확정 및 중복 클릭 차단 확인
  • 삭제 후 최신 버전·빈 목록·새 버전 추가 링크 확인
  • 404·409·권한 오류·계정 변경·통신 오류 처리 확인
  • 320~1365px 화면에서 긴 파일명과 버튼 배치 확인
  • 파일명과 표시 이름을 HTML로 실행하지 않고 텍스트로 표시

브라우저 검증은 모의 API 응답으로 진행했습니다.
실제 Spring·S3 연동 및 실제 휴대폰 검증은 별도로 필요합니다.

관련 이슈

Closes #68

@snowballourown
snowballourown added this pull request to stack #48 November 19, 2026 09:35
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0fcfb973-1e89-4ec5-b24e-43fe4e45adbb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@snowballourown snowballourown self-assigned this Nov 19, 2026
@snowballourown
snowballourown force-pushed the feature/68-front-delete-version-history branch from bc3101c to fd3aa39 Compare November 19, 2026 12:27
@sonarqubecloud

Copy link
Copy Markdown

@snowballourown
snowballourown merged commit 3b6c18b into feature/42 Nov 19, 2026
3 checks 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.

1 participant