Skip to content

feat(restaurant): ✨ show real special schedules in sidebar - #812

Open
wilyan09007 wants to merge 1 commit into
devfrom
766/special-schedules-sidebar
Open

wilyan09007 wants to merge 1 commit into
devfrom
766/special-schedules-sidebar

Conversation

@wilyan09007

Copy link
Copy Markdown
Contributor

Summary

The Special Schedules section on the restaurant page now shows the real special schedules from Anteater API instead of events. Each schedule shows its name and dates, and expands to show the hours for each meal. A schedule happening today gets an Active tag. This works in the desktop sidebar and the mobile Special Schedules drawer, in both light and dark mode.

Changes

  • Added a schedule.special route in packages/api/src/schedules/router.ts that gets a dining hall's schedules from the AAPI /dining/schedules endpoint and keeps only current and upcoming special schedules, sorted by start date
  • Added getDiningSchedulesResponseSchema and the DiningSchedule type to packages/validators, plus a test for the new route
  • Added a SpecialSchedules component in apps/next/src/components/ui/restaurant/special-schedules.tsx, used by both the sidebar and the mobile drawer in place of the old events placeholder
  • The API gives hours for each day of the week, so days with the same hours are grouped together (for example "Thu, Nov 26 - Sat, Nov 28: Closed"), and a schedule that is closed the whole time just shows "Closed"
  • Schedule dates are read as Pacific time calendar dates, so they don't show up a day early

Closes #766

This branch was previously deployed

1 inactive deployment
staging-812 — 212a1f45 Deployed Nov 26, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant