fix: 사이트 검사 3가지 UI 이슈 수정
1. SSE page_complete 이벤트 필드명 score→overall_score 불일치 수정 (진행 페이지에서 각 페이지별 점수가 표시되지 않던 버그) 2. 진행 페이지 재방문 시 완료된 검사는 결과 대시보드로 자동 리다이렉트 3. 카테고리 상세(이슈 목록)를 인라인으로 표시하여 트리 사이드바 유지 (이전: 별도 페이지로 이동하여 트리가 사라지는 문제) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@ -61,8 +61,9 @@ class SiteInspectionService:
|
||||
"""
|
||||
settings = get_settings()
|
||||
|
||||
# Clamp to server-side limits
|
||||
max_pages = min(max_pages, settings.SITE_MAX_PAGES)
|
||||
# Clamp to server-side limits (0 = unlimited, don't clamp)
|
||||
if max_pages > 0:
|
||||
max_pages = min(max_pages, settings.SITE_MAX_PAGES)
|
||||
max_depth = min(max_depth, settings.SITE_MAX_DEPTH)
|
||||
|
||||
site_inspection_id = str(uuid.uuid4())
|
||||
@ -507,7 +508,7 @@ class SiteInspectionService:
|
||||
"page_url": page_url,
|
||||
"page_index": page_index,
|
||||
"inspection_id": inspection_id,
|
||||
"score": overall_score,
|
||||
"overall_score": overall_score,
|
||||
"grade": grade,
|
||||
})
|
||||
|
||||
@ -553,7 +554,7 @@ class SiteInspectionService:
|
||||
"page_url": page_url,
|
||||
"page_index": page_index,
|
||||
"inspection_id": None,
|
||||
"score": 0,
|
||||
"overall_score": 0,
|
||||
"grade": "F",
|
||||
"error": str(e)[:200],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user