[Fix] 근로자 상세 '현재 업무' 섹션을 실제 Task API에 연결 - #317
Merged
Merged
Conversation
fetchTasks({ workerId })로 실제 업무 목록을 가져와 표시하고
task 상세로 링크한다. '안내이력' 섹션은 근로자 범위 audit 조회 API가
없어서 이번 범위에서 제외.
closes #316
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 #316
문제
WorkerDetailPage.tsx의 "현재 업무" 섹션이 항상 "업무 연동 준비 중입니다" EmptyState만 표시했는데, 정작fetchTasks({ workerId })는 다른 화면(WorkListPage)에서 이미 쓰는 실 API였음.변경 사항
fetchTasks({ workerId, size: 20 })로 실제 근로자 업무 목록 조회/tasks/:taskId로 링크같은 페이지의 "안내이력" 섹션은 근로자 범위 audit 조회 API가 없어서(기존
/audit-events는 ADMIN 전용 + WORKER target type 없음) 이번 범위에서 제외.검증
tsc -b통과lint0 errorsWorkerDetailPage테스트 11개(신규 2개 포함) 통과build통과