feat: add shared overview and harden frontend session state (#407)

This commit is contained in:
Daniel Volz
2026-03-10 06:26:03 +01:00
committed by GitHub
parent 733fe2f38a
commit 105eb7bc0d
37 changed files with 3281 additions and 1138 deletions
+29
View File
@@ -264,6 +264,35 @@ export type ExpiredLinkData = {
expiredAt: string;
};
export type SharedMedicationOverviewItem = {
name: string;
genericName: string | null;
imageUrl: string | null;
packageType: PackageType;
packCount: number;
blistersPerPack: number;
pillsPerBlister: number;
totalPills: number | null;
looseTablets: number;
currentStock: number | null;
capacity: number | null;
daysLeft: number | null;
nextIntakeDate: string | null;
depletionDate: string | null;
priority: "normal" | "high" | null;
expiryDate: string | null;
medicationStartDate: string | null;
prescriptionEnabled: boolean;
prescriptionRemainingRefills: number | null;
};
export type SharedMedicationOverviewResponse = {
takenBy: string;
sharedBy: string | null;
generatedAt: string;
medications: SharedMedicationOverviewItem[];
};
// =============================================================================
// Field Validation Limits (must match backend)
// =============================================================================