fix: 연동 캘린더의 실제 일정을 후보 시간에 반영 (#115) - #120
Conversation
Google/iCloud 연동 후에도 후보 격자가 하드코딩된 가짜 바쁜 시간이나 순수 장식 배너만 보여주던 문제를 해결한다. - 연동 캘린더 이벤트 집계 API(GET /api/calendar/events) 추가: Google(getValidTokens+events.list)와 iCloud(CalDAV queryEvents)를 병합해 표준 CalendarEvent로 반환(부분 실패 허용) - 절대 시각 이벤트를 요일격자 busy 슬롯 키로 변환하는 eventsToBusySlotKeys 유틸 추가(클라이언트 로컬 시간대 기준) - 생성 화면: mock busySlots 제거, 후보 기간 실제 이벤트로 교체 - 조율/참여 화면: 가짜 "감지됨" 배너 제거, 실제 연동 시 바쁜 시간을 제외한 가용 시간대를 자동 선택하고 사실에 맞는 배너 노출 - calendar-busy 단위 테스트 추가 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
More reviews will be available in 36 minutes and 46 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ 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 |
🚀 작업 내용 (What)
GET /api/calendar/events?start=&end=getValidTokens+events.list)과 iCloud(CalDAVqueryEvents+ ICS 파싱)를 병합해 표준CalendarEvent로 반환 (한쪽 실패해도 나머지 보존)MON-10) 변환 유틸eventsToBusySlotKeys추가 (사용자 로컬 시간대 기준, 클라이언트에서 변환)MON-10,WED-14…) 제거 → 후보 기간의 실제 이벤트로 교체 (후보 기간 변경 시 재조회)eventsToBusySlotKeys단위 테스트 7개 추가📣 핵심 변경 이유 (Why)
📸 스크린샷 (Visuals, 선택)
tsc/eslint/vitest 통과했습니다.🔗 관련 이슈 (Issue)
Close #115