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.

feat: autodesk viewer fallback component

Brad Barbin9753a530e3b3
diff --git a/apps/carbon/app/routes/x+/part+/$itemId.details.tsx b/apps/carbon/app/routes/x+/part+/$itemId.details.tsx
index 40c27673d9..c4b6264307 100644
--- a/apps/carbon/app/routes/x+/part+/$itemId.details.tsx
+++ b/apps/carbon/app/routes/x+/part+/$itemId.details.tsx
@@ -9,7 +9,7 @@ import { useRouteData, useUser } from "~/hooks";
import { useAutodeskToken } from "~/lib/autodesk";
import { useSupabase } from "~/lib/supabase";
import type { PartSummary } from "~/modules/items";
-import { PartForm, partValidator, upsertPart } from "~/modules/items";
+import { partValidator, upsertPart } from "~/modules/items";
import { CadModelUpload } from "~/modules/shared";
import { requirePermissions } from "~/services/auth/auth.server";
import { flash } from "~/services/session.server";
@@ -78,7 +78,7 @@ export default function PartDetailsRoute() {
return (
<VStack spacing={2} className="p-2">
- <PartForm key={partInitialValues.id} initialValues={partInitialValues} />
+ {/* <PartForm key={partInitialValues.id} initialValues={partInitialValues} /> */}
{/* <CadModel /> */}
{autodeskToken && (
<AutodeskViewer
diff --git a/packages/react/src/AutodeskViewer.tsx b/packages/react/src/AutodeskViewer.tsx
index 259b6525b1..8f85946908 100644
--- a/packages/react/src/AutodeskViewer.tsx
+++ b/packages/react/src/AutodeskViewer.tsx
@@ -115,7 +115,11 @@ const ForgeViewer: React.FC<ForgeViewerProps> = ({
const AutodeskViewer = (props: ForgeViewerProps) => {
return (
- <ClientOnly fallback={null}>
+ <ClientOnly
+ fallback={
+ <div className="w-full h-full rounded bg-gradient-to-tr from-[#979797] to-[#BEBEBE]" />
+ }
+ >
{() => {
return <ForgeViewer {...props} />;
}}