fix: week view and column view slots not fetching at end of month bug#24374
fix: week view and column view slots not fetching at end of month bug#24374
Conversation
Walkthrough
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)**/*.tsx📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Files:
**/*.{ts,tsx,js,jsx}⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (2)📚 Learning: 2025-09-18T13:38:50.958ZApplied to files:
📚 Learning: 2025-07-15T12:59:34.389ZApplied to files:
🧬 Code graph analysis (2)packages/platform/atoms/booker/BookerWebWrapper.tsx (1)
packages/platform/atoms/calendar-view/wrappers/CalendarViewPlatformWrapper.tsx (1)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
|
||
| const bookerLayout = useBookerLayout(event.data?.profile?.bookerLayouts); | ||
| const selectedDate = searchParams?.get("date"); | ||
| const selectedDate = useBookerStoreContext((state) => state.selectedDate); |
There was a problem hiding this comment.
there is an issue with this approach, what happens is we pick date from search params and that value is correct, but when the params are updated nextjs is not able to detect this param updation so the value of selectedDate never changes. hence we can use selectedDate from useBookerStoreContext instead
| rescheduleUid: props.rescheduleUid ?? null, | ||
| bookingUid: props.bookingUid ?? null, | ||
| layout: layout, | ||
| layout: "week_view", |
There was a problem hiding this comment.
we know this is always gonna be week view hence we hardcode the layout as week_view
E2E results are ready! |
…#24374) * fix: dont pick date value from url, use selectedDate value from booker store instead * fix: replace month count logic with usePrefectch hook * intialise booker layout as week view
No description provided.