fix: separate target health from replay playback

This commit is contained in:
lda
2026-07-12 15:06:25 +07:00 Verified
parent 35ee86bf9d
commit 8926cb9aef
6 changed files with 54 additions and 25 deletions
@@ -20,13 +20,11 @@ export const presentationTargetHealth = ({
target,
probe,
liveActive,
replayActive = false,
failureReason,
}: {
readonly target: string | null;
readonly probe: TargetProbeState;
readonly liveActive: boolean;
readonly replayActive?: boolean;
readonly failureReason?: string | undefined;
}): PresentationTargetHealth => {
if (!target) {
@@ -37,14 +35,6 @@ export const presentationTargetHealth = ({
};
}
if (replayActive && probe === "ready") {
return {
kind: "replay",
label: "Replay evidence",
detail: "reviewed recording",
};
}
if (liveActive && probe === "ready") {
return {
kind: "active",