Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(notifications): remove stale timestamp from digest row in topbar
naveenkash1824cbfe7c29
diff --git a/apps/erp/app/components/Layout/Topbar/Notifications.tsx b/apps/erp/app/components/Layout/Topbar/Notifications.tsxindex 050c49030a..5d9c2bd7b8 100644--- a/apps/erp/app/components/Layout/Topbar/Notifications.tsx+++ b/apps/erp/app/components/Layout/Topbar/Notifications.tsx@@ -401,20 +401,17 @@ function GenericNotification({function DigestNotification({id,description,- createdAt,markMessageAsRead,onClose,fetchChildren}: {id: string;description: string;- createdAt: string;markMessageAsRead?: () => void;onClose: () => void;fetchChildren: (digestId: string) => Promise<NotificationRecord[]>;}) {const { t } = useLingui();- const { formatTimeAgo } = useDateFormatter();const [expanded, setExpanded] = useState(false);const [children, setChildren] = useState<NotificationRecord[] | null>(null);const [loadingChildren, setLoadingChildren] = useState(false);@@ -448,9 +445,6 @@ function DigestNotification({</div><div className="flex-1 min-w-0"><p className="text-sm">{description}</p>- <span className="text-xs text-muted-foreground">- {formatTimeAgo(createdAt)}- </span></div><div className="text-muted-foreground">{expanded ? <LuChevronUp /> : <LuChevronDown />}@@ -629,7 +623,6 @@ const Notifications = () => {<DigestNotificationkey={notification._id}id={notification._id}- createdAt={notification.createdAt}description={notification.payload.description as string}@@ -720,7 +713,6 @@ const Notifications = () => {<DigestNotificationkey={notification._id}id={notification._id}- createdAt={notification.createdAt}description={notification.payload.description as string}