Files
Showy/docs-vault/Calendar.md
T

1.2 KiB

title, tags
title tags
Calendar
feature
calendar
episodes

Calendar

Overview

Monthly calendar view showing upcoming TV episode air dates. Helps users track when new episodes of their shows are airing.

How It Works

  1. Pages#CalendarPage renders a monthly grid
  2. Calls episodesApi.getByMonth(startDate, endDate) for the visible month range
  3. Backend episodeService.getEpisodesBetweenDates() queries episodes with:
    • air_date between start and end dates
    • Entry has showInCalendar = true
  4. Episodes displayed on their air date cells

Data Flow

CalendarPage → useEpisodesByMonth(start, end) → GET /episodes/month/:start/:end
                                                       ↓
                              episodeService.getEpisodesBetweenDates()
                                                       ↓
                              Episodes with air_date in range + showInCalendar

Configuration

Each entry has a showInCalendar flag (default true). Users can toggle this in the Components#Dialogs to hide a show's episodes from the calendar.

See Also