v0.26.0 — Calendar: month view of all tasks + bloom/harvest windows
New /calendar page merges every Task (garden, home, equipment, animals) into one month grid, color-coded by category, with a click-a-day detail panel and inline Done (reuses /api/tasks/[id]/complete). Recurring tasks project every occurrence in view via the new occurrencesInRange in src/lib/tasks/schedule.ts (first tests for that module — 12, including month-end clamping). Season chips per month come from PlantType bloom/harvest windows via src/lib/garden/season.ts (monthInWindow, year-wrap aware). Nav gains a Calendar item. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,10 @@ user-facing overview.
|
||||
- **Animals** — `Animal` + `AnimalLog` (pets/livestock); placed on the Location
|
||||
tree, and `Task`s can link to an animal (`Task.animalId`).
|
||||
- **Locations** — `Location` tree (self-ref `parentId`) shared by plants, items, animals.
|
||||
- **Reminders** — `Task` + `TaskCompletion`; recurrence in `src/lib/tasks/schedule.ts`.
|
||||
- **Reminders** — `Task` + `TaskCompletion`; recurrence in `src/lib/tasks/schedule.ts`
|
||||
(incl. `occurrencesInRange` projection). **/calendar** renders a month view of
|
||||
all tasks (garden + house) plus PlantType bloom/harvest windows
|
||||
(`src/lib/garden/season.ts`).
|
||||
- **REST API** — `/api/v1/*` authed by `ApiToken` (per-scope; logic in `src/lib/api/`).
|
||||
- **Suggestions** — `@otm/account-panel` (Gitea npm registry) → files issues to the repo.
|
||||
- **Backup & Restore** — `/api/admin/backup` + `/api/admin/restore` (admin only).
|
||||
|
||||
Reference in New Issue
Block a user