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
style: improve error boundary page
Brad Barbincb7fe3c139c1
diff --git a/apps/carbon/app/root.tsx b/apps/carbon/app/root.tsxindex 2aebf86330..35329de240 100644--- a/apps/carbon/app/root.tsx+++ b/apps/carbon/app/root.tsx@@ -1,5 +1,5 @@// root.tsx-import { Heading, toast } from "@carbon/react";+import { Button, Heading, toast } from "@carbon/react";import { validator } from "@carbon/remix-validated-form";import type {ActionFunctionArgs,@@ -168,8 +168,16 @@ export function ErrorBoundary() {<Document title="Error!"><div className="dark"><div className="flex flex-col w-full h-screen bg-zinc-900 items-center justify-center space-y-4">- <Heading size="display">Cuss! Something went wrong</Heading>+ <img+ src="/carbon-logo-light.png"+ alt="Carbon Logo"+ className="block max-w-[60px]"+ />+ <Heading size="h2">Something went wrong</Heading><p className="text-foreground">{message}</p>+ <Button onClick={() => (window.location.href = "/")}>+ Back Home+ </Button></div></div></Document>diff --git a/apps/carbon/app/routes/_public+/login.tsx b/apps/carbon/app/routes/_public+/login.tsxindex 5564942ee3..cbd9ee6a83 100644--- a/apps/carbon/app/routes/_public+/login.tsx+++ b/apps/carbon/app/routes/_public+/login.tsx@@ -4,7 +4,6 @@ import {validationError,validator,} from "@carbon/remix-validated-form";-import posthog from "posthog-js";import type {ActionFunctionArgs,LoaderFunctionArgs,@@ -12,6 +11,7 @@ import type {} from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Link, useActionData, useSearchParams } from "@remix-run/react";+import posthog from "posthog-js";import { LuAlertCircle } from "react-icons/lu";import { Hidden, Input, Password, Submit } from "~/components/Form";@@ -21,7 +21,7 @@ import {verifyAuthSession,} from "~/services/auth";import { createAuthSession, getAuthSession } from "~/services/session.server";-import type { FormActionData, Result } from "~/types";+import type { Result } from "~/types";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error } from "~/utils/result";@@ -39,7 +39,7 @@ export async function loader({ request }: LoaderFunctionArgs) {return null;}-export async function action({ request }: ActionFunctionArgs): FormActionData {+export async function action({ request }: ActionFunctionArgs) {assertIsPost(request);const validation = await validator(loginValidator).validate(await request.formData()@@ -61,7 +61,7 @@ export async function action({ request }: ActionFunctionArgs): FormActionData {});}- return createAuthSession({+ createAuthSession({request,authSession,redirectTo: redirectTo || path.to.authenticatedRoot,