From be7df4bc172d3ba427f694946cb96877545c286d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 26 Apr 2026 22:34:03 +0200 Subject: [PATCH] chore: bump to 1.2.0 and sync model count to 23 package.json was still on 1.1.0 even though CHANGELOG and the released features (Custom Thresholds, Glucose, Dashboard Customization, Built-in Feedback, Multi-Provider AI) shipped as 1.2.0 on 2026-04-18. CLAUDE.md and AGENTS.md said 21 / 22 models in different places; the schema actually has 23. Feedback (added in v1.2 for the in-app bug-report flow) was missing from the model list in AGENTS.md, and AGENTS.md still claimed status "Feature-complete (v1.0.0)". Co-Authored-By: Claude Opus 4.7 (1M context) --- AGENTS.md | 6 +++--- CLAUDE.md | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 093b2d394..9ecb744f4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,7 @@ Instructions for AI coding agents (OpenAI Codex, Claude Code, Cursor, etc.) work **HealthLog** — a personal health-tracking web app (weight, blood pressure, pulse, mood, medication compliance) with Withings integration, moodLog.app sync, Dracula-themed UI, mobile-first PWA design. -**Status**: Feature-complete (v1.0.0). See GitHub Issues for open tasks. +**Status**: v1.2.0 (Custom Thresholds, Blood Glucose, Dashboard Customization, Built-in Feedback, Multi-Provider AI). See GitHub Issues for open tasks. ## Tech Stack @@ -117,7 +117,7 @@ messages/ ├── de.json # German translations (primary UI language) └── en.json # English translations prisma/ -├── schema.prisma # Database schema (22 models) +├── schema.prisma # Database schema (23 models) └── migrations/ # Migration files (0001–0018) prisma.config.ts # Prisma config (DB URL lives here, NOT in schema) public/ @@ -207,7 +207,7 @@ These are hard-won lessons. Ignoring them will cause errors: ## Database Models (Prisma) -22 models: `User`, `Passkey`, `Session`, `AuthChallenge`, `Measurement`, `Medication`, `MedicationSchedule`, `MedicationIntakeEvent`, `ReminderPhaseConfig`, `TelegramReminderMessage`, `TelegramScheduledDeletion`, `ApiToken`, `WithingsConnection`, `MoodEntry`, `AppSettings`, `AuditLog`, `NotificationChannel`, `NotificationPreference`, `PushSubscription`, `DataBackup`, `UserAchievement`, `RateLimit`. +23 models: `User`, `Passkey`, `Session`, `AuthChallenge`, `Measurement`, `Medication`, `MedicationSchedule`, `MedicationIntakeEvent`, `ReminderPhaseConfig`, `TelegramReminderMessage`, `TelegramScheduledDeletion`, `ApiToken`, `WithingsConnection`, `MoodEntry`, `AppSettings`, `Feedback`, `AuditLog`, `NotificationChannel`, `NotificationPreference`, `PushSubscription`, `DataBackup`, `UserAchievement`, `RateLimit`. ## When Making Changes diff --git a/CLAUDE.md b/CLAUDE.md index b826346ab..d241aac51 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -36,7 +36,7 @@ docker compose logs -f app # Tail app logs ## Architecture - **Next.js 16** App Router with TypeScript strict. Pages are RSC by default; `"use client"` only for interactivity. -- **Prisma 7** ORM with PostgreSQL (22 models). Uses `PrismaPg` adapter from `@prisma/adapter-pg`. Client singleton at `src/lib/db.ts`. Generated client at `src/generated/prisma/client` (note the `/client` suffix). Prisma config in `prisma.config.ts` (not in schema.prisma). +- **Prisma 7** ORM with PostgreSQL (23 models). Uses `PrismaPg` adapter from `@prisma/adapter-pg`. Client singleton at `src/lib/db.ts`. Generated client at `src/generated/prisma/client` (note the `/client` suffix). Prisma config in `prisma.config.ts` (not in schema.prisma). - **shadcn/ui** components (new-york style) in `src/components/ui/`. Add new ones via `pnpm dlx shadcn@latest add `. - **Dracula theme** via CSS variables in `globals.css`. Dark mode is default. Use `--dracula-*` tokens for chart colors. - **TanStack Query** for client-side data fetching. Provider in `src/components/providers.tsx`. @@ -81,7 +81,7 @@ docker compose logs -f app # Tail app logs - `src/lib/validations/` — Zod schemas shared between API + client - `src/hooks/` — React hooks (`use-auth`) - `messages/de.json` + `messages/en.json` — i18n translations -- `prisma/schema.prisma` — database schema (21 models) +- `prisma/schema.prisma` — database schema (23 models) - `prisma.config.ts` — Prisma config (DB URL here, not in schema) - `public/sw.js` — Service worker for Web Push notifications + offline caching - `docs/` — architecture, security, assumptions, ops, API docs, ADRs diff --git a/package.json b/package.json index 9992be9f9..ce7a789db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "healthlog", - "version": "1.1.0", + "version": "1.2.0", "private": true, "packageManager": "pnpm@10.31.0", "scripts": {