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: allow all files to be downloaded
Brad Barbin2acda632e521
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex 03fc25b697..4d0b690f81 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -5,6 +5,11 @@ import {Badge,Button,cn,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuIcon,+ DropdownMenuItem,+ DropdownMenuTrigger,Heading,HStack,IconButton,@@ -121,9 +126,11 @@ import {LuAlertTriangle,LuChevronLeft,LuClipboardCheck,+ LuDownload,LuGitBranchPlus,LuHammer,LuHardHat,+ LuMoreVertical,LuTimer,} from "react-icons/lu";import { MethodIcon, MethodItemTypeIcon } from "~/components/Icons";@@ -537,10 +544,7 @@ export const JobOperation = ({<Td><HStack><FileIcon type={type} />- <span- className="font-medium"- onClick={() => downloadFile(file)}- >+ <span className="font-medium">{["PDF", "Image"].includes(type) ? (<FilePreviewbucket="private"@@ -563,7 +567,29 @@ export const JobOperation = ({))}</Td>- <Td>{/* Add actions here if needed */}</Td>+ <Td>+ <div className="flex justify-end w-full">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label="More"+ icon={<LuMoreVertical />}+ variant="secondary"+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ <DropdownMenuItem+ onClick={() => downloadFile(file)}+ >+ <DropdownMenuIcon+ icon={<LuDownload />}+ />+ Download+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ </Td></Tr>);})