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
feat: show blurred audit log preview in History drawer for Starter users
Sidwebworksa144ddf4515c
diff --git a/apps/erp/app/components/AuditLog/AuditLogDrawer.tsx b/apps/erp/app/components/AuditLog/AuditLogDrawer.tsxindex 759238012d..9bc0996a93 100644--- a/apps/erp/app/components/AuditLog/AuditLogDrawer.tsx+++ b/apps/erp/app/components/AuditLog/AuditLogDrawer.tsx@@ -2,7 +2,6 @@ import { getTableLabel } from "@carbon/database/audit.config";import type { AuditLogEntry } from "@carbon/database/audit.types";import {Badge,- Button,cn,Drawer,DrawerBody,@@ -16,9 +15,9 @@ import {import { formatDateTime } from "@carbon/utils";import { memo, useEffect, useRef } from "react";import { LuFilePen, LuFilePlus, LuFileX, LuHistory } from "react-icons/lu";-import { Link, useFetcher } from "react-router";+import { useFetcher } from "react-router";import { EmployeeAvatar, Empty } from "~/components";-import { path } from "~/utils/path";+import AuditLogUpgradeOverlay from "~/modules/settings/ui/AuditLog/AuditLogUpgradeOverlay";type AuditLogDrawerProps = {isOpen: boolean;@@ -123,23 +122,7 @@ const AuditLogDrawer = memo(</DrawerHeader><DrawerBody>{planRestricted ? (- <div className="flex flex-col items-center justify-center h-full text-center gap-4 px-4">- <div className="rounded-full bg-muted p-3">- <LuHistory className="size-6 text-muted-foreground" />- </div>- <div className="space-y-2">- <h3 className="text-lg font-semibold">- Upgrade to unlock audit history- </h3>- <p className="text-sm text-muted-foreground text-balance">- See who changed what, when, and why with full field-level- change tracking for every record.- </p>- </div>- <Button asChild>- <Link to={path.to.billing}>Upgrade to Business</Link>- </Button>- </div>+ <AuditLogUpgradeOverlay />) : isLoading ? (<VStack spacing={3}><Skeleton className="w-full h-[151px]" />