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
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.
import { PrefetchLink } from "@carbon/react";
import { Link } from "react-router";
import type { Authenticated, NavItem } from "~/types";
/**
* A module tile in Home's module grid; on phones a full-width card that
* matches the recent-document cards above it.
*/
export const ModuleCard = ({ module }: { module: Authenticated<NavItem> }) => {
const Anchor = module.external ? Link : PrefetchLink;
return (
<Anchor
to={module.to}
{...(module.external
? { target: "_blank", rel: "noopener noreferrer" }
: {})}
className="flex items-center gap-4 p-4 rounded-lg border border-border group bg-muted/20 hover:border-foreground/20 cursor-pointer transition-colors duration-200 max-md:min-w-0 max-md:gap-3 max-md:rounded-xl max-md:bg-card max-md:active:bg-accent/50"
>
<div className="shrink-0 p-2.5 rounded-lg border border-border group-hover:border-foreground/20 transition-colors max-md:flex max-md:size-10 max-md:items-center max-md:justify-center max-md:border-0 max-md:bg-muted max-md:p-0 max-md:text-muted-foreground">
<module.icon className="text-xl max-md:text-lg" />
</div>
<span className="text-sm py-1 px-4 border border-border rounded-full group-hover:bg-background font-medium tracking-tight transition-colors max-md:min-w-0 max-md:truncate max-md:border-0 max-md:p-0 max-md:text-[15px]">
{module.name}
</span>
</Anchor>
);
};