잠긴 레슨 도장 클릭 차단 및 툴팁 통일#673
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesTooltip 표시 로직 단순화
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Problem
이전 레슨을 완료하지 않아 잠긴 레슨 도장에 두 가지 문제가 있었음.
lockReason === 'retrospective'인 레슨은accessible = true로 설정되어 stamp가 button으로 렌더링됨 → 클릭 시 레슨 미리보기 모달이 열림 (cursor-not-allowed 의도 무색)lockReason === 'access'인 레슨은onMouseEnter조건에서 누락되어 hover 시 툴팁이 뜨지 않음Root cause:
onMouseEnter조건이retrospective만 허용 →access케이스 툴팁 미표시lesson.accessible만 체크 → LOCKED 상태여도 accessible=true면 클릭 가능Solution
onMouseEnter조건을!isCompleted로 단순화 → 모든 미완료 레슨에서 툴팁 표시!isLocked추가 → LOCKED 레슨은 accessible 여부 무관하게 클릭 차단Changes
Bug Fixes
src/components/pages/class/lesson-stamp.tsxResult
Screenshots
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit