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
fix(cad): restore model thumbnail generation + add regenerate (#1215)
Sid46bf46afd950
diff --git a/.ai/playbooks/cad-model-viewer.md b/.ai/playbooks/cad-model-viewer.mdnew file mode 100644index 0000000000..4456232c32--- /dev/null+++ b/.ai/playbooks/cad-model-viewer.md@@ -0,0 +1,60 @@+# CAD Model Viewer (3D preview + optimise pipeline)++Last tested: 2026-07-23+Routes: /x/part/<itemId>/details (ERP), MES operation model tab+Artifacts API: /api/model/artifacts/<modelUploadId>++## IMPORTANT: the 3D render is NOT headless-testable++`agent-browser` runs headless with **no WebGL**. The viewer (`three.js`+`WebGLRenderer`, used by BOTH the server-GLB tier and the WASM raw tier) throws+`Error creating WebGL context`, and the route error boundary turns that into a+**500 page**. So you CANNOT verify the canvas render, the "Optimizing…" chip, or+the "Optimize failed · Retry" chip through agent-browser. Verify those in a real+GPU browser (Chrome MCP against the user's actual browser) or via user+screenshots.++What IS verifiable headlessly: the **artifacts API** (the data that drives the+viewer). Test that instead.++## Steps (artifacts-API verification — works headless)++### 1. Auth+Invoke /auth (logs in as [email protected] → company "Carbon Development",+id d9h3of1gq0h02k8opfq0).++### 2. Find a model in the current company (dev DB)+```+PGPASSWORD=postgres psql -h 127.0.0.1 -p <PORT_DB from .env.local> -U postgres -d postgres -tA \+ -c 'select id,name,"optimizeStatus","modelPath" from "modelUpload" where "companyId"=<cid>;'+```+Seeded parts with models: BCU (item_RwMKW92n4qeA1Sr5Zf62BQ, model bH6N0l-qPCQE7A_Oz-FxE),+STEP_RAIL (item_FezKigf3vrRF2LYAmds2ro, model Y_bH9pzeJ0OrI9A5vHDiD). Both ~30 MB+`.step`, and (with no local assembler) settle `Failed` with the raw in temp-staging.++### 3. Fetch artifacts (return the promise — no top-level await in eval)+```+agent-browser eval "fetch('/api/model/artifacts/<modelUploadId>').then(r=>r.json())"+```+Verify the response shape: `optimizerAvailable` (bool), `optimizeStatus`,+`rawBucket` (probes `private` first, then `temp-staging`), `rawPath`+(null when the raw is pruned/gone), `optimizedModelPath`/`glbPath`.++### 4. What the fields imply for the viewer (verify visually in a real browser)+- `optimizerAvailable:false` → no auto-fire, no "Optimize failed · Retry" chip.+- `optimizeStatus:"Failed"` + `optimizerAvailable:true` + raw ≤50 MB → failed-retry+ chip shows over the WASM-rendered raw.+- `optimizedModelPath`/`glbPath` set → GLB renders (no raw tier, no chip).++## Prerequisites+- `crbn up` running (docker kong/edge/inngest for the branch + ERP app server).+- A local **assembler** is usually NOT running (no assembler docker container),+ so optimises settle `Failed` and the compact→private relocation can't be+ exercised locally. Storage relocation + jobs flow-control need a working+ assembler + Inngest-run/storage inspection, not browser automation.++## Common Failures+- Route 500 "Error creating WebGL context" → headless has no WebGL; expected, not a+ bug. Don't /error it.+- `await fetch(...)` in `agent-browser eval` → SyntaxError; return the promise chain instead.+- Empty psql result → wrong companyId (extract the `companyId` cookie cleanly).diff --git a/apps/erp/app/components/ItemThumnailUpload.tsx b/apps/erp/app/components/ItemThumnailUpload.tsxindex 498a64014d..90f496d4f7 100644--- a/apps/erp/app/components/ItemThumnailUpload.tsx+++ b/apps/erp/app/components/ItemThumnailUpload.tsx@@ -5,6 +5,7 @@ import { Trans, useLingui } from "@lingui/react/macro";import { nanoid } from "nanoid";import type { ChangeEvent } from "react";import { useCallback, useEffect, useState } from "react";+import { LuRefreshCw } from "react-icons/lu";import { useUser } from "~/hooks";import { getPrivateUrl } from "~/utils/path";@@ -72,6 +73,27 @@ export function ItemThumbnailUpload({toast.success(t`Thumbnail removed`);}, [carbon, itemId, modelId, t]);+ const [isRegenerating, setIsRegenerating] = useState(false);+ const onRegenerate = useCallback(async () => {+ if (!modelId) return;+ setIsRegenerating(true);+ try {+ const body = new FormData();+ body.append("modelUploadId", modelId);+ const res = await fetch("/api/model/thumbnail", {+ method: "POST",+ body+ });+ if (!res.ok) throw new Error(`thumbnail ${res.status}`);+ // The render is async — the new thumbnail lands after the job runs.+ toast.success(t`Regenerating thumbnail…`);+ } catch {+ toast.error(t`Failed to regenerate thumbnail`);+ } finally {+ setIsRegenerating(false);+ }+ }, [modelId, t]);+const onFileChange = useCallback(async (e: ChangeEvent<HTMLInputElement>) => {if (!carbon) {@@ -175,6 +197,19 @@ export function ItemThumbnailUpload({)}{!isReadOnly && (<HStack className="absolute bottom-2 right-2">+ {modelId && (+ <Button+ variant="secondary"+ className="bg-card opacity-100"+ size="sm"+ leftIcon={<LuRefreshCw />}+ isLoading={isRegenerating}+ isDisabled={isRegenerating}+ onClick={onRegenerate}+ >+ <Trans>Regenerate</Trans>+ </Button>+ )}{thumbnailPath && (<Buttonvariant="secondary"diff --git a/apps/erp/app/routes/api+/model.thumbnail.ts b/apps/erp/app/routes/api+/model.thumbnail.tsnew file mode 100644index 0000000000..8b7f4cb6d0--- /dev/null+++ b/apps/erp/app/routes/api+/model.thumbnail.ts@@ -0,0 +1,32 @@+import { requirePermissions } from "@carbon/auth/auth.server";+import { trigger } from "@carbon/jobs";+import type { ActionFunctionArgs } from "react-router";+import { data } from "react-router";++// Regenerate a model's preview thumbnail — re-renders the optimised GLB to a PNG+// (model-thumbnail). Backs the item thumbnail's "Regenerate" action, e.g. when a+// prior generation failed (the render service was down). Any authenticated+// employee may fire it: generating a preview shouldn't require part-edit rights.+export async function action({ request }: ActionFunctionArgs) {+ const { client, companyId } = await requirePermissions(request, {});++ const formData = await request.formData();+ const modelUploadId = formData.get("modelUploadId") as string | null;+ if (!modelUploadId) {+ return data({ success: false }, { status: 400 });+ }++ // Confirm the model belongs to this tenant before firing.+ const model = await client+ .from("modelUpload")+ .select("id")+ .eq("id", modelUploadId)+ .eq("companyId", companyId)+ .maybeSingle();+ if (model.error || !model.data) {+ return data({ success: false }, { status: 404 });+ }++ await trigger("model-thumbnail", { modelId: modelUploadId, companyId });+ return { success: true };+}diff --git a/apps/erp/app/routes/api+/model.upload.ts b/apps/erp/app/routes/api+/model.upload.tsindex 6cbbac4bfb..a7ceb67a37 100644--- a/apps/erp/app/routes/api+/model.upload.ts+++ b/apps/erp/app/routes/api+/model.upload.ts@@ -79,10 +79,8 @@ export async function action({ request }: ActionFunctionArgs) {await client.from("job").update({ modelUploadId: modelId }).eq("id", jobId);}- await trigger("model-thumbnail", {- companyId,- modelId- });+ // Thumbnail is generated by model-optimize on success (it renders the GLB the+ // optimise produces) — firing it here, before the GLB exists, always failed.// Eager optimisation: the assembler's /v1/optimize turns a mesh model into a// compact optimised GLB. The job derives the format from the stored file anddiff --git a/apps/erp/app/routes/file+/model+/$id.tsx b/apps/erp/app/routes/file+/model+/$id.tsxindex 4afca24b77..ef52f6ff76 100644--- a/apps/erp/app/routes/file+/model+/$id.tsx+++ b/apps/erp/app/routes/file+/model+/$id.tsx@@ -1,6 +1,7 @@import { notFound } from "@carbon/auth";import { getCarbonServiceRole } from "@carbon/auth/client.server";import { ModelCanvas } from "@carbon/viewer/canvas";+import { useState } from "react";import type { LoaderFunctionArgs } from "react-router";import { useLoaderData } from "react-router";import { getPublicModelUrl } from "~/utils/path";@@ -23,17 +24,35 @@ export async function loader({ params }: LoaderFunctionArgs) {export default function ModelRoute() {const { model } = useLoaderData<typeof loader>();// Prefer the compact optimised GLB, fall back to the lossless assembly GLB.- // No raw-STEP tessellation path — the assembler produces the GLB.+ // No raw-STEP tessellation path — the assembler produces the GLB. This route is+ // rendered headlessly by the model-thumbnail edge function, which waits for the+ // `#model-viewer-canvas` marker before screenshotting.const glbPath = model.optimizedModelPath ?? model.glbPath;+ const [loaded, setLoaded] = useState(false);return (- <div className="h-screen w-screen bg-white">+ <div className="relative h-screen w-screen bg-white">{glbPath ? (- <ModelCanvas- key={glbPath}- glbUrl={getPublicModelUrl(glbPath)}- mode="light"- />+ <>+ {/* Chrome-less: the thumbnail screenshot wants just the model. */}+ <ModelCanvas+ key={glbPath}+ glbUrl={getPublicModelUrl(glbPath)}+ mode="light"+ viewCube={false}+ interactive={false}+ onLoaded={() => setLoaded(true)}+ />+ {/* The thumbnail edge fn `waitForSelector("#model-viewer-canvas")`+ before capturing — render it only once the model has framed, so it+ screenshots a ready model, not a blank/loading frame. */}+ {loaded && (+ <div+ id="model-viewer-canvas"+ className="pointer-events-none absolute inset-0"+ />+ )}+ </>) : (<div className="flex h-full w-full items-center justify-center"><p className="text-sm text-muted-foreground">diff --git a/apps/erp/app/routes/x+/part+/new.tsx b/apps/erp/app/routes/x+/part+/new.tsxindex 56f897a37e..49fbf06db9 100644--- a/apps/erp/app/routes/x+/part+/new.tsx+++ b/apps/erp/app/routes/x+/part+/new.tsx@@ -52,10 +52,7 @@ export async function action({ request }: ActionFunctionArgs) {}if (validation.data.modelUploadId) {- await trigger("model-thumbnail", {- companyId,- modelId: validation.data.modelUploadId- });+ // Thumbnail is generated by model-optimize on success (renders the GLB).await trigger("model-optimize", {modelUploadId: validation.data.modelUploadId,companyId,diff --git a/apps/erp/app/routes/x+/quote+/$quoteId.drag.tsx b/apps/erp/app/routes/x+/quote+/$quoteId.drag.tsxindex 9d18d82c90..f59f8ec5f5 100644--- a/apps/erp/app/routes/x+/quote+/$quoteId.drag.tsx+++ b/apps/erp/app/routes/x+/quote+/$quoteId.drag.tsx@@ -284,10 +284,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}await client.storage.from("private").remove([documentPath]);- await trigger("model-thumbnail", {- companyId,- modelId- });+ // Thumbnail is generated by model-optimize on success (renders the GLB).await trigger("model-optimize", {modelUploadId: modelId,companyId,diff --git a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsxindex 8ab58e51fb..82b637c9f7 100644--- a/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx+++ b/apps/erp/app/routes/x+/sales-rfq+/$rfqId.drag.tsx@@ -139,10 +139,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}await client.storage.from("private").remove([documentPath]);- await trigger("model-thumbnail", {- companyId,- modelId- });+ // Thumbnail is generated by model-optimize on success (renders the GLB).await trigger("model-optimize", {modelUploadId: modelId,companyId,diff --git a/packages/jobs/src/inngest/functions/tasks/model-optimize.ts b/packages/jobs/src/inngest/functions/tasks/model-optimize.tsindex c4603adc9a..78de503aa6 100644--- a/packages/jobs/src/inngest/functions/tasks/model-optimize.ts+++ b/packages/jobs/src/inngest/functions/tasks/model-optimize.ts@@ -220,6 +220,16 @@ export const modelOptimizeFunction = inngest.createFunction(data: { modelUploadId, companyId }});+ // Generate the preview thumbnail now that the optimised GLB exists — the+ // thumbnail renderer (/file/model/:id) draws only the assembler GLB, so+ // firing this at upload time (before the GLB) always failed. Chaining it to+ // optimise success means it has something to render, and a re-optimise+ // (viewer Retry / regenerate) refreshes the thumbnail for free.+ await step.sendEvent("thumbnail", {+ name: "carbon/model-thumbnail",+ data: { modelId: modelUploadId, companyId }+ });+logger.info("model optimise finalized", { modelUploadId, stats });return { modelUploadId, status: "Success" as const };}diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 38eb0a4002..8d60740a11 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -5371,6 +5371,9 @@ msgstr "Fehler beim Laden von verfolgten Entitäten"msgid "Failed to move account: {0}"msgstr "Konto konnte nicht verschoben werden: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Fehler beim Entfernen des Bildes: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Aktualisieren"msgid "Refresh exchange rate"msgstr "Wechselkurs aktualisieren"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Vorhandenes Vermögen registrieren"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 3c388d17f9..798c40e9c4 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -5371,6 +5371,9 @@ msgstr "Failed to load tracked entities"msgid "Failed to move account: {0}"msgstr "Failed to move account: {0}"+msgid "Failed to regenerate thumbnail"+msgstr "Failed to regenerate thumbnail"+msgid "Failed to remove image: {errorMessage}"msgstr "Failed to remove image: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Refresh"msgid "Refresh exchange rate"msgstr "Refresh exchange rate"+msgid "Regenerate"+msgstr "Regenerate"++msgid "Regenerating thumbnail…"+msgstr "Regenerating thumbnail…"+msgid "Register"msgstr "Register"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex 8f437072db..8ff1bfd508 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -5371,6 +5371,9 @@ msgstr "No se pudieron cargar las entidades rastreadas"msgid "Failed to move account: {0}"msgstr "Error al mover cuenta: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Error al eliminar la imagen: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Actualizar"msgid "Refresh exchange rate"msgstr "Actualizar tipo de cambio"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Registrar Activo Existente"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex fa1a1df483..0100e3baeb 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -5371,6 +5371,9 @@ msgstr "Impossible de charger les entités suivies"msgid "Failed to move account: {0}"msgstr "Impossible de déplacer le compte : {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Échec de la suppression de l'image : {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Actualiser"msgid "Refresh exchange rate"msgstr "Actualiser le taux de change"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Enregistrer un Actif Existant"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex c9e32b7ae3..207d530f27 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -5371,6 +5371,9 @@ msgstr "ट्रैक किए गए इकाइयों को लोडmsgid "Failed to move account: {0}"msgstr "खाता स्थानांतरित करने में विफल: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "छवि हटाने में विफल: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "ताज़ा करें"msgid "Refresh exchange rate"msgstr "विनिमय दर को ताज़ा करें"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "मौजूदा संपत्ति पंजीकृत करें"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 8c9cb76348..48c4b8f0a0 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -5371,6 +5371,9 @@ msgstr "Impossibile caricare le entità tracciate"msgid "Failed to move account: {0}"msgstr "Impossibile spostare il conto: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Impossibile rimuovere l'immagine: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Aggiorna"msgid "Refresh exchange rate"msgstr "Aggiorna tasso di cambio"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Registrare Attivo Esistente"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex c783a0a43c..75e3ea503f 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -5371,6 +5371,9 @@ msgstr "追跡対象エンティティの読み込みに失敗しました"msgid "Failed to move account: {0}"msgstr "勘定科目の移動に失敗しました: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "画像の削除に失敗しました: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "更新"msgid "Refresh exchange rate"msgstr "為替レートを更新"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "既存資産を登録"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex 1b2742026d..8a04e53e9b 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -5371,6 +5371,9 @@ msgstr "추적 개체를 불러오지 못했습니다"msgid "Failed to move account: {0}"msgstr "계정 이동 실패: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "이미지를 삭제하지 못했습니다: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "새로고침"msgid "Refresh exchange rate"msgstr "환율 새로고침"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "등록"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex a0e03aa3f4..f4a5523b28 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -5371,6 +5371,9 @@ msgstr "Nie udało się załadować śledzonych jednostek"msgid "Failed to move account: {0}"msgstr "Nie udało się przenieść konta: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Nie udało się usunąć obrazu: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Odśwież"msgid "Refresh exchange rate"msgstr "Odśwież kurs wymiany"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Zarejestruj Istniejący Majątek"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex 76cb547ebb..8ae09e6f3a 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -5371,6 +5371,9 @@ msgstr "Falha ao carregar entidades rastreadas"msgid "Failed to move account: {0}"msgstr "Falha ao mover conta: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Falha ao remover imagem: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Atualizar"msgid "Refresh exchange rate"msgstr "Atualizar taxa de câmbio"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Registrar Ativo Existente"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex e89c5db757..6423479388 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -5371,6 +5371,9 @@ msgstr "Не удалось загрузить отслеживаемые сущmsgid "Failed to move account: {0}"msgstr "Не удалось переместить счет: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Не удалось удалить изображение: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Обновить"msgid "Refresh exchange rate"msgstr "Обновить курс обмена"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Зарегистрировать существующий актив"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 970777e743..fecac5304f 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -5371,6 +5371,9 @@ msgstr "Takip edilen varlıklar yüklenemedi"msgid "Failed to move account: {0}"msgstr "Hesap taşınamadı: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "Görsel kaldırılamadı: {errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "Yenile"msgid "Refresh exchange rate"msgstr "Döviz kurunu yenile"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "Mevcut Varlığı Kayıt Yap"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 6895f442e0..1ab20e01b0 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -5371,6 +5371,9 @@ msgstr "加载跟踪实体失败"msgid "Failed to move account: {0}"msgstr "移动账户失败: {0}"+msgid "Failed to regenerate thumbnail"+msgstr ""+msgid "Failed to remove image: {errorMessage}"msgstr "删除图像失败:{errorMessage}"@@ -10060,6 +10063,12 @@ msgstr "刷新"msgid "Refresh exchange rate"msgstr "刷新汇率"+msgid "Regenerate"+msgstr ""++msgid "Regenerating thumbnail…"+msgstr ""+msgid "Register"msgstr "注册现有资产"