feat(inbox): a run notice from before the result rode along reads its one-liner back into one (E30 S2)
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
X,
|
||||
} from "lucide-react";
|
||||
import { api, type AppNotification, type JobResult } from "../lib/api";
|
||||
import { jobResultText } from "../lib/jobResult";
|
||||
import { jobResultText, parseSummary } from "../lib/jobResult";
|
||||
import { notifyActionError } from "../lib/actionErrors";
|
||||
import { useLiveQuery } from "../lib/useLiveQuery";
|
||||
import { focusAccessRequestsTab } from "../lib/adminUsersTab";
|
||||
@@ -534,7 +534,8 @@ function NotificationRow({
|
||||
title = t(d.status === "error" ? "inbox.jobDone.titleError" : "inbox.jobDone.titleOk", {
|
||||
job,
|
||||
});
|
||||
body = d.result ? jobResultText(t, d.result) : d.summary || n.body;
|
||||
const result = d.result ?? parseSummary(d.summary);
|
||||
body = result ? jobResultText(t, result) : d.summary || n.body;
|
||||
} else if (isEmailUndelivered) {
|
||||
// Email is fail-soft: a drop leaves no error anywhere else, so this notice IS the trace. Name
|
||||
// the message that was lost, since that is what tells the operator what their users didn't get.
|
||||
|
||||
Reference in New Issue
Block a user