Repository navigation
[FIX] 인수인계서 관리 화면의 팀장/팀 하드코딩 제거 #680 - #681
Conversation
|
Warning Review limit reached
Next review available in: 59 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
📋 PR 타입
🗂 작업 영역
🙋 관련 역할
📝 작업 내용
#678에서 범위를 뺐던
team-handover/server.ts의 마지막 하드코딩을 고친다.FIXED_LEADER_ID = 2·FIXED_LEADER_NAME = "김서준"·FIXED_TEAM_NAME = "개발팀"상수 제거.listTeamHandovers(teamName, leaderId)·getTeamHandoverDetail(handoverId, teamName)로 시그니처 변경 —getMyActionBoard와 같은 패턴(mock 분기는 값 없으면 즉시 throw).getViewer()가 준 실제 값을 실어 보내도록 스레딩:/team/handover목록 페이지 →listTeamHandovers(viewer.teamName, viewer.id)/team/handover/:handoverId상세 페이지 →getTeamHandoverDetail(id, viewer.teamName)completeTeamHandoverAction/rejectTeamHandoverAction→getViewer()를 (기존엔!isMock분기 안에서만 불렀는데) 맨 위에서 한 번만 불러teamName을getTeamHandoverDetail에 넘기고, mock 중간승인 액터 스탬프도FIXED_LEADER_NAME대신viewer.name을 쓴다.getViewer()는 항상 OWNER를 반환한다"고 돼 있었는데, 실제로는viewer.ts가 2026-08-13에/team/*경로를 LEADER로 매핑하도록 채워지면서 이미 사실이 아니었다(/team/handover는 정확히 김서준을 돌려주고 있었다). 코드는 우연히 맞물려 있었지만 주석이 stale했다 — 이번에 정리했다.바뀌지 않은 것: 실연동(
!isMock) 분기의canApproveMid(viewer, {teamId})팀 스코프 검사는 그대로다. 이번 변경은 mock 분기가 스코프를 잡는 방식(상수 → 파라미터)만 건드린다.✅ 작업 체크리스트
기본
fix/team-handover-hardcoding#680, basedevelop)type: 제목 #{이슈번호})Closes #에 이슈 번호 기입console· 주석 처리된 코드 제거.env)Z 필수
canApproveMid팀 스코프 검사는 그대로 유지, mock 분기의 소유권 판정 기준만 실제 로그인 사람으로 교정품질
getMyActionBoard([FIX] 보드 저장 실패 시 원인이 토스트 문구 하나로 가려짐 #676)·getMyActionsPage/getTeamActionsPage([FIX] 회의·보드·내 액션·팀 액션·결제 화면의 목 인물/주소 하드코딩 제거 #678)와 같은 "선택 파라미터 + mock 분기 throw" 패턴 재사용loading/error/empty3상태 — 해당 없음🔗 연관 이슈
Closes #680
📸 스크린샷 (선택)
💬 리뷰 포인트
completeTeamHandoverAction/rejectTeamHandoverAction에서getViewer()를 무조건 맨 위로 옮긴 게 실연동 분기 동작에 영향 없는지(기존엔!isMock안에서만 불렀음) 재확인 부탁📝 추가 메모
npx tsc --noEmit/npx eslint <변경 파일 5개> --max-warnings=0/npx jest --silent(전체 155 스위트·1631건) /npx next build전부 통과/team/handover목록·상세 직접 렌더 확인 — 김서준(팀장)으로 정상 로드, 이하윤의 휴직 인수인계서 1건 정상 표시