Skip to content

Commit 1fe5e28

Browse files
i3monthsclaude
andcommitted
feat(interview): 종료 패널에서 피드백 보기 버튼 연결
세션 종료 패널이 sessionId 를 받지 못해 COMPLETED 상태에서도 피드백 화면으로 이동할 수 없었음(워크스페이스 링크만). 라이브 중 WS 자동 리다이렉트가 놓치면 막다른 길. - SessionEndedPanel: sessionId prop 추가 + COMPLETED 시 /sessions/:id/feedback 로 가는 "피드백 보기" 버튼 노출 - LiveInterview: SessionEndedPanel 에 sessionId 전달 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3cf80a9 commit 1fe5e28

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

frontend/src/features/interview/ui/live/LiveInterview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function LiveInterview({ sessionId }: { sessionId: number }) {
2222
return <InterviewLobby sessionId={sessionId} session={session} />
2323
}
2424
if (status !== 'IN_PROGRESS') {
25-
return <SessionEndedPanel status={status ?? 'COMPLETED'} />
25+
return <SessionEndedPanel status={status ?? 'COMPLETED'} sessionId={sessionId} />
2626
}
2727

2828
const awaitingQuestion = turn === 'WAITING_FOR_QUESTION'

frontend/src/features/interview/ui/live/SessionEndedPanel.tsx

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,26 @@ const messageByStatus: Partial<Record<SessionStatus, string>> = {
88
CANCELLED: '면접이 취소되었습니다.',
99
}
1010

11-
export function SessionEndedPanel({ status }: { status: SessionStatus }) {
11+
export function SessionEndedPanel({
12+
status,
13+
sessionId,
14+
}: {
15+
status: SessionStatus
16+
sessionId: number
17+
}) {
1218
return (
1319
<div className="flex flex-col items-center gap-4 px-4 py-16 text-center">
1420
<p className="text-rich text-fg">{messageByStatus[status] ?? '면접이 종료되었습니다.'}</p>
15-
<Link to="/workspace">
16-
<Button variant="secondary">워크스페이스로</Button>
17-
</Link>
21+
<div className="flex flex-wrap items-center justify-center gap-3">
22+
{status === 'COMPLETED' && (
23+
<Link to={`/sessions/${sessionId}/feedback`}>
24+
<Button>피드백 보기</Button>
25+
</Link>
26+
)}
27+
<Link to="/workspace">
28+
<Button variant="secondary">워크스페이스로</Button>
29+
</Link>
30+
</div>
1831
</div>
1932
)
2033
}

0 commit comments

Comments
 (0)