feat:튜토리얼 이력 새로고침 버튼 + 행 클릭 스크립트 상세보기
- TutorialVideoController에 detail/{id} 엔드포인트 추가 (analysis_data 반환)
- HistoryTable에 새로고침 버튼 추가 (스피너 애니메이션)
- 행 클릭 시 스크립트 상세정보 (화면별 단계, 나레이션, 소요시간) 펼침 표시
- 상세 데이터는 캐시하여 재클릭 시 재요청 없음
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -230,6 +230,29 @@ public function history(): JsonResponse
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 이력 상세 (스크립트/분석 데이터)
|
||||
*/
|
||||
public function detail(int $id): JsonResponse
|
||||
{
|
||||
$tutorial = TutorialVideo::where('user_id', auth()->id())
|
||||
->findOrFail($id);
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
'data' => [
|
||||
'id' => $tutorial->id,
|
||||
'title' => $tutorial->title,
|
||||
'status' => $tutorial->status,
|
||||
'progress' => $tutorial->progress,
|
||||
'analysis_data' => $tutorial->analysis_data,
|
||||
'slides_data' => $tutorial->slides_data,
|
||||
'cost_usd' => $tutorial->cost_usd,
|
||||
'created_at' => $tutorial->created_at?->toIso8601String(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 이력 삭제
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user