v0.27.0 — Garden brain: zone-4b knowledge, calendar suggestions, UW citations
src/lib/garden/knowledge.ts holds hand-curated zone-4b (~May 15 frost) knowledge for 28 crops/fruits/flowers: monthly care timing, companion friends/foes, rotation families. Pure matchers knowledgeFor/tipsForMonth use whole-word stem matching (tested — 'Pear' must not hit 'Pea'). The calendar gains a "Good to do this month" list matched to owned plants, deduped against existing task titles, with one-click Remind me → YEARLY task via /api/v1/tasks. Plant type pages gain a "Growing in zone 4b" card (timeline, companions, rotation). Tips cite UW Extension via site search URLs — no fabricated article links. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,14 @@ user-facing overview.
|
||||
- **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`).
|
||||
(`src/lib/garden/season.ts`) and garden-brain suggestions.
|
||||
- **Garden brain** — `src/lib/garden/knowledge.ts`: hand-curated zone-4b
|
||||
(~May 15 frost) care timing, companions/foes, rotation families for ~28
|
||||
crops; pure matchers `knowledgeFor`/`tipsForMonth` (whole-word stem match —
|
||||
beware "Pear"/"Pea"-style false hits, tested). Surfaced as calendar
|
||||
"Good to do this month" (one-click YEARLY task via /api/v1/tasks) and a
|
||||
"Growing in zone 4b" card on type pages. Tips cite UW Extension via site
|
||||
search URLs — never fabricate article URLs.
|
||||
- **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