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.

style: smaller headings in mes

Brad Barbin4520f78ab533
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsx
index 3a76035589..2703f3cae7 100644
--- a/apps/mes/app/components/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation.tsx
@@ -199,7 +199,7 @@ export const JobOperation = ({
/>
</Link>
)}
- <Heading size="h2">{operation.jobReadableId}</Heading>
+ <Heading size="h4">{operation.jobReadableId}</Heading>
</div>
<div className="hidden md:flex flex-shrink-0 items-center justify-end gap-2">
<Navigation
@@ -281,7 +281,7 @@ export const JobOperation = ({
<ItemThumbnail thumbnailPath={thumbnailPath} size="xl" />
)}
<div className="flex flex-col flex-grow">
- <Heading size="h2">{operation.itemReadableId}</Heading>
+ <Heading size="h3">{operation.itemReadableId}</Heading>
<p className="text-muted-foreground line-clamp-1">
{operation.itemDescription}
</p>
diff --git a/apps/mes/app/routes/x+/active.tsx b/apps/mes/app/routes/x+/active.tsx
index 8385ed535a..9edfb4f20c 100644
--- a/apps/mes/app/routes/x+/active.tsx
+++ b/apps/mes/app/routes/x+/active.tsx
@@ -67,7 +67,7 @@ export default function ActiveRoute() {
>
<Tabs defaultValue="current">
<div className="flex items-center px-4 py-2 h-[52px] bg-background">
- <Heading size="h2">Active</Heading>
+ <Heading size="h4">Active</Heading>
</div>
<Separator />
<div className="p-4">
diff --git a/apps/mes/app/routes/x+/operations.$workCenterId.tsx b/apps/mes/app/routes/x+/operations.$workCenterId.tsx
index 3a53c161be..e06d0f9ca5 100644
--- a/apps/mes/app/routes/x+/operations.$workCenterId.tsx
+++ b/apps/mes/app/routes/x+/operations.$workCenterId.tsx
@@ -132,7 +132,7 @@ export default function OperationsRoute() {
>
<Tabs defaultValue="current">
<div className="flex items-center px-4 py-2 h-[52px] bg-background">
- <Heading size="h2">Operations</Heading>
+ <Heading size="h4">Operations</Heading>
<TabsList className="ml-auto">
<TabsTrigger value="current">Current</TabsTrigger>
<TabsTrigger value="all">All</TabsTrigger>
diff --git a/apps/mes/app/routes/x+/recent.tsx b/apps/mes/app/routes/x+/recent.tsx
index 856d59d312..7e6f6f4d74 100644
--- a/apps/mes/app/routes/x+/recent.tsx
+++ b/apps/mes/app/routes/x+/recent.tsx
@@ -66,7 +66,7 @@ export default function ActiveRoute() {
>
<Tabs defaultValue="current">
<div className="flex items-center px-4 py-2 h-[52px] bg-background">
- <Heading size="h2">Active</Heading>
+ <Heading size="h4">Recent</Heading>
</div>
<Separator />
<div className="p-4">
diff --git a/apps/mes/app/services/location.server.ts b/apps/mes/app/services/location.server.ts
index de8eed6ff5..1d0e058153 100644
--- a/apps/mes/app/services/location.server.ts
+++ b/apps/mes/app/services/location.server.ts
@@ -68,7 +68,10 @@ export async function getLocationAndWorkCenter(
}
}
- if (!location) throw notFound("Failed to get a valid location");
+ if (!location)
+ throw notFound(
+ "Failed to get a valid location. Please add one in the resources module."
+ );
if (!workCenter) {
const workCenters = await client
@@ -82,7 +85,10 @@ export async function getLocationAndWorkCenter(
}
}
- if (!workCenter) throw notFound("Failed to get a valid work center");
+ if (!workCenter)
+ throw notFound(
+ "Failed to get a valid work center. Please add one in the resources module."
+ );
if (updated) {
setLocationAndWorkCenter(companyId, location, workCenter);
}