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: add authentication to MES
Brad Barbin9ed955c99ada
diff --git a/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx b/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsxindex 0caca4e0d1..90f8fd9618 100644--- a/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx+++ b/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx@@ -51,8 +51,6 @@ export async function action({ request }: ActionFunctionArgs) {currentReceipt.data.sourceDocumentId !== data.sourceDocumentId ||currentReceipt.data.locationId !== data.locationId;- console.log("receiptDataHasChanged", receiptDataHasChanged);-if (receiptDataHasChanged) {const serviceRole = getSupabaseServiceRole();switch (data.sourceDocument) {diff --git a/apps/mes/src/routes/index.tsx b/apps/mes/src/routes/index.tsxindex 5c9114df88..77a877b2fe 100644--- a/apps/mes/src/routes/index.tsx+++ b/apps/mes/src/routes/index.tsx@@ -2,14 +2,15 @@ import { Button } from "@carbon/react";import { supabase } from "~/lib/supabase";export const Home = () => {- console.log(supabase.auth.getUser());const signOut = async () => {await supabase.auth.signOut();};return (- <Button size="md" onClick={signOut}>- Sign Out- </Button>+ <div className="flex flex-col items-center justify-center h-screen space-y-4">+ <Button size="lg" onClick={signOut}>+ Sign Out+ </Button>+ </div>);};diff --git a/apps/mes/src/routes/login.tsx b/apps/mes/src/routes/login.tsxindex 641c6adb17..33b131ce57 100644--- a/apps/mes/src/routes/login.tsx+++ b/apps/mes/src/routes/login.tsx@@ -144,11 +144,7 @@ function LoginForm({ className, ...props }: LoginFormProps) {<FormItem><FormLabel>Password</FormLabel><FormControl>- <Input- type="password"- placeholder="**********"- {...field}- />+ <Input type="password" {...field} /></FormControl><FormMessage /></FormItem>