feat: 업무함 근로자·Case 화면 구현 - #215
Merged
Merged
Conversation
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.
배경
기존
/tasks의 Task 단위 평면 목록을 이슈 #214 기준의 근로자 중심 마스터–디테일 업무함으로 재구성했습니다.화면용 샘플 데이터를 하드코딩하지 않고 기존 Worker·Task·Workflow API 응답을 조합합니다. 현재 API에서 제공하지 않는 정보는 임의로 추측하지 않고 안내 상태로 표시합니다.
주요 변경
업무함 UI
?workerId=에 저장해 새로고침 후에도 복원데이터 결합과 우선순위
workers,tasks,workflow-catalogs를 각각 한 번 조회하고worker_id로 결합case_id의 Task를 하나의 Case로 그룹화case_id가 없는 Task는 각각 독립된 fallback Case로 처리COMPLETED Task / 전체 Task기준으로 계산상태 및 오류 처리
상세 이동과 접근성
Case 열기와 검토 CTA를 기존 Task 상세 화면에 연결/tasks/:caseId에서/tasks/:taskId로 정리fetchTasks()에caseId필터 파라미터 지원 추가listbox/option, 선택 상태, 키보드 포커스 적용Home/End키로 근로자 목록 이동 지원현재 API 제약
이번 PR에서는 API에 없는 값을 샘플로 채우지 않았습니다.
따라서 현재
Case 열기는 Case ID가 아닌 대표task_id로 기존 Task 상세에 이동합니다. 판단 근거와 문서 연결은 관련 API 계약이 마련된 후 후속 연동이 필요합니다.검증
npm test -- --run— 65개 파일, 328개 테스트 통과npm run lintnpm run build테스트에는 Worker·Task 결합, Case 그룹화, 검색·정렬, URL 선택 상태, 상세 이동, 부분 실패, 빈 데이터, Workflow fallback, 조회 상한 및 누락 참조 처리가 포함됩니다.
리뷰 요청 사항
Closes #214