Updated the Obsidian docs-vault

This commit is contained in:
Mohammed Abad committed 2026-04-22 14:48:43 +01:00
1 parent 72fd77ee01
commit 260282a0e2
36 files changed
+3497 -144

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
---
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