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
docs: add warning to docs and add tables to blacklist
Brad Barbin9fa2e9071b51
diff --git a/apps/carbon/app/lib/swagger-docs-schema.ts b/apps/carbon/app/lib/swagger-docs-schema.tsindex 6962a74c49..3195dcfe1e 100644--- a/apps/carbon/app/lib/swagger-docs-schema.ts+++ b/apps/carbon/app/lib/swagger-docs-schema.ts@@ -3,7 +3,7 @@ export default {info: {description: "",title: "standard public schema",- version: "12.0.1 (cd38da5)",+ version: "12.0.2 (a4e00ff)",},host: "0.0.0.0:3000",basePath: "/",diff --git a/apps/carbon/app/modules/api/ui/Snippets.tsx b/apps/carbon/app/modules/api/ui/Snippets.tsxindex 6c0774634a..cd4d175063 100644--- a/apps/carbon/app/modules/api/ui/Snippets.tsx+++ b/apps/carbon/app/modules/api/ui/Snippets.tsx@@ -28,8 +28,8 @@ const snippets = {code: `import { createClient } from '@supabase/supabase-js'const apiUrl = '${endpoint}'-const clientKey = process.env.CLIENT_KEY-const carbon = createClient(apiUrl, clientKey, {+const publicKey = process.env.PUBLIC_KEY+const carbon = createClient(apiUrl, publicKey, {global: {headers: {"carbon-key": "<your_api_key_here>",diff --git a/apps/carbon/app/routes/_public+/forgot-password.tsx b/apps/carbon/app/routes/_public+/forgot-password.tsxindex 81aa4a33f3..45a81eb9e5 100644--- a/apps/carbon/app/routes/_public+/forgot-password.tsx+++ b/apps/carbon/app/routes/_public+/forgot-password.tsx@@ -87,7 +87,10 @@ export default function ForgotPasswordRoute() {/></div>{actionData?.success ? (- <Alert className="h-[240px] [&>svg]:left-8 [&>svg]:top-8 p-8">+ <Alert+ variant="success"+ className="h-[240px] [&>svg]:left-8 [&>svg]:top-8 p-8"+ ><LuCheckCircle className="w-4 h-4" /><AlertTitle>Success</AlertTitle><AlertDescription>diff --git a/apps/carbon/app/routes/x+/api+/$lang.intro.tsx b/apps/carbon/app/routes/x+/api+/$lang.intro.tsxindex 50eabed798..2b042fa7e3 100644--- a/apps/carbon/app/routes/x+/api+/$lang.intro.tsx+++ b/apps/carbon/app/routes/x+/api+/$lang.intro.tsx@@ -1,5 +1,9 @@+import { Alert, AlertDescription, AlertTitle } from "@carbon/react";+import { Link } from "@remix-run/react";+import { LuAlertTriangle } from "react-icons/lu";import { getBrowserEnv, SUPABASE_ANON_PUBLIC } from "~/config/env";import { CodeSnippet, Snippets, useSelectedLang } from "~/modules/api";+import { path } from "~/utils/path";const { SUPABASE_API_URL } = getBrowserEnv();@@ -12,9 +16,10 @@ export default function Route() {<article className="code-column text-foreground"><p>CarbonOS uses API token authentication for the public API.</p><p>- To begin, go to the Settings page and click on API Keys, and create- a new API Key. Be sure to save this API Key in a secure location, as- you will only be able to view it once upon creation.+ To begin, go to the Settings page and click on{" "}+ <Link to={path.to.apiKeys}>API Keys</Link>, and create a new API+ Key. Be sure to save this API Key in a secure location, as you will+ only be able to view it once upon creation.</p><p>We recommend setting your API Key as an Environment Variable. </p><p>@@ -34,15 +39,26 @@ export default function Route() {</p><p>To initialize the Client Library SDK, you will need the{" "}- <code>CLIENT_KEY</code> (shown below) in addition to your API- Key.+ <code>PUBLIC_KEY</code> (shown below) in addition to your{" "}+ <code>carbon-key</code> API Key.</p>+ <Alert variant="destructive">+ <LuAlertTriangle className="h-4 w-4 my-1" />+ <AlertTitle className="!my-0 font-bold text-base">+ You should never expose the <code>carbon-key</code> in the+ client+ </AlertTitle>+ <AlertDescription>+ Your API key gives full access to your database. Never expose+ it in a public-facing client.+ </AlertDescription>+ </Alert><article><CodeSnippetselectedLang={selectedLang}snippet={Snippets.authKey("CLIENT KEY",- "CLIENT_KEY",+ "PUBLIC_KEY",SUPABASE_ANON_PUBLIC)}/>diff --git a/apps/carbon/app/routes/x+/api+/_layout.tsx b/apps/carbon/app/routes/x+/api+/_layout.tsxindex e40878a747..97f881c162 100644--- a/apps/carbon/app/routes/x+/api+/_layout.tsx+++ b/apps/carbon/app/routes/x+/api+/_layout.tsx@@ -77,7 +77,14 @@ export default function ApiDocsRoute() {);}-const tableBlacklist = new Set(["apiKey"]);+const tableBlacklist = new Set([+ "apiKey",+ "documentTransaction",+ "purchaseOrderTransaction",+ "salesOrderTransaction",+ "search",+ "user",+]);function useApiDocsMenu(): RouteGroup[] {const selectedLang = useSelectedLang();