From 7846dacd42b3d2ab158e95f4da8c70d133bd2b15 Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Sun, 12 Jul 2026 21:17:55 +0300 Subject: [PATCH] chore: release v0.13.0 Bump version to 0.13.0 across root/backend/frontend, add the 0.13.0 CHANGELOG entry, and refresh stale CLAUDE.md docs (the AI chat is real and @ai-sdk/react is installed; the signing/approval flow is built). Co-Authored-By: Claude Opus 4.8 --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ CLAUDE.md | 7 +++++-- backend/package.json | 2 +- frontend/CLAUDE.md | 14 ++++++++------ frontend/package.json | 2 +- package.json | 2 +- 6 files changed, 49 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f56b08..4dbd189 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,39 @@ for how releases are cut and published. ## [Unreleased] +## [0.13.0] — 2026-07-12 + +### Added +- **Prescription date pickers.** The New Prescription dialog's Start/End date now use a proper COSS + date picker (`frontend/components/ui/date-picker.tsx`, Popover + Calendar) instead of the raw + native date input. +- **Working profile fields.** Settings → Profile **Specialty** (a Select) and **Professional links** + (editable rows) are now wired to persisted preferences — previously they were inert stubs. +- **Patient filters.** The Patients page gains a status filter (all / active / inpatient / + discharged) and its search now also matches conditions and allergies. +- **Language quick-switch.** A language submenu in the sidebar user menu (alongside Theme), applied + immediately with Arabic RTL. +- **Wallet app — home & settings.** The patient app home screen adds a quick-action row (Share + record / My wallet / Notifications) and a recent-activity feed; the settings screen adds an About + section (version, docs, blog) and a privacy footer. + +### Changed +- **Record history renders in full.** The patient sheet's Record history replaces the fragile + timeline-separator layout with a continuous-rail list, so every audited change shows completely + (and mirrors correctly under RTL). +- **Update banner + AI setup notice.** The "update available" banner now uses the COSS warning Alert + and stays bottom-right under Arabic; the "connect an AI provider" notice is a clearer, thinner bar + shown above the chat input in active conversations too. +- **Wallet app — bottom sheets.** Polished the shared sheet building blocks (spacing, radii, close + and action affordances). + +### Fixed +- **Blog reachable.** `blog.temetro.com` was returning 502 due to a custom-domain target-port + mismatch (Ghost listens on 2368); documented and corrected. +- **Docs freshness.** Corrected stale `CLAUDE.md` claims (the AI chat is real and `@ai-sdk/react` is + installed; the signing/approval flow is built) and reduced the vendored `ai-elements` Base UI + type-drift errors. + ## [0.12.1] — 2026-07-10 ### Changed diff --git a/CLAUDE.md b/CLAUDE.md index b501963..a9de3a1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,9 +31,12 @@ repository (published as `temetro`). > is imported (with optional **temporary share + auto-delete**). Clinic→wallet **record-update push** > and **QR pairing** are built too. See `backend/src/routes/{signing,patients-wallet}.ts`. > +> **Also built:** the **AI chat is real** — the frontend streams from the backend's tool-using +> agent (`POST /api/chat`), not mock replies (see `frontend/CLAUDE.md`). +> > **Still vision, not built:** in-app record editing and cryptographic time-boxing of temporary -> shares. The AI chat is still **mock replies**. Email verification is wired but currently **not -> enforced** at sign-in (see `backend/CLAUDE.md`). +> shares. Email verification is wired but currently **not enforced** at sign-in (see +> `backend/CLAUDE.md`). ## Patient wallet app (sibling repo `~/Desktop/temetro-app`) diff --git a/backend/package.json b/backend/package.json index 8053cb2..8cb8a49 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "temetro-backend", - "version": "0.12.1", + "version": "0.13.0", "private": true, "type": "module", "description": "temetro backend — Express + Postgres API with Better Auth (email/password, organizations) and org-scoped patient records.", diff --git a/frontend/CLAUDE.md b/frontend/CLAUDE.md index edc953d..cb45d65 100644 --- a/frontend/CLAUDE.md +++ b/frontend/CLAUDE.md @@ -12,8 +12,9 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co `temetro` — an **open-source** clinical "AI middleman" (see the project vision in the root `../CLAUDE.md`). This app is the clinician-facing chat UI. It is now **wired to the real -`../backend/`** for authentication and patient data (no longer a standalone UI-only demo); the AI -chat replies are **still mocked** (no LLM call yet). +`../backend/`** for authentication and patient data (no longer a standalone UI-only demo). The AI +chat is **real**: `components/chat/chat-panel.tsx` streams from the backend's tool-using agent +(`POST /api/chat`) via `useChat` and renders the record data parts it streams back. - The chat parses `/patient ` (or a bare `/`) in `components/chat/chat-panel.tsx` and renders the record as a horizontal row of cards (`components/chat/patient-cards.tsx`), with small @@ -21,7 +22,7 @@ chat replies are **still mocked** (no LLM call yet). dialog; the Summary card has an **Edit record** button. - Patients can be **created and edited** via the shared `components/chat/patient-form-dialog.tsx` (mode `create` | `edit`). The "Add patient" pill in `chat-input.tsx` opens it. -- Non-command messages still get a mock assistant reply. +- Non-command messages stream a real reply from the backend agent (`POST /api/chat`). ### Auth & data (talks to `../backend`) @@ -42,7 +43,8 @@ chat replies are **still mocked** (no LLM call yet). `components/settings/settings-care-team.tsx` manages members + invitations. - `.env.local` / `.env.example` hold `NEXT_PUBLIC_API_URL`. -The signing / patient-owned-storage / approval features from the root vision are **still not built**. +The signing / patient-owned-storage / approval features from the root vision **are built** (clinic +signing key, encrypted share/import, patient approval, clinic→wallet update push, QR pairing). ## Commands @@ -77,8 +79,8 @@ trailer. See the root `../CLAUDE.md` for the project-wide per-folder commit poli `components.json` (baseColor `neutral`). - **`components/ai-elements/`** — a large AI-chat primitive library (`PromptInput`, `Conversation`, `Message`, `Suggestion`, etc.) typed against **AI SDK v6** (`ai` package: `UIMessage`, - `ChatStatus`, `FileUIPart`). Note: `@ai-sdk/react` (`useChat`) is **not installed** — chat state - is managed with local React state. + `ChatStatus`, `FileUIPart`). `@ai-sdk/react` (`useChat`) **is installed** and drives the live chat + (`chat-panel.tsx`) with a custom transport pointed at `POST /api/chat`. - **`components/sidebar-02/`** — the dashboard sidebar (`SidebarProvider` / `Sidebar` / `SidebarInset` from `components/ui/sidebar.tsx`). `app-sidebar.tsx` holds the nav config (New chat · Patients · Settings) + notifications; `team-switcher.tsx` is the `OrgSwitcher` (clinic switch). diff --git a/frontend/package.json b/frontend/package.json index 42851b5..2f27c78 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "0.12.1", + "version": "0.13.0", "private": true, "scripts": { "dev": "next dev", diff --git a/package.json b/package.json index 789a0ca..b55eb1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "temetro", - "version": "0.12.1", + "version": "0.13.0", "private": true, "devDependencies": { "shadcn": "^4.11.0"