[FEATURE] 페이지 불가용 분석 응답 처리#84
Merged
Merged
Conversation
minsoo0506
approved these changes
Jun 1, 2026
minsoo0506
left a comment
There was a problem hiding this comment.
확인했는데 코멘트할 부분은 없는 것 같습니다! 고생하셨습니다 :)
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.
Closes #83
개요
백엔드
LinClean-BE-springPR #47에서 추가된 페이지 불가용(PAGE_UNAVAILABLE) 처리 결과를 프론트에 반영했습니다.Spring 분석 응답에 추가된
contentAnalysisError필드를 프론트 타입에 반영하고, 분석 결과 화면에서 페이지 본문을 가져오지 못한 사유를 사용자에게 안내하도록 처리했습니다.또한 분석 자체가
FAILED로 종료되고errorCode가PAGE_UNAVAILABLE인 경우에는 검사 중 화면에서 페이지 불가용 전용 안내 문구를 표시하도록 보완했습니다.주요 구현 내용
AnalysisResponse타입에contentAnalysisError필드 추가contentAnalysisError를 사용자 안내 문구로 변환하는 유틸 추가페이지 접근 안내카드 추가contentAnalysisError가 없는 기존 결과 화면은 기존 UI 유지ScanResultReason에labelprop 추가판정 이유라벨은 기본값으로 유지FAILED + PAGE_UNAVAILABLE응답은 검사 중 화면에서 전용 실패 안내로 처리다시 검사,돌아가기흐름 유지파일별 역할
api/analyses.ts: 분석 응답 타입에contentAnalysisError?: string추가utils/analysis-result-display.ts:contentAnalysisError를 사용자용 문구로 변환하는getContentAnalysisErrorText추가components/ui/scan-result-reason.tsx: 결과 사유 카드의 라벨을 외부에서 지정할 수 있도록labelprop 추가app/(tabs)/(home)/scan-result.tsx: 안전 결과 화면에 페이지 접근 안내 카드 표시app/(tabs)/(home)/scan-result-caution.tsx: 주의 결과 화면에 페이지 접근 안내 카드 표시app/(tabs)/(home)/scan-result-block.tsx: 위험 결과 화면에 페이지 접근 안내 카드 표시app/(tabs)/(home)/scanning.tsx:FAILED + PAGE_UNAVAILABLE응답에 대한 전용 안내 문구 처리해결한 이슈 목록
api/analyses.ts의AnalysisResponse타입에contentAnalysisError?: string필드 추가contentAnalysisError가 없는 기존 정상 분석 응답 흐름 유지contentAnalysisError가 있는 응답을 검사 결과 화면에서 안내할 수 있도록 처리contentAnalysisError값이 와도 화면이 깨지지 않도록 방어 처리summary와reasons표시 우선순위 유지ScanResultReason의 기존 판정 이유 카드 동작 유지analysisId기반 저장 흐름 유지FAILED + PAGE_UNAVAILABLE케이스에서 검사 중 화면에 페이지 불가용 안내 표시FAILED + PAGE_UNAVAILABLE케이스에서다시 검사,돌아가기버튼 흐름 유지체크 사항
contentAnalysisError가 없는 결과 화면 UI 영향 없음npm run lint통과참고사항
contentAnalysisError는 Spring 응답의AnalysisResponse에 추가된 필드입니다.{ data: AnalysisResponse }형태로 응답하지만, 프론트 공통 API 클라이언트가data를 unwrap하므로 화면에서는 기존처럼AnalysisResponse로 다룹니다.status: succeeded이고contentAnalysisError가 있는 경우에는 결과 화면에서페이지 접근 안내카드를 표시합니다.status: failed이고errorCode: PAGE_UNAVAILABLE인 경우에는 결과 화면으로 이동하지 않고 검사 중 화면에서 실패 안내를 표시합니다.Screenshots or Video
contentAnalysisError가 있는 분석 결과에서만페이지 접근 안내카드가 추가로 표시됩니다.PAGE_UNAVAILABLE실패 응답에서는 검사 중 화면의 실패 안내 문구가 보강됩니다