feature/IO-3499-React-19: Bug Fixes / Checkpoint

This commit is contained in:
Dave
2026-01-13 22:28:43 -05:00
parent 7bdfbfabe9
commit 53d556a621
171 changed files with 1128 additions and 954 deletions

View File

@@ -235,8 +235,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
const sev = severity || (isRrOpenRoLimit ? "warning" : "error");
if (!isRrOpenRoLimit) {
const notifyKind = sev === "warning" && typeof notification.warning === "function" ? "warning" : "error";
notification[notifyKind]({ message: vendorTitle, description: msg, duration: 10 });
const type = sev === "warning" && typeof notification.warning === "function" ? "warning" : "error";
notification.open({ type, tile: vendorTitle, description: msg, duration: 10 });
} else {
setRrOpenRoLimit(true);
}
@@ -307,7 +307,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
const onConnectError = (err) => {
// Legacy and WSS both emit this
console.log(`connect_error due to ${err}`, err);
notification.error({ message: err.message });
notification.error({ title: err.message });
};
activeSocket.on("disconnect", onDisconnect);
@@ -333,7 +333,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
// Success / Failed
const onExportSuccess = (payload) => {
const jobIdResolved = payload?.jobId ?? payload;
notification.success({ message: t("jobs.successes.exported") });
notification.success({ title: t("jobs.successes.exported") });
// Clear RR Validation flag if any
setrrValidationPending(false);
@@ -414,7 +414,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader, inse
if (!isWssMode(mode)) return; // RR is WSS-only
activeSocket.emit("rr-finalize-repair-order", { jobId }, (ack) => {
if (ack?.ok) return;
if (ack?.error) notification.error({ message: ack.error });
if (ack?.error) notification.error({ title: ack.error });
});
};