Closed Belal-Elshenety closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
ecologistics-shared-calendar | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 15, 2024 2:02am |
Developer: Belal Elshenety
Closes #113
Pull Request Summary
When selecting a specific day in the public or private calendar, only events on that day are populating in the event bar. When the selected day doesn't have any events or when you click outside the calendar (to deselect day), all events populate to the event bar.
Modifications
calendar.tsx: mada a SelectedDateEvents variable that populates to the event bar only when a date is selected and it has events publicCalendar.tsx: same as calendar.tsx middleware.ts: add eventDetails to public routes so when you click an event, it doesn't go to login but rather takes you to eventDetails page.
Testing Considerations
Check all events are populating on the same days listed in the backend
Check that you can see eventDetails without logging in
Pull Request Checklist
[ ] Code is neat, readable, and works
[ ] Comments are appropriate
[ ] The commit messages follows our guidelines
[ ] The developer name is specified
[ ] The summary is completed
[ ] Assign reviewers
Screenshots/Screencast