mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
fix(labs): name a merge in the owner's activity feed and toast it through the outcome module
A merge by a record manager now reads as its own sentence in the owner's activity feed, the merged toast goes through the written-outcome toast, and the export test doubles carry the alias and merge tables.
This commit is contained in:
1 parent
e65ada2961
commit
e112e05a58
13 files changed
+52
-25
No files matched your search
@@ -16,6 +16,7 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
|
||||
import { toast } from "sonner";
|
||||
import { Loader2 } from "lucide-react";
|
||||
|
||||
import { toastWrittenOutcome } from "@/components/outcome/outcome-toast";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Checkbox } from "@/components/ui/checkbox";
|
||||
import { Label } from "@/components/ui/label";
|
||||
@@ -71,7 +72,8 @@ export function BiomarkerMergeSheet({
|
||||
setPreview(result);
|
||||
return;
|
||||
}
|
||||
toast.success(
|
||||
toastWrittenOutcome(
|
||||
"success",
|
||||
tCount("labs.merge.doneToast", result.movedReadings, {
|
||||
name: result.target.name,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user