feat(labs): delete a biomarker together with its values

Deleting a biomarker now removes its recorded values in the same
userId-narrowed transaction instead of unlinking them via the SetNull
FK. Removing a marker is a deliberate "drop this and its history"
action, so leaving orphaned, unlinked readings behind was surprising.

Update the delete-confirmation copy in all six locales to state that
the values are removed too.
This commit is contained in:
Marc-André Bombeck committed 2026-06-28 13:21:28 +02:00
1 parent d8c82910a7
commit 51aa37f654
7 files changed
+21 -14

No files matched your search

+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarker gelöscht",
"deleteError": "Biomarker konnte nicht gelöscht werden",
"deleteConfirmTitle": "Biomarker löschen?",
"deleteConfirmDescription": "Die Definition wird entfernt. Bestehende Werte bleiben erhalten, aber ohne Verknüpfung.",
"deleteConfirmDescription": "Der Biomarker und alle erfassten Werte werden dauerhaft gelöscht. Dies kann nicht rückgängig gemacht werden.",
"emptyTitle": "Noch keine Biomarker",
"emptyDescription": "Lege Marker wie LDL oder HbA1c an, um Werte zu erfassen.",
"loadError": "Biomarker konnten nicht geladen werden",
+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarker deleted",
"deleteError": "Could not delete the biomarker",
"deleteConfirmTitle": "Delete biomarker?",
"deleteConfirmDescription": "The definition is removed. Existing readings are kept but unlinked.",
"deleteConfirmDescription": "The biomarker and all of its recorded values are permanently deleted. This cannot be undone.",
"emptyTitle": "No biomarkers yet",
"emptyDescription": "Define markers like LDL or HbA1c to record values against them.",
"loadError": "Could not load biomarkers",
+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarcador eliminado",
"deleteError": "No se pudo eliminar el biomarcador",
"deleteConfirmTitle": "¿Eliminar biomarcador?",
"deleteConfirmDescription": "Se elimina la definición. Las mediciones existentes se conservan pero se desvinculan.",
"deleteConfirmDescription": "El biomarcador y todos sus valores registrados se eliminan de forma permanente. Esta acción no se puede deshacer.",
"emptyTitle": "Aún no hay biomarcadores",
"emptyDescription": "Define marcadores como LDL o HbA1c para registrar valores.",
"loadError": "No se pudieron cargar los biomarcadores",
+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarqueur supprimé",
"deleteError": "Impossible de supprimer le biomarqueur",
"deleteConfirmTitle": "Supprimer le biomarqueur ?",
"deleteConfirmDescription": "La définition est supprimée. Les mesures existantes sont conservées mais dissociées.",
"deleteConfirmDescription": "Le biomarqueur et toutes ses valeurs enregistrées sont définitivement supprimés. Cette action est irréversible.",
"emptyTitle": "Aucun biomarqueur pour l'instant",
"emptyDescription": "Définissez des marqueurs comme LDL ou HbA1c pour enregistrer des valeurs.",
"loadError": "Impossible de charger les biomarqueurs",
+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarcatore eliminato",
"deleteError": "Impossibile eliminare il biomarcatore",
"deleteConfirmTitle": "Eliminare il biomarcatore?",
"deleteConfirmDescription": "La definizione viene rimossa. Le misurazioni esistenti restano ma vengono scollegate.",
"deleteConfirmDescription": "Il biomarcatore e tutti i suoi valori registrati vengono eliminati definitivamente. L'operazione non è reversibile.",
"emptyTitle": "Ancora nessun biomarcatore",
"emptyDescription": "Definisci marcatori come LDL o HbA1c per registrare i valori.",
"loadError": "Impossibile caricare i biomarcatori",
+1 -1
View File
@@ -6944,7 +6944,7 @@
"deletedToast": "Biomarker usunięty",
"deleteError": "Nie udało się usunąć biomarkera",
"deleteConfirmTitle": "Usunąć biomarker?",
"deleteConfirmDescription": "Definicja zostanie usunięta. Istniejące pomiary pozostaną, ale bez powiązania.",
"deleteConfirmDescription": "Biomarker i wszystkie jego zapisane wartości zostaną trwale usunięte. Tej operacji nie można cofnąć.",
"emptyTitle": "Brak biomarkerów",
"emptyDescription": "Zdefiniuj markery, takie jak LDL lub HbA1c, aby zapisywać wartości.",
"loadError": "Nie udało się wczytać biomarkerów",