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.

1.1 KB
Raw Blame
// 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 { RecordOutlet } from "@carbon/react";
import { msg } from "@lingui/core/macro";
import type { MetaFunction } from "react-router";
import { ProductionSections } from "~/modules/production/ui/useProductionSubmodules";
import type { Handle } from "~/utils/handle";
import { path } from "~/utils/path";

export { RouteErrorBoundary as ErrorBoundary } from "@carbon/react/ErrorBoundary";

export const meta: MetaFunction = () => {
  return [{ title: "Carbon | Priority" }];
};

export const handle: Handle = {
  realtime: ["job", "jobOperation"],
  breadcrumb: msg`Production`,
  to: path.to.production,
  module: "production",
  // Phones: this route is a section of its module, so it gets the module's
  // section switcher there (desktop shows no sidebar here, unchanged).
  compactSidebar: ProductionSections
};

export default function SchedulingRoute() {
  return <RecordOutlet />;
}