feat(mobile): add health tracking, milestones, messaging, and push registration

Health: consent gate (Art. 9 DSGVO) plus weight/vet-visit/vaccine log
sections, gated behind health.getConsentStatus like the web app.
Milestones: view a pet's milestone posts and create the 5 user-initiated
types with an optional photo. Messaging: chat detail/compose screen
(messages/[conversationId].tsx) polling while focused, reachable from the
conversations list and from a pet profile's new "Nachricht" entry point.
Push: usePushNotifications requests permission and registers the Expo
push token with owner.registerPushToken; real delivery still needs an EAS
project id (`eas init`), tracked in the README.

All four verified live on a real Android emulator: health CRUD (add/list/
delete a weight log), Health/Milestones/Nachricht entry points gated
correctly by own-pet vs. other-pet, and full chat history loading via an
existing conversation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Sonnet 5 committed 2026-09-06 09:50:07 +02:00
1 parent 0323e8d449
commit a3f19ff70f
19 files changed
+1208 -31

No files matched your search

+3 -1
View File
@@ -1,7 +1,7 @@
import type { inferRouterOutputs } from "@trpc/server";
import type { AppRouter } from "../../../src/trpc/routers/_app";
type RouterOutputs = inferRouterOutputs<AppRouter>;
export type RouterOutputs = inferRouterOutputs<AppRouter>;
export type Pet = RouterOutputs["pets"]["list"][number];
export type FeedPost = RouterOutputs["feed"]["getFeed"]["posts"][number];
@@ -9,3 +9,5 @@ export type ExplorePet = RouterOutputs["explore"]["listPets"]["pets"][number];
export type NotificationItem = RouterOutputs["notifications"]["list"]["notifications"][number];
export type Conversation = RouterOutputs["conversations"]["list"][number];
export type PostComment = RouterOutputs["comments"]["listByPost"]["comments"][number];
export type ChatMessage = RouterOutputs["messages"]["list"]["messages"][number];
export type MilestonePost = RouterOutputs["milestones"]["listByPet"][number];