hack4impact-calpoly / ecologistics-shared-calendar

Calendar scheduling system for Ecologistics SLO
https://ecologistics-shared-calendar.vercel.app
10 stars 3 forks source link

113 filter event bar #118

Closed Belal-Elshenety closed 5 months ago

Belal-Elshenety commented 5 months ago

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

Screenshots/Screencast

Screenshot 2024-05-14 at 12 13 33 AM Screenshot 2024-05-14 at 12 13 42 AM
vercel[bot] commented 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