Files
Showy/docs-vault/Calendar.md
T

42 lines
1.2 KiB
Markdown

---
title: Calendar
tags:
- 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|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|EntrySettingsDialog]] to hide a show's episodes from the calendar.
## See Also
- [[API Reference#Episodes]] — Calendar endpoint
- [[Library]] — `showInCalendar` flag