[Bugfix/#313] 타임라인 성과 상태 UnderPerform/Pending 정리 - #314
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough타임라인 성과 상태를 Changes타임라인 성과 상태 처리
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
📚 Storybook 배포 완료
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/constants/timeline/statusStyle.ts (1)
69-80: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win상태 정규화 회귀 테스트를 추가해 주세요.
ON_TRACK,ABOVE_AVERAGE,UNDERPERFORM은 그대로 반환되고,null·undefined·알 수 없는 문자열은 모두PENDING으로 반환되는지 테스트하면 이번 버그가 재발하는 것을 막을 수 있습니다. PR 목표의 핵심 동작인 미정 상태 정규화를 직접 검증하는 테스트가 필요합니다.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/constants/timeline/statusStyle.ts` around lines 69 - 80, Add regression tests for resolveTimelinePerformanceStatus covering ON_TRACK, ABOVE_AVERAGE, and UNDERPERFORM as unchanged results, plus null, undefined, and unknown strings returning PENDING. Keep the tests focused on the normalization behavior and use the project’s existing test conventions.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/timeline/TimelineStatusLegend.tsx`:
- Around line 22-26: TimelineStatusLegend의 최상위 및 내부 컨테이너에서 flex-wrap 의존성을 제거해
범례가 항상 한 줄로 유지되도록 조정하세요. 각 범례 항목에는 whitespace-nowrap과 shrink-0을 적용하고, 좁은 화면에서는
가로 스크롤 등 명시적인 오버플로 동작을 추가하세요.
---
Nitpick comments:
In `@src/constants/timeline/statusStyle.ts`:
- Around line 69-80: Add regression tests for resolveTimelinePerformanceStatus
covering ON_TRACK, ABOVE_AVERAGE, and UNDERPERFORM as unchanged results, plus
null, undefined, and unknown strings returning PENDING. Keep the tests focused
on the normalization behavior and use the project’s existing test conventions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 060f8d4e-8691-427c-b5dc-7af792cc7955
📒 Files selected for processing (7)
src/components/timeline/TimelineStatusLegend.tsxsrc/constants/timeline/statusStyle.tssrc/pages/dashboard/timeline/Timeline.tsxsrc/types/timeline/api.tssrc/types/timeline/summary.tssrc/types/timeline/timeline.mock.tssrc/types/timeline/ui.ts
🚨 관련 이슈
Closed #313
✨ 변경사항
✏️ 작업 내용
AT_RISKAPI 값UNDERPERFORM으로 타입/스타일 키 정렬performanceStatus가 null/미지 값일때,ON_TRACKfallback 제거 -> UI는 회색으로 Pending 표시💻 작업 화면
😅 미완성 작업
N/A
📢 논의 사항 및 참고 사항
ON_TRACK/ABOVE_AVERAGE/UNDERPERFORMPending은 API enum 값이 아니라 FE에서 UX 개선을 위한 상태표시 입니다.Summary by CodeRabbit
새 기능
개선