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
chore(docs): cleanup ERP duplicated docs
Sidwebworksdbea63dce46e
diff --git a/apps/erp/app/components/AvatarMenu.tsx b/apps/erp/app/components/AvatarMenu.tsxindex f831c41c23..d630be0119 100644--- a/apps/erp/app/components/AvatarMenu.tsx+++ b/apps/erp/app/components/AvatarMenu.tsx@@ -119,10 +119,10 @@ const AvatarMenu = () => {<DropdownMenuSeparator /><DropdownMenuItem asChild>- <Link to={path.to.apiIntroduction}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer"><DropdownMenuIcon icon={<LuFileText />} /><Trans>API Documentation</Trans>- </Link>+ </a></DropdownMenuItem><DropdownMenuSeparator /><DropdownMenuItem onSelect={(e) => e.preventDefault()}>diff --git a/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx b/apps/erp/app/components/Layout/Topbar/HelpMenu.tsxindex 10af378a84..96ad4140b6 100644--- a/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx+++ b/apps/erp/app/components/Layout/Topbar/HelpMenu.tsx@@ -8,7 +8,6 @@ import {} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { LuCircleHelp, LuFiles } from "react-icons/lu";-import { Link } from "react-router";import { path } from "~/utils/path";const HelpMenu = () => {@@ -25,10 +24,10 @@ const HelpMenu = () => {</DropdownMenuTrigger><DropdownMenuContent align="end" className="w-48"><DropdownMenuItem asChild>- <Link to={path.to.apiIntroduction}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer"><DropdownMenuIcon icon={<LuFiles />} /><Trans>API Docs</Trans>- </Link>+ </a></DropdownMenuItem></DropdownMenuContent></DropdownMenu>diff --git a/apps/erp/app/modules/api/index.ts b/apps/erp/app/modules/api/index.tsdeleted file mode 100644index 4aedf59360..0000000000--- a/apps/erp/app/modules/api/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./ui";diff --git a/apps/erp/app/modules/api/ui/ApiDocsContext.tsx b/apps/erp/app/modules/api/ui/ApiDocsContext.tsxdeleted file mode 100644index 7218534336..0000000000--- a/apps/erp/app/modules/api/ui/ApiDocsContext.tsx+++ /dev/null@@ -1,41 +0,0 @@-import {- createContext,- useCallback,- useContext,- useMemo,- useState-} from "react";--type ApiDocsConfig = {- apiUrl: string;- apiKey: string;- setApiUrl: (url: string) => void;- setApiKey: (key: string) => void;-};--const ApiDocsContext = createContext<ApiDocsConfig | null>(null);--export function ApiDocsProvider({ children }: { children: React.ReactNode }) {- const [apiUrl, setApiUrlState] = useState("");- const [apiKey, setApiKeyState] = useState("");-- const setApiUrl = useCallback((url: string) => setApiUrlState(url), []);- const setApiKey = useCallback((key: string) => setApiKeyState(key), []);-- const value = useMemo(- () => ({ apiUrl, apiKey, setApiUrl, setApiKey }),- [apiUrl, apiKey, setApiUrl, setApiKey]- );-- return (- <ApiDocsContext.Provider value={value}>{children}</ApiDocsContext.Provider>- );-}--export function useApiDocsConfig() {- const ctx = useContext(ApiDocsContext);- if (!ctx) {- throw new Error("useApiDocsConfig must be used within an ApiDocsProvider");- }- return ctx;-}diff --git a/apps/erp/app/modules/api/ui/CodeSnippet.tsx b/apps/erp/app/modules/api/ui/CodeSnippet.tsxdeleted file mode 100644index 271d212e32..0000000000--- a/apps/erp/app/modules/api/ui/CodeSnippet.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { CodeBlock, useHydrated } from "@carbon/react";--interface CodeSnippetProps {- selectedLang: "bash" | "js";- snippet: {- title?: string;- bash: { language?: string; code: string } | null;- js?: { language?: string; code: string };- };-}--const CodeSnippet = ({ selectedLang, snippet }: CodeSnippetProps) => {- const hydrated = useHydrated();- if (!hydrated || !snippet[selectedLang]) return null;- return (- <div className="codeblock-container">- <h4>{snippet.title}</h4>- <CodeBlock className={snippet[selectedLang]?.language}>- {snippet[selectedLang]?.code}- </CodeBlock>- </div>- );-};-export default CodeSnippet;diff --git a/apps/erp/app/modules/api/ui/Snippets.tsx b/apps/erp/app/modules/api/ui/Snippets.tsxdeleted file mode 100644index 06b3fdb238..0000000000--- a/apps/erp/app/modules/api/ui/Snippets.tsx+++ /dev/null@@ -1,754 +0,0 @@-// ─── Types ───────────────────────────────────────────────────────────────────--import { getBrowserEnv } from "@carbon/auth";-import { Edition } from "@carbon/utils";--const isProxied = getBrowserEnv().CARBON_EDITION === Edition.Cloud;-const PUBLIC_KEY = getBrowserEnv().SUPABASE_ANON_KEY;--type SnippetLanguage = { language: string; code: string };--type Snippet = {- title?: string;- bash: SnippetLanguage | null;- js?: SnippetLanguage;- python?: SnippetLanguage;- dart?: SnippetLanguage;-};--type HttpMethod = "GET" | "POST" | "PATCH" | "PUT" | "DELETE";--// ─── Curl Builder ────────────────────────────────────────────────────────────--const CONTENT_TYPE_HEADER = `"Content-Type: application/json"`;--function authHeader(apiKey?: string): string {- return apiKey- ? `"Authorization: Bearer ${apiKey}"`- : `"Authorization: Bearer $CARBON_API_KEY"`;-}--function buildCurl(config: {- method?: HttpMethod;- url: string;- body?: string;- headers?: string[];- range?: string;- includeAuth?: boolean;- includeContentType?: boolean;- prefer?: string;- apiKey?: string;-}): string {- const {- method,- url,- body,- headers: extraHeaders = [],- range,- includeAuth = true,- includeContentType = false,- prefer,- apiKey- } = config;-- const parts: string[] = [];-- if (method && method !== "GET") {- parts.push(`curl -X ${method} '${url}'`);- } else {- parts.push(`curl '${url}'`);- }-- if (includeAuth) {- parts.push(`-H ${authHeader(isProxied ? apiKey : "$CARBON_PUBLIC_KEY")}`);- if (!isProxied) {- parts.push(`-H "carbon-key: ${apiKey ?? "$CARBON_API_KEY"}"`);- }- }-- if (includeContentType) {- parts.push(`-H ${CONTENT_TYPE_HEADER}`);- }-- if (prefer) {- parts.push(`-H "Prefer: ${prefer}"`);- }-- for (const header of extraHeaders) {- parts.push(`-H ${header}`);- }-- if (range) {- parts.push(`-H "Range: ${range}"`);- }-- if (body) {- parts.push(`-d '${body}'`);- }-- return "\n" + parts.join(" \\\n");-}--// ─── Snippet Helpers ─────────────────────────────────────────────────────────--function defineSnippet(- title: string | undefined,- languages: Omit<Snippet, "title">-): Snippet {- return { title, ...languages };-}--function createBashSnippet(code: string): SnippetLanguage {- return { language: "bash", code };-}--function createJsSnippet(code: string): SnippetLanguage {- return { language: "js", code };-}--// ─── Subscription Config + Builder ───────────────────────────────────────────--const SUBSCRIPTION_CONFIGS = {- subscribeAll: {- event: "*",- channel: "custom-all-channel",- title: "Subscribe to all events"- },- subscribeInserts: {- event: "INSERT",- channel: "custom-insert-channel",- title: "Subscribe to inserts"- },- subscribeUpdates: {- event: "UPDATE",- channel: "custom-update-channel",- title: "Subscribe to updates"- },- subscribeDeletes: {- event: "DELETE",- channel: "custom-delete-channel",- title: "Subscribe to deletes"- }-} as const;--const REALTIME_BASH_MESSAGE = `# Realtime streams are only supported by our client libraries`;--function createSubscriptionSnippet(- config: { event: string; channel: string; title: string },- listenerName: string,- resourceId: string,- filter?: string-): Snippet {- const filterLine = filter ? `, filter: '${filter}'` : "";-- return defineSnippet(config.title, {- bash: createBashSnippet(REALTIME_BASH_MESSAGE),- js: createJsSnippet(`-const ${listenerName} = carbon.channel('${config.channel}')- .on(- 'postgres_changes',- { event: '${config.event}', schema: 'public', table: '${resourceId}'${filterLine} },- (payload) => {- console.log('Change received!', payload)- }- )- .subscribe()`)- });-}--// ─── Auth Config + Builder ───────────────────────────────────────────────────--type AuthConfig = {- method: HttpMethod;- path: string;- title: string;- bashBody?: (...args: string[]) => string;- jsCode: (...args: string[]) => string;- bashHeaders?: string[];-};--const AUTH_CONFIGS: Record<string, AuthConfig> = {- authSignup: {- method: "POST",- path: "/auth/v1/signup",- title: "User signup",- bashBody: (_ep, _ak, pw) =>- `{\n "email": "[email protected]",\n "password": "${pw}"\n}`,- jsCode: (_ep, _ak, pw) => `-let { data, error } = await carbon.auth.signUp({- email: '[email protected]',- password: '${pw}'-})`- },- authLogin: {- method: "POST",- path: "/auth/v1/token?grant_type=password",- title: "User login",- bashBody: (_ep, _ak, pw) =>- `{\n "email": "[email protected]",\n "password": "${pw}"\n}`,- jsCode: (_ep, _ak, pw) => `-let { data, error } = await carbon.auth.signInWithPassword({- email: '[email protected]',- password: '${pw}'-})`- },- authMagicLink: {- method: "POST",- path: "/auth/v1/magiclink",- title: "User login",- bashBody: () => `{\n "email": "[email protected]"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.signInWithOtp({- email: '[email protected]'-})`- },- authPhoneSignUp: {- method: "POST",- path: "/auth/v1/signup",- title: "Phone Signup",- bashBody: () =>- `{\n "phone": "+13334445555",\n "password": "some-password"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.signUp({- phone: '+13334445555',- password: 'some-password'-})`- },- authMobileOTPLogin: {- method: "POST",- path: "/auth/v1/otp",- title: "Phone Login",- bashBody: () => `{\n "phone": "+13334445555"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.signInWithOtp({- phone: '+13334445555'-})`- },- authMobileOTPVerify: {- method: "POST",- path: "/auth/v1/verify",- title: "Verify Pin",- bashHeaders: [authHeader()],- bashBody: () =>- `{\n "type": "sms",\n "phone": "+13334445555",\n "token": "123456"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.verifyOtp({- phone: '+13334445555',- token: '123456',- type: 'sms'-})`- },- authInvite: {- method: "POST",- path: "/auth/v1/invite",- title: "Invite User",- bashHeaders: [`"Authorization: Bearer USER_TOKEN"`],- bashBody: () => `{\n "email": "[email protected]"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.admin.inviteUserByEmail('[email protected]')`- },- authThirdPartyLogin: {- method: "GET",- path: "/auth/v1/authorize?provider=github",- title: "Third Party Login",- bashHeaders: [`"Authorization: Bearer USER_TOKEN"`],- jsCode: () => `-let { data, error } = await carbon.auth.signInWithOAuth({- provider: 'github'-})`- },- authUser: {- method: "GET",- path: "/auth/v1/user",- title: "Get User",- jsCode: () => `-const { data: { user } } = await carbon.auth.getUser()`- },- authRecover: {- method: "POST",- path: "/auth/v1/recover",- title: "Password Recovery",- bashBody: () => `{\n "email": "[email protected]"\n}`,- jsCode: () => `-let { data, error } = await carbon.auth.resetPasswordForEmail(email)`- },- authUpdate: {- method: "PUT",- path: "/auth/v1/user",- title: "Update User",- bashBody: () =>- `{\n "email": "[email protected]",\n "password": "new-password",\n "data": {\n "key": "value"\n }\n}`,- jsCode: () => `-const { data, error } = await carbon.auth.updateUser({- email: "[email protected]",- password: "new-password",- data: { hello: 'world' }-})`- },- authLogout: {- method: "POST",- path: "/auth/v1/logout",- title: "User logout",- bashHeaders: [CONTENT_TYPE_HEADER, `"Authorization: Bearer USER_TOKEN"`],- jsCode: () => `-let { error } = await carbon.auth.signOut()`- }-};--function createAuthSnippet(- configKey: keyof typeof AUTH_CONFIGS,- endpoint: string,- ...args: string[]-): Snippet {- const config = AUTH_CONFIGS[configKey];-- const useCustomHeaders = !!config.bashHeaders;- const body = config.bashBody?.(...args);-- const bashCode = useCustomHeaders- ? buildCurl({- method: config.method,- url: `${endpoint}${config.path}`,- includeAuth: false,- includeContentType: !!body,- headers: config.bashHeaders,- body- })- : buildCurl({- method: config.method,- url: `${endpoint}${config.path}`,- includeContentType: !!body,- body- });-- return defineSnippet(config.title, {- bash: createBashSnippet(bashCode),- js: createJsSnippet(config.jsCode(...args))- });-}--// ─── CRUD Config + Builders ──────────────────────────────────────────────────--function createRestUrl(- endpoint: string,- resourceId: string,- query?: string-): string {- const base = `${endpoint}/rest/v1/${resourceId}`;- return query ? `${base}?${query}` : base;-}--function createReadSnippet(config: {- title: string;- resourceId: string;- endpoint: string;- select: string;- range?: string;- filter?: string;- jsChain: string;- apiKey?: string;-}): Snippet {- const {- title,- resourceId,- endpoint,- select,- range,- filter,- jsChain,- apiKey- } = config;-- const queryParts = [];- if (filter) queryParts.push(filter);- queryParts.push(`select=${select}`);- const query = queryParts.join("&");-- return defineSnippet(title, {- bash: createBashSnippet(- buildCurl({- url: createRestUrl(endpoint, resourceId, query),- range,- apiKey- })- ),- js: createJsSnippet(jsChain)- });-}--function createWriteSnippet(config: {- title: string;- method: HttpMethod;- resourceId: string;- endpoint: string;- body: string;- prefer?: string;- query?: string;- jsChain: string;- apiKey?: string;-}): Snippet {- const {- title,- method,- resourceId,- endpoint,- body,- prefer,- query,- jsChain,- apiKey- } = config;-- return defineSnippet(title, {- bash: createBashSnippet(- buildCurl({- method,- url: createRestUrl(endpoint, resourceId, query),- includeContentType: true,- body,- prefer,- apiKey- })- ),- js: createJsSnippet(jsChain)- });-}--const snippets = {- // ── Setup ────────────────────────────────────────────────────────────────-- endpoint: (endpoint: string) => ({- title: "API URL",- bash: createBashSnippet(endpoint),- js: { language: "bash", code: endpoint }- }),-- install: () => ({- title: "Install",- bash: null,- js: createBashSnippet(`npm install --save @supabase/supabase-js`)- }),-- env: ({ apiUrl, apiKey }: { apiUrl: string; apiKey: string }) =>- defineSnippet(undefined, {- bash: createBashSnippet(- [- `export CARBON_API_URL="${apiUrl}"`,- `export CARBON_API_KEY="${apiKey}"`,- !isProxied ? `export CARBON_PUBLIC_KEY="${PUBLIC_KEY}"` : ""- ].join("\n")- ),- js: createJsSnippet(- [- `// .env`,- `CARBON_API_URL = "${apiUrl}"`,- `CARBON_API_KEY = "${apiKey}"`,- !isProxied ? `CARBON_PUBLIC_KEY = "${PUBLIC_KEY}"` : ""- ].join("\n")- )- }),-- init: (endpoint: string) =>- defineSnippet(undefined, {- bash: createBashSnippet(`# No client library required for Bash.`),- js: createJsSnippet(`-import { createClient } from '@supabase/supabase-js'--const apiUrl = process.env.CARBON_API_URL-const apiKey = process.env.CARBON_API_KEY-${!isProxied ? `const publicKey = process.env.CARBON_PUBLIC_KEY` : ""}--const carbon = createClient(apiUrl, ${- !isProxied- ? `publicKey, {- global: {- headers: {- "carbon-key": apiKey,- },- },-}`- : `apiKey`- });`)- }),- // ── Read (CRUD) ──────────────────────────────────────────────────────────-- readAll: (resourceId: string, endpoint: string, apiKey?: string) =>- createReadSnippet({- title: "Read all rows",- resourceId,- endpoint,- select: "*",- apiKey,- jsChain: `-let { data: ${resourceId}, error } = await carbon- .from('${resourceId}')- .select('*')-`- }),-- readColumns: ({- title = "Read specific columns",- resourceId,- endpoint,- columnName = "some_column,other_column",- apiKey- }: {- title?: string;- resourceId: string;- endpoint: string;- columnName?: string;- apiKey?: string;- }) =>- createReadSnippet({- title,- resourceId,- endpoint,- select: columnName,- apiKey,- jsChain: `-let { data: ${resourceId}, error } = await carbon- .from('${resourceId}')- .select('${columnName}')-`- }),-- readForeignTables: (resourceId: string, endpoint: string, apiKey?: string) =>- createReadSnippet({- title: "Read referenced tables",- resourceId,- endpoint,- select: "some_column,other_table(foreign_key)",- apiKey,- jsChain: `-let { data: ${resourceId}, error } = await carbon- .from('${resourceId}')- .select(\`- some_column,- other_table (- foreign_key- )- \`)-`- }),-- readRange: (resourceId: string, endpoint: string, apiKey?: string) =>- createReadSnippet({- title: "With pagination",- resourceId,- endpoint,- select: "*",- range: "0-9",- apiKey,- jsChain: `-let { data: ${resourceId}, error } = await carbon- .from('${resourceId}')- .select('*')- .range(0, 9)-`- }),-- readFilters: (resourceId: string, endpoint: string, apiKey?: string) =>- createReadSnippet({- title: "With filtering",- resourceId,- endpoint,- select: "*",- filter: "id=eq.1",- range: "0-9",- apiKey,- jsChain: `-let { data: ${resourceId}, error } = await carbon- .from('${resourceId}')- .select("*")- // Filters- .eq('column', 'Equal to')- .gt('column', 'Greater than')- .lt('column', 'Less than')- .gte('column', 'Greater than or equal to')- .lte('column', 'Less than or equal to')- .like('column', '%CaseSensitive%')- .ilike('column', '%CaseInsensitive%')- .is('column', null)- .in('column', ['Array', 'Values'])- .neq('column', 'Not equal to')- // Arrays- .contains('array_column', ['array', 'contains'])- .containedBy('array_column', ['contained', 'by'])-`- }),-- // ── Write (CRUD) ─────────────────────────────────────────────────────────-- insertSingle: (resourceId: string, endpoint: string, apiKey?: string) =>- createWriteSnippet({- title: "Insert a row",- method: "POST",- resourceId,- endpoint,- prefer: "return=minimal",- body: `{ "some_column": "someValue", "other_column": "otherValue" }`,- apiKey,- jsChain: `-const { data, error } = await carbon- .from('${resourceId}')- .insert([- { some_column: 'someValue', other_column: 'otherValue' },- ])- .select()-`- }),-- insertMany: (resourceId: string, endpoint: string, apiKey?: string) =>- createWriteSnippet({- title: "Insert many rows",- method: "POST",- resourceId,- endpoint,- body: `[{ "some_column": "someValue" }, { "other_column": "otherValue" }]`,- apiKey,- jsChain: `-const { data, error } = await carbon- .from('${resourceId}')- .insert([- { some_column: 'someValue' },- { some_column: 'otherValue' },- ])- .select()-`- }),-- upsert: (resourceId: string, endpoint: string, apiKey?: string) =>- createWriteSnippet({- title: "Upsert matching rows",- method: "POST",- resourceId,- endpoint,- prefer: "resolution=merge-duplicates",- body: `{ "some_column": "someValue", "other_column": "otherValue" }`,- apiKey,- jsChain: `-const { data, error } = await carbon- .from('${resourceId}')- .upsert({ some_column: 'someValue' })- .select()-`- }),-- update: (resourceId: string, endpoint: string, apiKey?: string) =>- createWriteSnippet({- title: "Update matching rows",- method: "PATCH",- resourceId,- endpoint,- prefer: "return=minimal",- query: "some_column=eq.someValue",- body: `{ "other_column": "otherValue" }`,- apiKey,- jsChain: `-const { data, error } = await carbon- .from('${resourceId}')- .update({ other_column: 'otherValue' })- .eq('some_column', 'someValue')- .select()-`- }),-- delete: (resourceId: string, endpoint: string, apiKey?: string) =>- defineSnippet("Delete matching rows", {- bash: createBashSnippet(- buildCurl({- method: "DELETE",- url: createRestUrl(endpoint, resourceId, "some_column=eq.someValue"),- apiKey- })- ),- js: createJsSnippet(`-const { error } = await carbon- .from('${resourceId}')- .delete()- .eq('some_column', 'someValue')-`)- }),-- // ── Subscriptions ────────────────────────────────────────────────────────-- subscribeAll: (listenerName: string, resourceId: string) =>- createSubscriptionSnippet(- SUBSCRIPTION_CONFIGS.subscribeAll,- listenerName,- resourceId- ),-- subscribeInserts: (listenerName: string, resourceId: string) =>- createSubscriptionSnippet(- SUBSCRIPTION_CONFIGS.subscribeInserts,- listenerName,- resourceId- ),-- subscribeUpdates: (listenerName: string, resourceId: string) =>- createSubscriptionSnippet(- SUBSCRIPTION_CONFIGS.subscribeUpdates,- listenerName,- resourceId- ),-- subscribeDeletes: (listenerName: string, resourceId: string) =>- createSubscriptionSnippet(- SUBSCRIPTION_CONFIGS.subscribeDeletes,- listenerName,- resourceId- ),-- subscribeEq: (- listenerName: string,- resourceId: string,- columnName: string,- value: string- ) =>- createSubscriptionSnippet(- {- event: "*",- channel: "custom-filter-channel",- title: "Subscribe to specific rows"- },- listenerName,- resourceId,- `${columnName}=eq.${value}`- ),-- // ── Auth ─────────────────────────────────────────────────────────────────-- authSignup: (endpoint: string, apiKey: string, randomPassword: string) =>- createAuthSnippet("authSignup", endpoint, apiKey, randomPassword),-- authLogin: (endpoint: string, apiKey: string, randomPassword: string) =>- createAuthSnippet("authLogin", endpoint, apiKey, randomPassword),-- authMagicLink: (endpoint: string) =>- createAuthSnippet("authMagicLink", endpoint),-- authPhoneSignUp: (endpoint: string) =>- createAuthSnippet("authPhoneSignUp", endpoint),-- authMobileOTPLogin: (endpoint: string) =>- createAuthSnippet("authMobileOTPLogin", endpoint),-- authMobileOTPVerify: (endpoint: string) =>- createAuthSnippet("authMobileOTPVerify", endpoint),-- authInvite: (endpoint: string) => createAuthSnippet("authInvite", endpoint),-- authThirdPartyLogin: (endpoint: string) =>- createAuthSnippet("authThirdPartyLogin", endpoint),-- authUser: (endpoint: string) => createAuthSnippet("authUser", endpoint),-- authRecover: (endpoint: string) => createAuthSnippet("authRecover", endpoint),-- authUpdate: (endpoint: string) => createAuthSnippet("authUpdate", endpoint),-- authLogout: (endpoint: string) => createAuthSnippet("authLogout", endpoint)-};--export default snippets;diff --git a/apps/erp/app/modules/api/ui/TableDocs.tsx b/apps/erp/app/modules/api/ui/TableDocs.tsxdeleted file mode 100644index 919f67c91b..0000000000--- a/apps/erp/app/modules/api/ui/TableDocs.tsx+++ /dev/null@@ -1,490 +0,0 @@-import { cn } from "@carbon/react";-import { Trans } from "@lingui/react/macro";-import { LuTable2 } from "react-icons/lu";-import { useSwaggerDocs } from "~/hooks/useSwaggerDocs";-import type { ValidLang } from "~/modules/api";-import { CodeSnippet, Snippets } from "~/modules/api";-import { snakeToCamel } from "~/utils/string";--type TableDocsProps = {- endpoint: string;- selectedLang: ValidLang;- resourceId: string;- apiKey?: string;-};--const functionPath = "rpc/";-const TableDocs = ({- endpoint,- selectedLang,- resourceId,- apiKey-}: TableDocsProps) => {- const swaggerDocsSchema = useSwaggerDocs();- const { resources } = Object.entries(swaggerDocsSchema?.paths || {}).reduce<{- resources: Record<- string,- { id: string; displayName: string; camelCase: string }- >;- }>(- (a, [name]) => {- const trimmedName = name.slice(1);- const id = trimmedName.replace(functionPath, "");-- const displayName = id.replace(/_/g, " ");- const camelCase = snakeToCamel(id);- const enriched = { id, displayName, camelCase };-- if (!trimmedName.length) {- return a;- }-- return {- resources: {- ...a.resources,- ...(!trimmedName.includes(functionPath)- ? {- [id]: enriched- }- : {})- }- };- },- { resources: {} }- );-- const resourcePaths = swaggerDocsSchema?.paths?.[`/${resourceId}`];- const resourceDefinition = swaggerDocsSchema?.definitions?.[resourceId];- // @ts-ignore- const resourceMeta = resources?.[resourceId];- const realtimeEnabled = true; // TODO: realtime is not available for a lot of tables (unless we enable it)-- const methods = Object.keys(resourcePaths ?? {}).map((x) => x.toUpperCase());- const properties = Object.entries(resourceDefinition?.properties ?? []).map(- ([id, val]: any) => ({- ...val,- id,- required: resourceDefinition?.required?.includes(id)- })- );-- if (- !swaggerDocsSchema?.paths ||- !swaggerDocsSchema?.definitions ||- !swaggerDocsSchema- )- return null;-- return (- <>- <h2 className="doc-section__table-name text-foreground mt-0 flex items-center px-6 gap-2">- <span className="bg-muted p-2 rounded-lg">- <LuTable2 size={18} />- </span>- <span className="text-2xl font-bold">{resourceId}</span>- </h2>-- <div className="doc-section">- <article className="code"></article>- </div>- {properties.length > 0 && (- <div>- {properties.map((x) => (- <div className="doc-section py-4" key={x.id}>- <div className="code-column text-foreground">- <Param- key={x.id}- name={x.id}- type={x.type}- format={x.format}- isOptional={!x.required}- metadata={{- table: resourceId,- column: x.id- }}- />- </div>- <div className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readColumns({- title: `Select ${x.id}`,- resourceId,- endpoint,- columnName: x.id,- apiKey- })}- />- </div>- </div>- ))}- </div>- )}- {methods.includes("GET") && (- <>- <h3 className="text-foreground mt-4 px-6">- <Trans>Read rows</Trans>- </h3>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- <Trans>- To read rows in <code>{resourceId}</code>, use the{" "}- <code>select</code> method.- </Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/select"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readAll(resourceId, endpoint, apiKey)}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readColumns({- resourceId,- endpoint,- apiKey- })}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readForeignTables(- resourceId,- endpoint,- apiKey- )}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readRange(resourceId, endpoint, apiKey)}- />- </article>- </div>- <div className="doc-section">- <article className="code-column text-foreground">- <h4 className="mt-0 text-white">- <Trans>Filtering</Trans>- </h4>- <p>- <Trans>Supabase provides a wide range of filters.</Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/using-filters"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.readFilters(resourceId, endpoint, apiKey)}- />- </article>- </div>- </>- )}- {methods.includes("POST") && (- <>- <h3 className="text-foreground mt-4 px-6">- <Trans>Insert rows</Trans>- </h3>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- <Trans>- <code>insert</code> lets you insert into your tables. You can- also insert in bulk and do UPSERT.- </Trans>- </p>- <p>- <Trans>- <code>insert</code> will also return the replaced values for- UPSERT.- </Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/insert"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.insertSingle(resourceId, endpoint, apiKey)}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.insertMany(resourceId, endpoint, apiKey)}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.upsert(resourceId, endpoint, apiKey)}- />- </article>- </div>- </>- )}- {methods.includes("PATCH") && (- <>- <h3 className="text-foreground mt-4 px-6">- <Trans>Update rows</Trans>- </h3>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- <Trans>- <code>update</code> lets you update rows. <code>update</code>{" "}- will match all rows by default. You can update specific rows- using horizontal filters, e.g. <code>eq</code>,{" "}- <code>lt</code>, and <code>is</code>.- </Trans>- </p>- <p>- <Trans>- <code>update</code> will also return the replaced values for- UPDATE.- </Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/update"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.update(resourceId, endpoint, apiKey)}- />- </article>- </div>- </>- )}- {methods.includes("DELETE") && (- <>- <h3 className="text-foreground mt-4 px-6">- <Trans>Delete rows</Trans>- </h3>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- <Trans>- <code>delete</code> lets you delete rows. <code>delete</code>{" "}- will match all rows by default, so remember to specify your- filters!- </Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/delete"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.delete(resourceId, endpoint, apiKey)}- />- </article>- </div>- </>- )}- {realtimeEnabled &&- (methods.includes("DELETE") ||- methods.includes("POST") ||- methods.includes("PATCH")) && (- <>- <h3 className="text-foreground mt-4 px-6">- <Trans>Subscribe to changes</Trans>- </h3>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- <Trans>- Supabase provides realtime functionality and broadcasts- database changes to authorized users depending on Row Level- Security (RLS) policies.- </Trans>- </p>- <p>- <a- href="https://supabase.com/docs/reference/javascript/subscribe"- target="_blank"- rel="noreferrer"- >- <Trans>Learn more</Trans>- </a>- </p>- </article>- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.subscribeAll(- resourceMeta.camelCase,- resourceId- )}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.subscribeInserts(- resourceMeta.camelCase,- resourceId- )}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.subscribeUpdates(- resourceMeta.camelCase,- resourceId- )}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.subscribeDeletes(- resourceMeta.camelCase,- resourceId- )}- />- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.subscribeEq(- resourceMeta.camelCase,- resourceId,- "column_name",- "someValue"- )}- />- </article>- </div>- </>- )}- </>- );-};--type ParamProps = {- name?: string;- type?: string;- format?: string;- required?: boolean;- metadata?: { table: string; column: string };- isOptional?: boolean;- isPrimitive?: boolean;- children?: React.ReactNode;-};--const Param = ({- name,- isOptional,- type,- format,- children,- isPrimitive-}: ParamProps) => {- return (- <>- <div className="mb-4 flex items-center justify-between ">- <div className="flex gap-2 items-center">- <div className="flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">- <Trans>Column</Trans>- </label>- <div className="flex items-center gap-4">- <span className="text-md text-foreground pb-0.5">{name}</span>- </div>- </div>- </div>- <div- className={cn(- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs",- !isOptional && "border-amber-700 bg-amber-300 text-amber-900 "- )}- >- {isOptional ? <Trans>Optional</Trans> : <Trans>Required</Trans>}- </div>- </div>- <div className="grid gap-2 mt-6">- <div className="mb-4 flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">- <Trans>Type</Trans>- </label>- <div>- <span className="flex grow-0 bg-muted px-2 py-0.5 rounded-md text-foreground-light">- <span className="flex items-center gap-2 text-sm">- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- >- <polyline points="16 18 22 12 16 6"></polyline>- <polyline points="8 6 2 12 8 18"></polyline>- </svg>- <span>{type}</span>- </span>- </span>- </div>- </div>- <div className="mb-4 flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">- <Trans>Format</Trans>- </label>- <div>- <span className="flex grow-0 bg-muted px-2 py-0.5 rounded-md text-foreground-light">- <span className="flex items-center gap-2 text-sm">- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-linecap="round"- stroke-linejoin="round"- >- <ellipse cx="12" cy="5" rx="9" ry="3"></ellipse>- <path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path>- <path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>- </svg>- <span>{format}</span>- </span>- </span>- </div>- </div>- </div>- </>- );-};--export default TableDocs;diff --git a/apps/erp/app/modules/api/ui/index.ts b/apps/erp/app/modules/api/ui/index.tsdeleted file mode 100644index 8316e114cc..0000000000--- a/apps/erp/app/modules/api/ui/index.ts+++ /dev/null@@ -1,16 +0,0 @@-import { ApiDocsProvider, useApiDocsConfig } from "./ApiDocsContext";-import CodeSnippet from "./CodeSnippet";-import Snippets from "./Snippets";-import TableDocs from "./TableDocs";-import type { ValidLang } from "./useSelectedLang";-import { useSelectedLang } from "./useSelectedLang";--export {- ApiDocsProvider,- CodeSnippet,- Snippets,- TableDocs,- useApiDocsConfig,- useSelectedLang-};-export type { ValidLang };diff --git a/apps/erp/app/modules/api/ui/useSelectedLang.tsx b/apps/erp/app/modules/api/ui/useSelectedLang.tsxdeleted file mode 100644index 7d7bd56d4d..0000000000--- a/apps/erp/app/modules/api/ui/useSelectedLang.tsx+++ /dev/null@@ -1,17 +0,0 @@-import { useParams } from "react-router";--export type ValidLang = "js" | "bash";--export function useSelectedLang(): ValidLang {- const { lang } = useParams();- if (isValidLang(lang)) {- return lang;- } else {- return "js";- }-}--// write a typescript is function that verifies the lang is valid-function isValidLang(lang: unknown): lang is ValidLang {- return lang === "js" || lang === "bash";-}diff --git a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsxindex 2da7a6356c..85c1fdae64 100644--- a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx+++ b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx@@ -13,7 +13,7 @@ import {LuTrash,LuUser} from "react-icons/lu";-import { Link, Outlet, useNavigate } from "react-router";+import { Outlet, useNavigate } from "react-router";import { EmployeeAvatar, Hyperlink, New, Table } from "~/components";import { useDateFormatter, usePermissions, useUrlParams } from "~/hooks";import type { ApiKey } from "~/modules/settings";@@ -205,9 +205,9 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {/>)}<Button leftIcon={<LuCode />} variant="secondary" asChild>- <Link to={path.to.apiIntroduction}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer"><Trans>API Docs</Trans>- </Link>+ </a></Button></HStack>}diff --git a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsxindex a7f2c55045..dda2e5c4f6 100644--- a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx+++ b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx@@ -42,7 +42,7 @@ import {LuTrash,LuUser} from "react-icons/lu";-import { Link, Outlet, useNavigate } from "react-router";+import { Outlet, useNavigate } from "react-router";import { EmployeeAvatar, Hyperlink, New, Table } from "~/components";import {useDateFormatter,@@ -98,15 +98,17 @@ const WebhooksTable = memo(({ data, count }: WebhooksTableProps) => {header: t`Table`,cell: ({ row }) => (<div className="flex flex-col gap-1 justify-start items-start pb-1">- <Hyperlink- className="flex flex-row gap-1 items-center"- to={path.to.apiTable("js", row.original.table)}+ <a+ className="flex flex-row gap-1 items-center text-foreground hover:underline"+ href={path.to.apiDocs}+ target="_blank"+ rel="noreferrer"><LuTable2 className="size-4" /><span className="text-sm font-medium">{`public.${row.original.table}`}</span>- </Hyperlink>+ </a><HStack>{row.original.onInsert && <Badge variant="green">Insert</Badge>}{row.original.onUpdate && <Badge variant="blue">Update</Badge>}@@ -369,14 +371,14 @@ function WebhookDocs({ open, onClose }: WebhookDocsProps) {<Separator /><div><Button leftIcon={<LuFileText />} variant="link" asChild>- <Link to={path.to.apiTable("js", activeTable)}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer">{webhookTables.find((table) => table.value === activeTable)?.label}{" "}Table Schema- </Link>+ </a></Button></div></div>@@ -400,14 +402,14 @@ function WebhookDocs({ open, onClose }: WebhookDocsProps) {<Separator /><div><Button leftIcon={<LuFileText />} variant="link" asChild>- <Link to={path.to.apiTable("js", activeTable)}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer">{webhookTables.find((table) => table.value === activeTable)?.label}{" "}Table Schema- </Link>+ </a></Button></div></div>@@ -427,14 +429,14 @@ function WebhookDocs({ open, onClose }: WebhookDocsProps) {<Separator /><div><Button leftIcon={<LuFileText />} variant="link" asChild>- <Link to={path.to.apiTable("js", activeTable)}>+ <a href={path.to.apiDocs} target="_blank" rel="noreferrer">{webhookTables.find((table) => table.value === activeTable)?.label}{" "}Table Schema- </Link>+ </a></Button></div></div>diff --git a/apps/erp/app/routes/docs+/api+/$lang.intro.tsx b/apps/erp/app/routes/docs+/api+/$lang.intro.tsxdeleted file mode 100644index 0575b871bb..0000000000--- a/apps/erp/app/routes/docs+/api+/$lang.intro.tsx+++ /dev/null@@ -1,115 +0,0 @@-import { getBrowserEnv } from "@carbon/auth";-import { Alert, AlertDescription, AlertTitle } from "@carbon/react";-import { LuTriangleAlert } from "react-icons/lu";-import { Link } from "react-router";-import {- CodeSnippet,- Snippets,- useApiDocsConfig,- useSelectedLang-} from "~/modules/api";-import { path } from "~/utils/path";--const { CARBON_API_URL, ERP_URL } = getBrowserEnv();--export default function Route() {- const selectedLang = useSelectedLang();- const config = useApiDocsConfig();-- const apiUrl = config.apiUrl || CARBON_API_URL!;- const apiKey = config.apiKey || "<your-api-key>";-- return (- <>- <h2 className="doc-heading">Authentication</h2>- <div className="doc-section">- <article className="code-column text-foreground">- <p>Carbon uses API token authentication for the public API.</p>- <p>- First you'll need an <Link to={path.to.apiKeys}>API Key</Link>.- </p>- <Alert variant="destructive">- <LuTriangleAlert className="h-4 w-4 my-1" />- <AlertTitle className="!my-0 font-bold text-base">- You should never expose the API key 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>- </div>- <h2 className="doc-heading">MCP</h2>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- Carbon provides an MCP server that you can connect to from any MCP- client, such as Claude Code or Claude Desktop.- </p>- <p>To connect, run the following command with your API token:</p>- <article>- <CodeSnippet- selectedLang={selectedLang}- snippet={{- bash: {- language: "bash",- code: `claude mcp add --transport http \\- carbon ${ERP_URL}/api/mcp \\- --header "Authorization: Bearer ${apiKey}"`- },- js: {- language: "bash",- code: `claude mcp add --transport http \\- carbon ${ERP_URL}/api/mcp \\- --header "Authorization: Bearer ${apiKey}"`- }- }}- />- </article>- </article>- </div>- {selectedLang == "js" ? (- <>- <h2 className="doc-heading">Client Library SDK</h2>- <div className="doc-section">- <article className="code-column text-foreground">- <p>- The easiest way to interact with the public API is via the- JavaScript Client Library SDK.- </p>- <p>Save the API Key as an Environment Variable.</p>- <article>- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.env({ apiUrl, apiKey })}- />- </article>- <p>- The API Key is provided via the <code>Authorization</code>{" "}- header when making requests to the API.- </p>- <p>- As with your API Key, we recommend setting your Client Key as an- Environment Variable.- </p>- <p>Initialize the client as follows:</p>- <div className="doc-section doc-section--client-libraries">- <article className="code">- <CodeSnippet- selectedLang={selectedLang}- snippet={Snippets.init(apiUrl)}- />- </article>- </div>- <p>- You can now make requests to the API using the client. See the- specific tables and views for more details.- </p>- </article>- </div>- </>- ) : null}- </>- );-}diff --git a/apps/erp/app/routes/docs+/api+/$lang.rpc.$id.tsx b/apps/erp/app/routes/docs+/api+/$lang.rpc.$id.tsxdeleted file mode 100644index da90098c64..0000000000--- a/apps/erp/app/routes/docs+/api+/$lang.rpc.$id.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { useSwaggerDocs } from "~/hooks/useSwaggerDocs";-import { useSelectedLang } from "~/modules/api";-import { snakeToCamel } from "~/utils/string";--const functionPath = "rpc/";--export default function Route() {- const swaggerDocsSchema = useSwaggerDocs();- //- // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration- const { rpcs } = Object.entries(swaggerDocsSchema?.paths || {}).reduce(- (a, [name]) => {- const trimmedName = name.slice(1);- const id = trimmedName.replace(functionPath, "");-- const displayName = id.replace(/_/g, " ");- const camelCase = snakeToCamel(id);- const enriched = { id, displayName, camelCase };-- if (!trimmedName.length) {- return a;- }-- return {- rpcs: {- ...a.rpcs,- ...(trimmedName.includes(functionPath)- ? {- [id]: enriched- }- : {})- }- };- },- { rpcs: {} }- );- // biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration- const selectedLang = useSelectedLang();-- return null;-}diff --git a/apps/erp/app/routes/docs+/api+/$lang.table.$id.tsx b/apps/erp/app/routes/docs+/api+/$lang.table.$id.tsxdeleted file mode 100644index 9757dd8951..0000000000--- a/apps/erp/app/routes/docs+/api+/$lang.table.$id.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { getBrowserEnv } from "@carbon/auth";-import { useParams } from "react-router";-import { TableDocs, useApiDocsConfig, useSelectedLang } from "~/modules/api";--const { CARBON_API_URL } = getBrowserEnv();--export default function Route() {- const selectedLang = useSelectedLang();- const config = useApiDocsConfig();- const { id } = useParams();- if (!id) throw new Error("Table id not found");-- const endpoint = config.apiUrl || CARBON_API_URL!;- const apiKey = config.apiKey || undefined;-- return (- <TableDocs- endpoint={endpoint}- selectedLang={selectedLang}- resourceId={id}- apiKey={apiKey}- />- );-}diff --git a/apps/erp/app/routes/docs+/api+/_index.tsx b/apps/erp/app/routes/docs+/api+/_index.tsxdeleted file mode 100644index da13118823..0000000000--- a/apps/erp/app/routes/docs+/api+/_index.tsx+++ /dev/null@@ -1,6 +0,0 @@-import { redirect } from "react-router";-import { path } from "~/utils/path";--export async function loader() {- throw redirect(path.to.apiIntroduction);-}diff --git a/apps/erp/app/routes/docs+/api+/_layout.tsx b/apps/erp/app/routes/docs+/api+/_layout.tsxdeleted file mode 100644index 82bdc26b0b..0000000000--- a/apps/erp/app/routes/docs+/api+/_layout.tsx+++ /dev/null@@ -1,250 +0,0 @@-import {- Button,- ClientOnly,- Input,- Popover,- PopoverContent,- PopoverTrigger-} from "@carbon/react";-import { msg } from "@lingui/core/macro";-import { useState } from "react";-import { LuEye, LuEyeOff, LuSettings2, LuTable2 } from "react-icons/lu";-import type { MetaFunction } from "react-router";-import { Link, Outlet, useLocation, useNavigate } from "react-router";-import { GroupedContentSidebar } from "~/components/Layout";-import { CollapsibleSidebarProvider } from "~/components/Layout/Navigation";-import { useSwaggerDocs } from "~/hooks/useSwaggerDocs";-import type { ValidLang } from "~/modules/api";-import {- ApiDocsProvider,- useApiDocsConfig,- useSelectedLang-} from "~/modules/api";-import DocsStyle from "~/styles/docs.css?url";-import type { RouteGroup } from "~/types";-import type { Handle } from "~/utils/handle";-import { path } from "~/utils/path";--export const meta: MetaFunction = () => {- return [{ title: "Carbon | API Docs" }];-};--export const handle: Handle = {- breadcrumb: msg`API Docs`,- to: path.to.apiIntroduction,- module: "api"-};--export function links() {- return [{ rel: "stylesheet", href: DocsStyle }];-}--export default function ApiDocsRoute() {- const groups = useApiDocsMenu();- const selectedLang = useSelectedLang();- const navigate = useNavigate();- const { pathname } = useLocation();-- const onChangeLanguage = (newLang: ValidLang) => {- if (newLang === selectedLang) return;- let newPath = "";- switch (selectedLang) {- case "bash":- newPath = pathname.replace("/bash/", `/${newLang}/`);- navigate(newPath);- break;- case "js":- newPath = pathname.replace("/js/", `/${newLang}/`);- navigate(newPath);- break;- default:- throw new Error(`Invalid language: ${selectedLang}`);- }- };-- return (- <ApiDocsProvider>- <CollapsibleSidebarProvider>- <div className="flex flex-col h-screen">- <div className="bg-background border-b h-[var(--header-height)] col-span-full px-6 items-center flex flex-shrink-0 justify-between">- <Link to={path.to.authenticatedRoot}>- <img- src="/carbon-word-light.svg"- alt="Carbon Logo"- className="h-6 dark:hidden z-50"- />- <img- src="/carbon-word-dark.svg"- alt="Carbon Logo"- className="h-6 dark:block hidden z-50"- />- </Link>- <ApiDocsConfigInputs />- </div>- <div className="relative grid grid-cols-[auto_1fr] w-full h-full">- <div className="flex absolute top-2 right-2 z-50 gap-2">- <Button- variant={selectedLang === "js" ? "primary" : "secondary"}- onClick={() => {- onChangeLanguage("js");- }}- >- JS- </Button>- <Button- variant={selectedLang === "bash" ? "primary" : "secondary"}- onClick={() => {- onChangeLanguage("bash");- }}- >- Bash- </Button>- </div>- <GroupedContentSidebar groups={groups} width={270} exactMatch />- <div className="Docs Docs--api-page w-full h-full overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">- <div className="Docs--inner-wrapper pt-4">- <ClientOnly>{() => <Outlet />}</ClientOnly>- </div>- </div>- </div>- </div>- </CollapsibleSidebarProvider>- </ApiDocsProvider>- );-}--function ApiDocsConfigInputs() {- const { apiUrl, apiKey, setApiUrl, setApiKey } = useApiDocsConfig();- const [showKey, setShowKey] = useState(false);- const isConfigured = !!(apiUrl || apiKey);-- return (- <Popover>- <PopoverTrigger asChild>- <Button variant="secondary" size="sm" className="gap-1.5">- <LuSettings2 className="h-3.5 w-3.5" />- <span>API Settings</span>- {isConfigured && (- <span className="h-1.5 w-1.5 rounded-full bg-green-500" />- )}- </Button>- </PopoverTrigger>- <PopoverContent align="end" sideOffset={8} className="w-[400px] p-0">- <div className="p-4 space-y-4">- <div>- <h4 className="text-sm font-semibold text-foreground">- API Configuration- </h4>- <p className="text-xs text-muted-foreground mt-1">- Set a custom server URL and API key. Snippets will update- automatically.- </p>- </div>- <div className="space-y-3">- <div className="space-y-1.5">- <label className="text-xs font-medium text-muted-foreground">- Server URL- </label>- <Input- size="sm"- placeholder="https://your-api-url.supabase.co"- value={apiUrl}- onChange={(e: React.ChangeEvent<HTMLInputElement>) =>- setApiUrl(e.target.value)- }- className="font-mono text-xs"- />- </div>- <div className="space-y-1.5">- <label className="text-xs font-medium text-muted-foreground">- API Key- </label>- <div className="relative">- <Input- size="sm"- type={showKey ? "text" : "password"}- placeholder="your-api-key"- value={apiKey}- onChange={(e: React.ChangeEvent<HTMLInputElement>) =>- setApiKey(e.target.value)- }- className="font-mono text-xs pr-8"- />- <button- type="button"- onClick={() => setShowKey((prev) => !prev)}- className="absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors"- aria-label={showKey ? "Hide API key" : "Show API key"}- >- {showKey ? (- <LuEyeOff className="h-3.5 w-3.5" />- ) : (- <LuEye className="h-3.5 w-3.5" />- )}- </button>- </div>- </div>- </div>- </div>- </PopoverContent>- </Popover>- );-}--const tableBlacklist = new Set([- "apiKey",- "challengeAttempt",- "documentTransaction",- "feedback",- "groups_recursive",- "invite",- "lessonCompletion",- "oauthClient",- "oauthCode",- "oauthToken",- "purchaseOrderTransaction",- "salesOrderTransaction",- "search"-]);--function useApiDocsMenu(): RouteGroup[] {- const swaggerDocsSchema = useSwaggerDocs();- const selectedLang = useSelectedLang();- const result: RouteGroup[] = [- {- name: "Getting Started",- routes: [- {- name: "Introduction",- to: path.to.apiIntro(selectedLang)- }- ]- }- ];-- const tables = Object.keys(swaggerDocsSchema?.definitions ?? {}).sort();- const isTable = (table: string): boolean => {- if (!swaggerDocsSchema?.paths) return false;- const tableKey = `/${table}`;- return Object.keys(swaggerDocsSchema.paths[tableKey] ?? {}).some(- (x) => x.toUpperCase() === "POST"- );- };-- result.push({- name: "Tables and Views",- routes: tables- .filter((table) => !tableBlacklist.has(table))- .map((table) => ({- name: table,- to: path.to.apiTable(selectedLang, table),- icon: isTable(table) ? (- <LuTable2 className="flex-shrink-0" />- ) : (- <LuEye className="flex-shrink-0" />- )- }))- });-- return result;-}diff --git a/apps/erp/app/routes/mcp+/_index.tsx b/apps/erp/app/routes/mcp+/_index.tsxdeleted file mode 100644index 0142f658d9..0000000000--- a/apps/erp/app/routes/mcp+/_index.tsx+++ /dev/null@@ -1,33 +0,0 @@-import type { LoaderFunctionArgs, MetaFunction } from "react-router";-import { useLoaderData } from "react-router";-import McpStyle from "~/styles/mcp-docs.css?url";-import { MCP_BLOCKED_TOOL_NAMES } from "../api+/mcp+/lib/mcp-blocked-tools";-import toolMetadata from "../api+/mcp+/lib/tool-metadata.json";-import { buildMcpCatalog, type RawToolMeta } from "./catalog";-import { McpPage } from "./components/McpPage";--export const meta: MetaFunction = () => [- { title: "Carbon MCP server — Developer docs" },- {- name: "description",- content: "Connect any MCP-compatible AI assistant to Carbon."- }-];--export function links() {- return [{ rel: "stylesheet", href: McpStyle }];-}--// PUBLIC: deliberately no requireAuthSession / requirePermissions here.-export async function loader(_args: LoaderFunctionArgs) {- const catalog = buildMcpCatalog(- toolMetadata as RawToolMeta,- MCP_BLOCKED_TOOL_NAMES- );- return { catalog };-}--export default function McpRoute() {- const { catalog } = useLoaderData<typeof loader>();- return <McpPage catalog={catalog} />;-}diff --git a/apps/erp/app/routes/mcp+/catalog.ts b/apps/erp/app/routes/mcp+/catalog.tsdeleted file mode 100644index db79c114de..0000000000--- a/apps/erp/app/routes/mcp+/catalog.ts+++ /dev/null@@ -1,90 +0,0 @@-export type Classification = "READ" | "WRITE" | "DESTRUCTIVE";--export interface CatalogTool {- name: string;- module: string;- classification: Classification;- description: string;- paramCount: number;-}--export interface CatalogModule {- key: string;- label: string;- description: string;- count: number;-}--export interface McpCatalog {- total: number;- moduleCount: number;- modules: CatalogModule[];- tools: CatalogTool[];-}--const MODULE_META: Record<string, { label: string; description: string }> = {- sales: { label: "Sales", description: "Quotes, orders, customers" },- items: {- label: "Items",- description: "SKUs, inventory items, configurations"- },- production: {- label: "Production",- description: "Jobs, operations, scheduling"- },- purchasing: { label: "Purchasing", description: "POs, suppliers, receipts" },- resources: { label: "Resources", description: "Machines, tools, labor" },- settings: { label: "Settings", description: "Company config, tax, terms" },- quality: { label: "Quality", description: "Inspections, testing, standards" },- accounting: { label: "Accounting", description: "GL, journals, periods" },- inventory: {- label: "Inventory",- description: "On-hand, movements, transfers"- },- people: { label: "People", description: "Employees, shifts, attendance" },- shared: { label: "Shared", description: "Common cross-module operations" },- invoicing: { label: "Invoicing", description: "Invoices, AR, payments" },- users: { label: "Users", description: "User & permission management" },- documents: { label: "Documents", description: "PDFs, attachments" },- account: { label: "Account", description: "Profile & attributes" }-};--export interface RawToolMeta {- tools: Array<{- name: string;- module: string;- classification: string;- description: string;- paramCount: number;- }>;-}--export function buildMcpCatalog(- meta: RawToolMeta,- blocked: readonly string[]-): McpCatalog {- const blockedSet = new Set(blocked);- const tools: CatalogTool[] = meta.tools- .filter((t) => !blockedSet.has(t.name))- .map((t) => ({- name: t.name,- module: t.module,- classification: t.classification as Classification,- description: t.description,- paramCount: t.paramCount- }));-- const counts = new Map<string, number>();- for (const t of tools) counts.set(t.module, (counts.get(t.module) ?? 0) + 1);-- const modules: CatalogModule[] = [...counts.entries()]- .map(([key, count]) => ({- key,- label: MODULE_META[key]?.label ?? key,- description: MODULE_META[key]?.description ?? "",- count- }))- .sort((a, b) => b.count - a.count);-- return { total: tools.length, moduleCount: modules.length, modules, tools };-}diff --git a/apps/erp/app/routes/mcp+/components/Authentication.tsx b/apps/erp/app/routes/mcp+/components/Authentication.tsxdeleted file mode 100644index 77bdba047c..0000000000--- a/apps/erp/app/routes/mcp+/components/Authentication.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { SpecList, SpecRow } from "./SpecRow";--export function Authentication() {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-6 text-[0.95rem] [text-wrap:pretty]">- Connect with OAuth — no secrets to copy. Carbon's MCP server speaks- OAuth 2.1, so your client registers itself and you authorize in the- browser. A scoped API key is there if you'd rather (CI, headless).- </p>- <SpecList>- <SpecRow label="OAuth 2.1">- PKCE + dynamic client registration. Your client self-registers; you- sign in, pick your company, and click Authorize — nothing to copy or- paste.- </SpecRow>- <SpecRow label="Permissions">- The connection inherits exactly your Carbon access (scope{" "}- <span className="font-[var(--mono)]">mcp:tools</span>). Cross-company- access is impossible.- </SpecRow>- <SpecRow label="API keys">- Prefer a key for CI or headless use? Create a scoped key in Settings →- API Keys and send it as{" "}- <span className="font-[var(--mono)]">- Authorization: Bearer crbn_…- </span>- .- </SpecRow>- </SpecList>- <p className="text-muted-foreground text-[0.9rem] mt-3 max-w-[64ch] [text-wrap:pretty]">- Access tokens last an hour and refresh automatically.- </p>- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/CopyButton.tsx b/apps/erp/app/routes/mcp+/components/CopyButton.tsxdeleted file mode 100644index 0999b90e2b..0000000000--- a/apps/erp/app/routes/mcp+/components/CopyButton.tsx+++ /dev/null@@ -1,31 +0,0 @@-import { cn } from "@carbon/react";-import { useState } from "react";-import { LuCheck, LuCopy } from "react-icons/lu";-import { copyToClipboard } from "~/utils/string";--export function CopyButton({- text,- className,- label = "Copy"-}: {- text: string;- className?: string;- label?: string;-}) {- const [done, setDone] = useState(false);- return (- <button- type="button"- aria-label={label}- className={cn(className, done && "done")}- onClick={() => {- copyToClipboard(text, () => {- setDone(true);- setTimeout(() => setDone(false), 1400);- });- }}- >- {done ? <LuCheck size={14} /> : <LuCopy size={14} />}- </button>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Cta.tsx b/apps/erp/app/routes/mcp+/components/Cta.tsxdeleted file mode 100644index 0971a8eab0..0000000000--- a/apps/erp/app/routes/mcp+/components/Cta.tsx+++ /dev/null@@ -1,55 +0,0 @@-import { Button, useMode } from "@carbon/react";-import { useEffect, useState } from "react";-import { useInViewClass } from "../hooks/useInViewClass";-import { goToQuickstart } from "./quickstart-nav";--export function Cta() {- const ref = useInViewClass<HTMLElement>();- // Read the real <html> .dark class (useMode lags the toggle), and track toggles.- const [isDark, setIsDark] = useState(useMode() === "dark");- useEffect(() => {- const html = document.documentElement;- const update = () => setIsDark(html.classList.contains("dark"));- update();- const observer = new MutationObserver(update);- observer.observe(html, { attributes: true, attributeFilter: ["class"] });- return () => observer.disconnect();- }, []);-- return (- <section ref={ref} className="reveal relative py-[54px] scroll-mt-20">- <div- className={- isDark- ? "bg-muted bg-cover bg-center border border-border rounded-[14px] px-[24px] py-[50px] text-center"- : "bg-muted bg-[url(/cta.webp)] bg-cover bg-center border border-border rounded-[14px] px-[24px] py-[50px] text-center"- }- >- <h2 className="font-medium tracking-[-0.035em] leading-[1.05] m-0 mb-[8px] text-foreground [text-wrap:balance] text-[clamp(1.8rem,2.8vw,2.4rem)]">- Build something with Carbon- </h2>- <p className="text-muted-foreground m-0 mb-[20px]">- Bring your manufacturing system into every AI assistant.- </p>- <div className="flex gap-[10px] flex-wrap justify-center">- <Button- variant="primary"- size="lg"- onClick={() => goToQuickstart("Claude Code")}- >- Connect to Claude- </Button>- <Button asChild variant="secondary" size="lg">- <a- href="https://www.carbon.ms/sales"- target="_blank"- rel="noopener"- >- Talk to sales- </a>- </Button>- </div>- </div>- </section>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Faq.tsx b/apps/erp/app/routes/mcp+/components/Faq.tsxdeleted file mode 100644index 6944d33b7f..0000000000--- a/apps/erp/app/routes/mcp+/components/Faq.tsx+++ /dev/null@@ -1,45 +0,0 @@-import { cn } from "@carbon/react";-import { useState } from "react";-import { FAQ } from "./mcp-content";--function FaqItem({ q, a }: { q: string; a: string }) {- const [open, setOpen] = useState(false);- return (- <div className="bg-card border border-border rounded-[10px] px-[15px] py-[13px] mb-[8px] cursor-pointer transition-[border-color] duration-200 hover:border-[var(--acc)]">- <button- type="button"- className="w-full bg-transparent border-none cursor-pointer font-[inherit] text-foreground text-left flex justify-between items-center font-semibold text-[0.9rem]"- aria-expanded={open}- onClick={() => setOpen((o) => !o)}- >- {q}{" "}- <span- className={cn(- "text-[var(--acc)] transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)]",- open && "rotate-45"- )}- >- +- </span>- </button>- <div- className={cn(- "text-muted-foreground text-[0.84rem] overflow-hidden transition-[max-height,margin] duration-300 ease-in-out",- open ? "max-h-[260px] mt-[9px]" : "max-h-0"- )}- >- {a}- </div>- </div>- );-}--export function Faq() {- return (- <div className="flex flex-col">- {FAQ.map((f) => (- <FaqItem key={f.q} q={f.q} a={f.a} />- ))}- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/FilterSelect.tsx b/apps/erp/app/routes/mcp+/components/FilterSelect.tsxdeleted file mode 100644index b45d072606..0000000000--- a/apps/erp/app/routes/mcp+/components/FilterSelect.tsx+++ /dev/null@@ -1,131 +0,0 @@-import { cn } from "@carbon/react";-import { useEffect, useRef, useState } from "react";-import { createPortal } from "react-dom";-import { LuChevronDown } from "react-icons/lu";--export interface FilterOption {- value: string;- label: string;-}--// The menu renders in a portal so it isn't clipped by the ToolBrowser card's-// `overflow-hidden` (used to round the row corners). Closes on outside-click,-// scroll, or resize.-export function FilterSelect({- value,- options,- placeholder,- onChange-}: {- value: string;- options: FilterOption[];- placeholder: string;- onChange: (v: string) => void;-}) {- const [open, setOpen] = useState(false);- const [rect, setRect] = useState<DOMRect | null>(null);- const triggerRef = useRef<HTMLButtonElement>(null);- const menuRef = useRef<HTMLDivElement>(null);-- useEffect(() => {- if (!open) return;- const onDoc = (e: MouseEvent) => {- const t = e.target as Node;- if (triggerRef.current?.contains(t) || menuRef.current?.contains(t))- return;- setOpen(false);- };- const dismiss = () => setOpen(false);- document.addEventListener("mousedown", onDoc);- window.addEventListener("scroll", dismiss, true);- window.addEventListener("resize", dismiss);- return () => {- document.removeEventListener("mousedown", onDoc);- window.removeEventListener("scroll", dismiss, true);- window.removeEventListener("resize", dismiss);- };- }, [open]);-- const toggle = () => {- if (!open) setRect(triggerRef.current?.getBoundingClientRect() ?? null);- setOpen((o) => !o);- };- const select = (v: string) => {- onChange(v);- setOpen(false);- };- const current = options.find((o) => o.value === value);-- const optionClass = (selected: boolean) =>- cn(- "block w-full text-left px-[10px] py-[7px] border-none bg-transparent rounded-md text-[0.8rem] text-foreground cursor-pointer font-[inherit] whitespace-nowrap transition-[background,color] duration-[120ms] hover:bg-muted",- selected && "text-[var(--acc)] bg-[var(--acc-tint-strong)] font-semibold"- );-- return (- <>- <button- ref={triggerRef}- type="button"- className={cn(- "inline-flex items-center gap-2 h-[38px] px-[11px] border bg-card rounded-lg text-[0.8rem] font-semibold text-foreground cursor-pointer whitespace-nowrap transition-[border-color,box-shadow] duration-150",- open- ? "border-[var(--acc)] shadow-[0_0_0_3px_var(--acc-ring)]"- : "border-border hover:border-muted-foreground"- )}- aria-haspopup="listbox"- aria-expanded={open}- onClick={toggle}- >- <span className={cn(!current && "text-muted-foreground font-medium")}>- {current ? current.label : placeholder}- </span>- <LuChevronDown- size={14}- className={cn(- "text-muted-foreground shrink-0 transition-transform duration-200",- open && "rotate-180"- )}- />- </button>- {open &&- rect &&- createPortal(- <div- ref={menuRef}- role="listbox"- style={{- position: "fixed",- top: rect.bottom + 6,- left: rect.left,- minWidth: rect.width- }}- className="max-h-[280px] overflow-auto bg-card border border-border rounded-[10px] shadow-[0_1px_2px_rgba(0,0,0,0.05),0_14px_30px_-12px_rgba(0,0,0,0.22)] p-[5px] z-[1000] flex flex-col gap-px"- >- <button- type="button"- role="option"- aria-selected={!value}- className={optionClass(!value)}- onClick={() => select("")}- >- {placeholder}- </button>- {options.map((o) => (- <button- type="button"- key={o.value}- role="option"- aria-selected={o.value === value}- className={optionClass(o.value === value)}- onClick={() => select(o.value)}- >- {o.label}- </button>- ))}- </div>,- document.body- )}- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/FlowDiagram.tsx b/apps/erp/app/routes/mcp+/components/FlowDiagram.tsxdeleted file mode 100644index 202db91365..0000000000--- a/apps/erp/app/routes/mcp+/components/FlowDiagram.tsx+++ /dev/null@@ -1,92 +0,0 @@-import { Fragment } from "react";-import type { Classification } from "../catalog";-import { Tag } from "./Tag";--export interface FlowStep {- name: string;- text: string;- tag?: Classification;- num?: string;-}--export function FlowDiagram({- label,- caption,- steps,- vertical = false-}: {- label: string;- caption: string;- steps: FlowStep[];- vertical?: boolean;-}) {- if (vertical) {- return (- <div className="bg-card border border-border rounded-[12px] p-[18px]">- <div className="text-[var(--acc)] font-[var(--mono)] text-[0.68rem] tracking-[0.14em] font-medium">- {label}- </div>- <div className="text-muted-foreground text-[0.85rem] mt-1 mb-[15px]">- {caption}- </div>- <div className="flex flex-col stagger">- {steps.map((s, i) => (- <div- className="grid gap-[14px] py-3 [grid-template-columns:30px_1fr] [&:not(:last-child)]:border-b [&:not(:last-child)]:border-border"- key={`${s.name}-${i}`}- >- <span className="text-[var(--acc)] font-[var(--mono)] text-[0.7rem]">- {s.num ?? String(i + 1).padStart(2, "0")}- </span>- <div>- <span className="font-[var(--mono)] font-medium text-foreground text-[0.85rem] flex items-center gap-2 flex-wrap">- {s.name}- {s.tag && <Tag kind={s.tag} />}- </span>- <p className="mt-[5px] text-[0.82rem] text-muted-foreground m-0">- {s.text}- </p>- </div>- </div>- ))}- </div>- </div>- );- }- return (- <div className="bg-card border border-border rounded-[12px] p-[18px]">- <div className="text-[var(--acc)] font-[var(--mono)] text-[0.68rem] tracking-[0.14em] font-medium">- {label}- </div>- <div className="text-muted-foreground text-[0.85rem] mt-1 mb-[15px]">- {caption}- </div>- <div className="flex items-stretch flex-wrap stagger">- {steps.map((s, i) => (- <Fragment key={`${s.name}-${i}`}>- {i > 0 && (- <div className="flex items-center text-[var(--acc)] px-[10px] text-[17px]">- →- </div>- )}- <div className="flex-1 min-w-[172px] bg-muted border border-border rounded-[10px] p-[13px]">- {s.tag ? (- <Tag kind={s.tag} />- ) : (- <span className="font-[var(--mono)] text-[0.68rem] text-muted-foreground">- {s.num ?? String(i + 1).padStart(2, "0")}- </span>- )}- <div className="font-[var(--mono)] font-medium text-foreground mt-[3px] text-[0.85rem]">- {s.name}- </div>- <p className="mt-[7px] text-[0.8rem] text-muted-foreground m-0">- {s.text}- </p>- </div>- </Fragment>- ))}- </div>- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Footer.tsx b/apps/erp/app/routes/mcp+/components/Footer.tsxdeleted file mode 100644index abbc090a4b..0000000000--- a/apps/erp/app/routes/mcp+/components/Footer.tsx+++ /dev/null@@ -1,10 +0,0 @@-export function Footer() {- return (- <footer className="border-t border-border mt-10 py-[26px]">- <div className="container flex justify-between font-[var(--mono)] text-[0.7rem] tracking-[0.1em] uppercase text-muted-foreground">- <span>Carbon Manufacturing Systems</span>- <span>Developer Docs — MCP</span>- </div>- </footer>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Lede.tsx b/apps/erp/app/routes/mcp+/components/Lede.tsxdeleted file mode 100644index 05d22da967..0000000000--- a/apps/erp/app/routes/mcp+/components/Lede.tsx+++ /dev/null@@ -1,47 +0,0 @@-import { Button } from "@carbon/react";-import { CopyButton } from "./CopyButton";-import { ENDPOINT } from "./mcp-content";-import { goToQuickstart } from "./quickstart-nav";--export function Lede({ total }: { total: number }) {- return (- <div className="pb-[10px] mb-12">- <h1 className="font-medium tracking-[-0.045em] text-[clamp(2.7rem,5.2vw,4.1rem)] leading-[0.98] m-0 mb-4 [text-wrap:balance]">- Carbon MCP server- </h1>- <p className="text-muted-foreground max-w-[58ch] m-0 mb-[18px] text-[1.0625rem] [text-wrap:pretty]">- Connect Claude, ChatGPT, Cursor, or any MCP client to Carbon. It gets{" "}- <span className="font-medium text-foreground">- {total.toLocaleString()} tools- </span>{" "}- across 15 modules — sales orders, production jobs, inventory,- purchasing, quality — and you drive them in plain language.- </p>- <div className="inline-flex items-center gap-[11px] bg-card border border-border rounded-[11px] py-[7px] pr-[7px] pl-[13px] mb-4 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_6px_18px_-10px_rgba(0,0,0,0.12)]">- <span className="font-[var(--mono)] text-[0.65rem] font-bold text-[var(--acc)] border border-[var(--acc)] py-[3px] px-[7px] rounded-[5px]">- POST- </span>- <span className="font-[var(--mono)] text-[0.875rem] font-variant-numeric-tabular">- {ENDPOINT}- </span>- <CopyButton- className="bg-muted border border-border rounded-[6px] w-7 h-7 inline-flex items-center justify-center p-0 cursor-pointer transition-[transform,background] duration-[150ms] [transition-timing-function:cubic-bezier(0.2,0,0,1)] hover:bg-card active:scale-[0.96]"- text={ENDPOINT}- label="Copy endpoint"- />- </div>- <div className="flex gap-[10px] flex-wrap">- <Button variant="primary" size="lg" onClick={() => goToQuickstart()}>- Get started- </Button>- <Button- variant="secondary"- size="lg"- onClick={() => goToQuickstart("Claude Code")}- >- Connect to Claude- </Button>- </div>- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/McpPage.tsx b/apps/erp/app/routes/mcp+/components/McpPage.tsxdeleted file mode 100644index 69f5bc9a19..0000000000--- a/apps/erp/app/routes/mcp+/components/McpPage.tsx+++ /dev/null@@ -1,77 +0,0 @@-import type { McpCatalog } from "../catalog";-import { Authentication } from "./Authentication";-import { Cta } from "./Cta";-import { Faq } from "./Faq";-import { Footer } from "./Footer";-import { Lede } from "./Lede";-import { Nav } from "./Nav";-import { OnThisPageNav } from "./OnThisPageNav";-import { Quickstart } from "./Quickstart";-import { Safety } from "./Safety";-import { Section } from "./Section";-import { ToolDiscovery } from "./ToolDiscovery";-import { Tools } from "./Tools";-import { WaveScrollRail } from "./WaveScrollRail";-import { WhatIsMcp } from "./WhatIsMcp";-import { WhatYouCanAsk } from "./WhatYouCanAsk";--export function McpPage({ catalog }: { catalog: McpCatalog }) {- return (- <div className="MCP bg-[var(--canvas)] text-foreground antialiased min-h-screen">- <Nav />- <WaveScrollRail />- <div className="container">- <div className="grid grid-cols-1 min-[880px]:grid-cols-[200px_minmax(0,720px)] gap-12 pt-[52px] pb-10">- <OnThisPageNav />- <main>- <Lede total={catalog.total} />- <Section- id="whatis"- fig="FIG.01"- label="OVERVIEW"- title="What is MCP?"- >- <WhatIsMcp />- </Section>- <WhatYouCanAsk />- <Section- id="quickstart"- fig="FIG.03"- label="QUICKSTART"- title="Quickstart"- >- <Quickstart />- </Section>- <Section- id="discovery"- fig="FIG.04"- label="ARCHITECTURE"- title="How tool discovery works"- >- <ToolDiscovery total={catalog.total} />- </Section>- <Section id="tools" fig="FIG.05" label="REFERENCE" title="Tools">- <Tools catalog={catalog} />- </Section>- <Section- id="auth"- fig="FIG.06"- label="SECURITY"- title="Authentication"- >- <Authentication />- </Section>- <Section id="safety" fig="FIG.07" label="SAFETY" title="Safety">- <Safety />- </Section>- <Section id="faq" fig="FIG.08" label="FAQ" title="FAQ">- <Faq />- </Section>- <Cta />- </main>- </div>- </div>- <Footer />- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/ModuleCards.tsx b/apps/erp/app/routes/mcp+/components/ModuleCards.tsxdeleted file mode 100644index 25e82806fa..0000000000--- a/apps/erp/app/routes/mcp+/components/ModuleCards.tsx+++ /dev/null@@ -1,119 +0,0 @@-import { cn } from "@carbon/react";-import type { IconType } from "react-icons";-import {- LuBox,- LuCircleUser,- LuCrown,- LuFactory,- LuFiles,- LuFolderCheck,- LuLandmark,- LuLayers,- LuLayoutGrid,- LuReceipt,- LuSettings,- LuShield,- LuShoppingCart,- LuSquareStack,- LuUsers,- LuWrench-} from "react-icons/lu";-import type { CatalogModule } from "../catalog";--// Mirrors the ERP module icons (app/hooks/useModules.tsx). invoicing/account/-// shared have no top-level nav icon, so the closest lucide stands in.-const MODULE_ICONS: Record<string, IconType> = {- sales: LuCrown,- items: LuSquareStack,- production: LuFactory,- purchasing: LuShoppingCart,- resources: LuWrench,- settings: LuSettings,- quality: LuFolderCheck,- accounting: LuLandmark,- inventory: LuBox,- people: LuUsers,- users: LuShield,- documents: LuFiles,- invoicing: LuReceipt,- account: LuCircleUser,- shared: LuLayers-};--function Card({- icon: Icon,- label,- count,- active,- onClick-}: {- icon: IconType;- label: string;- count: number;- active: boolean;- onClick: () => void;-}) {- return (- <button- type="button"- onClick={onClick}- aria-pressed={active}- className={cn(- "flex items-center gap-[9px] text-left p-[10px] rounded-lg border cursor-pointer transition-[border-color,background,transform] duration-150 active:scale-[0.97]",- active- ? "border-[var(--acc)] bg-[var(--acc-tint)]"- : "border-border bg-card hover:border-muted-foreground"- )}- >- <Icon- size={16}- className={cn(- "shrink-0",- active ? "text-[var(--acc)]" : "text-muted-foreground"- )}- />- <span className="min-w-0">- <span className="block font-medium text-[0.8rem] text-foreground truncate">- {label}- </span>- <span className="block font-[var(--mono)] text-[0.62rem] text-muted-foreground tabular-nums">- {count.toLocaleString()}- </span>- </span>- </button>- );-}--export function ModuleCards({- modules,- total,- value,- onChange-}: {- modules: CatalogModule[];- total: number;- value: string;- onChange: (v: string) => void;-}) {- return (- <div className="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-[8px] mb-[18px]">- <Card- icon={LuLayoutGrid}- label="All modules"- count={total}- active={value === ""}- onClick={() => onChange("")}- />- {modules.map((m) => (- <Card- key={m.key}- icon={MODULE_ICONS[m.key] ?? LuBox}- label={m.label}- count={m.count}- active={value === m.key}- onClick={() => onChange(value === m.key ? "" : m.key)}- />- ))}- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Nav.tsx b/apps/erp/app/routes/mcp+/components/Nav.tsxdeleted file mode 100644index cf7b79658b..0000000000--- a/apps/erp/app/routes/mcp+/components/Nav.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { Button } from "@carbon/react";-import { ThemeToggle } from "./ThemeToggle";--export function Nav() {- return (- // z-40 keeps the nav above page content but below the z-50 screenshot lightbox.- <header className="sticky top-0 z-40 h-[68px] flex items-center bg-[var(--canvas-blur)] backdrop-blur-[12px] saturate-[160%] border-b border-border">- <div className="container flex items-center gap-[26px] w-full">- <a- className="flex items-center gap-[9px] font-semibold text-base tracking-[-0.02em]"- href="/"- >- <img- className="h-[23px] w-auto block dark:hidden"- src="/carbon-word-light.svg"- alt="Carbon"- />- <img- className="h-[23px] w-auto hidden dark:block"- src="/carbon-word-dark.svg"- alt="Carbon"- />- </a>- <div className="ml-auto flex items-center gap-[10px]">- <ThemeToggle />- <Button asChild variant="primary" size="md">- <a href="/x/settings/api-keys">Get an API key</a>- </Button>- </div>- </div>- </header>- );-}diff --git a/apps/erp/app/routes/mcp+/components/OnThisPageNav.tsx b/apps/erp/app/routes/mcp+/components/OnThisPageNav.tsxdeleted file mode 100644index f2b56eb1ca..0000000000--- a/apps/erp/app/routes/mcp+/components/OnThisPageNav.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { cn } from "@carbon/react";-import type React from "react";-import { useScrollSpy } from "../hooks/useScrollSpy";-import { TOC } from "./mcp-content";--const TOC_IDS = TOC.map((t) => t.id);--export function OnThisPageNav() {- const active = useScrollSpy(TOC_IDS);- const go = (e: React.MouseEvent<HTMLAnchorElement>, id: string) => {- e.preventDefault();- const el = document.getElementById(id);- if (el) {- el.scrollIntoView({ behavior: "smooth", block: "start" });- history.replaceState(null, "", `#${id}`);- }- };- return (- <aside className="hidden min-[880px]:block sticky top-[84px] self-start text-[0.85rem]">- <div className="font-[var(--mono)] text-[0.7rem] uppercase tracking-[0.14em] text-muted-foreground mb-[13px]">- On this page- </div>- <div className="toc-track">- {TOC.map((t, i) => (- <a- key={t.id}- href={`#${t.id}`}- onClick={(e) => go(e, t.id)}- className={cn(- "block py-[6px] text-muted-foreground hover:text-foreground transition-colors duration-[150ms]",- i === active && "active text-foreground font-semibold",- i < active && "passed"- )}- >- {t.label}- </a>- ))}- </div>- </aside>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Quickstart.tsx b/apps/erp/app/routes/mcp+/components/Quickstart.tsxdeleted file mode 100644index 9a8ab6c583..0000000000--- a/apps/erp/app/routes/mcp+/components/Quickstart.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { SetupPipeline } from "./SetupPipeline";--export function Quickstart() {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-[26px] text-[0.95rem] [text-wrap:pretty]">- Pick your client, follow the three steps, and you're talking to- your ERP. About a minute.- </p>- <SetupPipeline />- <p className="text-muted-foreground mt-[18px] text-[0.8rem] [text-wrap:pretty]">- Connector clients authorize in the browser — nothing to paste. CLI and- config clients use a scoped key from Settings → API Keys (- <span className="font-[var(--mono)]">Authorization: Bearer crbn_…</span>- ). stdio-only clients bridge through the{" "}- <span className="font-[var(--mono)]">mcp-remote</span> shim.- </p>- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Safety.tsx b/apps/erp/app/routes/mcp+/components/Safety.tsxdeleted file mode 100644index a043a1785d..0000000000--- a/apps/erp/app/routes/mcp+/components/Safety.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { SpecList, SpecRow } from "./SpecRow";-import { Tag } from "./Tag";--export function Safety() {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-6 text-[0.95rem] [text-wrap:pretty]">- Every tool is classified so you always know what's safe and what mutates- data.- </p>- <SpecList>- <SpecRow label={<Tag kind="READ" />}>- Always safe — no data changes.- </SpecRow>- <SpecRow label={<Tag kind="WRITE" />}>- Creates or updates records.- </SpecRow>- <SpecRow label={<Tag kind="DESTRUCTIVE" />}>- Deletes data — keep human confirmation on.- </SpecRow>- </SpecList>- <p className="text-muted-foreground text-[0.9rem] mt-3 max-w-[64ch] [text-wrap:pretty]">- A key only ever sees what its user could see in Carbon. Cross-company- access is impossible.- </p>- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Screenshot.tsx b/apps/erp/app/routes/mcp+/components/Screenshot.tsxdeleted file mode 100644index 5556d04bee..0000000000--- a/apps/erp/app/routes/mcp+/components/Screenshot.tsx+++ /dev/null@@ -1,53 +0,0 @@-import {- IconButton,- Modal,- ModalClose,- ModalContent,- ModalTitle,- ModalTrigger-} from "@carbon/react";-import { LuExpand, LuX } from "react-icons/lu";--// The source screenshots are ~3400px wide — far more detail than the-// quickstart column can show — so the thumbnail opens a full-size lightbox.-export function Screenshot({ src, alt }: { src: string; alt: string }) {- return (- <Modal>- <ModalTrigger asChild>- <button- type="button"- className="group relative block w-full cursor-zoom-in rounded-[9px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--acc)]"- >- <img- src={src}- alt={alt}- className="w-full rounded-[9px] block outline outline-1 outline-black/10 -outline-offset-1"- />- <span className="absolute top-[8px] right-[8px] w-[28px] h-[28px] inline-flex items-center justify-center rounded-md bg-zinc-800/80 text-zinc-300 backdrop-blur-sm transition-colors group-hover:bg-zinc-800 group-hover:text-zinc-100">- <LuExpand size={14} />- <span className="sr-only">Expand screenshot</span>- </span>- </button>- </ModalTrigger>- <ModalContent- size="xxxlarge"- withCloseButton={false}- aria-describedby={undefined}- className="pt-0 gap-0 overflow-hidden"- >- <ModalTitle className="sr-only">{alt}</ModalTitle>- <img src={src} alt={alt} className="w-full block" />- {/* The default close button is foreground-on-transparent — invisible- over these mostly-dark screenshots. */}- <ModalClose asChild>- <IconButton- aria-label="Close"- icon={<LuX />}- variant="secondary"- className="absolute top-2 right-2"- />- </ModalClose>- </ModalContent>- </Modal>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Section.tsx b/apps/erp/app/routes/mcp+/components/Section.tsxdeleted file mode 100644index 5672dd4ec7..0000000000--- a/apps/erp/app/routes/mcp+/components/Section.tsx+++ /dev/null@@ -1,35 +0,0 @@-import type { ReactNode } from "react";-import { useInViewClass } from "../hooks/useInViewClass";--export function Section({- id,- fig,- label,- title,- children-}: {- id: string;- fig: string;- label: string;- title?: string;- children: ReactNode;-}) {- const ref = useInViewClass<HTMLElement>();- return (- <section- ref={ref}- id={id}- className="reveal hr-wipe relative py-[54px] scroll-mt-20"- >- <div className="font-[var(--mono)] text-[0.68rem] tracking-[0.18em] uppercase text-muted-foreground mb-4">- <span className="text-[var(--acc)] font-medium">{fig}</span> · {label}- </div>- {title && (- <h2 className="font-medium tracking-[-0.03em] text-[clamp(1.5rem,2.2vw,1.9rem)] leading-[1.12] mb-[9px] text-balance">- {title}- </h2>- )}- {children}- </section>- );-}diff --git a/apps/erp/app/routes/mcp+/components/SetupPipeline.tsx b/apps/erp/app/routes/mcp+/components/SetupPipeline.tsxdeleted file mode 100644index b18a664419..0000000000--- a/apps/erp/app/routes/mcp+/components/SetupPipeline.tsx+++ /dev/null@@ -1,180 +0,0 @@-import { cn } from "@carbon/react";-import { useEffect, useState } from "react";-import { LuArrowDown, LuPlug, LuTerminal } from "react-icons/lu";-import { CopyButton } from "./CopyButton";-import { CLIENTS, type Client, ENDPOINT } from "./mcp-content";-import { SELECT_CLIENT_EVENT } from "./quickstart-nav";-import { Screenshot } from "./Screenshot";--const FLOW_META = {- connector: { Icon: LuPlug, label: "OAuth · no key" },- command: { Icon: LuTerminal, label: "API key" }-} as const;--interface PipeStep {- num: string;- crumb: string;- title: string;- caption: string;- alt: string;- code?: string;- img: string;-}--// Builds the three-step walkthrough for the selected client. Steps 1 and 3 are-// shared within a flow; step 2 carries the client-specific command/config.-function stepsFor(c: Client): PipeStep[] {- const verify: PipeStep = {- num: "03",- crumb: c.name,- title: "Verify",- caption:- "Ask it to search Carbon. If it lists tools, you’re connected to your ERP.",- alt: `${c.name} — “Search Carbon for sales-order tools” returning a list of tools`,- img: `/mcp/verify-${c.slug}.png`- };-- if (c.flow === "connector") {- return [- {- num: "01",- crumb: c.where,- title: "Add a custom connector",- caption: `Open ${c.where}, choose Add custom connector, then paste the endpoint.`,- code: ENDPOINT,- alt: `${c.name} — the “Add custom connector” dialog with the Carbon MCP URL`,- img: `/mcp/add-${c.slug}.png`- },- {- num: "02",- crumb: "app.carbon.ms/oauth/authorize",- title: "Authorize",- caption:- "Sign in, choose your company, and click Authorize. The connection inherits your Carbon permissions — no key to paste.",- alt: "Carbon — the “Authorize Application” screen: choose your company, then Authorize",- img: "/mcp/authorize-connector.png"- },- verify- ];- }-- return [- {- num: "01",- crumb: "Carbon · Settings → API Keys",- title: "Create an API key",- caption:- "Settings → API Keys → New. The modal hands you a ready-to-paste snippet — you only see the key once.",- alt: "Carbon — Settings → API Keys → the new-key modal with the snippet",- img: "/mcp/api-key.png"- },- {- num: "02",- crumb: c.target,- title: c.action,- caption: "Paste it in, swapping in the key the modal gave you:",- code: c.code,- alt: `${c.name} — the Carbon MCP server configured with your key`,- img: `/mcp/add-${c.slug}.png`- },- verify- ];-}--export function SetupPipeline() {- const [name, setName] = useState("Claude Code");- const client = CLIENTS.find((c) => c.name === name) ?? CLIENTS[0];- const steps = stepsFor(client);-- // The hero "Connect to Claude" CTA preselects a client via this event.- useEffect(() => {- const onSelect = (e: Event) => {- const wanted = (e as CustomEvent<string>).detail;- if (CLIENTS.some((c) => c.name === wanted)) setName(wanted);- };- window.addEventListener(SELECT_CLIENT_EVENT, onSelect);- return () => window.removeEventListener(SELECT_CLIENT_EVENT, onSelect);- }, []);-- return (- <div>- <div className="grid grid-cols-1 sm:grid-cols-3 gap-[10px] mb-[24px]">- {CLIENTS.map((c) => {- const { Icon, label } = FLOW_META[c.flow];- const isActive = c.name === client.name;- return (- <button- key={c.name}- type="button"- onClick={() => setName(c.name)}- aria-pressed={isActive}- className={cn(- "flex flex-col items-start gap-[6px] text-left p-[13px] rounded-xl border cursor-pointer transition-[border-color,background,transform] duration-150 active:scale-[0.97]",- isActive- ? "border-[var(--acc)] bg-[var(--acc-tint)] shadow-[0_1px_2px_rgba(0,0,0,0.05)]"- : "border-border bg-card hover:border-muted-foreground"- )}- >- <Icon- size={17}- className={cn(- isActive ? "text-[var(--acc)]" : "text-muted-foreground"- )}- />- <span className="font-semibold text-[0.85rem] text-foreground">- {c.name}- </span>- <span className="font-[var(--mono)] text-[0.6rem] tracking-[0.04em] uppercase text-muted-foreground">- {label}- </span>- </button>- );- })}- </div>-- <div className="stagger" key={client.flow}>- {steps.map((s, i) => (- <div key={s.num}>- <div className="bg-card border border-border rounded-xl p-4 shadow-[0_1px_2px_rgba(0,0,0,0.04),0_10px_26px_-20px_rgba(0,0,0,0.18)]">- <div className="flex items-center gap-[10px] mb-[10px]">- <span className="font-[var(--mono)] text-[0.72rem] text-[var(--acc)] font-medium">- {s.num}- </span>- <span className="font-[var(--mono)] text-[0.64rem] tracking-[0.04em] text-muted-foreground bg-muted border border-border rounded-md px-[7px] py-[2px]">- {s.crumb}- </span>- </div>- <div className="font-semibold text-[0.98rem] tracking-[-0.01em] mb-[3px]">- {s.title}- </div>- <p className="text-muted-foreground text-[0.85rem] mb-[13px] max-w-[60ch] [text-wrap:pretty]">- {s.caption}- </p>- {s.code && (- <div className="relative mb-[13px]">- <CopyButton- text={s.code}- className="absolute top-[8px] right-[8px] w-[28px] h-[28px] inline-flex items-center justify-center bg-zinc-800 text-zinc-500 hover:text-zinc-100 rounded-md cursor-pointer transition-[transform,color] active:scale-[0.96] [&.done]:bg-[var(--acc)] [&.done]:text-white"- />- <pre className="m-0 overflow-auto rounded-[9px] bg-zinc-900 border border-zinc-800 text-zinc-200 font-[var(--mono)] text-[0.76rem] leading-[1.6] px-[13px] py-[11px] pr-[42px] whitespace-pre">- {s.code}- </pre>- </div>- )}- <Screenshot src={s.img} alt={s.alt} />- </div>- {i < steps.length - 1 && (- <div- className="flex flex-col items-center py-[7px]"- aria-hidden="true"- >- <span className="w-px h-[12px] bg-border" />- <LuArrowDown size={16} className="text-[var(--acc)]" />- </div>- )}- </div>- ))}- </div>- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/SpecRow.tsx b/apps/erp/app/routes/mcp+/components/SpecRow.tsxdeleted file mode 100644index 0d42f56413..0000000000--- a/apps/erp/app/routes/mcp+/components/SpecRow.tsx+++ /dev/null@@ -1,26 +0,0 @@-import type { ReactNode } from "react";--export function SpecList({ children }: { children: ReactNode }) {- return (- <div className="stagger border-t border-border mt-[2px]">{children}</div>- );-}--export function SpecRow({- label,- children-}: {- label: ReactNode;- children: ReactNode;-}) {- return (- <div className="grid grid-cols-[180px_1fr] gap-[28px] items-baseline py-[15px] border-b border-border">- <div className="font-semibold text-[0.95rem] flex items-center gap-[9px]">- {label}- </div>- <p className="text-muted-foreground text-[0.9rem] m-0 [text-wrap:pretty]">- {children}- </p>- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Tag.tsx b/apps/erp/app/routes/mcp+/components/Tag.tsxdeleted file mode 100644index 59fb36c32a..0000000000--- a/apps/erp/app/routes/mcp+/components/Tag.tsx+++ /dev/null@@ -1,28 +0,0 @@-import { cn } from "@carbon/react";--const KIND_CLASSES = {- READ: "text-[#1f7a52] bg-[#dcefe6] dark:text-[#79d3a6] dark:bg-[#14241c]",- WRITE: "text-[#9a5a0c] bg-[#f2e6d3] dark:text-[#e0a24a] dark:bg-[#2a2113]",- DESTRUCTIVE:- "text-[#b23123] bg-[#f2dcd8] dark:text-[#f08a7c] dark:bg-[#2c1714]"-} as const;--export function Tag({- kind,- className-}: {- kind: keyof typeof KIND_CLASSES;- className?: string;-}) {- return (- <span- className={cn(- "inline-block font-[var(--mono)] text-[0.6rem] font-bold tracking-[0.04em] px-[6px] py-[2px] rounded-[4px]",- KIND_CLASSES[kind],- className- )}- >- {kind}- </span>- );-}diff --git a/apps/erp/app/routes/mcp+/components/ThemeToggle.tsx b/apps/erp/app/routes/mcp+/components/ThemeToggle.tsxdeleted file mode 100644index e0ed7671a4..0000000000--- a/apps/erp/app/routes/mcp+/components/ThemeToggle.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { useMode } from "@carbon/react";-import { LuMoon, LuSun } from "react-icons/lu";-import { useFetcher } from "react-router";-import { startModeTransition } from "~/utils/dom";-import { path } from "~/utils/path";--export function ThemeToggle() {- const fetcher = useFetcher();- const mode = useMode();- const next = mode === "dark" ? "light" : "dark";-- const onClick = () => {- // Persist host-only (no domain) so it survives regardless of the configured- // cookie domain. The server's setMode adds a domain attribute that won't match- // local/preview hosts, so its cookie gets dropped and the theme reverts on- // revalidation — this host-only cookie is what getMode() reads instead.- document.cookie = `mode=${next}; path=/; max-age=31536000; samesite=lax`;-- const formData = new FormData();- formData.append("mode", next);- startModeTransition(next, () => {- fetcher.submit(formData, { method: "post", action: path.to.root });- });- };-- return (- <button- type="button"- aria-label={- mode === "dark" ? "Switch to light mode" : "Switch to dark mode"- }- onClick={onClick}- className="inline-flex items-center justify-center w-9 h-9 rounded-lg border border-border bg-card text-foreground hover:border-muted-foreground transition-[transform,border-color] duration-150 active:scale-[0.96]"- >- {mode === "dark" ? <LuSun size={16} /> : <LuMoon size={16} />}- </button>- );-}diff --git a/apps/erp/app/routes/mcp+/components/ToolBrowser.tsx b/apps/erp/app/routes/mcp+/components/ToolBrowser.tsxdeleted file mode 100644index 0e68b1ee2b..0000000000--- a/apps/erp/app/routes/mcp+/components/ToolBrowser.tsx+++ /dev/null@@ -1,106 +0,0 @@-import { useMemo, useState } from "react";-import { LuChevronDown } from "react-icons/lu";-import type { CatalogModule, CatalogTool } from "../catalog";-import { filterTools } from "../tools-filter";-import { FilterSelect } from "./FilterSelect";-import { ModuleCards } from "./ModuleCards";-import { Tag } from "./Tag";--const PAGE = 30;--export function ToolBrowser({- tools,- modules-}: {- tools: CatalogTool[];- modules: CatalogModule[];-}) {- const [q, setQ] = useState("");- const [module, setModule] = useState("");- const [classification, setClassification] = useState("");- const [limit, setLimit] = useState(PAGE);-- const filtered = useMemo(- () => filterTools(tools, { q, module, classification }),- [tools, q, module, classification]- );- const shown = filtered.slice(0, limit);- const remaining = filtered.length - shown.length;-- return (- <div>- <ModuleCards- modules={modules}- total={tools.length}- value={module}- onChange={(v) => {- setModule(v);- setLimit(PAGE);- }}- />- <div className="border border-border rounded-[11px] overflow-hidden bg-card shadow-[0_1px_2px_rgba(0,0,0,0.04),0_10px_26px_-18px_rgba(0,0,0,0.14)]">- <div className="flex gap-2 items-center p-[11px] border-b border-border">- <input- className="flex-1 bg-muted border border-border rounded-lg px-3 py-2 text-foreground placeholder:text-muted-foreground text-[0.85rem] font-[inherit] outline-none focus:border-[var(--acc)]"- placeholder={`Search ${tools.length.toLocaleString()} tools…`}- value={q}- onChange={(e) => {- setQ(e.target.value);- setLimit(PAGE);- }}- />- <FilterSelect- value={classification}- placeholder="All types"- options={[- { value: "READ", label: "READ" },- { value: "WRITE", label: "WRITE" },- { value: "DESTRUCTIVE", label: "DESTRUCTIVE" }- ]}- onChange={(v) => {- setClassification(v);- setLimit(PAGE);- }}- />- </div>- {shown.map((t) => (- <div- className="flex items-center gap-[11px] p-[11px] border-b border-border last:border-b-0 hover:bg-muted"- key={t.name}- >- <Tag kind={t.classification} />- <span className="font-[var(--mono)] font-medium text-[0.78rem]">- {t.name}- </span>- <span className="text-muted-foreground flex-1 text-[0.8rem]">- {t.description}- </span>- <span className="text-muted-foreground text-[0.72rem] whitespace-nowrap">- {t.paramCount} params- </span>- </div>- ))}- {remaining > 0 ? (- <button- type="button"- onClick={() => setLimit((l) => l + PAGE)}- className="w-full flex items-center justify-center gap-[8px] px-[11px] py-[12px] text-[0.8rem] font-semibold text-foreground bg-muted border-t border-border cursor-pointer transition-colors hover:text-[var(--acc)]"- >- <LuChevronDown size={15} />- Load {Math.min(PAGE, remaining).toLocaleString()} more- <span className="font-[var(--mono)] text-[0.7rem] font-normal text-muted-foreground tabular-nums">- {shown.length.toLocaleString()} /{" "}- {filtered.length.toLocaleString()}- </span>- </button>- ) : (- <div className="px-[11px] py-[10px] text-[0.75rem] text-muted-foreground bg-muted border-t border-border font-[var(--mono)] tabular-nums">- {filtered.length === 0- ? "No tools match your filters."- : `All ${filtered.length.toLocaleString()} tools shown`}- </div>- )}- </div>- </div>- );-}diff --git a/apps/erp/app/routes/mcp+/components/ToolDiscovery.tsx b/apps/erp/app/routes/mcp+/components/ToolDiscovery.tsxdeleted file mode 100644index 20928cfb2a..0000000000--- a/apps/erp/app/routes/mcp+/components/ToolDiscovery.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { FlowDiagram } from "./FlowDiagram";--export function ToolDiscovery({ total }: { total: number }) {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-6 text-[0.95rem] [text-wrap:pretty]">- Carbon doesn't pour {total.toLocaleString()} tools into the model- at once. Three meta-tools let assistants discover what they need, just- in time.- </p>- <FlowDiagram- label="DISCOVERY LOOP"- caption="Search → describe → call. Auth context is injected automatically."- steps={[- {- name: "search_tools",- tag: "READ",- text: "Find tools by query, module, or classification."- },- {- name: "describe_tool",- tag: "READ",- text: "Get parameters & schema for one tool."- },- {- name: "call_tool",- tag: "WRITE",- text: "Execute it with arguments and get the result."- }- ]}- />- <p className="text-muted-foreground max-w-[64ch] mt-[26px] mb-6 text-[0.95rem] [text-wrap:pretty]">- You ask for an outcome; the assistant chains the calls itself.- Here's the real sequence behind one request.- </p>- <FlowDiagram- vertical- label={'WORKFLOW — "CHASE DOWN EVERYTHING SHIPPING LATE THIS WEEK"'}- caption="One sentence from you → three tool calls → a summary back."- steps={[- {- name: "search_tools",- tag: "READ",- text: "Finds the sales-order and shipment tools."- },- {- name: "sales_getSalesOrders",- tag: "READ",- text: "Filters to orders due this week that are still open."- },- {- name: "production_getJobs",- tag: "READ",- text: "Flags the linked jobs running behind schedule."- },- {- name: "Summary",- text: "Returns the list and the delays — for your review."- }- ]}- />- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/Tools.tsx b/apps/erp/app/routes/mcp+/components/Tools.tsxdeleted file mode 100644index 9c37604549..0000000000--- a/apps/erp/app/routes/mcp+/components/Tools.tsx+++ /dev/null@@ -1,14 +0,0 @@-import type { McpCatalog } from "../catalog";-import { ToolBrowser } from "./ToolBrowser";--export function Tools({ catalog }: { catalog: McpCatalog }) {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-6 text-[0.95rem] [text-wrap:pretty]">- {catalog.total.toLocaleString()} tools across {catalog.moduleCount}{" "}- modules. Filter by module, or search the full catalog.- </p>- <ToolBrowser tools={catalog.tools} modules={catalog.modules} />- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/WaveScrollRail.tsx b/apps/erp/app/routes/mcp+/components/WaveScrollRail.tsxdeleted file mode 100644index 42d81ef197..0000000000--- a/apps/erp/app/routes/mcp+/components/WaveScrollRail.tsx+++ /dev/null@@ -1,97 +0,0 @@-import { useEffect, useRef } from "react";--const N = 46;--export function WaveScrollRail() {- const railRef = useRef<HTMLDivElement>(null);- useEffect(() => {- const rail = railRef.current;- if (!rail) return;- const RM = matchMedia("(prefers-reduced-motion: reduce)").matches;- const dashes: HTMLDivElement[] = [];- for (let i = 0; i < N; i++) {- const d = document.createElement("div");- d.className = "dash";- rail.appendChild(d);- dashes.push(d);- }- let crest = 0;- let hoverT: number | null = null;- let scrubbing = false;- let raf = 0;- const t0 = performance.now();-- const fracAt = (clientY: number) => {- const r = rail.getBoundingClientRect();- return Math.max(0, Math.min(1, (clientY - r.top) / r.height));- };- const scrollP = () => {- const h = document.documentElement.scrollHeight - window.innerHeight;- return h > 0 ? Math.max(0, Math.min(1, window.scrollY / h)) : 0;- };- const scrollToFrac = (t: number, behavior: ScrollBehavior) => {- const h = document.documentElement.scrollHeight - window.innerHeight;- window.scrollTo({ top: t * h, behavior });- };-- // Click jumps (smooth); dragging scrubs (instant follow).- const onDown = (e: PointerEvent) => {- scrubbing = true;- rail.setPointerCapture(e.pointerId);- hoverT = fracAt(e.clientY);- scrollToFrac(hoverT, "smooth");- };- const onMove = (e: PointerEvent) => {- hoverT = fracAt(e.clientY);- if (scrubbing) scrollToFrac(hoverT, "auto");- };- const onUp = (e: PointerEvent) => {- scrubbing = false;- rail.releasePointerCapture?.(e.pointerId);- };- const onLeave = () => {- if (!scrubbing) hoverT = null;- };- rail.addEventListener("pointerdown", onDown);- rail.addEventListener("pointermove", onMove);- rail.addEventListener("pointerup", onUp);- rail.addEventListener("pointerleave", onLeave);-- const frame = (now: number) => {- const time = (now - t0) / 1000;- const target = hoverT != null ? hoverT : scrollP();- crest += (target - crest) * 0.12;- const p = scrollP();- for (let i = 0; i < N; i++) {- const tt = i / (N - 1);- const dd = tt - crest;- const env = Math.exp(-(dd * dd) * 55);- const ripple = RM- ? 0- : 0.5 + 0.5 * Math.sin(time * 2 - tt * Math.PI * 7);- const w = 5 + env * 15 + ripple * env * 3 + ripple * 1;- const d = dashes[i];- const passed = tt <= p + 0.002;- d.style.width = `${w.toFixed(1)}px`;- d.style.background =- env > 0.5- ? "var(--acc)"- : passed- ? "hsl(var(--foreground))"- : "hsl(var(--border))";- d.style.opacity = String((passed ? 0.7 : 0.45) + 0.3 * env);- }- raf = requestAnimationFrame(frame);- };- raf = requestAnimationFrame(frame);- return () => {- cancelAnimationFrame(raf);- rail.removeEventListener("pointerdown", onDown);- rail.removeEventListener("pointermove", onMove);- rail.removeEventListener("pointerup", onUp);- rail.removeEventListener("pointerleave", onLeave);- for (const d of dashes) d.remove();- };- }, []);- return <div className="waverail" ref={railRef} aria-hidden="true" />;-}diff --git a/apps/erp/app/routes/mcp+/components/WhatIsMcp.tsx b/apps/erp/app/routes/mcp+/components/WhatIsMcp.tsxdeleted file mode 100644index 94d608a7a2..0000000000--- a/apps/erp/app/routes/mcp+/components/WhatIsMcp.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { SpecList, SpecRow } from "./SpecRow";--export function WhatIsMcp() {- return (- <>- <p className="text-muted-foreground max-w-[64ch] mb-6 text-[0.95rem] text-pretty">- MCP is an open standard from Anthropic. It gives AI assistants one- consistent way to reach outside systems, so any MCP client can work with- Carbon without custom integration code.- </p>- <SpecList>- <SpecRow label="Hosts">- The assistants you already use — Claude (web, Desktop, Code), Cursor,- VS Code, Codex.- </SpecRow>- <SpecRow label="Clients">- The MCP transport inside the host. Carbon speaks Streamable HTTP.- </SpecRow>- <SpecRow label="Server">- Carbon's remote MCP server — backed by your ERP, secured by a scoped- API key.- </SpecRow>- </SpecList>- <p className="text-muted-foreground text-[0.9rem] mt-3 max-w-[64ch] text-pretty">- Carbon runs a remote server, so there's nothing to install. Every client- points at the same{" "}- <span className="font-[var(--mono)] tabular-nums">/api/mcp</span>{" "}- endpoint, and new tools become available without any update on your- side.- </p>- </>- );-}diff --git a/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx b/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsxdeleted file mode 100644index 39b8743336..0000000000--- a/apps/erp/app/routes/mcp+/components/WhatYouCanAsk.tsx+++ /dev/null@@ -1,69 +0,0 @@-import { useInViewClass } from "../hooks/useInViewClass";-import { CopyButton } from "./CopyButton";-import { PROMPTS, SPECIFICITY } from "./mcp-content";--export function WhatYouCanAsk() {- const ref = useInViewClass<HTMLElement>();- return (- <section- ref={ref}- id="ask"- className="reveal relative py-[54px] scroll-mt-20"- >- <div className="bg-[#1f2023] bg-[url(/reviews.webp)] bg-cover bg-center text-white rounded-[12px] p-[28px]">- {/* Label */}- <div className="font-[var(--mono)] text-[0.68rem] tracking-[0.18em] uppercase text-white mb-[16px]">- <span className="text-[var(--acc)] font-medium">FIG.02</span> · USE- CASES- </div>- {/* Heading */}- <h2- className="font-medium tracking-[-0.03em] leading-[1.12] m-0 mb-[9px] text-white [text-wrap:balance]"- style={{ fontSize: "1.6rem" }}- >- What you can ask- </h2>- {/* Subline */}- <p className="text-zinc-300 max-w-[64ch] mb-[15px] text-[0.95rem] [text-wrap:pretty]">- Things you can ask it to do:- </p>- {/* Prompts */}- <div className="stagger flex flex-col gap-[7px]">- {PROMPTS.map((p) => (- <div- key={p}- className="flex items-center gap-[10px] justify-between bg-white/5 border border-white/10 rounded-[9px] py-[9px] px-[9px] pl-[13px] text-[0.85rem] transition-[background,border-color] duration-[160ms]"- >- <span className="flex-1">{p}</span>- <CopyButton- className="shrink-0 w-7 h-7 inline-flex items-center justify-center bg-white/[0.08] border border-white/[0.18] text-[#d8d8d7] rounded-md cursor-pointer transition-[transform,background,color,border-color] duration-150 [transition-timing-function:cubic-bezier(0.2,0,0,1)] hover:bg-[var(--acc)] hover:border-[var(--acc)] hover:text-white active:scale-[0.96] [&.done]:bg-[var(--acc)] [&.done]:border-[var(--acc)] [&.done]:text-white"- text={p}- label="Copy prompt"- />- </div>- ))}- </div>- {/* Specificity block */}- <div className="mt-[18px] border-t border-white/10 pt-[14px]">- <p className="text-[0.8rem] text-zinc-400 m-0 mb-[10px]">- The more specific the ask, the better the result:- </p>- {/* Too broad row */}- <div className="grid grid-cols-[84px_1fr] gap-[12px] items-baseline py-[6px] text-[0.85rem]">- <span className="font-[var(--mono)] text-[0.62rem] tracking-[0.08em] uppercase text-[#8f8f8d]">- Too broad- </span>- <span className="text-[#8f8f8d]">{SPECIFICITY.broad}</span>- </div>- {/* Good/specific row */}- <div className="grid grid-cols-[84px_1fr] gap-[12px] items-baseline py-[6px] text-[0.85rem]">- <span className="font-[var(--mono)] text-[0.62rem] tracking-[0.08em] uppercase text-[var(--acc)]">- Specific- </span>- <span className="text-[#dcdcdb]">{SPECIFICITY.specific}</span>- </div>- </div>- </div>- </section>- );-}diff --git a/apps/erp/app/routes/mcp+/components/mcp-content.ts b/apps/erp/app/routes/mcp+/components/mcp-content.tsdeleted file mode 100644index 1c21b8dd5c..0000000000--- a/apps/erp/app/routes/mcp+/components/mcp-content.ts+++ /dev/null@@ -1,113 +0,0 @@-export const ENDPOINT = "https://app.carbon.ms/api/mcp";--export const PROMPTS: string[] = [- "Show all open sales orders due to ship this week.",- "Create a job for 50 units of SKU-1042 on the CNC work center.",- "Which purchase orders are past their promised receipt date?",- "What's the on-hand quantity and reorder point for BRACKET-200 across locations?",- "Draft a quote for Acme for 200 aluminum housings.",- "List every job behind schedule and who's assigned."-];--export const SPECIFICITY = {- broad: "“Sort out my late orders.”",- specific: "“Release every sales order stuck in Needs Approval for 3+ days.”"-};--export const FAQ: { q: string; a: string }[] = [- {- q: "What can the assistant actually do?",- a: "Read and write across every module the identity can reach — query orders and inventory, create jobs, draft quotes, update statuses. It acts as that user, so it can only touch what you've granted."- },- {- q: "Do I need an API key?",- a: "Not for connector clients — Claude.ai, Claude Desktop, and ChatGPT add the URL and authorize in your browser. Keys are for command and config clients (Claude Code, Cursor, VS Code, Codex) and any headless or CI use."- },- {- q: "Which clients are supported?",- a: "Any MCP client that speaks HTTP. Connector clients authorize over OAuth; command clients send the key as a bearer header; stdio-only clients bridge through mcp-remote."- },- {- q: "Does it respect my Carbon permissions?",- a: "Yes — there's no way around them. A connector inherits the role and company of whoever authorized it; a key carries its own scopes. The assistant can never do what that identity can't."- },- {- q: "Can I give it read-only access?",- a: "Yes. Scope a key to only the modules and actions it needs — View with no Create, Update, or Delete makes it read-only. Use a separate key per client so you can re-scope or revoke one without touching the rest."- },- {- q: "Where does my data go?",- a: "Carbon doesn't send it anywhere new — your MCP client does, to whatever model provider it runs on, under that provider's terms. Scope keys tightly and prefer a read-only key when you only need to read."- },- {- q: "Is MCP available on my plan?",- a: "On Carbon Cloud, API and MCP access is a Business-plan feature — Starter keys are rejected with 403. Self-hosted instances aren't gated."- },- {- q: "Is there a rate limit?",- a: "Each key has its own limit and window, set in Settings → API Keys. Go over it and calls return 429 with X-RateLimit-* headers telling the client when to retry."- },- {- q: "I'm getting 401 Unauthorized",- a: "Key clients: the key is missing, malformed, expired, or deleted — recreate it in Settings → API Keys and update the Authorization header. Connector clients: re-authorize the connection from your client."- },- {- q: "I'm getting 403 Forbidden",- a: "The identity is authenticated but lacks the module permission for that action — or, on Cloud, the company is on the Starter plan. Grant the scope, or switch to a key that has it."- },- {- q: "How do I manage or revoke a key?",- a: "Each key in Settings → API Keys shows its scopes, rate limit, expiry, and who created it. Delete a key to revoke it instantly; nothing else breaks if you key each client separately."- }-];--export const TOC = [- { id: "whatis", label: "What is MCP?" },- { id: "ask", label: "What you can ask" },- { id: "quickstart", label: "Quickstart" },- { id: "discovery", label: "Tool discovery" },- { id: "tools", label: "Tools" },- { id: "auth", label: "Authentication" },- { id: "safety", label: "Safety" },- { id: "faq", label: "FAQ" }-];--// Connector clients authorize via OAuth (no key); command clients paste a snippet-// carrying a scoped key. `code`/`target`/`action` describe step 2 of the command flow.-export type Client =- | { name: string; slug: string; flow: "connector"; where: string }- | {- name: string;- slug: string;- flow: "command";- target: string;- action: string;- code: string;- };--// The major clients only — everything else follows one of these two patterns-// (see the Authentication section / the note below the pipeline).-export const CLIENTS: Client[] = [- {- name: "Claude Code",- slug: "claude-code",- flow: "command",- target: "Terminal · Claude Code",- action: "Run the command",- code: `claude mcp add --transport http \\\n carbon ${ENDPOINT} \\\n --header "Authorization: Bearer crbn_…"`- },- {- name: "Claude Desktop & Web",- slug: "claude-ai",- flow: "connector",- where: "Settings → Connectors"- },- {- name: "Cursor",- slug: "cursor",- flow: "command",- target: ".cursor/mcp.json",- action: "Add to your config",- code: `{\n "mcpServers": {\n "carbon": {\n "url": "${ENDPOINT}",\n "headers": { "Authorization": "Bearer crbn_…" }\n }\n }\n}`- }-];diff --git a/apps/erp/app/routes/mcp+/components/quickstart-nav.ts b/apps/erp/app/routes/mcp+/components/quickstart-nav.tsdeleted file mode 100644index 4c0883afa8..0000000000--- a/apps/erp/app/routes/mcp+/components/quickstart-nav.ts+++ /dev/null@@ -1,14 +0,0 @@-// Lets the hero CTAs drive the Quickstart: smooth-scroll to it and, optionally,-// preselect a client in the SetupPipeline (which listens for this event).-export const SELECT_CLIENT_EVENT = "mcp:select-client";--export function goToQuickstart(client?: string) {- document- .getElementById("quickstart")- ?.scrollIntoView({ behavior: "smooth", block: "start" });- if (client) {- window.dispatchEvent(- new CustomEvent(SELECT_CLIENT_EVENT, { detail: client })- );- }-}diff --git a/apps/erp/app/routes/mcp+/hooks/useInViewClass.ts b/apps/erp/app/routes/mcp+/hooks/useInViewClass.tsdeleted file mode 100644index 38e96bb161..0000000000--- a/apps/erp/app/routes/mcp+/hooks/useInViewClass.ts+++ /dev/null@@ -1,20 +0,0 @@-import { useEffect, useRef } from "react";--export function useInViewClass<T extends HTMLElement>(threshold = 0.12) {- const ref = useRef<T>(null);- useEffect(() => {- const el = ref.current;- if (!el) return;- const io = new IntersectionObserver(- (es) => {- es.forEach((e) => {- if (e.isIntersecting) el.classList.add("in");- });- },- { threshold }- );- io.observe(el);- return () => io.disconnect();- }, [threshold]);- return ref;-}diff --git a/apps/erp/app/routes/mcp+/hooks/useScrollSpy.ts b/apps/erp/app/routes/mcp+/hooks/useScrollSpy.tsdeleted file mode 100644index cb32014043..0000000000--- a/apps/erp/app/routes/mcp+/hooks/useScrollSpy.ts+++ /dev/null@@ -1,19 +0,0 @@-import { useEffect, useState } from "react";--export function useScrollSpy(ids: string[], offset = 150) {- const [activeIndex, setActiveIndex] = useState(0);- useEffect(() => {- const onScroll = () => {- let idx = 0;- ids.forEach((id, i) => {- const el = document.getElementById(id);- if (el && el.getBoundingClientRect().top < offset) idx = i;- });- setActiveIndex(idx);- };- onScroll();- document.addEventListener("scroll", onScroll, { passive: true });- return () => document.removeEventListener("scroll", onScroll);- }, [ids, offset]);- return activeIndex;-}diff --git a/apps/erp/app/routes/mcp+/tools-filter.ts b/apps/erp/app/routes/mcp+/tools-filter.tsdeleted file mode 100644index 31b8c2e702..0000000000--- a/apps/erp/app/routes/mcp+/tools-filter.ts+++ /dev/null@@ -1,21 +0,0 @@-import type { CatalogTool } from "./catalog";--export interface ToolFilter {- q: string;- module: string;- classification: string;-}--export function filterTools(- tools: CatalogTool[],- f: ToolFilter-): CatalogTool[] {- const q = f.q.trim().toLowerCase();- return tools.filter((t) => {- if (f.module && t.module !== f.module) return false;- if (f.classification && t.classification !== f.classification) return false;- if (q && !`${t.name} ${t.description}`.toLowerCase().includes(q))- return false;- return true;- });-}diff --git a/apps/erp/app/styles/mcp-docs.css b/apps/erp/app/styles/mcp-docs.cssdeleted file mode 100644index 037cbe0545..0000000000--- a/apps/erp/app/styles/mcp-docs.css+++ /dev/null@@ -1,200 +0,0 @@-/* Page tokens + animation/marker systems only.- All layout/component styles live in Tailwind utilities on the components. */--.MCP {- --acc: #ff442d;- --acc-tint: rgb(255 68 45 / 0.06);- --acc-tint-strong: rgb(255 68 45 / 0.08);- --acc-ring: rgb(255 68 45 / 0.15);- --canvas: #d8dad9;- --canvas-blur: rgb(216 218 217 / 0.8);- --mono: "Geist Mono Variable", ui-monospace, monospace;- font-family: "Geist Variable", system-ui, sans-serif;- font-size: 0.95rem;- line-height: 1.6;- -webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;-}--.MCP * {- box-sizing: border-box;-}--.dark .MCP {- --canvas: #1a1a1c;- --canvas-blur: rgb(26 26 28 / 0.8);-}--.MCP .container {- max-width: 1080px;- margin: 0 auto;- padding: 0 24px;-}--/* ── Reveal animation ──────────────────────────────────────── */--.MCP .reveal {- opacity: 0;- transform: translateY(20px);- filter: blur(6px);- transition: opacity 0.75s cubic-bezier(0.2, 0, 0, 1),- transform 0.75s cubic-bezier(0.2, 0, 0, 1),- filter 0.75s cubic-bezier(0.2, 0, 0, 1);-}--.MCP .reveal.in {- opacity: 1;- transform: none;- filter: none;-}--/* ── Generic stagger marker ────────────────────────────────── */--.MCP .stagger > * {- opacity: 0;- transform: translateY(12px);- transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1),- transform 0.6s cubic-bezier(0.2, 0, 0, 1);-}--.MCP .in .stagger > * {- opacity: 1;- transform: none;-}--.MCP .in .stagger > *:nth-child(2) {- transition-delay: 0.08s;-}--.MCP .in .stagger > *:nth-child(3) {- transition-delay: 0.16s;-}--.MCP .in .stagger > *:nth-child(4) {- transition-delay: 0.24s;-}--.MCP .in .stagger > *:nth-child(5) {- transition-delay: 0.32s;-}--.MCP .in .stagger > *:nth-child(n + 6) {- transition-delay: 0.36s;-}--/* ── Hairline wipe marker ──────────────────────────────────── */--.MCP .hr-wipe {- position: relative;-}--.MCP .hr-wipe::before {- content: "";- position: absolute;- top: 0;- left: 0;- right: 0;- height: 1px;- background: hsl(var(--border));- transform: scaleX(0);- transform-origin: left;- transition: transform 0.9s cubic-bezier(0.2, 0, 0, 1);-}--.MCP .hr-wipe.in::before {- transform: scaleX(1);-}--/* ── TOC active indicator ──────────────────────────────────── */--.MCP .toc-track {- position: relative;- padding-left: 16px;-}--.MCP .toc-track::before {- content: "";- position: absolute;- left: 0;- top: 0;- bottom: 0;- width: 1px;- background: hsl(var(--border));-}--.MCP .toc-track a {- position: relative;-}--.MCP .toc-track a::before {- content: "";- position: absolute;- left: -16px;- top: 0;- bottom: 0;- width: 0;- background: var(--acc);- opacity: 0;- transition: width 0.22s cubic-bezier(0.2, 0, 0, 1), opacity 0.22s;-}--.MCP .toc-track a.passed::before {- width: 1px;- opacity: 0.55;-}--.MCP .toc-track a.active::before {- width: 2px;- opacity: 1;-}--/* ── Wave rail (progress indicator) ───────────────────────── */--.MCP .waverail {- position: fixed;- right: max(30px, 3.4vw);- top: 50%;- transform: translateY(-50%);- height: 56vh;- width: 26px;- display: flex;- flex-direction: column;- justify-content: space-between;- align-items: flex-end;- z-index: 900;- cursor: pointer;-}--.MCP .dash {- height: 2px;- border-radius: 2px;- width: 7px;- will-change: opacity;-}--/* ── Reduced motion ────────────────────────────────────────── */--@media (prefers-reduced-motion: reduce) {- .MCP * {- transition-duration: 0.001ms !important;- animation-duration: 0.001ms !important;- }-- .MCP .reveal,- .MCP .stagger > *,- .MCP .in .stagger > * {- opacity: 1 !important;- transform: none !important;- filter: none !important;- }-- .MCP .hr-wipe::before {- transform: scaleX(1) !important;- }-}--@media (max-width: 1200px) {- .MCP .waverail {- display: none;- }-}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex 91135623a4..075c73e9ae 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -519,10 +519,8 @@ export const path = {generatePath(`${x}/quality/gauges/activate/${id}`),attribute: (id: string) => generatePath(`${x}/people/attribute/${id}`),attributes: `${x}/people/attributes`,- apiIntroduction: `/docs/api/js/intro`,- apiIntro: (lang: string) => generatePath(`/docs/api/${lang}/intro/`),- apiTable: (lang: string, table: string) =>- generatePath(`/docs/api/${lang}/table/${table}`),+ apiDocs: "https://docs.carbon.ms/api-reference",+ mcpDocs: "https://docs.carbon.ms/mcp",apiKey: (id: string) => generatePath(`${x}/settings/api-keys/${id}`),apiKeys: `${x}/settings/api-keys`,attributeCategory: (id: string) =>diff --git a/apps/erp/public/mcp/add-claude-ai.png b/apps/erp/public/mcp/add-claude-ai.pngdeleted file mode 100644index 81fe6387f4..0000000000Binary files a/apps/erp/public/mcp/add-claude-ai.png and /dev/null differdiff --git a/apps/erp/public/mcp/add-claude-code.png b/apps/erp/public/mcp/add-claude-code.pngdeleted file mode 100644index 6be1a009af..0000000000Binary files a/apps/erp/public/mcp/add-claude-code.png and /dev/null differdiff --git a/apps/erp/public/mcp/add-cursor.png b/apps/erp/public/mcp/add-cursor.pngdeleted file mode 100644index 5f866e6668..0000000000Binary files a/apps/erp/public/mcp/add-cursor.png and /dev/null differdiff --git a/apps/erp/public/mcp/api-key.png b/apps/erp/public/mcp/api-key.pngdeleted file mode 100644index ed29746136..0000000000Binary files a/apps/erp/public/mcp/api-key.png and /dev/null differdiff --git a/apps/erp/public/mcp/authorize-connector.png b/apps/erp/public/mcp/authorize-connector.pngdeleted file mode 100644index 8f7a9aa297..0000000000Binary files a/apps/erp/public/mcp/authorize-connector.png and /dev/null differdiff --git a/apps/erp/public/mcp/verify-claude-ai.png b/apps/erp/public/mcp/verify-claude-ai.pngdeleted file mode 100644index dc4363abaf..0000000000Binary files a/apps/erp/public/mcp/verify-claude-ai.png and /dev/null differdiff --git a/apps/erp/public/mcp/verify-claude-code.png b/apps/erp/public/mcp/verify-claude-code.pngdeleted file mode 100644index aa214ad131..0000000000Binary files a/apps/erp/public/mcp/verify-claude-code.png and /dev/null differdiff --git a/apps/erp/public/mcp/verify-cursor.png b/apps/erp/public/mcp/verify-cursor.pngdeleted file mode 100644index 7aa337bcc1..0000000000Binary files a/apps/erp/public/mcp/verify-cursor.png and /dev/null differdiff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 29969c699e..a246d4cc5d 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} weitere"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Fügen Sie einen Lieferantenteil hinzu</0>, um für diesen Artikel einen bevorzugten Lieferanten festzulegen."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> ermöglicht es dir, Zeilen zu löschen. <1>delete</1> stimmt standardmäßig mit allen Zeilen überein, also denke daran, deine Filter anzugeben!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> ermöglicht es dir, Daten in deine Tabellen einzufügen. Du kannst auch in großen Mengen einfügen und UPSERT durchführen."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> gibt auch die ersetzten Werte für UPSERT zurück."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> ermöglicht es dir, Zeilen zu aktualisieren. <1>update</1> stimmt standardmäßig mit allen Zeilen überein. Du kannst bestimmte Zeilen mit horizontalen Filtern aktualisieren, z. B. <2>eq</2>, <3>lt</3> und <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> gibt auch die ersetzten Werte für UPDATE zurück."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Rüsten einklappen"msgid "Collapse subtree"msgstr "Teilbaum einklappen"-msgid "Column"-msgstr "Spalte"-msgid "Column visibility and order"msgstr "Spaltensichtbarkeit und -reihenfolge"@@ -2488,9 +2470,6 @@ msgstr "RFQ löschen"msgid "Delete Risk"msgstr "Risiko löschen"-msgid "Delete rows"-msgstr "Zeilen löschen"-msgid "Delete Rule"msgstr "Regel löschen"@@ -3760,9 +3739,6 @@ msgstr "Hier angehängte Dateien werden mit jeder Bestellanfrage-E-Mail an diesemsgid "Filter"msgstr "Filter"-msgid "Filtering"-msgstr "Filterung"-msgid "Finalize"msgstr "Abschließen"@@ -4082,9 +4058,6 @@ msgstr "Von Materialien erben"msgid "Inherited from parent"msgstr "Geerbt vom übergeordneten Element"-msgid "Insert rows"-msgstr "Zeilen einfügen"-msgid "Insert token"msgstr "Token einfügen"@@ -4445,9 +4418,6 @@ msgstr "Lieferzeit (Tage)"msgid "Lead Time:"msgstr "Lieferzeit:"-msgid "Learn more"-msgstr "Mehr erfahren"-msgid "Leave any related receipts untouched"msgstr "Alle zugehörigen Belege unverändert lassen"@@ -6488,9 +6458,6 @@ msgstr "Ratenlimit"msgid "Reactivate"msgstr "Reaktivieren"-msgid "Read rows"-msgstr "Zeilen lesen"-msgid "Ready for Quote"msgstr "Bereit für Angebot"@@ -7783,9 +7750,6 @@ msgstr "Inspektion einreichen"msgid "Submitted By"msgstr "Eingereicht von"-msgid "Subscribe to changes"-msgstr "Änderungen abonnieren"-msgid "Substance"msgstr "Stoff"@@ -7825,12 +7789,6 @@ msgstr "Vorschläge"msgid "Sunday"msgstr "Sonntag"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase bietet eine breite Palette von Filtern."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase bietet Echtzeit-Funktionalität und sendet Datenbankänderungen an autorisierte Benutzer, abhängig von Row Level Security (RLS)-Richtlinien."-msgid "Supplier"msgstr "Lieferant"@@ -8231,9 +8189,6 @@ msgstr "Titel"msgid "To Location"msgstr "Zielort"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Um Zeilen in <0>{resourceId}</0> zu lesen, verwenden Sie die <1>select</1>-Methode."-msgid "To Receive"msgstr "Zum Empfangen"@@ -8550,9 +8505,6 @@ msgstr "Berechtigungen aktualisieren"msgid "Update Quantity"msgstr "Menge aktualisieren"-msgid "Update rows"-msgstr "Zeilen aktualisieren"-msgid "Update Rule"msgstr "Regel aktualisieren"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 0c45ef780d..23c7c1d0d5 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} more"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Add a supplier part</0> for this item to set a preferred supplier."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> will also return the replaced values for UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> will also return the replaced values for UPDATE."-msgid "0-4 weeks"msgstr "0-4 weeks"@@ -1469,9 +1454,6 @@ msgstr "Collapse Setup"msgid "Collapse subtree"msgstr "Collapse subtree"-msgid "Column"-msgstr "Column"-msgid "Column visibility and order"msgstr "Column visibility and order"@@ -2488,9 +2470,6 @@ msgstr "Delete RFQ"msgid "Delete Risk"msgstr "Delete Risk"-msgid "Delete rows"-msgstr "Delete rows"-msgid "Delete Rule"msgstr "Delete Rule"@@ -3760,9 +3739,6 @@ msgstr "Files attached here ride along on every purchase order email sent to thimsgid "Filter"msgstr "Filter"-msgid "Filtering"-msgstr "Filtering"-msgid "Finalize"msgstr "Finalize"@@ -4082,9 +4058,6 @@ msgstr "Inherit From Materials"msgid "Inherited from parent"msgstr "Inherited from parent"-msgid "Insert rows"-msgstr "Insert rows"-msgid "Insert token"msgstr "Insert token"@@ -4445,9 +4418,6 @@ msgstr "Lead Time (Days)"msgid "Lead Time:"msgstr "Lead Time:"-msgid "Learn more"-msgstr "Learn more"-msgid "Leave any related receipts untouched"msgstr "Leave any related receipts untouched"@@ -6488,9 +6458,6 @@ msgstr "Rate Limit"msgid "Reactivate"msgstr "Reactivate"-msgid "Read rows"-msgstr "Read rows"-msgid "Ready for Quote"msgstr "Ready for Quote"@@ -7783,9 +7750,6 @@ msgstr "Submit Inspection"msgid "Submitted By"msgstr "Submitted By"-msgid "Subscribe to changes"-msgstr "Subscribe to changes"-msgid "Substance"msgstr "Substance"@@ -7825,12 +7789,6 @@ msgstr "Suggestions"msgid "Sunday"msgstr "Sunday"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase provides a wide range of filters."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgid "Supplier"msgstr "Supplier"@@ -8231,9 +8189,6 @@ msgstr "Title"msgid "To Location"msgstr "To Location"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgid "To Receive"msgstr "To Receive"@@ -8550,9 +8505,6 @@ msgstr "Update Permissions"msgid "Update Quantity"msgstr "Update Quantity"-msgid "Update rows"-msgstr "Update rows"-msgid "Update Rule"msgstr "Update Rule"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 00d37f4d98..26777e6b79 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} más"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Agregar una parte de proveedor</0> para este artículo para establecer un proveedor preferido."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> te permite eliminar filas. <1>delete</1> coincidirá con todas las filas de forma predeterminada, ¡así que recuerda especificar tus filtros!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> te permite insertar en tus tablas. También puedes insertar en lote y hacer UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> también devolverá los valores reemplazados para UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> te permite actualizar filas. <1>update</1> coincidirá con todas las filas de forma predeterminada. Puedes actualizar filas específicas usando filtros horizontales, por ejemplo <2>eq</2>, <3>lt</3> e <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> también devolverá los valores reemplazados para UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Contraer preparación"msgid "Collapse subtree"msgstr "Contraer subárbol"-msgid "Column"-msgstr "Columna"-msgid "Column visibility and order"msgstr "Visibilidad y orden de columnas"@@ -2488,9 +2470,6 @@ msgstr "Eliminar RFQ"msgid "Delete Risk"msgstr "Eliminar Riesgo"-msgid "Delete rows"-msgstr "Eliminar filas"-msgid "Delete Rule"msgstr "Eliminar Regla"@@ -3760,9 +3739,6 @@ msgstr "Los archivos adjuntos aquí se incluyen en cada correo electrónico de omsgid "Filter"msgstr "Filtro"-msgid "Filtering"-msgstr "Filtrado"-msgid "Finalize"msgstr "Finalizar"@@ -4082,9 +4058,6 @@ msgstr "Heredar de Materiales"msgid "Inherited from parent"msgstr "Heredado del padre"-msgid "Insert rows"-msgstr "Insertar filas"-msgid "Insert token"msgstr "Insertar token"@@ -4445,9 +4418,6 @@ msgstr "Tiempo de Entrega (Días)"msgid "Lead Time:"msgstr "Tiempo de entrega:"-msgid "Learn more"-msgstr "Más información"-msgid "Leave any related receipts untouched"msgstr "Dejar los recibos relacionados sin tocar"@@ -6488,9 +6458,6 @@ msgstr "Límite de Velocidad"msgid "Reactivate"msgstr "Reactivar"-msgid "Read rows"-msgstr "Leer filas"-msgid "Ready for Quote"msgstr "Listo para cotizar"@@ -7783,9 +7750,6 @@ msgstr "Enviar Inspección"msgid "Submitted By"msgstr "Enviado por"-msgid "Subscribe to changes"-msgstr "Suscribirse a cambios"-msgid "Substance"msgstr "Sustancia"@@ -7825,12 +7789,6 @@ msgstr "Sugerencias"msgid "Sunday"msgstr "Domingo"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase proporciona una amplia gama de filtros."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase proporciona funcionalidad en tiempo real y transmite cambios de base de datos a usuarios autorizados según las políticas de Seguridad a Nivel de Fila (RLS)."-msgid "Supplier"msgstr "Proveedor"@@ -8231,9 +8189,6 @@ msgstr "Título"msgid "To Location"msgstr "Ubicación de destino"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Para leer filas en <0>{resourceId}</0>, usa el método <1>select</1>."-msgid "To Receive"msgstr "Por Recibir"@@ -8550,9 +8505,6 @@ msgstr "Actualizar Permisos"msgid "Update Quantity"msgstr "Actualizar Cantidad"-msgid "Update rows"-msgstr "Actualizar filas"-msgid "Update Rule"msgstr "Actualizar Regla"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 2711b68dd3..95704e9dc6 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} de plus"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Ajouter une pièce fournisseur</0> pour cet article afin de définir un fournisseur préféré."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> vous permet de supprimer des lignes. <1>delete</1> correspondra à toutes les lignes par défaut, alors n'oubliez pas de spécifier vos filtres !"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> vous permet d'insérer des données dans vos tables. Vous pouvez également insérer en masse et effectuer des UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> retournera également les valeurs remplacées pour UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> vous permet de mettre à jour des lignes. <1>update</1> correspondra à toutes les lignes par défaut. Vous pouvez mettre à jour des lignes spécifiques en utilisant des filtres horizontaux, par exemple <2>eq</2>, <3>lt</3>, et <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> retournera également les valeurs remplacées pour UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Réduire la configuration"msgid "Collapse subtree"msgstr "Réduire le sous-arbre"-msgid "Column"-msgstr "Colonne"-msgid "Column visibility and order"msgstr "Visibilité et ordre des colonnes"@@ -2488,9 +2470,6 @@ msgstr "Supprimer RFQ"msgid "Delete Risk"msgstr "Supprimer le risque"-msgid "Delete rows"-msgstr "Supprimer les lignes"-msgid "Delete Rule"msgstr "Supprimer la règle"@@ -3760,9 +3739,6 @@ msgstr "Les fichiers joints ici sont inclus dans chaque email de bon de commandemsgid "Filter"msgstr "Filtre"-msgid "Filtering"-msgstr "Filtrage"-msgid "Finalize"msgstr "Finaliser"@@ -4082,9 +4058,6 @@ msgstr "Hériter des matériaux"msgid "Inherited from parent"msgstr "Hérité du parent"-msgid "Insert rows"-msgstr "Insérer des lignes"-msgid "Insert token"msgstr "Insérer un jeton"@@ -4445,9 +4418,6 @@ msgstr "Délai de livraison (jours)"msgid "Lead Time:"msgstr "Délai de livraison :"-msgid "Learn more"-msgstr "En savoir plus"-msgid "Leave any related receipts untouched"msgstr "Laisser les reçus connexes intacts"@@ -6488,9 +6458,6 @@ msgstr "Limite de débit"msgid "Reactivate"msgstr "Réactiver"-msgid "Read rows"-msgstr "Lire les lignes"-msgid "Ready for Quote"msgstr "Prêt pour devis"@@ -7783,9 +7750,6 @@ msgstr "Soumettre l'inspection"msgid "Submitted By"msgstr "Soumis par"-msgid "Subscribe to changes"-msgstr "S'abonner aux modifications"-msgid "Substance"msgstr "Substance"@@ -7825,12 +7789,6 @@ msgstr "Suggestions"msgid "Sunday"msgstr "Dimanche"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase fournit une large gamme de filtres."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase fournit une fonctionnalité en temps réel et diffuse les modifications de la base de données aux utilisateurs autorisés en fonction des politiques de sécurité au niveau des lignes (RLS)."-msgid "Supplier"msgstr "Fournisseur"@@ -8231,9 +8189,6 @@ msgstr "Titre"msgid "To Location"msgstr "Vers l'emplacement"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Pour lire les lignes dans <0>{resourceId}</0>, utilisez la méthode <1>select</1>."-msgid "To Receive"msgstr "À recevoir"@@ -8550,9 +8505,6 @@ msgstr "Mettre à jour les autorisations"msgid "Update Quantity"msgstr "Mettre à jour la quantité"-msgid "Update rows"-msgstr "Mettre à jour les lignes"-msgid "Update Rule"msgstr "Mettre à jour la règle"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex afbd8df94a..d53f56f188 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} और"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>एक आपूर्तिकर्ता भाग जोड़ें</0> इस आइटम के लिए एक पसंदीदा आपूर्तिकर्ता सेट करने के लिए।"-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> आपको पंक्तियों को हटाने देता है। <1>delete</1> डिफ़ॉल्ट रूप से सभी पंक्तियों से मेल खाएगा, इसलिए अपने फ़िल्टर निर्दिष्ट करना याद रखें!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> आपको अपनी तालिकाओं में डेटा डालने देता है। आप बल्क में भी डेटा डाल सकते हैं और UPSERT कर सकते हैं।"--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> UPSERT के लिए प्रतिस्थापित मानों को भी वापस करेगा।"--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> आपको पंक्तियों को अपडेट करने देता है। <1>update</1> डिफ़ॉल्ट रूप से सभी पंक्तियों से मेल खाएगा। आप क्षैतिज फ़िल्टर का उपयोग करके विशिष्ट पंक्तियों को अपडेट कर सकते हैं, उदाहरण के लिए <2>eq</2>, <3>lt</3>, और <4>is</4>।"--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> UPDATE के लिए प्रतिस्थापित मानों को भी वापस करेगा।"-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "सेटअप को संक्षिप्त करें"msgid "Collapse subtree"msgstr "सबट्री को संक्षिप्त करें"-msgid "Column"-msgstr "कॉलम"-msgid "Column visibility and order"msgstr "कॉलम दृश्यता और क्रम"@@ -2488,9 +2470,6 @@ msgstr "RFQ हटाएं"msgid "Delete Risk"msgstr "जोखिम हटाएं"-msgid "Delete rows"-msgstr "पंक्तियों को हटाएं"-msgid "Delete Rule"msgstr "नियम हटाएं"@@ -3760,9 +3739,6 @@ msgstr "यहां संलग्न की गई फाइलें इसmsgid "Filter"msgstr "फ़िल्टर"-msgid "Filtering"-msgstr "फ़िल्टरिंग"-msgid "Finalize"msgstr "अंतिम रूप दें"@@ -4082,9 +4058,6 @@ msgstr "सामग्री से विरासत में प्राmsgid "Inherited from parent"msgstr "माता-पिता से विरासत में मिला"-msgid "Insert rows"-msgstr "पंक्तियाँ सम्मिलित करें"-msgid "Insert token"msgstr "टोकन डालें"@@ -4445,9 +4418,6 @@ msgstr "लीड टाइम (दिन)"msgid "Lead Time:"msgstr "लीड समय:"-msgid "Learn more"-msgstr "और जानें"-msgid "Leave any related receipts untouched"msgstr "किसी भी संबंधित रसीदों को अछूता छोड़ें"@@ -6488,9 +6458,6 @@ msgstr "दर सीमा"msgid "Reactivate"msgstr "पुनः सक्रिय करें"-msgid "Read rows"-msgstr "पंक्तियों को पढ़ें"-msgid "Ready for Quote"msgstr "उद्धरण के लिए तैयार"@@ -7783,9 +7750,6 @@ msgstr "निरीक्षण जमा करें"msgid "Submitted By"msgstr "द्वारा प्रस्तुत"-msgid "Subscribe to changes"-msgstr "परिवर्तनों की सदस्यता लें"-msgid "Substance"msgstr "पदार्थ"@@ -7825,12 +7789,6 @@ msgstr "सुझाव"msgid "Sunday"msgstr "रविवार"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase विभिन्न प्रकार के फ़िल्टर प्रदान करता है।"--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase रीयलटाइम कार्यक्षमता प्रदान करता है और Row Level Security (RLS) नीतियों के आधार पर अधिकृत उपयोगकर्ताओं को डेटाबेस परिवर्तन प्रसारित करता है।"-msgid "Supplier"msgstr "आपूर्तिकर्ता"@@ -8231,9 +8189,6 @@ msgstr "शीर्षक"msgid "To Location"msgstr "स्थान को"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "<0>{resourceId}</0> में पंक्तियों को पढ़ने के लिए, <1>select</1> विधि का उपयोग करें।"-msgid "To Receive"msgstr "प्राप्त करने के लिए"@@ -8550,9 +8505,6 @@ msgstr "अनुमतियों को अपडेट करें"msgid "Update Quantity"msgstr "मात्रा अपडेट करें"-msgid "Update rows"-msgstr "पंक्तियों को अपडेट करें"-msgid "Update Rule"msgstr "नियम अपडेट करें"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex a70d7cf5d5..59584f5052 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} altri"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Aggiungi una parte fornitore</0> per questo articolo per impostare un fornitore preferito."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> ti permette di eliminare righe. <1>delete</1> corrisponderà a tutte le righe per impostazione predefinita, quindi ricordati di specificare i tuoi filtri!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> ti consente di inserire dati nelle tue tabelle. Puoi anche inserire in blocco ed eseguire UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> restituirà anche i valori sostituiti per UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> ti consente di aggiornare le righe. <1>update</1> corrisponderà a tutte le righe per impostazione predefinita. Puoi aggiornare righe specifiche utilizzando filtri orizzontali, ad es. <2>eq</2>, <3>lt</3> e <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> restituirà anche i valori sostituiti per UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Comprimi preparazione"msgid "Collapse subtree"msgstr "Comprimi sottostruttura"-msgid "Column"-msgstr "Colonna"-msgid "Column visibility and order"msgstr "Visibilità e ordine delle colonne"@@ -2488,9 +2470,6 @@ msgstr "Elimina RFQ"msgid "Delete Risk"msgstr "Elimina Rischio"-msgid "Delete rows"-msgstr "Elimina righe"-msgid "Delete Rule"msgstr "Elimina Regola"@@ -3760,9 +3739,6 @@ msgstr "I file allegati qui vengono inclusi in ogni email di ordine d'acquisto imsgid "Filter"msgstr "Filtro"-msgid "Filtering"-msgstr "Filtro"-msgid "Finalize"msgstr "Finalizza"@@ -4082,9 +4058,6 @@ msgstr "Eredita dai Materiali"msgid "Inherited from parent"msgstr "Ereditato dal genitore"-msgid "Insert rows"-msgstr "Inserisci righe"-msgid "Insert token"msgstr "Inserisci token"@@ -4445,9 +4418,6 @@ msgstr "Tempo di consegna (Giorni)"msgid "Lead Time:"msgstr "Tempo di consegna:"-msgid "Learn more"-msgstr "Scopri di più"-msgid "Leave any related receipts untouched"msgstr "Lasciare le ricevute correlate intatte"@@ -6488,9 +6458,6 @@ msgstr "Limite di Velocità"msgid "Reactivate"msgstr "Riattiva"-msgid "Read rows"-msgstr "Leggi righe"-msgid "Ready for Quote"msgstr "Pronto per Preventivo"@@ -7783,9 +7750,6 @@ msgstr "Invia Ispezione"msgid "Submitted By"msgstr "Inviato da"-msgid "Subscribe to changes"-msgstr "Iscriviti alle modifiche"-msgid "Substance"msgstr "Sostanza"@@ -7825,12 +7789,6 @@ msgstr "Suggerimenti"msgid "Sunday"msgstr "Domenica"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase fornisce un'ampia gamma di filtri."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase fornisce funzionalità in tempo reale e trasmette le modifiche del database agli utenti autorizzati in base alle politiche di Row Level Security (RLS)."-msgid "Supplier"msgstr "Fornitore"@@ -8231,9 +8189,6 @@ msgstr "Titolo"msgid "To Location"msgstr "Ubicazione di destinazione"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Per leggere righe in <0>{resourceId}</0>, utilizza il metodo <1>select</1>."-msgid "To Receive"msgstr "Da Ricevere"@@ -8550,9 +8505,6 @@ msgstr "Aggiorna Autorizzazioni"msgid "Update Quantity"msgstr "Aggiorna Quantità"-msgid "Update rows"-msgstr "Aggiorna righe"-msgid "Update Rule"msgstr "Aggiorna Regola"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex e197a10e23..5590f7181a 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} 件以上"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>サプライヤー部品を追加</0>このアイテムの優先サプライヤーを設定します。"-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0>を使用すると行を削除できます。<1>delete</1>はデフォルトではすべての行にマッチするため、フィルターを指定することを忘れないでください。"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0>を使用すると、テーブルにデータを挿入できます。一括挿入やUPSERTも実行できます。"--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0>はUPSERTの置き換えられた値も返します。"--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0>を使用すると行を更新できます。<1>update</1>はデフォルトではすべての行にマッチします。水平フィルターを使用して特定の行を更新できます。例えば<2>eq</2>、<3>lt</3>、および<4>is</4>です。"--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0>は、UPDATEの置き換えられた値も返します。"-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "段取りを折りたたむ"msgid "Collapse subtree"msgstr "サブツリーを折りたたむ"-msgid "Column"-msgstr "カラム"-msgid "Column visibility and order"msgstr "列の表示と順序"@@ -2488,9 +2470,6 @@ msgstr "RFQを削除"msgid "Delete Risk"msgstr "リスクを削除"-msgid "Delete rows"-msgstr "行を削除"-msgid "Delete Rule"msgstr "ルールを削除"@@ -3760,9 +3739,6 @@ msgstr "ここに添付されたファイルは、このサプライヤーに送msgid "Filter"msgstr "フィルター"-msgid "Filtering"-msgstr "フィルタリング"-msgid "Finalize"msgstr "確定"@@ -4082,9 +4058,6 @@ msgstr "材料から継承"msgid "Inherited from parent"msgstr "親から継承"-msgid "Insert rows"-msgstr "行を挿入"-msgid "Insert token"msgstr "トークンを挿入"@@ -4445,9 +4418,6 @@ msgstr "リードタイム(日数)"msgid "Lead Time:"msgstr "リードタイム:"-msgid "Learn more"-msgstr "詳細を見る"-msgid "Leave any related receipts untouched"msgstr "関連するすべての領収書はそのままにしておく"@@ -6488,9 +6458,6 @@ msgstr "レート制限"msgid "Reactivate"msgstr "再度有効化"-msgid "Read rows"-msgstr "行を読む"-msgid "Ready for Quote"msgstr "見積もり準備完了"@@ -7783,9 +7750,6 @@ msgstr "検査を送信"msgid "Submitted By"msgstr "提出者"-msgid "Subscribe to changes"-msgstr "変更を購読"-msgid "Substance"msgstr "物質"@@ -7825,12 +7789,6 @@ msgstr "提案"msgid "Sunday"msgstr "日曜日"-msgid "Supabase provides a wide range of filters."-msgstr "Supabaseは幅広いフィルター機能を提供しています。"--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabaseはリアルタイム機能を提供し、行レベルセキュリティ(RLS)ポリシーに基づいて、認可されたユーザーにデータベースの変更をブロードキャストします。"-msgid "Supplier"msgstr "サプライヤー"@@ -8231,9 +8189,6 @@ msgstr "タイトル"msgid "To Location"msgstr "到着地"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "<0>{resourceId}</0>内の行を読み取るには、<1>select</1>メソッドを使用します。"-msgid "To Receive"msgstr "受け取り予定"@@ -8550,9 +8505,6 @@ msgstr "権限を更新"msgid "Update Quantity"msgstr "数量を更新"-msgid "Update rows"-msgstr "行を更新"-msgid "Update Rule"msgstr "ルールを更新"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 03faa8ce25..04dd73a676 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} więcej"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Dodaj część dostawcy</0> dla tego artykułu, aby ustawić preferowanego dostawcę."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> pozwala usuwać wiersze. <1>delete</1> domyślnie będzie pasować do wszystkich wierszy, więc pamiętaj, aby określić swoje filtry!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> pozwala wstawiać dane do tabel. Możesz również wstawiać zbiorczo i wykonywać operacje UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> zwróci również zastąpione wartości dla UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> pozwala na aktualizowanie wierszy. <1>update</1> domyślnie będzie pasować do wszystkich wierszy. Możesz aktualizować określone wiersze za pomocą filtrów poziomych, np. <2>eq</2>, <3>lt</3> i <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> zwróci również zastąpione wartości dla UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Zwiń Setup"msgid "Collapse subtree"msgstr "Zwiń poddrzewo"-msgid "Column"-msgstr "Kolumna"-msgid "Column visibility and order"msgstr "Widoczność i kolejność kolumn"@@ -2488,9 +2470,6 @@ msgstr "Usuń ZZO"msgid "Delete Risk"msgstr "Usuń ryzyko"-msgid "Delete rows"-msgstr "Usuń wiersze"-msgid "Delete Rule"msgstr "Usuń regułę"@@ -3760,9 +3739,6 @@ msgstr "Pliki dołączone tutaj są wysyłane wraz z każdym emailem zamówieniamsgid "Filter"msgstr "Filtr"-msgid "Filtering"-msgstr "Filtrowanie"-msgid "Finalize"msgstr "Sfinalizuj"@@ -4082,9 +4058,6 @@ msgstr "Dziedzicz z Materiałów"msgid "Inherited from parent"msgstr "Odziedziczone z elementu nadrzędnego"-msgid "Insert rows"-msgstr "Wstaw wiersze"-msgid "Insert token"msgstr "Wstaw token"@@ -4445,9 +4418,6 @@ msgstr "Czas realizacji (dni)"msgid "Lead Time:"msgstr "Czas dostawy:"-msgid "Learn more"-msgstr "Dowiedz się więcej"-msgid "Leave any related receipts untouched"msgstr "Pozostaw wszelkie powiązane paragony bez zmian"@@ -6488,9 +6458,6 @@ msgstr "Limit Szybkości"msgid "Reactivate"msgstr "Ponownie aktywuj"-msgid "Read rows"-msgstr "Odczytaj wiersze"-msgid "Ready for Quote"msgstr "Gotowy do wyceny"@@ -7783,9 +7750,6 @@ msgstr "Prześlij Inspekcję"msgid "Submitted By"msgstr "Przesłane przez"-msgid "Subscribe to changes"-msgstr "Subskrybuj zmiany"-msgid "Substance"msgstr "Substancja"@@ -7825,12 +7789,6 @@ msgstr "Sugestie"msgid "Sunday"msgstr "Niedziela"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase zapewnia szeroki zakres filtrów."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase zapewnia funkcjonalność czasu rzeczywistego i transmituje zmiany bazy danych do autoryzowanych użytkowników w zależności od zasad Row Level Security (RLS)."-msgid "Supplier"msgstr "Dostawca"@@ -8231,9 +8189,6 @@ msgstr "Tytuł"msgid "To Location"msgstr "Do lokalizacji"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Aby odczytać wiersze w <0>{resourceId}</0>, użyj metody <1>select</1>."-msgid "To Receive"msgstr "Do Odebrania"@@ -8550,9 +8505,6 @@ msgstr "Aktualizuj Uprawnienia"msgid "Update Quantity"msgstr "Aktualizuj ilość"-msgid "Update rows"-msgstr "Aktualizuj wiersze"-msgid "Update Rule"msgstr "Zaktualizuj regułę"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 5c661d6735..0c6ae31d09 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} mais"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Adicionar uma peça de fornecedor</0> para este item para definir um fornecedor preferido."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> permite que você delete linhas. <1>delete</1> corresponderá a todas as linhas por padrão, então lembre-se de especificar seus filtros!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> permite inserir em suas tabelas. Você também pode inserir em massa e fazer UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> também retornará os valores substituídos para UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> permite atualizar linhas. <1>update</1> corresponderá a todas as linhas por padrão. Você pode atualizar linhas específicas usando filtros horizontais, por exemplo, <2>eq</2>, <3>lt</3> e <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> também retornará os valores substituídos para UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Recolher Configuração"msgid "Collapse subtree"msgstr "Recolher subárvore"-msgid "Column"-msgstr "Coluna"-msgid "Column visibility and order"msgstr "Visibilidade e ordem das colunas"@@ -2488,9 +2470,6 @@ msgstr "Eliminar RFQ"msgid "Delete Risk"msgstr "Eliminar Risco"-msgid "Delete rows"-msgstr "Eliminar linhas"-msgid "Delete Rule"msgstr "Eliminar Regra"@@ -3760,9 +3739,6 @@ msgstr "Arquivos anexados aqui são incluídos em todos os emails de pedido de cmsgid "Filter"msgstr "Filtro"-msgid "Filtering"-msgstr "Filtragem"-msgid "Finalize"msgstr "Finalizar"@@ -4082,9 +4058,6 @@ msgstr "Herdar de Materiais"msgid "Inherited from parent"msgstr "Herdado do pai"-msgid "Insert rows"-msgstr "Inserir linhas"-msgid "Insert token"msgstr "Inserir token"@@ -4445,9 +4418,6 @@ msgstr "Tempo de Entrega (Dias)"msgid "Lead Time:"msgstr "Tempo de Entrega:"-msgid "Learn more"-msgstr "Saiba mais"-msgid "Leave any related receipts untouched"msgstr "Deixar qualquer recebimento relacionado intocado"@@ -6488,9 +6458,6 @@ msgstr "Limite de Taxa"msgid "Reactivate"msgstr "Reativar"-msgid "Read rows"-msgstr "Ler linhas"-msgid "Ready for Quote"msgstr "Pronto para Cotação"@@ -7783,9 +7750,6 @@ msgstr "Enviar Inspeção"msgid "Submitted By"msgstr "Enviado por"-msgid "Subscribe to changes"-msgstr "Inscrever-se em alterações"-msgid "Substance"msgstr "Substância"@@ -7825,12 +7789,6 @@ msgstr "Sugestões"msgid "Sunday"msgstr "Domingo"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase fornece uma ampla gama de filtros."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase fornece funcionalidade em tempo real e transmite alterações de banco de dados para usuários autorizados dependendo das políticas de Segurança em Nível de Linha (RLS)."-msgid "Supplier"msgstr "Fornecedor"@@ -8231,9 +8189,6 @@ msgstr "Título"msgid "To Location"msgstr "Para Localização"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Para ler linhas em <0>{resourceId}</0>, use o método <1>select</1>."-msgid "To Receive"msgstr "Para Receber"@@ -8550,9 +8505,6 @@ msgstr "Atualizar Permissões"msgid "Update Quantity"msgstr "Atualizar Quantidade"-msgid "Update rows"-msgstr "Atualizar linhas"-msgid "Update Rule"msgstr "Atualizar Regra"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 42a8b841c1..8c835758a4 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} ещё"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Добавить поставщика</0> для этого товара, чтобы установить предпочтительного поставщика."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> позволяет удалять строки. <1>delete</1> по умолчанию совпадает со всеми строками, поэтому не забудьте указать фильтры!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0> позволяет вставлять данные в ваши таблицы. Вы также можете вставлять данные массово и выполнять UPSERT."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> также вернёт заменённые значения для UPSERT."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0> позволяет обновлять строки. <1>update</1> по умолчанию совпадает со всеми строками. Вы можете обновлять определенные строки, используя горизонтальные фильтры, например <2>eq</2>, <3>lt</3> и <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0> также вернёт заменённые значения для UPDATE."-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "Свернуть настройку"msgid "Collapse subtree"msgstr "Свернуть поддерево"-msgid "Column"-msgstr "Столбец"-msgid "Column visibility and order"msgstr "Видимость и порядок столбцов"@@ -2488,9 +2470,6 @@ msgstr "Удалить RFQ"msgid "Delete Risk"msgstr "Удалить риск"-msgid "Delete rows"-msgstr "Удалить строки"-msgid "Delete Rule"msgstr "Удалить правило"@@ -3760,9 +3739,6 @@ msgstr "Файлы, прикрепленные здесь, отправляютmsgid "Filter"msgstr "Фильтр"-msgid "Filtering"-msgstr "Фильтрация"-msgid "Finalize"msgstr "Завершить"@@ -4082,9 +4058,6 @@ msgstr "Наследовать от материалов"msgid "Inherited from parent"msgstr "Унаследовано от родителя"-msgid "Insert rows"-msgstr "Вставить строки"-msgid "Insert token"msgstr "Вставить токен"@@ -4445,9 +4418,6 @@ msgstr "Время выполнения (дни)"msgid "Lead Time:"msgstr "Время доставки:"-msgid "Learn more"-msgstr "Узнать больше"-msgid "Leave any related receipts untouched"msgstr "Оставить все связанные квитанции без изменений"@@ -6488,9 +6458,6 @@ msgstr "Ограничение скорости"msgid "Reactivate"msgstr "Переактивировать"-msgid "Read rows"-msgstr "Читать строки"-msgid "Ready for Quote"msgstr "Готово к предложению"@@ -7783,9 +7750,6 @@ msgstr "Отправить проверку"msgid "Submitted By"msgstr "Отправлено"-msgid "Subscribe to changes"-msgstr "Подписаться на изменения"-msgid "Substance"msgstr "Вещество"@@ -7825,12 +7789,6 @@ msgstr "Предложения"msgid "Sunday"msgstr "Воскресенье"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase предоставляет широкий спектр фильтров."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase предоставляет функциональность реального времени и транслирует изменения базы данных авторизованным пользователям в зависимости от политик безопасности на уровне строк (RLS)."-msgid "Supplier"msgstr "Поставщик"@@ -8231,9 +8189,6 @@ msgstr "Название"msgid "To Location"msgstr "На локацию"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Чтобы прочитать строки в <0>{resourceId}</0>, используйте метод <1>select</1>."-msgid "To Receive"msgstr "К получению"@@ -8550,9 +8505,6 @@ msgstr "Обновить разрешения"msgid "Update Quantity"msgstr "Обновить количество"-msgid "Update rows"-msgstr "Обновить строки"-msgid "Update Rule"msgstr "Обновить правило"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex e52d8904c5..53d0f5148a 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} daha fazla"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>Bir tedarikçi parça ekle</0> bu öğe için tercih edilen bir tedarikçi belirlemek amacıyla."-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>silkele</0> satırları silmenizi sağlar. <1>silkele</1> varsayılan olarak tüm satırlara eşleşeceği için filtrelerinizi belirtmeyi unutmayın!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>eklemek</0> ile tablolarınıza veri ekleyebilirsiniz. Ayrıca toplu olarak ekleme yapabilir ve UPSERT işlemi gerçekleştirebilirsiniz."--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0> ifadesi ayrıca UPSERT için değiştirilen değerleri de döndürecektir."--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>güncelleme</0> satırları güncellemenizi sağlar. <1>güncelleme</1> varsayılan olarak tüm satırlara eşleşecektir. Belirli satırları yatay filtreler kullanarak güncelleyebilirsiniz, örn: <2>eq</2>, <3>lt</3> ve <4>is</4>."--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>güncelleme</0> aynı zamanda UPSERT için değiştirilen değerleri de döndürecektir."-msgid "0-4 weeks"msgstr "0-4 hafta"@@ -1469,9 +1454,6 @@ msgstr "Kurulumu Daralt"msgid "Collapse subtree"msgstr "Alt ağacı daralt"-msgid "Column"-msgstr "Sütun"-msgid "Column visibility and order"msgstr "Sütun görünürlüğü ve sırası"@@ -2488,9 +2470,6 @@ msgstr "RFQ'yu Sil"msgid "Delete Risk"msgstr "Riski Sil"-msgid "Delete rows"-msgstr "Satırları sil"-msgid "Delete Rule"msgstr "Kuralı Sil"@@ -3760,9 +3739,6 @@ msgstr "Buraya eklenen dosyalar, bu tedarikçiye gönderilen her satın alma sipmsgid "Filter"msgstr "Filtre"-msgid "Filtering"-msgstr "Filtreleme"-msgid "Finalize"msgstr "Onayla"@@ -4082,9 +4058,6 @@ msgstr "Malzemelerden Devral"msgid "Inherited from parent"msgstr "Ebeveyn'den miras alındı"-msgid "Insert rows"-msgstr "Satır ekle"-msgid "Insert token"msgstr "Token ekle"@@ -4445,9 +4418,6 @@ msgstr "Teslim Süresi (Gün)"msgid "Lead Time:"msgstr "Teslim Süresi:"-msgid "Learn more"-msgstr "Daha fazla bilgi edinin"-msgid "Leave any related receipts untouched"msgstr "İlgili tüm makbuzları dokunulmamış bırakır"@@ -6488,9 +6458,6 @@ msgstr "Hız Sınırı"msgid "Reactivate"msgstr "Yeniden etkinleştir"-msgid "Read rows"-msgstr "Satırları Oku"-msgid "Ready for Quote"msgstr "Teklif İçin Hazır"@@ -7783,9 +7750,6 @@ msgstr "Muayene Et"msgid "Submitted By"msgstr "Gönderen"-msgid "Subscribe to changes"-msgstr "Değişikliklere abone ol"-msgid "Substance"msgstr "Madde"@@ -7825,12 +7789,6 @@ msgstr "Öneriler"msgid "Sunday"msgstr "Pazar"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase geniş bir filtre yelpazesi sunar."--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase, satır düzeyinde güvenlik (RLS) politikalarına bağlı olarak gerçek zamanlı işlevsellik sağlar ve veritabanı değişikliklerini yetkili kullanıcılara yayınlar."-msgid "Supplier"msgstr "Tedarikçi"@@ -8231,9 +8189,6 @@ msgstr "Unvan"msgid "To Location"msgstr "Varış Konumu"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "Satırları okumak için <0>{resourceId}</0>'de <1>select</1> yöntemini kullanın."-msgid "To Receive"msgstr "Alınacak"@@ -8550,9 +8505,6 @@ msgstr "İzinleri Güncelle"msgid "Update Quantity"msgstr "Miktarı Güncelle"-msgid "Update rows"-msgstr "Satırları güncelle"-msgid "Update Rule"msgstr "Kuralı Güncelle"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 2ea5a31673..8d31af5fe4 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -73,21 +73,6 @@ msgstr "+{0} 更多"msgid "<0>Add a supplier part</0> for this item to set a preferred supplier."msgstr "<0>为此项目添加供应商零件</0>以设置首选供应商。"-msgid "<0>delete</0> lets you delete rows. <1>delete</1> will match all rows by default, so remember to specify your filters!"-msgstr "<0>delete</0> 让您删除行。<1>delete</1> 默认会匹配所有行,所以请记住指定您的过滤条件!"--msgid "<0>insert</0> lets you insert into your tables. You can also insert in bulk and do UPSERT."-msgstr "<0>insert</0>让您可以插入到表中。您也可以批量插入和执行UPSERT。"--msgid "<0>insert</0> will also return the replaced values for UPSERT."-msgstr "<0>insert</0>还会返回UPSERT的替换值。"--msgid "<0>update</0> lets you update rows. <1>update</1> will match all rows by default. You can update specific rows using horizontal filters, e.g. <2>eq</2>, <3>lt</3>, and <4>is</4>."-msgstr "<0>update</0>让您更新行。<1>update</1>默认将匹配所有行。您可以使用水平过滤器更新特定行,例如<2>eq</2>、<3>lt</3>和<4>is</4>。"--msgid "<0>update</0> will also return the replaced values for UPDATE."-msgstr "<0>update</0>也会返回UPDATE的替换值。"-msgid "0-4 weeks"msgstr ""@@ -1469,9 +1454,6 @@ msgstr "折叠设置"msgid "Collapse subtree"msgstr "折叠子树"-msgid "Column"-msgstr "列"-msgid "Column visibility and order"msgstr "列的可见性和顺序"@@ -2488,9 +2470,6 @@ msgstr "删除询价单"msgid "Delete Risk"msgstr "删除风险"-msgid "Delete rows"-msgstr "删除行"-msgid "Delete Rule"msgstr "删除规则"@@ -3760,9 +3739,6 @@ msgstr "此处附加的文件将随附在发送给此供应商的每份采购订msgid "Filter"msgstr "筛选"-msgid "Filtering"-msgstr "筛选"-msgid "Finalize"msgstr "完成"@@ -4082,9 +4058,6 @@ msgstr "从材料继承"msgid "Inherited from parent"msgstr "从父级继承"-msgid "Insert rows"-msgstr "插入行"-msgid "Insert token"msgstr "插入令牌"@@ -4445,9 +4418,6 @@ msgstr "交期(天)"msgid "Lead Time:"msgstr "交货时间:"-msgid "Learn more"-msgstr "了解更多"-msgid "Leave any related receipts untouched"msgstr "保留任何相关收据不变"@@ -6488,9 +6458,6 @@ msgstr "速率限制"msgid "Reactivate"msgstr "重新激活"-msgid "Read rows"-msgstr "读取行"-msgid "Ready for Quote"msgstr "准备报价"@@ -7783,9 +7750,6 @@ msgstr "提交检验"msgid "Submitted By"msgstr "提交者"-msgid "Subscribe to changes"-msgstr "订阅更改"-msgid "Substance"msgstr "物质"@@ -7825,12 +7789,6 @@ msgstr "建议"msgid "Sunday"msgstr "星期日"-msgid "Supabase provides a wide range of filters."-msgstr "Supabase 提供了广泛的过滤器。"--msgid "Supabase provides realtime functionality and broadcasts database changes to authorized users depending on Row Level Security (RLS) policies."-msgstr "Supabase 提供实时功能,并根据行级安全 (RLS) 策略向授权用户广播数据库更改。"-msgid "Supplier"msgstr "供应商"@@ -8231,9 +8189,6 @@ msgstr "标题"msgid "To Location"msgstr "至位置"-msgid "To read rows in <0>{resourceId}</0>, use the <1>select</1> method."-msgstr "要读取 <0>{resourceId}</0> 中的行,请使用 <1>select</1> 方法。"-msgid "To Receive"msgstr "待接收"@@ -8550,9 +8505,6 @@ msgstr "更新权限"msgid "Update Quantity"msgstr "更新数量"-msgid "Update rows"-msgstr "更新行"-msgid "Update Rule"msgstr "更新规则"