Skip to content

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.

feat: add thumbnail to job

Brad Barbin2966636244ed
diff --git a/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
index 8983c9e313..6deb3e2421 100644
--- a/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
+++ b/apps/carbon/app/modules/production/ui/Jobs/JobsTable.tsx
@@ -26,6 +26,7 @@ import {
CustomerAvatar,
EmployeeAvatar,
Hyperlink,
+ ItemThumbnail,
New,
Table,
} from "~/components";
@@ -96,9 +97,17 @@ const JobsTable = memo(({ data, count, tags }: JobsTableProps) => {
accessorKey: "jobId",
header: "Job ID",
cell: ({ row }) => (
- <Hyperlink to={path.to.job(row.original.id!)}>
- {row.original?.jobId}
- </Hyperlink>
+ <HStack>
+ <ItemThumbnail
+ size="sm"
+ thumbnailPath={row.original.thumbnailPath}
+ // @ts-ignore
+ type={row.original.itemType}
+ />
+ <Hyperlink to={path.to.job(row.original.id!)}>
+ {row.original?.jobId}
+ </Hyperlink>
+ </HStack>
),
meta: {
icon: <LuBookMarked />,