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
feat(assembly): sub-assemblies replace build-aside staging in instructions, editor, player and MES
aashu001955e7d5d3
diff --git a/.ai/plans/2026-09-30-assembly-sub-assemblies.md b/.ai/plans/2026-09-30-assembly-sub-assemblies.mdnew file mode 100644index 0000000000..96ba5b5276--- /dev/null+++ b/.ai/plans/2026-09-30-assembly-sub-assemblies.md@@ -0,0 +1,458 @@+# Assembly sub-assemblies — implementation plan++**Spec / source:** `.ai/specs/2026-09-30-assembly-sub-assemblies.md`+**Research:** `.ai/research/2026-09-30-assembly-sub-assemblies-code.md` (line refs used below)+**Branch:** `feat/sub-assemblies` (worktree `/Users/aashu/work/carbon/carbon-feat-sub-assemblies`)+**Prototype (look + flow):** `/Users/aashu/work/carbon/plans/sub-assemblies/prototype.html`++Rules for the executor: run everything from the worktree root; `pnpm` only; never commit+(the user commits); every user-facing string through Lingui (`useLingui().t` / `<Trans>`);+follow `.claude/skills/carbon-design/SKILL.md` for every UI task.++## Progress+- [x] Task 1: Install deps and boot the local stack+- [x] Task 2: Migration — `usedInStepId` + convert build-aside data+- [x] Task 3: Apply migration and regenerate DB types+- [x] Task 4: Viewer — pure `subassembly.ts` model + tests; step type change+- [x] Task 5: Viewer — player: remove staging, add isolation, carry-in, scope, pill+- [x] Task 6: ERP — validators and service functions+- [x] Task 7: ERP — routes and path helpers (and remove the join route)+- [x] Task 8: Job sync and job creation skip header rows+- [x] Task 9: ERP — Explorer: grouped list, dnd-kit, menus, open sub-assembly+- [x] Task 10: ERP — Properties + `$id.tsx` wiring+- [x] Task 11: ERP — rename component-list "Subassembly" → "Component Group"+- [x] Task 12: MES — playback columns + step bar with open/back+- [ ] Task 13: Docs, glossary, AGENTS.md, MCP digest, superseded spec+- [ ] Task 14: Translations+- [ ] Task 15: Verification (typecheck, tests, lint, browser walk-through of all acceptance criteria)++## Dependencies+Task 2 → 3 → (4, 6). 4 → 5. 6 → 7 → (9, 10). 3 → 8. 5 + 7 → 9, 10. 11 independent after 1.+12 needs 3 + 5. 13 after 7. 14 after 9–12. 15 last.+Check-in points with the user (per their preference): after Task 5, after Task 10, after Task 12.++---++## Task 1: Install deps and boot the local stack++**Depends on:** none+**Files:** none+**Steps:**+1. `pnpm install`+2. `crbn up --no-apps` (services only; dev servers are started in Task 15). If Docker is not+ running, STOP and ask the user to start it.+**Verify:**+```bash+crbn status+# Expected: containers healthy (db, api)+```+**Out of scope:** seeding data, changing `.env`.++## Task 2: Migration — `usedInStepId` + convert build-aside data++**Depends on:** 1+**Files:**+- Create: `packages/database/supabase/migrations/<timestamp>_assembly-sub-assemblies.sql` via+ `pnpm db:migrate:new assembly-sub-assemblies`+- Precedent: `packages/database/supabase/migrations/20260910093006_assembly-step-lineage.sql`+**Steps:**+1. Before writing, list NOT NULL columns without defaults on `assemblyInstructionStep`+ (`psql` via `crbn status` DB URL, or read the base migration + later `ALTER`s) so the header+ INSERT supplies them. If any besides the ones below exist, add them with a neutral value.+2. Write:+```sql+-- Sub-assemblies replace "Build off to the side".+-- parentStepId = the sub-assembly (header step) this step belongs to (was: a later JOIN step).+-- usedInStepId = on a header: the step that fits the finished sub-assembly.+-- NULL = nothing uses it, so it joins the main build at the header.+-- ON DELETE SET NULL: deleting the using step leaves the sub-assembly joining the main build.+BEGIN;++ALTER TABLE "assemblyInstructionStep"+ ADD COLUMN IF NOT EXISTS "usedInStepId" TEXT+ REFERENCES "assemblyInstructionStep"("id") ON DELETE SET NULL,+ -- A header row: the sub-assembly itself (can exist before any step is dragged in).+ ADD COLUMN IF NOT EXISTS "isSubAssembly" BOOLEAN NOT NULL DEFAULT false;++CREATE INDEX IF NOT EXISTS "assemblyInstructionStep_usedInStepId_idx"+ ON "assemblyInstructionStep" ("usedInStepId");++-- Convert build-aside data: every join step's staged steps become one sub-assembly+-- used at that join step, placed where the last staged step was.+CREATE TEMP TABLE "_subAssemblyJoin" ON COMMIT DROP AS+SELECT+ j."id" AS "joinId",+ j."assemblyInstructionId" AS "assemblyInstructionId",+ j."companyId" AS "companyId",+ j."createdBy" AS "createdBy",+ xid() AS "headerId",+ MAX(s."sortOrder") AS "lastStaged"+FROM "assemblyInstructionStep" s+JOIN "assemblyInstructionStep" j ON j."id" = s."parentStepId"+GROUP BY j."id", j."assemblyInstructionId", j."companyId", j."createdBy";++INSERT INTO "assemblyInstructionStep"+ ("id", "assemblyInstructionId", "companyId", "title", "sortOrder",+ "usedInStepId", "isSubAssembly", "componentNodeIds", "planConfidence", "createdBy")+SELECT "headerId", "assemblyInstructionId", "companyId", 'Sub-Assembly', "lastStaged",+ "joinId", true, '{}', 'manual', "createdBy"+FROM "_subAssemblyJoin";++UPDATE "assemblyInstructionStep" s+SET "parentStepId" = jn."headerId"+FROM "_subAssemblyJoin" jn+WHERE s."parentStepId" = jn."joinId";++-- Renumber affected instructions so members sit directly before their header (play order).+WITH keyed AS (+ SELECT+ s."id",+ s."assemblyInstructionId",+ COALESCE(m."lastStaged", h."lastStaged", s."sortOrder") AS k1,+ CASE WHEN h."headerId" IS NOT NULL THEN 1 ELSE 0 END AS k2,+ s."sortOrder" AS k3+ FROM "assemblyInstructionStep" s+ LEFT JOIN "_subAssemblyJoin" m ON m."headerId" = s."parentStepId"+ LEFT JOIN "_subAssemblyJoin" h ON h."headerId" = s."id"+ WHERE s."assemblyInstructionId" IN (SELECT "assemblyInstructionId" FROM "_subAssemblyJoin")+),+numbered AS (+ SELECT "id", ROW_NUMBER() OVER (PARTITION BY "assemblyInstructionId" ORDER BY k1, k2, k3) AS rn+ FROM keyed+)+UPDATE "assemblyInstructionStep" s+SET "sortOrder" = n.rn+FROM numbered n+WHERE s."id" = n."id";++COMMIT;+```+**Verify:** (after Task 3 applies it)+```bash+grep -c "usedInStepId" packages/database/supabase/migrations/*_assembly-sub-assemblies.sql+# Expected: >= 3+```+**Out of scope:** `jobOperationStep` schema (no change), RLS (unchanged table).++## Task 3: Apply migration and regenerate DB types++**Depends on:** 2+**Steps:**+1. `pnpm db:migrate`+2. `pnpm run generate:types`+**Verify:**+```bash+grep -c "usedInStepId" packages/database/src/types.ts+# Expected: >= 3 (Row, Insert, Update)+```+If `db:migrate` fails, STOP and report the SQL error — do not hand-edit types.++## Task 4: Viewer — pure `subassembly.ts` model + tests; step type change++**Depends on:** 3+**Files:**+- Create: `packages/viewer/src/subassembly.ts`, `packages/viewer/src/subassembly.test.ts`+- Modify: `packages/viewer/src/types.ts` — `AssemblyStep`: add `parentStepId?: string | null`,+ `usedInStepId?: string | null`; remove `joinStepId`.+- Modify: `packages/viewer/src/index.ts`, `packages/viewer/src/steps.ts` — export the new+ module (three-free entry `steps.ts` too); remove staging exports.+- Delete: `packages/viewer/src/staging.ts`, `packages/viewer/src/staging.test.ts`.+- Precedent: `packages/viewer/src/staging.ts` (pure helper style), `staging.test.ts` (fixtures).+**Steps:**+1. Implement (all pure, input = steps in `sortOrder` = play order):+```ts+export type SubAssemblyInfo = {+ stepId: string;+ headerId: string | null; // for members: their header; for headers: own id; else null+ isHeader: boolean; // has at least one member OR was created as a header (empty)+ number: string; // "1", "1.2" — top-level count over headers + main steps+ plays: boolean; // false only for a header whose usedInStepId is set+ isolatePartIds: string[] | null;// members: parts of their sub-assembly; else null+ carriesIn: string[]; // header ids whose finished parts arrive at this step+};+export function buildSubAssemblyPlan(steps: AssemblyStep[], headerIds?: Set<string>): Map<string, SubAssemblyInfo>;+export function subAssemblyPartIds(steps: AssemblyStep[], headerId: string): string[]; // recursive via uses+export type SubAssemblyViolation = { stepId: string; rule: 1 | 2 | 3 | 4; message: string };+export function validateSubAssemblies(steps: AssemblyStep[], headerIds?: Set<string>): SubAssemblyViolation[];+export function usableSubAssemblies(steps: AssemblyStep[], stepId: string): { headerId: string; reason: null | "own" | "before" | "header" }[];+export function displayOrder(steps: AssemblyStep[]): { stepId: string; depth: 0 | 1 }[]; // header above members+```+ A header is a step with `isSubAssembly === true` (`AssemblyStep.isSubAssembly?: boolean`,+ mapped by both apps' `toViewerStep`). Drop the `headerIds` parameters from the signatures above.+2. Rules exactly as spec §Data model 1–5. Carry-in: a step carries in every header whose+ `usedInStepId` is that step; an unused header carries in itself (and `plays = true`).+ `isolatePartIds` for a member = `subAssemblyPartIds(header)` (own members' `componentNodeIds`+ plus recursively the parts of headers used by its members).+3. Tests with the spec's example (1 / 1.1–1.3 / 2 / 3 / 4 / 4.1 / 4.2 uses 1 / 5): numbering,+ plays flags, isolation sets (4.x isolate includes Drive Train parts), carry-in at 4.2 = [1] and+ at 4 = [4], each validator rule (non-contiguous members, nesting, use before header, use by own+ member, use of a header by a header), `usableSubAssemblies` reasons, `displayOrder`.+**Verify:**+```bash+pnpm --filter @carbon/viewer test -- subassembly+# Expected: all subassembly tests pass+```+**Out of scope:** AssemblyPlayer changes (Task 5).++## Task 5: Viewer — player: remove staging, add isolation, carry-in, scope, pill++**Depends on:** 4+**Files:**+- Modify: `packages/viewer/src/AssemblyPlayer.tsx`, `packages/viewer/src/motion.ts` (keep glide,+ rename option `glide` semantics unchanged), `packages/viewer/src/motion.test.ts` (rewrite the+ two "join step glides" tests as "carry-in step glides"), `packages/viewer/AGENTS.md`.+**Steps:**+1. Remove every staging reference listed in code research §1 "Staging wiring to delete".+2. `const plan = useMemo(() => buildSubAssemblyPlan(steps), [steps])`.+3. Timeline: a step with `plan.get(id).plays === false` gets a 0-length segment and is skipped+ by prev/next/auto-advance (keep the index mapping intact so hosts still index by position).+4. Carry-in: in `displaySteps`, for each step, widen `componentNodeIds` with+ `subAssemblyPartIds(steps, h)` for every `h` in `carriesIn` (replaces the join merge at+ 356-369); give the clip the glide (`STAGING_GLIDE_SECONDS` constant moves into `motion.ts` as+ `CARRY_IN_GLIDE_SECONDS = 1.2`) with offset = +X by 25% of the assembly diagonal (same value+ staging used, `staging.ts:17`), then the step's insertion.+5. Isolation: new scene input `isolateNodeIds: string[] | null` from the ACTIVE step's+ `isolatePartIds` (also while paused). Apply like the focus branch (1252-1266: members,+ ancestors, descendants stay; everything else hidden), after the focus branch, and NOT cleared+ while playing. Camera: when isolated, replace the whole-model box with the union of isolated+ parts' seated bounds in `getAssemblyBox` callers (1679-1695, 1840-1883) and in initial framing.+6. Scope: new prop `scopeStepIds?: string[]`. When set, `segments`, counter, scrubber, prev/next+ and auto-advance cover only those steps (map through indices); installed state still uses all+ `steps`.+7. Pill: new props `isolationLabel?: string | null` and `carryInLabel?: string | null` (hosts pass+ translated text). Render top-centre with the "Planning motion…" pill classes (`$id.tsx:619`):+ `absolute left-1/2 top-3 z-10 flex -translate-x-1/2 items-center gap-2 rounded-full border+ border-border bg-card px-3 py-1.5 shadow-lg text-xs font-medium`.+8. Update `packages/viewer/AGENTS.md` (replace staging bullets with sub-assembly behaviour).+**Verify:**+```bash+pnpm --filter @carbon/viewer test && pnpm --filter @carbon/viewer typecheck+# Expected: all tests pass; no type errors+```+**CHECK-IN with the user after this task.**+**Out of scope:** planner (Rust), `assignStepPhases`.++## Task 6: ERP — validators and service functions++**Depends on:** 3, 4+**Files:**+- Modify: `apps/erp/app/modules/production/production.models.ts` — remove+ `assemblyInstructionStepJoinValidator`; add:+```ts+export const assemblySubAssemblyNewValidator = z.object({ stepId: z.string().min(1) });+export const assemblySubAssemblyUpdateValidator = z.object({+ title: zfd.text(z.string().optional()),+ usedInStepId: zfd.text(z.string().optional()) // "" → null (main build)+});+```+- Modify: `apps/erp/app/modules/production/production.service.ts`:+ - Remove `updateAssemblyStepJoin` and the `joinTargets` import.+ - `toViewerStep`: map `parentStepId`, `usedInStepId`, `isSubAssembly` (drop `joinStepId`).+ - `copyAssemblyInstructionAsVersion`: remap `usedInStepId` through `stepIdMap` exactly like+ `parentStepId` (6864-6866).+ - Add (Kysely `db` passed in from the route; precedent `updateAssemblyInstructionStepOrder`+ 7706-7739):+ - `makeAssemblySubAssembly(db, { assemblyInstructionId, stepId, companyId, userId })`: in one+ transaction insert a header (`isSubAssembly true`, `title` 'Sub-Assembly', `componentNodeIds+ '{}'`, `motion {"type":"none"}`, `planConfidence 'manual'`) with `sortOrder` = step's+ `sortOrder + 0.5`, set the step's `parentStepId` to it, renumber `1..n`, then+ `validateSubAssemblies` over the instruction's steps; throw on a violation. Refuse when the+ step is already a member or a header. Returns the header id.+ - `updateAssemblySubAssembly(db, { headerId, title?, usedInStepId?, companyId, userId })`:+ validate with `validateSubAssemblies` on the would-be rows; throw a readable message.+ - `ungroupAssemblySubAssembly(db, { headerId, … })`: null members' `parentStepId`, delete the+ header (FK clears any `usedInStepId` pointing elsewhere), renumber.+ - `deleteAssemblySubAssembly(db, { headerId, … })`: delete members and header in one+ transaction, renumber.+ - `updateAssemblyInstructionStepOrder`: accept `updates: { id, sortOrder, parentStepId? }[]`;+ in `afterUpdate`, set `parentStepId` for ids that sent one (`null` allowed), then load the+ instruction's steps and throw if `validateSubAssemblies` returns violations; remove the+ build-aside hook (7719-7737).+ - Every function scopes by `companyId` and checks the instruction is Draft (reuse the check the+ existing step routes use; if they rely on UI-only locking, add a `status = 'Draft'` guard in+ the service and throw "Only draft instructions can be edited").+- Modify: `apps/erp/app/modules/shared/sort-order.ts` — `parseSortOrderUpdates` accepts either+ a number or `{ sortOrder, parentStepId }` per id for this caller (add a sibling parser+ `parseStepOrderUpdates` rather than changing the shared one).+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: no errors in production.service.ts / production.models.ts (other errors from+# callers of removed code are fixed in Tasks 7, 9, 10 — record them, don't fix here)+```+**Out of scope:** UI.++## Task 7: ERP — routes and path helpers++**Depends on:** 6+**Files:**+- Delete: `apps/erp/app/routes/x+/assembly+/$id.steps.join.$stepId.tsx`; remove+ `assemblyInstructionStepJoin` from `apps/erp/app/utils/path.ts`.+- Create (precedent `apps/erp/app/routes/x+/assembly+/$id.steps.order.tsx` for Kysely routes,+ `$id.steps.hidden.$stepId.tsx` for fetcher-autosave shape):+ - `$id.sub-assemblies.new.tsx` → `makeAssemblySubAssembly`, returns `{ success, id }`+ - `$id.sub-assemblies.$stepId.tsx` → `updateAssemblySubAssembly`+ - `$id.sub-assemblies.$stepId.ungroup.tsx` → `ungroupAssemblySubAssembly`+ - `$id.sub-assemblies.$stepId.delete.tsx` → `deleteAssemblySubAssembly`+ All: `assertIsPost`, `requirePermissions(request, { update: "production" })`,+ `validator(...).validate(formData)`, `getDatabaseClient()`, try/catch → `data({ success:false,+ message }, await flash(request, error(e, t)))` with a logged error (`getLogger("erp", …)`).+- Modify: `$id.steps.order.tsx` — use `parseStepOrderUpdates`.+- Modify: `apps/erp/app/utils/path.ts` — add `assemblySubAssemblyNew(id)`,+ `assemblySubAssembly(id, stepId)`, `assemblySubAssemblyUngroup(id, stepId)`,+ `assemblySubAssemblyDelete(id, stepId)` next to the other `assembly*` helpers (366-401).+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp 2>&1 | grep -c "routes/x+/assembly+"+# Expected: 0+```++## Task 8: Job sync and job creation skip header rows++**Depends on:** 3+**Files:**+- Modify: `apps/erp/app/modules/production/production.service.ts` — `syncAssemblyInstructionToOperation`+ (8819+): select `isSubAssembly` and filter those rows out before the upsert; existing stale-marker+ deletion then removes job steps whose instruction row is now a header.+- Modify: `packages/database/supabase/functions/get-method/index.ts` —+ `insertAssemblyDataForJobOperation` (8159-8240): skip rows with `isSubAssembly`.+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp && grep -n "isSubAssembly" packages/database/supabase/functions/get-method/index.ts+# Expected: typecheck passes for these files; grep shows the filter+```++## Task 9: ERP — Explorer: grouped list, dnd-kit, menus, open sub-assembly++**Depends on:** 5, 7+**Files:**+- Modify: `apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx`+ (split out `AssemblyStepList.tsx` for the list + DnD if the file grows; it is 1194 lines).+- Precedents: row anatomy = current `StepItem` (1055-1178); nested dnd-kit =+ `apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx` (keyboard coordinate getter+ 174-176/1204-1290, `onDragOver` 541+, `onDragEnd` 468-539); announcements =+ `apps/erp/app/modules/production/ui/Schedule/Kanban/Kanban.tsx:442-545`; look = prototype.+**Steps:**+1. Build rows from `displayOrder(viewerSteps)` + `buildSubAssemblyPlan`; header row: grip, chevron+ (collapse; local state), number, `LuBoxes` tile, title `font-medium` + muted line+ (`Sub-Assembly · used in {number}` / `Sub-Assembly · joins main build`), parts count, status, ⋮.+ Member rows: `pl-6` + 1px rail. Consumer rows: outline tag `Uses {n}` (click selects the header).+2. Replace framer `Reorder` with dnd-kit (`PointerSensor` distance 8, `KeyboardSensor` with a+ coordinate getter, translated announcements, `DragOverlay` with `dropAnimation={null}`).+ Allowed moves come from `validateSubAssemblies` on the would-be order; illegal drops snap back.+ A header drags with its members. Submit through the existing debounced order fetcher with+ `{ id: { sortOrder, parentStepId } }` in PLAY order (members before header).+3. ⋮ menus (row): Make Sub-Assembly (`path.to.assemblySubAssemblyNew`), Move Into ▸ (lists+ headers), Move Out of Sub-Assembly (disabled at top level), Delete Step. Header: Open+ Sub-Assembly, Ungroup, Delete Sub-Assembly (`ConfirmDelete` pattern:+ `apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx`).+4. Open: `?subAssembly=<headerId>` via `useSearchParams`; list shows a back bar+ (`LuArrowLeft` "All steps" · `Sub-Assembly {n} · {title}`) and only members; double-click+ header opens. Empty sub-assembly shows a dashed drop zone "Drag steps here to build them on+ their own."+5. Remove the "Built aside" icon (1134-1140) and the regenerate warning (836-843).+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp && pnpm --filter erp exec biome lint app/modules/production/ui/Assemblies+# Expected: no errors+```++## Task 10: ERP — Properties + `$id.tsx` wiring++**Depends on:** 5, 7+**Files:**+- Modify: `apps/erp/app/routes/x+/assembly+/$id.tsx` — add `export function shouldRevalidate`+ that returns `false` when only the `subAssembly` search param changed+ (`currentUrl.pathname === nextUrl.pathname && !formMethod`); pass `scopeStepIds`,+ `isolationLabel`, `carryInLabel` (translated) to `AssemblyPlayer`; remove `stagedGroupNodeIds`+ (21-22, 323-330) — `selectedOwnNodeIds` now adds `subAssemblyPartIds` for carried-in headers;+ pass display numbers to Properties.+- Modify: `apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionProperties.tsx` —+ remove `AssemblyStepJoin` (66, 639-646) and the `viewerSteps`/`onSelectStep` join-only props;+ "Step {number}" eyebrow; header selected → Sub-Assembly panel (Name, Steps list, Used in select+ via `usableSubAssemblies`, join Instruction/Camera when unused, Ungroup / Delete); step selected →+ Components header gains "Use Sub-Assembly" dropdown (`DropdownMenu` + reasons) posting to+ `path.to.assemblySubAssembly(id, headerId)` with `usedInStepId`; used sub-assemblies render as a+ component row (tile, name, `Sub-Assembly {n} · {count} parts`, Open).+- Delete: `apps/erp/app/modules/production/ui/Assemblies/AssemblyStepJoin.tsx`.+- Precedent: `AssemblyInstructionProperties.tsx` Components section (706-760), `PlaybackRow`.+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=erp+# Expected: 0 errors+```+**CHECK-IN with the user after this task.**++## Task 11: ERP — rename component-list "Subassembly" → "Component Group"++**Depends on:** 1+**Files:** Modify `apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx` — every+string in code research §6 ("Plan as one component" → "Group as One Component"; "Subassembly+name" → "Component group name"; "Edit subassembly" → "Edit Component Group"; toast "Component+group updated — re-run motion planning to apply the change"; etc.), each wrapped in Lingui.+**Verify:**+```bash+grep -n -i "subassembl" apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx | grep -v "^\s*[0-9]*:\s*//"+# Expected: no user-visible hits (comments only)+```++## Task 12: MES — playback columns + step bar with open/back++**Depends on:** 3, 5+**Files:**+- Modify: `apps/mes/app/services/operations.service.ts:675` — select `parentStepId`,+ `usedInStepId`, `isSubAssembly`.+- Modify: `apps/mes/app/components/AssemblyView.tsx` — `toViewerStep` (212-231) maps the new+ fields; the step bar (1596-1627) shows top-level items: job steps whose marker's instruction row+ has no `parentStepId`, plus one entry per header (title, done when all its job steps are+ recorded). `?subAssembly=` swaps the bar to that header's job steps with a back bar ("All+ steps" · "Sub-Assembly {n} · {title}", touch size `size="lg"`); pass `scopeStepIds` and the+ translated pill labels to the player. Record/complete logic unchanged.+- Precedent: current bar (1596-1627) and `.claude/rules/mes-job-operation-ui.md`.+**Verify:**+```bash+pnpm exec turbo run typecheck --filter=mes+# Expected: 0 errors+```+**CHECK-IN with the user after this task.**++## Task 13: Docs, glossary, AGENTS.md, MCP digest, superseded spec++**Depends on:** 7+**Files:** `docs/content/docs/reference/assembly-instructions.mdx` (replace 68, 71-79, 89, 105,+107 with a "Sub-assemblies" section), `docs/content/docs/reference/mes.mdx:76`,+`docs/content/src/glossary/terms.ts` (replace `assembly-step-build-aside` with+`assembly-sub-assembly`), `apps/erp/app/modules/production/AGENTS.md` (15-16),+`.ai/specs/2026-09-28-assembly-subassembly-staging.md` (status → "Superseded by+2026-09-30-assembly-sub-assemblies"). Then `pnpm run generate:mcp`.+**Verify:**+```bash+grep -rn "Build off to the side\|build-aside\|updateAssemblyStepJoin" docs apps packages --include=*.ts --include=*.tsx --include=*.mdx --include=*.json | grep -v node_modules+# Expected: no hits+```++## Task 14: Translations++**Depends on:** 9–12+**Steps:** `pnpm lingui:extract` then `pnpm translate` (if the LLM step lacks a key, STOP and tell+the user; extract alone is acceptable for review).+**Verify:**+```bash+grep -c "Use Sub-Assembly" packages/locale/locales/en/erp.po+# Expected: 1+```++## Task 15: Verification++**Depends on:** all+**Steps:**+1. `pnpm --filter @carbon/viewer test`; `pnpm exec turbo run typecheck --filter=erp --filter=mes --filter=@carbon/viewer`;+ `pnpm --filter erp test`; `pnpm run lint`.+2. `crbn up` (apps), log in with the `auth` skill, and walk acceptance criteria 1–13 of the spec+ in the browser (screenshots at 1440 and 1024 wide), per carbon-design Step 6.+3. Record results (pass/fail per criterion) in the spec changelog.+**Verify:**+```bash+pnpm --filter @carbon/viewer test+# Expected: all pass+```diff --git a/.ai/specs/2026-09-30-assembly-sub-assemblies.md b/.ai/specs/2026-09-30-assembly-sub-assemblies.mdnew file mode 100644index 0000000000..b1b21cce1a--- /dev/null+++ b/.ai/specs/2026-09-30-assembly-sub-assemblies.md@@ -0,0 +1,294 @@+# Assembly instructions: sub-assemblies++- **Status:** Approved 2026-09-30+- **Date:** 2026-09-30+- **Branch:** `feat/sub-assemblies`+- **Replaces:** `.ai/specs/2026-09-28-assembly-subassembly-staging.md` ("Build off to the side")+- **Research:** `.ai/research/2026-09-30-assembly-sub-assemblies-domain.md` (other tools),+ `.ai/research/2026-09-30-assembly-sub-assemblies-code.md` (current code)+- **Prototype (agreed look and flow):** `plans/sub-assemblies/prototype.html` in the parent folder+ (`/Users/aashu/work/carbon/plans/sub-assemblies/prototype.html`)++## Summary++"Build off to the side" lets an author point single steps at a later join step. It is a+per-step select, it is hard to see in the step list, and it cannot express "this sub-assembly+uses that one". It is replaced by **sub-assemblies**:++- Any step can be wrapped into a **sub-assembly**, and other steps are dragged into it. Its steps+ are numbered N.1, N.2 … and are built on their own: while they play, the 3D view shows only+ that sub-assembly's parts.+- A step can **use** a finished sub-assembly as one of its parts (4.2 uses 1). At that step the+ whole unit is carried in. A sub-assembly that nothing uses joins the main build right after+ its own steps.+- The author (ERP) and the operator (MES) can **open** a sub-assembly, so the step list and the+ player show only its steps.++Example used throughout (seeded-style demo, not customer data):++| # | Step | Notes |+|---|---|---|+| 1 | **Drive Train** (sub-assembly) | used in 4.2 |+| 1.1 | Place gear plate | shown on its own |+| 1.2 | Seat pinion gear | |+| 1.3 | Seat idler gear | |+| 2 | Place sole plate | main build |+| 3 | Fit heel counter | main build |+| 4 | **Heel Module** (sub-assembly) | nothing uses it → joins the main build |+| 4.1 | Place heel shell | shown on its own |+| 4.2 | Add drive train | **uses 1**: Drive Train is carried in as one piece |+| 5 | Snap on upper shell | main build |++## Goals++- An author builds the structure above in the ERP with drag and drop or menu actions, and sees+ it clearly in the step list (grouping, N.M numbering, "Uses 1" tags).+- Playback shows each sub-assembly on its own while it is built, and carries the finished unit+ in where it is used, in both ERP and MES.+- Author and operator can open a sub-assembly and see only its steps and only its timeline.+- Existing "Build off to the side" data keeps playing the same way after the upgrade.++## Non-goals++- **Nesting** a sub-assembly inside another. "Uses" covers chains of any length (research: linking+ is how flat tools express reuse); the list stays two levels (N, N.M).+- Using one sub-assembly in two places, or a quantity of sub-assemblies (×2).+- Planner (Rust) support: planning still sees one flat sequence (same as today's build-aside).+- Automatic detection of sub-assemblies from the plan (`assignStepPhases` stays unused).+- A job-table change: MES grouping is derived from instruction data (Q4).+- Dragging where the carried-in unit starts from; the glide start is computed as today.++## Design++### Terms++- **Sub-assembly:** a *header* step (an `assemblyInstructionStep` row) plus the steps whose+ `parentStepId` is the header (its *member* steps).+- **Uses:** a header's `usedInStepId` points at the (non-header) step that fits the finished unit.+- **Unused sub-assembly:** `usedInStepId` is NULL → the header itself is where it joins the main build.+- **Parts of a sub-assembly:** every part installed by its member steps, plus the parts of every+ sub-assembly one of its member steps uses (recursively).++### Data model++`assemblyInstructionStep` (existing):++- `parentStepId` (existing column, self-FK `ON DELETE SET NULL`) **changes meaning**:+ = the sub-assembly header this step belongs to. NULL = top level.+- **New:** `usedInStepId TEXT NULL`, self-FK to `assemblyInstructionStep("id")` `ON DELETE SET NULL`+ (deleting the using step makes the sub-assembly unused, i.e. it joins the main build), indexed.+ Only set on header rows.+- **New:** `isSubAssembly BOOLEAN NOT NULL DEFAULT false` — marks a header row, so a sub-assembly+ exists (and shows "Drag steps here") before any step is dragged in.+- `sortOrder` is **play order**, as today: a sub-assembly's member steps come directly before its+ header (contiguous), and everything downstream that reads steps flat by `sortOrder` (job sync,+ job creation, re-motion, MES) keeps working unchanged. The editor *displays* the header above+ its members; that is a view concern only.++A header is a row with `componentNodeIds = []`, `motion = none`, `planConfidence = 'manual'`,+`title` = the sub-assembly name. For an unused sub-assembly its `instructionText`/`camera` describe+the join ("Place the heel module on the sole plate").++Rules (one pure validator, `validateSubAssemblies(steps)` in `@carbon/viewer`, used by the ERP+service on every structural write and by the UI to offer only valid actions):++1. A header's members directly precede it in `sortOrder` (contiguous).+2. No nesting: a member step cannot be a header, and a header has no `parentStepId`.+3. `usedInStepId` is only set on headers; it points at a non-header step of the same instruction+ that comes **after** the header in `sortOrder` and is not one of its own members.+4. A step may use several sub-assemblies; a sub-assembly is used by at most one step (column).+5. A header with no members is allowed (just created, "Drag steps here").++Migration (`pnpm db:migrate:new assembly-sub-assemblies`):++1. Add `usedInStepId` + FK + index.+2. Convert build-aside data (Q2): for each join step J with staged steps S (rows whose+ `parentStepId` = J): insert a header H (`title` 'Sub-Assembly', `usedInStepId` = J,+ `parentStepId` NULL, `planConfidence` 'manual', same instruction/company/audit), set every S's+ `parentStepId` = H, and renumber the instruction's `sortOrder` so S (in their current order)+ followed by H sit at the position of the last S. Playback is equivalent: the group is built on+ its own and carried in at J.+3. Regenerate types; `packages/jobs/manifests/schema.json` refreshes via `db:check:backups`.++### Viewer (`packages/viewer`)++New pure module `subassembly.ts` (unit-tested), replacing `staging.ts`:++- `buildSubAssemblyPlan(steps)` → per step: its header (if any), its number (`"1"`, `"1.2"`), whether+ it is a header, whether it plays (member steps and main steps always; a header only when unused),+ the **isolation set** for member steps (parts of its sub-assembly), and for each step the list of+ sub-assemblies it **carries in** (its own `uses` plus, for an unused header, itself).+- `validateSubAssemblies(steps)` (rules 1–5), `subAssemblyPartIds(steps, headerId)`.++`AssemblyStep` gains `parentStepId?: string | null` and `usedInStepId?: string | null`;+`joinStepId` is removed. `AssemblyPlayer` changes:++- **Isolation.** While a member step is active, only its sub-assembly's parts render. Implemented+ like the existing focus set (ancestors kept visible, `AssemblyPlayer.tsx:1252-1266`) but not+ cleared by playback, and the camera frames the isolated parts' bounds instead of the whole model+ (`getAssemblyBox` → union of member bounds when isolated).+- **Carry-in.** At a step that carries sub-assemblies in, their parts are added to the step's moving+ parts (today's join merge, `displaySteps` 356-369) and glide in before the step's insertion+ (keep `prependGlide`, `motion.ts:595-626`). A header row that does not play (used sub-assembly)+ gets no timeline segment.+- **Scope.** New optional prop `scopeStepIds?: string[]`: the timeline, counter and prev/next only+ cover those steps (used for "open a sub-assembly"); installed state still comes from the full+ `steps`, so earlier parts render correctly.+- **Pill.** While isolated, the player shows a top-centre pill "Sub-Assembly 1 · Drive Train —+ shown on its own" (and "Uses 1 · Drive Train" at a carry-in step), using the existing+ "Planning motion…" pill styling. Strings come in as props (the viewer has no Lingui).+- Delete all staging code listed in the code research §1 and `staging.ts`/tests.++### ERP authoring (`apps/erp/.../ui/Assemblies`, `routes/x+/assembly+`)++Designed with the carbon-design skill; archetype: document workspace (Explorer | 3D | Properties),+sibling = today's assembly editor. Look and flow per the prototype.++**Step list (Explorer)**+- Header row: grip, chevron (collapse), number, boxes tile (`LuBoxes`), name (`font-medium`) with a+ muted line "Sub-Assembly · used in 4.2" or "Sub-Assembly · joins main build", parts count, status,+ ⋮. Member rows are indented with a thin rail; numbers N.M. A step that uses a sub-assembly shows a+ small outline tag "Uses 1" (click selects that sub-assembly).+- **Open** a sub-assembly (⋮ "Open Sub-Assembly", or double-click the header): the list shows a+ back bar "← All steps · Sub-Assembly 1 · Drive Train" and only its member steps; the player is+ scoped to them. State is the URL param `?subAssembly=<headerId>`; the `$id` route gets a+ `shouldRevalidate` that skips search-param-only changes (code research §2).+- Drag and drop moves to **dnd-kit** (keyboard sensor, 8px pointer threshold, translated+ announcements; exemplar `modules/items/ui/Parts/ConfigurationParameters.tsx`): reorder at top level,+ drag a step onto/into a sub-assembly (joins it), drag a member out (leaves it), reorder members.+ Headers move with their members. Saves through the existing order route, whose payload grows a+ `parentStepId` per step; the service validates with `validateSubAssemblies` and renormalizes.+- Row ⋮ menu: "Make Sub-Assembly" (wraps the step, Q1), "Move Into ▸ {sub-assemblies}",+ "Move Out of Sub-Assembly", "Delete Step". Header ⋮: "Open Sub-Assembly", "Ungroup" (members+ return to the top level in place), "Delete Sub-Assembly" (confirm; deletes header and members).+- The "Built aside" icon and the regenerate warning go away.++**Properties**+- Header selected: "Sub-Assembly N" eyebrow + status; Name; Steps list (click to select);+ "Used in" select (valid using steps per rule 3, or "Main build (after its last step)"); for an+ unused sub-assembly also Instruction + Camera for the join; Ungroup / Delete Sub-Assembly.+- Step selected: Components section gains a "Use Sub-Assembly" button (menu of sub-assemblies with+ why one is unavailable: "This step is part of it", "Used in 4.2 — moves here"); a used+ sub-assembly shows as a component row (boxes tile, name, "Sub-Assembly 1 · 3 parts", Open).+- "Step N of M" reads the display number ("Step 4.2").+- The "Build off to the side" playback row is removed.++**Services / routes** (`production.service.ts`, `production.models.ts`, `routes/x+/assembly+`)+- `makeAssemblySubAssembly` (wrap a step: insert header after it, set its `parentStepId`) —+ route `$id.sub-assemblies.new.tsx`.+- `updateAssemblySubAssembly` (name, `usedInStepId`) — route `$id.sub-assemblies.$stepId.tsx`.+- `ungroupAssemblySubAssembly`, `deleteAssemblySubAssembly` (Kysely transaction) — routes+ `$id.sub-assemblies.$stepId.ungroup.tsx`, `$id.sub-assemblies.$stepId.delete.tsx`.+- `updateAssemblyInstructionStepOrder` accepts `{ id: { sortOrder, parentStepId } }` and validates+ in its transaction; its build-aside `afterUpdate` is removed.+- `copyAssemblyInstructionAsVersion` remaps `usedInStepId` like `parentStepId`.+- `toViewerStep` maps `parentStepId`/`usedInStepId`.+- All writes: `production` update permission, instruction must be Draft (existing lock), `companyId`+ scoped. Remove `updateAssemblyStepJoin`, its route, validator, path helper; regenerate the MCP digest.++**Rename** the component-list "Subassembly" (assembly units, "Plan as one component") to+**"Component Group"** in all copy of `AssemblyBomTree.tsx` (strings in code research §6), wrapping+every string in Lingui. Data model and routes unchanged.++### Job steps and MES++- **Job sync / job creation:** unchanged flat copy by `sortOrder`, except **header rows are not+ copied as job steps** (they are not a build action to record). Both `syncAssemblyInstructionToOperation`+ and `insertAssemblyDataForJobOperation` skip rows that have members; a synced job step whose+ instruction row became a header is removed by the existing stale-marker cleanup.+- **MES playback:** `getAssemblyPlaybackByOperationId` selects `parentStepId`, `usedInStepId`; the+ shared player does isolation and carry-in.+- **MES step bar (Q4):** the bar lists top-level items: main job steps plus one entry per+ sub-assembly (grouping derived from each job step's `assemblyInstructionStepId` → instruction+ `parentStepId`; hand-authored job steps stay top level). Tapping a sub-assembly swaps the bar to+ its steps with a back bar "← All steps · Sub-Assembly 1 · Drive Train" (URL `?subAssembly=`), and+ the player plays its steps. A sub-assembly entry shows done when all its steps are recorded.+ Record/complete logic is unchanged (it counts job steps, and headers are not job steps).+ Touch-first sizing per the MES rules.+- Known v1 limit: because an unused header is not a job step, MES never pins the player to its+ join segment. The unit is simply in place from the next top-level step on (installed state comes+ from the full step list); the join glide is only seen in the ERP and in continuous playback.++### Docs, glossary, AGENTS.md, locale++- `docs/content/docs/reference/assembly-instructions.mdx` and `mes.mdx`: replace the build-aside+ section with a "Sub-assemblies" section; glossary: replace `assembly-step-build-aside` with+ `assembly-sub-assembly`.+- Update `packages/viewer/AGENTS.md`, `apps/erp/app/modules/production/AGENTS.md`.+- Mark the 2026-09-28 staging spec as superseded.+- All new copy through Lingui; `pnpm lingui:extract` + `pnpm translate`.++## Design decisions++| Decision | Choice | Why |+|---|---|---|+| Nesting | None; "uses" link instead | User's model (4.2 uses 1); chains work without nested UI; research §"Implication" |+| Where membership lives | Existing `parentStepId` (header id) | Already FK'd, `ON DELETE SET NULL`, remapped by version copy |+| Where "uses" lives | New `usedInStepId` on the header | One place per sub-assembly (used once); a step can use several |+| Stored order | `sortOrder` = play order (members, then header) | Every flat consumer (sync, job creation, re-motion, MES) keeps working |+| Header row | A real step row, no parts | "Make Sub-Assembly" wraps a step (Q1); unused header carries the join instruction/camera |+| Unused sub-assembly | Joins the main build at its header | Agreed with user; no dangling units |+| Isolation | Focus-style set + isolated camera bounds | Hidden-set approach blanks assembly groups and frames the whole model (code research §1) |+| Carry-in motion | Reuse join merge + glide | Proven in build-aside; keeps insertion motion editable |+| "Open" state | URL `?subAssembly=` + `shouldRevalidate` | Carbon: URL is state; avoid re-running the heavy loader |+| Drag and drop | dnd-kit with keyboard sensor | framer `Reorder` is flat and has no keyboard; nested precedent exists |+| Validation | One pure validator in `@carbon/viewer` | Same rule in UI (offer valid actions) and server (enforce) |+| Headers in job steps | Not copied | Not a build action; MES derives groups from instruction data (Q4) |+| Old data | Converted by migration (Q2) | Playback stays equivalent |+| Component-list rename | "Component Group" | Frees "Sub-Assembly" for steps (user decision) |+| Regenerate | Unchanged rule: refused while any manual step exists (headers are manual) | Regenerate would wipe authored structure |++## Acceptance criteria++Author the example above on a Draft instruction with a model (the seeded demo assembly works).++1. On step "Place gear plate", ⋮ → Make Sub-Assembly: a sub-assembly "Sub-Assembly" appears with+ the step inside as 1.1; renaming it "Drive Train" in Properties saves and shows in the list.+2. Drag "Seat pinion gear" and "Seat idler gear" into Drive Train: they become 1.2 and 1.3. Drag one+ out: it returns to the top level. Keyboard: focus a grip, Space, arrows, Space does the same moves.+3. Build Heel Module (4.1, 4.2). On 4.2, Components → Use Sub-Assembly → "1 · Drive Train": 4.2 shows+ a "Uses 1" tag, the Drive Train header reads "used in 4.2", and 4.2's components list a Drive Train row.+ The menu shows Heel Module disabled ("This step is part of it").+4. Reload: structure, names, and the use link are unchanged.+5. Play from the start in the ERP: during 1.1–1.3 only Drive Train parts are visible and framed, with+ the "Sub-Assembly 1 · Drive Train" pill; 2–3 show the main build; during 4.1–4.2 only Heel Module+ parts; at 4.2 the finished Drive Train glides in as one piece; then Heel Module joins the main+ build; then step 5. Build/Focus/Full views still behave.+6. Open Heel Module (double-click header): the list shows only 4.1 and 4.2 under a back bar, the+ timeline has 2 segments, and `?subAssembly=` is in the URL; Back restores the full list.+7. Trying to use Drive Train on step 1.2 (inside itself) or on a step before its header is not offered;+ a forged request to the route is rejected with an error toast.+8. Ungroup Heel Module: 4.1/4.2 become top-level steps in place. Delete Sub-Assembly (confirmed)+ removes Drive Train and its steps; 4.2 loses its tag.+9. New Version: the copy has the same structure and use link, pointing at the new version's steps.+10. Sync the instruction to a job operation: no job step is created for the Drive Train or Heel Module+ headers; member steps are created in play order.+11. MES: the step bar shows 2, 3, 5 and the two sub-assemblies; tapping Drive Train shows 1.1–1.3 with+ a back bar and plays them isolated; after recording all three, the Drive Train entry shows done.+12. An instruction that had "Build off to the side" before the migration plays equivalently after it+ (group built on its own, carried in at the old join step) and shows as a sub-assembly.+13. The component list says "Component Group" everywhere "Subassembly"/"Plan as one component" was.+14. `pnpm --filter @carbon/viewer test` (incl. new `subassembly.test.ts`), ERP and MES typecheck,+ `pnpm run lint`, and `lingui:extract` pass; no "Build off to the side" string remains.++## Open questions (resolved)++- [x] Q1. What does "Make Sub-Assembly" do to the chosen step? — **Answer:** Wrap it: a new+ sub-assembly is created and the step moves inside as N.1, keeping its parts/motion/instruction.+- [x] Q2. What happens to existing "Build off to the side" data? — **Answer:** Convert it by+ migration into sub-assemblies used at the old join step; playback stays equivalent.+- [x] Q3. How deep can sub-assemblies nest? — **Answer:** They don't nest; a step *uses* a finished+ sub-assembly (4.2 uses 1). Chains work through uses. (User's own model, after competitor research.)+- [x] Q4. How much reaches MES? — **Answer (user's proposal):** a flat bar of top-level items where a+ sub-assembly is one entry; opening it swaps the bar to its steps with a back bar and plays them.+- [x] Q5. Can the user step into a sub-assembly? — **Answer:** Yes — list and player show only its+ steps (ERP and MES).+- [x] Q6. Naming clash with the component-list "Subassembly"? — **Answer:** Rename that one to+ "Component Group".+- [x] Q7. What happens to a sub-assembly nothing uses? — **Answer:** It joins the main build right+ after its own steps.++## Changelog++- 2026-09-30: first draft after Q1–Q7.+- 2026-09-30: approved. Planning added `isSubAssembly` (an empty header is otherwise indistinguishable from a normal step).diff --git a/apps/erp/app/modules/production/production.models.ts b/apps/erp/app/modules/production/production.models.tsindex 016d430ea0..026b18ddf0 100644--- a/apps/erp/app/modules/production/production.models.ts+++ b/apps/erp/app/modules/production/production.models.ts@@ -1474,9 +1474,14 @@ export const assemblyInstructionStepHiddenComponentsValidator = z.object({hiddenComponentNodeIds: jsonField(z.array(z.string()))});-/** Sub-assembly staging: the later step this one is built aside for. Empty = built in place. */-export const assemblyInstructionStepJoinValidator = z.object({- joinStepId: zfd.text(z.string().optional())+export const assemblySubAssemblyNewValidator = z.object({+ stepId: z.string().min(1)+});++/** Empty `usedInStepId` = the sub-assembly joins the main build. */+export const assemblySubAssemblyUpdateValidator = z.object({+ title: zfd.text(z.string().optional()),+ usedInStepId: zfd.text(z.string().optional())});export const assemblyStepComponentsReassignValidator = zdiff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.tsindex 08d24f7e5f..5aeecf85d5 100644--- a/apps/erp/app/modules/production/production.service.ts+++ b/apps/erp/app/modules/production/production.service.ts@@ -10,6 +10,7 @@ import { raiseMoment } from "@carbon/lib/workflows";import { getLogger } from "@carbon/logger";import type { JSONContent } from "@carbon/react";import {+ datetime,groupBy,nameSimilarity,scrapAllowance,@@ -27,7 +28,7 @@ import {describeStep,groupComponentNodeIds,indexAssemblyGraph,- joinTargets+ validateSubAssemblies} from "@carbon/viewer";import { parseDate } from "@internationalized/date";import type { PostgrestError, SupabaseClient } from "@supabase/supabase-js";@@ -6864,6 +6865,9 @@ export async function copyAssemblyInstructionAsVersion(parentStepId: step.parentStepId? (stepIdMap.get(step.parentStepId) ?? null): null,+ usedInStepId: step.usedInStepId+ ? (stepIdMap.get(step.usedInStepId) ?? null)+ : null,// Lineage across versions: a step copied from v1 roots at v1's step, and// a v3 copied from v2 still roots at v1 — the chain stays flat so// COALESCE("rootStepId", "id") identifies the group at any depth.@@ -7470,55 +7474,322 @@ export async function updateAssemblyStepHiddenComponents(.single();}-// Sub-assembly staging: `parentStepId` = the later JOIN step this step is built-// aside for (NULL = built in place). Which links are allowed is `joinTargets`,-// the one rule the select and playback share.-export async function updateAssemblyStepJoin(- client: SupabaseClient<Database>,- data: {+// Sub-assemblies: a header row (`isSubAssembly`) plus the steps whose+// `parentStepId` is the header, stored directly before it (play order). A+// header's `usedInStepId` is the later step that fits the finished unit.+// Every structural write loads the instruction's steps, applies the change in+// memory, checks `validateSubAssemblies` (the same rules the editor offers+// actions by) and writes the new order in one transaction.++type StepStructureRow = {+ id: string;+ sortOrder: number;+ componentNodeIds: string[];+ parentStepId: string | null;+ usedInStepId: string | null;+ isSubAssembly: boolean;+};++async function loadStepStructure(+ db: Kysely<KyselyDatabase>,+ companyId: string,+ assemblyInstructionId: string+): Promise<StepStructureRow[]> {+ // Locking the instruction row serializes every structural write on it, so+ // each one validates against the order the previous one committed.+ const instruction = await db+ .selectFrom("assemblyInstruction")+ .select("status")+ .where("id", "=", assemblyInstructionId)+ .where("companyId", "=", companyId)+ .forUpdate()+ .executeTakeFirst();+ if (!instruction) throw new Error("Assembly instruction not found");+ if (instruction.status !== "Draft") {+ throw new Error("Only draft instructions can be edited");+ }++ return db+ .selectFrom("assemblyInstructionStep")+ .select([+ "id",+ "sortOrder",+ "componentNodeIds",+ "parentStepId",+ "usedInStepId",+ "isSubAssembly"+ ])+ .where("assemblyInstructionId", "=", assemblyInstructionId)+ .where("companyId", "=", companyId)+ .orderBy("sortOrder", "asc")+ .execute();+}++function assertValidStepStructure(steps: StepStructureRow[]) {+ const [violation] = validateSubAssemblies(steps);+ if (violation) throw new Error(violation.message);+}++/**+ * Write `next` (the instruction's steps in their new play order) as sortOrder+ * 1..n plus each row's sub-assembly links. Only rows that changed are touched.+ */+async function saveStepStructure(+ db: Kysely<KyselyDatabase>,+ args: {+ companyId: string;+ userId: string;+ assemblyInstructionId: string;+ before: StepStructureRow[];+ next: StepStructureRow[];+ }+) {+ const beforeById = new Map(args.before.map((step) => [step.id, step]));+ const changed = args.next+ .map((step, index) => ({ ...step, sortOrder: index + 1 }))+ .filter((step) => {+ const was = beforeById.get(step.id);+ return (+ !was ||+ was.sortOrder !== step.sortOrder ||+ was.parentStepId !== step.parentStepId ||+ was.usedInStepId !== step.usedInStepId+ );+ });+ if (changed.length === 0) return;++ const values = sql.join(+ changed.map(+ (step) =>+ sql`(${step.id}::text, ${step.sortOrder}::double precision, ${step.parentStepId}::text, ${step.usedInStepId}::text)`+ )+ );+ const { rows } = await sql<{ id: string }>`+ UPDATE "assemblyInstructionStep" AS t+ SET "sortOrder" = v."sortOrder",+ "parentStepId" = v."parentStepId",+ "usedInStepId" = v."usedInStepId",+ "updatedBy" = ${args.userId},+ "updatedAt" = ${datetime.timestamp()}+ FROM (VALUES ${values}) AS v("id", "sortOrder", "parentStepId", "usedInStepId")+ WHERE t."id" = v."id"+ AND t."companyId" = ${args.companyId}+ AND t."assemblyInstructionId" = ${args.assemblyInstructionId}+ RETURNING t."id"+ `.execute(db);+ if (rows.length !== changed.length) {+ throw new Error("Some steps are not on this instruction");+ }+}++/** Wrap a top-level step into a new sub-assembly; the step becomes its first step. */+export async function makeAssemblySubAssembly(+ db: Kysely<KyselyDatabase>,+ args: {assemblyInstructionId: string;stepId: string;- joinStepId: string | null;companyId: string;- updatedBy: string;+ userId: string;}) {- const steps = await client- .from("assemblyInstructionStep")- .select("id, parentStepId")- .eq("assemblyInstructionId", data.assemblyInstructionId)- .eq("companyId", data.companyId)- .order("sortOrder", { ascending: true });- if (steps.error) return { data: null, error: steps.error };+ const { assemblyInstructionId, stepId, companyId, userId } = args;+ return db.transaction().execute(async (trx) => {+ const before = await loadStepStructure(+ trx,+ companyId,+ assemblyInstructionId+ );+ const step = before.find((s) => s.id === stepId);+ if (!step) throw new Error("Step not found");+ if (step.isSubAssembly) {+ throw new Error("This step is already a sub-assembly");+ }+ if (step.parentStepId) {+ throw new Error("This step is already in a sub-assembly");+ }- const rows = steps.data.map((row) => ({- id: row.id,- joinStepId: row.parentStepId- }));- if (!rows.some((row) => row.id === data.stepId)) {- return { data: null, error: { message: "Step not found" } };- }- if (- data.joinStepId &&- !joinTargets(rows, data.stepId).targets.includes(data.joinStepId)- ) {- return {- data: null,- error: { message: "That step can't be the join step for this one" }+ const header = await trx+ .insertInto("assemblyInstructionStep")+ .values({+ assemblyInstructionId,+ companyId,+ sortOrder: step.sortOrder,+ isSubAssembly: true,+ createdBy: userId+ })+ .returning(["id", "sortOrder"])+ .executeTakeFirstOrThrow();++ const headerRow: StepStructureRow = {+ id: header.id,+ sortOrder: header.sortOrder,+ componentNodeIds: [],+ parentStepId: null,+ usedInStepId: null,+ isSubAssembly: true};+ const next = before.flatMap((s) =>+ s.id === stepId ? [{ ...s, parentStepId: header.id }, headerRow] : [s]+ );+ assertValidStepStructure(next);+ await saveStepStructure(trx, {+ companyId,+ userId,+ assemblyInstructionId,+ before: [...before, headerRow],+ next+ });+ return header.id;+ });+}++/**+ * Rename a sub-assembly and/or set the step that uses it (`null` = it joins the+ * main build). `undefined` leaves a field unchanged.+ */+export async function updateAssemblySubAssembly(+ db: Kysely<KyselyDatabase>,+ args: {+ assemblyInstructionId: string;+ headerId: string;+ title?: string;+ usedInStepId?: string | null;+ companyId: string;+ userId: string;}+) {+ const { assemblyInstructionId, headerId, companyId, userId } = args;+ return db.transaction().execute(async (trx) => {+ const before = await loadStepStructure(+ trx,+ companyId,+ assemblyInstructionId+ );+ const header = before.find((s) => s.id === headerId);+ if (!header?.isSubAssembly) throw new Error("Sub-assembly not found");- return client- .from("assemblyInstructionStep")- .update({- parentStepId: data.joinStepId,- updatedBy: data.updatedBy,- updatedAt: new Date().toISOString()- })- .eq("id", data.stepId)- .eq("companyId", data.companyId)- .select("id")- .single();+ if (args.usedInStepId !== undefined) {+ assertValidStepStructure(+ before.map((s) =>+ s.id === headerId ? { ...s, usedInStepId: args.usedInStepId! } : s+ )+ );+ }++ await trx+ .updateTable("assemblyInstructionStep")+ .set({+ ...(args.title !== undefined ? { title: args.title } : {}),+ ...(args.usedInStepId !== undefined+ ? { usedInStepId: args.usedInStepId }+ : {}),+ updatedBy: userId,+ updatedAt: new Date().toISOString()+ })+ .where("id", "=", headerId)+ .where("companyId", "=", companyId)+ .where("assemblyInstructionId", "=", assemblyInstructionId)+ .execute();+ });+}++/** Remove the sub-assembly but keep its steps: they return to the top level in place. */+export async function ungroupAssemblySubAssembly(+ db: Kysely<KyselyDatabase>,+ args: {+ assemblyInstructionId: string;+ headerId: string;+ companyId: string;+ userId: string;+ }+) {+ const { assemblyInstructionId, headerId, companyId, userId } = args;+ return db.transaction().execute(async (trx) => {+ const before = await loadStepStructure(+ trx,+ companyId,+ assemblyInstructionId+ );+ const header = before.find((s) => s.id === headerId);+ if (!header?.isSubAssembly) throw new Error("Sub-assembly not found");++ const next = before+ .filter((s) => s.id !== headerId)+ .map((s) =>+ s.parentStepId === headerId ? { ...s, parentStepId: null } : s+ );+ assertValidStepStructure(next);++ await trx+ .deleteFrom("assemblyInstructionStep")+ .where("id", "=", headerId)+ .where("companyId", "=", companyId)+ .where("assemblyInstructionId", "=", assemblyInstructionId)+ .execute();+ await saveStepStructure(trx, {+ companyId,+ userId,+ assemblyInstructionId,+ before,+ next+ });+ });+}++/** Delete a sub-assembly together with its steps. */+export async function deleteAssemblySubAssembly(+ db: Kysely<KyselyDatabase>,+ args: {+ assemblyInstructionId: string;+ headerId: string;+ companyId: string;+ userId: string;+ }+) {+ const { assemblyInstructionId, headerId, companyId, userId } = args;+ return db.transaction().execute(async (trx) => {+ const before = await loadStepStructure(+ trx,+ companyId,+ assemblyInstructionId+ );+ const header = before.find((s) => s.id === headerId);+ if (!header?.isSubAssembly) throw new Error("Sub-assembly not found");++ const removed = new Set(+ before+ .filter((s) => s.id === headerId || s.parentStepId === headerId)+ .map((s) => s.id)+ );+ // Deleting a step that used another sub-assembly makes that one join the+ // main build (FK ON DELETE SET NULL); mirror it before validating.+ const next = before+ .filter((s) => !removed.has(s.id))+ .map((s) =>+ s.usedInStepId && removed.has(s.usedInStepId)+ ? { ...s, usedInStepId: null }+ : s+ );+ assertValidStepStructure(next);++ await trx+ .deleteFrom("assemblyInstructionStep")+ .where("id", "in", [...removed])+ .where("companyId", "=", companyId)+ .where("assemblyInstructionId", "=", assemblyInstructionId)+ .execute();+ await saveStepStructure(trx, {+ companyId,+ userId,+ assemblyInstructionId,+ before: before.map((s) =>+ s.usedInStepId && removed.has(s.usedInStepId)+ ? { ...s, usedInStepId: null }+ : s+ ),+ next+ });+ });}// Assign a set of component instances to a target step. `duplicate` unions them@@ -7703,39 +7974,54 @@ export async function updateAssemblyInstructionStepStatus(.single();}+/**+ * Drag-sort of the step list: each step's new position and sub-assembly+ * (`parentStepId`, `null` = top level; omitted = unchanged). The result must+ * satisfy the sub-assembly rules or nothing is written.+ */export async function updateAssemblyInstructionStepOrder(db: Kysely<KyselyDatabase>,companyId: string,userId: string,assemblyInstructionId: string,- updates: { id: string; sortOrder: number }[]+ updates: { id: string; sortOrder: number; parentStepId?: string | null }[]) {- return updateSortOrder(db, {- table: "assemblyInstructionStep",- column: "sortOrder",- companyId,- userId,- parent: { column: "assemblyInstructionId", id: assemblyInstructionId },- updates,- // A step built aside must still come before its join step; a reorder that- // breaks that turns it back into a built-in-place step.- afterUpdate: async (trx) => {- await trx- .updateTable("assemblyInstructionStep as s")- .set({ parentStepId: null })- .where("s.companyId", "=", companyId)- .where("s.assemblyInstructionId", "=", assemblyInstructionId)- .where("s.parentStepId", "is not", null)- .where(({ exists, selectFrom }) =>- exists(- selectFrom("assemblyInstructionStep as j")- .select("j.id")- .whereRef("j.id", "=", "s.parentStepId")- .whereRef("j.sortOrder", "<=", "s.sortOrder")- )- )- .execute();+ return db.transaction().execute(async (trx) => {+ const before = await loadStepStructure(+ trx,+ companyId,+ assemblyInstructionId+ );+ const updateById = new Map(updates.map((update) => [update.id, update]));+ if (updateById.size !== updates.length) {+ throw new Error("A step appears twice in the new order");+ }+ if (updates.some((update) => !before.some((s) => s.id === update.id))) {+ throw new Error("Some steps are not on this instruction");}++ const next = before+ .map((step) => {+ const update = updateById.get(step.id);+ if (!update) return step;+ return {+ ...step,+ sortOrder: update.sortOrder,+ parentStepId:+ update.parentStepId === undefined+ ? step.parentStepId+ : update.parentStepId+ };+ })+ .sort((a, b) => a.sortOrder - b.sortOrder);+ assertValidStepStructure(next);+ await saveStepStructure(trx, {+ companyId,+ userId,+ assemblyInstructionId,+ before,+ next+ });});}@@ -8875,6 +9161,10 @@ export async function syncAssemblyInstructionToOperation(]).where("assemblyInstructionId", "=", instruction.id).where("companyId", "=", companyId)+ // A sub-assembly (header) row is not a build action to record: it is+ // never a job step, and a job step synced from a row that has since+ // become a header is removed as stale below.+ .where("isSubAssembly", "=", false).orderBy("sortOrder", "asc").execute();if (sourceSteps.length === 0) {@@ -9560,7 +9850,9 @@ export function toViewerStep(step: AssemblyInstructionStepRow): AssemblyStep {instructionText: step.instructionText,componentNodeIds: step.componentNodeIds ?? [],hiddenComponentNodeIds: step.hiddenComponentNodeIds ?? [],- joinStepId: step.parentStepId ?? null,+ isSubAssembly: step.isSubAssembly,+ parentStepId: step.parentStepId ?? null,+ usedInStepId: step.usedInStepId ?? null,motion: motion.success ? motion.data : { type: "none" },camera: camera.success ? camera.data : null,fastener: fastener.success ? fastener.data : null,diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsxindex a685549d15..c63ab4f4b4 100644--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyBomTree.tsx@@ -27,8 +27,12 @@ import {VStack} from "@carbon/react";import type { AssemblyGraphIndex, ComponentGroup } from "@carbon/viewer";-import { describeStep, groupComponentNodeIds } from "@carbon/viewer";-import { Trans, useLingui } from "@lingui/react/macro";+import {+ buildSubAssemblyPlan,+ describeStep,+ groupComponentNodeIds+} from "@carbon/viewer";+import { Plural, Trans, useLingui } from "@lingui/react/macro";import { useVirtualizer } from "@tanstack/react-virtual";import type { MouseEvent, ReactNode } from "react";import { useCallback, useEffect, useMemo, useRef, useState } from "react";@@ -278,14 +282,20 @@ export default function AssemblyBomTree({[units]);+ // Display numbers ("4", "1.2"): steps are numbered within their sub-assembly.+ const stepNumbers = useMemo(+ () => buildSubAssemblyPlan(steps.map(toViewerStep)),+ [steps]+ );+/** groupKey → steps that install instances of the component */const stepUsage = useMemo(() => {const usage = new Map<string,- { stepId: string; index: number; title: string }[]+ { stepId: string; number: string; title: string }[]>();if (!graphIndex) return usage;- steps.forEach((step, index) => {+ steps.forEach((step) => {const seen = new Set<string>();for (const nodeId of step.componentNodeIds ?? []) {const group = graphIndex.groupByNodeId.get(nodeId);@@ -294,16 +304,16 @@ export default function AssemblyBomTree({const entry = usage.get(group.key) ?? [];entry.push({stepId: step.id,- index,+ number: stepNumbers.get(step.id)?.number ?? "",title:describeStep(toViewerStep(step), graphIndex, namedUnits) ??- "Untitled step"+ t`Untitled step`});usage.set(group.key, entry);}});return usage;- }, [steps, graphIndex, namedUnits]);+ }, [steps, stepNumbers, graphIndex, namedUnits, t]);// A subassembly's member instances, grouped by component type — so it expands// into "Screw ×4 / Board ×1" child rows the same way a multi-quantity component does.@@ -383,17 +393,20 @@ export default function AssemblyBomTree({conflictTitles: string[];} | null>(null);+ // Parts go on ordinary steps only: a sub-assembly's parts come from its steps.const stepList = useMemo(() =>- steps.map((step, index) => ({- id: step.id,- index,- title:- describeStep(toViewerStep(step), graphIndex, namedUnits) ??- step.title ??- "Untitled step"- })),- [steps, graphIndex, namedUnits]+ steps+ .filter((step) => !step.isSubAssembly)+ .map((step) => ({+ id: step.id,+ number: stepNumbers.get(step.id)?.number ?? "",+ title:+ describeStep(toViewerStep(step), graphIndex, namedUnits) ??+ step.title ??+ t`Untitled step`+ })),+ [steps, stepNumbers, graphIndex, namedUnits, t]);const submitAssign = useCallback(@@ -443,7 +456,7 @@ export default function AssemblyBomTree({?.componentNodeIds?.some((nodeId) => selectedSet.has(nodeId)) ??false))- .map((entry) => `${entry.index + 1}. ${entry.title}`);+ .map((entry) => `${entry.number}. ${entry.title}`);if (conflictTitles.length === 0) {// Not on any other step — nothing to move, just add it here.submitAssign(targetStepId, "duplicate");@@ -655,7 +668,7 @@ export default function AssemblyBomTree({onClick={() => onPickAssignStep(entry.id)}><span className="text-muted-foreground tabular-nums">- {entry.index + 1}.+ {entry.number}.</span><span className="min-w-0 flex-1 truncate">{entry.title}@@ -686,14 +699,16 @@ export default function AssemblyBomTree({<Tooltip><TooltipTrigger asChild><IconButton- aria-label="Plan as one component"+ aria-label={t`Group as One Component`}icon={<LuMerge />}variant="ghost"size="sm"onClick={() => setShowCreateUnit(true)}/></TooltipTrigger>- <TooltipContent>Plan as one component</TooltipContent>+ <TooltipContent>+ <Trans>Group as One Component</Trans>+ </TooltipContent></Tooltip>)}{hasSelection && canHide && (@@ -898,7 +913,7 @@ export default function AssemblyBomTree({onClick={() => setShowCreateUnit(true)}><LuMerge className="mr-2 h-4 w-4" />- Plan as one component+ <Trans>Group as One Component</Trans></ContextMenuItem><ContextMenuSeparator /><ContextMenuItem@@ -960,7 +975,7 @@ export default function AssemblyBomTree({onUpdated={() => {setEditingUnit(null);toast.success(- "Subassembly updated — re-run motion planning to apply the change"+ t`Component group updated — re-run motion planning to apply the change`);}}/>@@ -1137,7 +1152,7 @@ function UnitListRow({/>{canUpdate && (<IconButton- aria-label={t`Edit subassembly ${unit.name}`}+ aria-label={t`Edit component group ${unit.name}`}icon={<LuPencil />}variant="ghost"size="sm"@@ -1150,7 +1165,7 @@ function UnitListRow({)}{canDelete && (<IconButton- aria-label={t`Delete subassembly ${unit.name}`}+ aria-label={t`Delete component group ${unit.name}`}icon={<LuTrash />}variant="ghost"size="sm"@@ -1260,6 +1275,7 @@ function CreateUnitModal({onClose: () => void;onCreated: () => void;}) {+ const { t } = useLingui();const fetcher = useFetcher<{ success: boolean }>();const [name, setName] = useState("");@@ -1290,18 +1306,22 @@ function CreateUnitModal({><ModalContent><ModalHeader>- <ModalTitle>Plan as one component</ModalTitle>+ <ModalTitle>+ <Trans>Group as One Component</Trans>+ </ModalTitle></ModalHeader><ModalBody><VStack spacing={3} className="w-full"><p className="text-sm text-muted-foreground">- The planner treats these {componentNodeIds.length} component- {componentNodeIds.length === 1 ? "" : "s"} as one rigid body — one- step in the instructions. Re-run the plan to apply.+ <Plural+ value={componentNodeIds.length}+ one="The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply."+ other="The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply."+ /></p><Input- aria-label="Subassembly name"- placeholder="Subassembly name"+ aria-label={t`Component group name`}+ placeholder={t`Component group name`}value={name}autoFocusonChange={(nameEvent) => setName(nameEvent.target.value)}@@ -1315,7 +1335,7 @@ function CreateUnitModal({isLoading={fetcher.state !== "idle"}onClick={onSubmit}>- Create+ <Trans>Create</Trans></Button></VStack></ModalBody>@@ -1347,6 +1367,7 @@ function EditUnitModal({onClose: () => void;onUpdated: () => void;}) {+ const { t } = useLingui();const fetcher = useFetcher<{ success: boolean }>();const [name, setName] = useState(unit.name);const [memberIds, setMemberIds] = useState<string[]>(@@ -1405,13 +1426,15 @@ function EditUnitModal({><ModalContent><ModalHeader>- <ModalTitle>Edit subassembly</ModalTitle>+ <ModalTitle>+ <Trans>Edit Component Group</Trans>+ </ModalTitle></ModalHeader><ModalBody><VStack spacing={3} className="w-full"><Input- aria-label="Subassembly name"- placeholder="Subassembly name"+ aria-label={t`Component group name`}+ placeholder={t`Component group name`}value={name}autoFocusonChange={(nameEvent) => setName(nameEvent.target.value)}@@ -1422,12 +1445,15 @@ function EditUnitModal({<VStack spacing={1} className="w-full"><div className="flex w-full items-center justify-between"><span className="text-xs text-muted-foreground">- {memberIds.length} component- {memberIds.length === 1 ? "" : "s"} in this subassembly+ <Plural+ value={memberIds.length}+ one="# component in this group"+ other="# components in this group"+ /></span>{addableIds.length > 0 && (<Button variant="secondary" size="sm" onClick={addSelected}>- Add {addableIds.length} selected+ <Trans>Add {addableIds.length} selected</Trans></Button>)}</div>@@ -1449,7 +1475,7 @@ function EditUnitModal({×{group.count}</Badge><IconButton- aria-label={`Remove ${group.name} from ${unit.name}`}+ aria-label={t`Remove ${group.name} from ${unit.name}`}icon={<LuX />}variant="ghost"size="sm"@@ -1461,14 +1487,16 @@ function EditUnitModal({) : (<p className="text-xs text-muted-foreground">{graphIndex- ? "No components — add a selection or cancel."- : "The model is still loading."}+ ? t`No components — add a selection or cancel.`+ : t`The model is still loading.`}</p>)}</VStack><p className="text-xs text-muted-foreground">- Changing the components redefines the subassembly. Re-run Motion- Planning to apply the change to the steps.+ <Trans>+ Changing the components redefines the group. Re-run Motion+ Planning to apply the change to the steps.+ </Trans></p><ButtonclassName="self-end"@@ -1478,7 +1506,7 @@ function EditUnitModal({isLoading={isSubmitting}onClick={onSubmit}>- Save+ <Trans>Save</Trans></Button></VStack></ModalBody>@@ -1512,7 +1540,7 @@ function ComponentRow({selection: SelectionState;hidden: SelectionState;isExpanded: boolean;- usage: { stepId: string; index: number; title: string }[];+ usage: { stepId: string; number: string; title: string }[];mapping: AssemblyComponentMapping | null;bomMaterials: FlattenedBomMaterial[];bomByItemId: Map<string, FlattenedBomMaterial>;@@ -1667,7 +1695,7 @@ function ThisStepIcon() {);}-/** A subassembly the motion planner found on its own (not authored). */+/** A component group the motion planner found on its own (not authored). */function DetectedIcon() {const { t } = useLingui();return (@@ -1829,7 +1857,7 @@ function ComponentDetails({onSelectStep}: {group: ComponentGroup;- usage: { stepId: string; index: number; title: string }[];+ usage: { stepId: string; number: string; title: string }[];mapping: AssemblyComponentMapping | null;bomMaterials: FlattenedBomMaterial[];canMap: boolean;@@ -1943,7 +1971,7 @@ function ComponentDetails({onClick={() => onSelectStep(entry.stepId)}><span className="text-muted-foreground tabular-nums mr-1">- {entry.index + 1}.+ {entry.number}.</span>{entry.title}</button>diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsxindex b8aef75ef7..7a4d2275ab 100644--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionExplorer.tsx@@ -5,8 +5,6 @@ import {DropdownMenuContent,DropdownMenuIcon,DropdownMenuItem,- DropdownMenuRadioGroup,- DropdownMenuRadioItem,DropdownMenuTrigger,IconButton,Input,@@ -21,11 +19,6 @@ import {TabsContent,TabsList,TabsTrigger,- Tooltip,- TooltipContent,- TooltipTrigger,- TruncatedTooltipText,- useDebounce,useInterval,VStack} from "@carbon/react";@@ -35,20 +28,12 @@ import {groupComponentNodeIds,synthesizeFallbackMotion} from "@carbon/viewer";-import { Trans, useLingui } from "@lingui/react/macro";-import type { DragControls } from "framer-motion";-import { MotionConfig, Reorder, useDragControls } from "framer-motion";-import type { ReactNode } from "react";+import { useLingui } from "@lingui/react/macro";import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";import {- LuBoxes,LuCirclePlus,- LuEllipsisVertical,- LuGripVertical,- LuHand,LuSearch,LuSparkles,- LuTrash,LuTriangleAlert,LuWaypoints} from "react-icons/lu";@@ -59,15 +44,10 @@ import {useSearchParams} from "react-router";import { Empty } from "~/components";-import { ProcedureStepTypeIcon } from "~/components/Icons";import { ConfirmDelete } from "~/components/Modals";import { usePermissions, useRealtime } from "~/hooks";import { path } from "~/utils/path";-import {- assemblyStepStatuses,- isAssemblyPlanRunning,- stepPlanWarningsSchema-} from "../../production.models";+import { isAssemblyPlanRunning } from "../../production.models";import type { FlattenedBomMaterial } from "../../production.service";import { toViewerStep } from "../../production.service";import type {@@ -76,12 +56,7 @@ import type {AssemblyUnit} from "../../types";import AssemblyBomTree from "./AssemblyBomTree";-import type { AssemblyStepStatusValue } from "./AssemblyStepStatus";-import {- AssemblyStepStatusIcon,- normalizeStepStatus,- useStepStatusLabel-} from "./AssemblyStepStatus";+import AssemblyStepList from "./AssemblyStepList";type AssemblyInstructionExplorerProps = {steps: AssemblyInstructionStepRow[];@@ -145,10 +120,10 @@ function AssemblyInstructionExplorer({const { id } = useParams();if (!id) throw new Error("Could not find id");+ const { t } = useLingui();const permissions = usePermissions();const revalidator = useRevalidator();- const sortOrderFetcher = useFetcher<{ success: boolean }>();const newStepFetcher = useFetcher<{ success: boolean; id?: string }>();const generateFetcher = useFetcher<{success: boolean;@@ -241,7 +216,7 @@ function AssemblyInstructionExplorer({} else if (generateFetcher.data?.success) {setIsAwaitingPlan(false);}- }, [generateFetcher.data]);+ }, [generateFetcher.data, setIsAwaitingPlan]);const [showRerunConfirm, setShowRerunConfirm] = useState(false);const [showRegenerateConfirm, setShowRegenerateConfirm] = useState(false);@@ -336,7 +311,13 @@ function AssemblyInstructionExplorer({if (steps.length > 0 || !permissions.can("update", "production")) return;submitGenerate("generate");// eslint-disable-next-line react-hooks/exhaustive-deps- }, [searchParams]);+ }, [+ searchParams,+ permissions.can,+ setSearchParams,+ steps.length,+ submitGenerate+ ]);// The user's click is waiting on a plan. When it lands, generate the steps —// no second click. If the wait stalls with nothing running (the click raced@@ -366,47 +347,12 @@ function AssemblyInstructionExplorer({generateFetcher,rerunPlanFetcher.state,submitGenerate,- id+ setIsAwaitingPlan]);const [stepToDelete, setStepToDelete] =useState<AssemblyInstructionStepRow | null>(null);- const [sortOrder, setSortOrder] = useState<string[]>(- steps.map((step) => step.id)- );- // A local reorder saves on a 2500ms debounce; until it lands, a revalidation- // still carries the PRE-reorder server order. Track the pending save so the- // sync effect below doesn't snap the user's drag back.- const orderSavePendingRef = useRef(false);-- useEffect(() => {- setSortOrder((prev) => {- const nextIds = steps.map((step) => step.id);- const prevSet = new Set(prev);- const sameSet =- prev.length === nextIds.length &&- nextIds.every((id) => prevSet.has(id));- if (sameSet) {- // Same steps, possibly reordered upstream. Keep the local order while a- // save is in flight; otherwise adopt the server order (source of truth).- const savePending =- orderSavePendingRef.current || sortOrderFetcher.state !== "idle";- if (savePending) return prev;- const sameOrder = nextIds.every((id, i) => prev[i] === id);- return sameOrder ? prev : nextIds;- }- // Steps added or removed — resync to the server list.- return nextIds;- });- }, [steps, sortOrderFetcher.state]);-- useEffect(() => {- if (sortOrderFetcher.state === "idle" && sortOrderFetcher.data?.success) {- orderSavePendingRef.current = false;- }- }, [sortOrderFetcher.state, sortOrderFetcher.data]);-// Select the newly created stepuseEffect(() => {if (newStepFetcher.data?.success && newStepFetcher.data.id) {@@ -414,11 +360,6 @@ function AssemblyInstructionExplorer({}}, [newStepFetcher.data, onSelectStep]);- const stepMap = useMemo(- () => new Map(steps.map((step) => [step.id, step])),- [steps]- );-// Authored subassembly units, normalized for step-title derivation: a step// whose components are exactly a unit is titled by its name, not by every component.const namedUnits = useMemo(@@ -437,23 +378,27 @@ function AssemblyInstructionExplorer({[steps]);+ // A sub-assembly is named by the author (it installs nothing to derive a+ // name from); a step derives one from its components when left blank.const stepTitles = useMemo(() =>new Map(steps.map((step) => [step.id,- describeStep(- viewerStepMap.get(step.id) ?? toViewerStep(step),- graphIndex,- namedUnits- ) ?? "Untitled step"+ step.isSubAssembly+ ? step.title || t`Sub-Assembly`+ : (describeStep(+ viewerStepMap.get(step.id) ?? toViewerStep(step),+ graphIndex,+ namedUnits+ ) ?? t`Untitled step`)])),- [steps, viewerStepMap, graphIndex, namedUnits]+ [steps, viewerStepMap, graphIndex, namedUnits, t]);const [search, setSearch] = useState("");- const isSearching = search.trim().length > 0;+ const needle = search.trim().toLowerCase();/** stepId → lowercase haystack of title, component names, and fastener spec */const searchText = useMemo(() => {@@ -481,39 +426,6 @@ function AssemblyInstructionExplorer({return map;}, [steps, viewerStepMap, graphIndex, stepTitles]);- const visibleOrder = useMemo(() => {- if (!isSearching) return sortOrder;- const needle = search.trim().toLowerCase();- return sortOrder.filter((stepId) =>- searchText.get(stepId)?.includes(needle)- );- }, [sortOrder, isSearching, search, searchText]);-- const updateSortOrder = useDebounce(- (updates: Record<string, number>) => {- const formData = new FormData();- formData.append("updates", JSON.stringify(updates));- sortOrderFetcher.submit(formData, {- method: "post",- action: path.to.assemblyInstructionStepOrder(id)- });- },- 2500,- true- );-- const onReorder = (newOrder: string[]) => {- if (isDisabled || isSearching) return;-- const updates: Record<string, number> = {};- newOrder.forEach((stepId, index) => {- updates[stepId] = index + 1;- });- orderSavePendingRef.current = true;- setSortOrder(newOrder);- updateSortOrder(updates);- };-const onAddStep = () => {const formData = new FormData();formData.append("assemblyInstructionId", id);@@ -580,41 +492,18 @@ function AssemblyInstructionExplorer({spacing={0}>{steps.length > 0 ? (- <MotionConfig reducedMotion="user">- <Reorder.Group- axis="y"- values={visibleOrder}- onReorder={onReorder}- className="w-full"- disabled={isDisabled || isSearching}- >- {visibleOrder.map((stepId) => {- const step = stepMap.get(stepId);- if (!step) return null;- return (- <DraggableStepItem- key={stepId}- stepId={stepId}- isDisabled={isDisabled || isSearching}- >- {(dragControls) => (- <StepItem- step={step}- title={stepTitles.get(stepId) ?? "Untitled step"}- index={sortOrder.indexOf(stepId)}- isDisabled={isDisabled || isSearching}- isSelected={stepId === selectedStepId}- dragControls={dragControls}- onSelect={() => onSelectStep(stepId)}- onPreview={() => onPreviewStep(stepId)}- onDelete={() => setStepToDelete(step)}- />- )}- </DraggableStepItem>- );- })}- </Reorder.Group>- </MotionConfig>+ <AssemblyStepList+ steps={steps}+ viewerStepMap={viewerStepMap}+ stepTitles={stepTitles}+ search={needle}+ searchText={searchText}+ selectedStepId={selectedStepId}+ isDisabled={isDisabled}+ onSelectStep={onSelectStep}+ onPreviewStep={onPreviewStep}+ onDeleteStep={setStepToDelete}+ />) : permissions.can("update", "production") ? (<div className="flex h-full w-full flex-col items-center justify-center px-6 py-10"><div className="flex w-full max-w-[280px] flex-col items-center text-center">@@ -701,11 +590,6 @@ function AssemblyInstructionExplorer({) : (<Empty />)}- {steps.length > 0 && isSearching && visibleOrder.length === 0 && (- <p className="w-full px-4 py-3 text-center text-xs text-muted-foreground">- No steps match "{search.trim()}"- </p>- )}</VStack>{steps.length > 0 && (<div className="flex w-full flex-none items-center gap-2 border-t border-border p-4">@@ -833,14 +717,6 @@ function AssemblyInstructionExplorer({motion plan — titles, descriptions, and other edits on thecurrent steps are lost. Refused if any step is manually authoredor marked Done.- {steps.some((step) => step.parentStepId) && (- <>- {" "}- <Trans>- Regenerating removes "Build off to the side" settings.- </Trans>- </>- )}</ModalDescription></ModalHeader><ModalFooter>@@ -930,265 +806,4 @@ function AssemblyInstructionExplorer({);}-function StepStatusControl({- stepId,- status,- isDisabled-}: {- stepId: string;- status: AssemblyStepStatusValue;- isDisabled: boolean;-}) {- const { id } = useParams();- if (!id) throw new Error("Could not find id");-- const { t } = useLingui();- const statusLabel = useStepStatusLabel();- const fetcher = useFetcher<{ success: boolean }>();-- // Optimistic: show the in-flight status while the fetcher is busy- const displayed =- fetcher.state !== "idle" && fetcher.formData- ? normalizeStepStatus(fetcher.formData.get("status") as string | null)- : status;- const label = statusLabel(displayed);-- const onSelect = (value: string) => {- if (value === status) return;- const formData = new FormData();- formData.append("status", value);- fetcher.submit(formData, {- method: "post",- action: path.to.assemblyInstructionStepStatus(id, stepId)- });- };-- // Published/archived instructions can't be edited: the icon alone, named by its tooltip- if (isDisabled) {- return (- <Tooltip>- <TooltipTrigger asChild>- <span- role="img"- aria-label={t`Step status: ${label}`}- className="inline-flex size-6 shrink-0 items-center justify-center"- >- <AssemblyStepStatusIcon status={displayed} />- </span>- </TooltipTrigger>- <TooltipContent>{label}</TooltipContent>- </Tooltip>- );- }-- return (- <DropdownMenu>- <Tooltip>- <TooltipTrigger asChild>- <DropdownMenuTrigger asChild>- <button- type="button"- aria-label={t`Step status: ${label}. Change status`}- className="inline-flex size-6 shrink-0 items-center justify-center rounded-md hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-[0.96]"- onClick={(e) => e.stopPropagation()}- >- <AssemblyStepStatusIcon status={displayed} />- </button>- </DropdownMenuTrigger>- </TooltipTrigger>- <TooltipContent>{label}</TooltipContent>- </Tooltip>- <DropdownMenuContent- align="end"- className="min-w-[8rem]"- onClick={(e) => e.stopPropagation()}- >- <DropdownMenuRadioGroup value={displayed} onValueChange={onSelect}>- {assemblyStepStatuses.map((option) => (- <DropdownMenuRadioItem key={option} value={option}>- <span className="flex items-center gap-2">- <AssemblyStepStatusIcon status={option} className="size-3.5" />- {statusLabel(option)}- </span>- </DropdownMenuRadioItem>- ))}- </DropdownMenuRadioGroup>- </DropdownMenuContent>- </DropdownMenu>- );-}--function DraggableStepItem({- stepId,- isDisabled,- children-}: {- stepId: string;- isDisabled: boolean;- children: (dragControls: DragControls) => ReactNode;-}) {- const dragControls = useDragControls();- return (- <Reorder.Item- key={stepId}- value={stepId}- dragListener={false}- dragControls={dragControls}- >- {children(dragControls)}- </Reorder.Item>- );-}--type StepItemProps = {- step?: AssemblyInstructionStepRow;- title: string;- index: number;- isDisabled: boolean;- isSelected: boolean;- dragControls?: DragControls;- onSelect: () => void;- onPreview: () => void;- onDelete: () => void;-};--function StepItem({- step,- title,- index,- isDisabled,- isSelected,- dragControls,- onSelect,- onPreview,- onDelete-}: StepItemProps) {- const permissions = usePermissions();- const { t } = useLingui();- if (!step) return null;-- const componentCount = step.componentNodeIds?.length ?? 0;- const stepType = step.type ?? "Task";-- const needsSupport = (step.warnings as { needsSupport?: boolean } | null)- ?.needsSupport;- const flagged =- stepPlanWarningsSchema.safeParse(step.warnings).data?.flagged === true;-- return (- <div- className={cn(- "group relative flex w-full cursor-pointer select-none items-center gap-1.5 border-b border-border bg-card py-3 pl-1.5 pr-2.5 hover:bg-accent/30",- isSelected && "bg-accent/40 hover:bg-accent/40"- )}- onClick={onSelect}- onDoubleClick={onPreview}- title={t`Double-click to play this step`}- >- {isSelected && (- <span- aria-hidden- className="pointer-events-none absolute inset-y-0 left-0 w-0.5 bg-primary"- />- )}- <IconButton- aria-label={t`Drag handle`}- icon={<LuGripVertical />}- variant="ghost"- size="sm"- disabled={isDisabled}- className="size-6 shrink-0 cursor-grab text-muted-foreground/50 hover:text-muted-foreground active:cursor-grabbing"- onPointerDown={(e) => {- if (!isDisabled && dragControls) dragControls.start(e);- }}- style={{ touchAction: "none" }}- />- <span className="w-5 shrink-0 text-right text-xs tabular-nums text-muted-foreground">- {index + 1}- </span>- {/* Only a non-default type earns an icon — the same Task icon on every row said nothing */}- {stepType !== "Task" && (- <ProcedureStepTypeIcon- type={stepType}- className="size-3.5 shrink-0 text-muted-foreground"- />- )}- <TruncatedTooltipText- tooltip={title}- className="min-w-0 flex-1 truncate text-sm text-foreground"- >- {title}- </TruncatedTooltipText>- {flagged && (- <RowIcon label={t`No collision-free path`}>- <LuTriangleAlert className="size-3.5 text-amber-500" />- </RowIcon>- )}- {needsSupport && (- <RowIcon- label={t`A part in this step may tip once placed — consider a fixture or a second person.`}- >- <LuHand className="size-3.5 text-amber-500" />- </RowIcon>- )}- {step.parentStepId && (- <RowIcon- label={t`Built off to the side, then carried in at its join step`}- >- <LuBoxes className="size-3.5 text-muted-foreground" />- </RowIcon>- )}- <span className="shrink-0 text-xs tabular-nums text-muted-foreground">- ×{componentCount}- </span>- <StepStatusControl- stepId={step.id}- status={normalizeStepStatus(step.status)}- isDisabled={isDisabled}- />- {!isDisabled && (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <IconButton- aria-label={t`More options`}- size="sm"- variant="ghost"- className="size-6 shrink-0 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 data-[state=open]:opacity-100"- icon={<LuEllipsisVertical />}- onClick={(e) => e.stopPropagation()}- />- </DropdownMenuTrigger>- <DropdownMenuContent>- <DropdownMenuItem- destructive- disabled={!permissions.can("delete", "production")}- onClick={(e) => {- e.stopPropagation();- onDelete();- }}- >- <DropdownMenuIcon icon={<LuTrash />} />- <Trans>Delete Step</Trans>- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- )}- </div>- );-}--/** A small meaning-carrying icon in a step row, named by its tooltip. */-function RowIcon({ label, children }: { label: string; children: ReactNode }) {- return (- <Tooltip>- <TooltipTrigger asChild>- <span role="img" aria-label={label} className="inline-flex shrink-0">- {children}- </span>- </TooltipTrigger>- <TooltipContent>{label}</TooltipContent>- </Tooltip>- );-}-export default memo(AssemblyInstructionExplorer);diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionProperties.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionProperties.tsxindex a27479574a..3410fa7f9b 100644--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionProperties.tsx+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionProperties.tsx@@ -13,6 +13,11 @@ import {Badge,Button,cn,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuTrigger,HStack,IconButton,Label,@@ -31,19 +36,27 @@ import { Editor } from "@carbon/react/Editor";import type {AssemblyGraphIndex,AssemblyStep,- NamedUnit+ NamedUnit,+ SubAssemblyInfo+} from "@carbon/viewer";+import {+ buildSubAssemblyPlan,+ describeStep,+ groupComponentNodeIds,+ subAssemblyPartIds,+ usableSubAssemblies} from "@carbon/viewer";-import { describeStep, groupComponentNodeIds } from "@carbon/viewer";import { Plural, Trans, useLingui } from "@lingui/react/macro";-import { memo, useEffect, useMemo, useState } from "react";+import { memo, useCallback, useEffect, useMemo, useState } from "react";import {+ LuBoxes,LuCirclePlus,LuEyeOff,LuMousePointerClick,LuTriangleAlert,LuX} from "react-icons/lu";-import { useFetcher, useParams } from "react-router";+import { useFetcher, useParams, useSearchParams } from "react-router";import { UnitOfMeasure } from "~/components/Form";import { ProcedureStepTypeIcon } from "~/components/Icons";import { useImageUpload, usePermissions } from "~/hooks";@@ -63,18 +76,15 @@ import type {} from "../../types";import PlaybackRow from "./AssemblyPlaybackRow";import { ComponentColorSwatch } from "./AssemblyStepBom";-import AssemblyStepJoin from "./AssemblyStepJoin";+import { SUB_ASSEMBLY_PARAM } from "./AssemblyStepList";import AssemblyStepMaterials from "./AssemblyStepMaterials";import AssemblyStepSlides from "./AssemblyStepSlides";import { AssemblyStepStatus, normalizeStepStatus } from "./AssemblyStepStatus";import AssemblyStepTools from "./AssemblyStepTools";+import AssemblySubAssemblyProperties from "./AssemblySubAssemblyProperties";type AssemblyInstructionPropertiesProps = {step: AssemblyInstructionStepRow | null;- /** Zero-based index of the selected step; null when nothing is selected */- stepIndex: number | null;- /** Total step count, for the "Step N of M" header */- stepCount: number;draftComponentNodeIds: string[] | null;/** Current viewer/Components-panel selection — marks the matching component rows */selectedNodeIds: string[];@@ -100,15 +110,13 @@ type AssemblyInstructionPropertiesProps = {onStopEditMotion: () => void;onSetCamera: (stepId: string) => void;onClearCamera: (stepId: string) => void;- /** Every step of the instruction, in order — for the "Build off to the side" select */+ /** Every step of the instruction, in play order — numbering and sub-assemblies */viewerSteps: AssemblyStep[];onSelectStep: (stepId: string) => void;};const AssemblyInstructionProperties = ({step,- stepIndex,- stepCount,draftComponentNodeIds,selectedNodeIds,isAddingComponents,@@ -137,13 +145,46 @@ const AssemblyInstructionProperties = ({if (!instructionId) throw new Error("Could not find id");const { t } = useLingui();+ const subPlan = useMemo(+ () => buildSubAssemblyPlan(viewerSteps),+ [viewerSteps]+ );+ const viewerStepsById = useMemo(+ () => new Map(viewerSteps.map((viewerStep) => [viewerStep.id, viewerStep])),+ [viewerSteps]+ );+ const titleOf = useCallback(+ (stepId: string) => {+ const viewerStep = viewerStepsById.get(stepId);+ if (!viewerStep) return "";+ if (subPlan.get(stepId)?.isHeader) {+ return viewerStep.title || t`Sub-Assembly`;+ }+ return describeStep(viewerStep, graphIndex, units) ?? t`Untitled step`;+ },+ [viewerStepsById, subPlan, graphIndex, units, t]+ );+ const info = step ? subPlan.get(step.id) : undefined;+ const isHeader = info?.isHeader === true;+ const number = info?.number ?? null;+ const memberCount = step+ ? viewerSteps.filter((viewerStep) => viewerStep.parentStepId === step.id)+ .length+ : 0;+ const partCount = useMemo(+ () =>+ step && isHeader ? subAssemblyPartIds(viewerSteps, step.id).length : 0,+ [step, isHeader, viewerSteps]+ );+const componentCount = (draftComponentNodeIds ?? step?.componentNodeIds ?? []).length;- const title =- (step &&- (step.title ||- describeStep(toStepDescriptor(step), graphIndex, units))) ||- t`Untitled step`;+ const title = isHeader+ ? step?.title || t`Sub-Assembly`+ : (step &&+ (step.title ||+ describeStep(toStepDescriptor(step), graphIndex, units))) ||+ t`Untitled step`;const planFlag = useMemo(() => (step ? getPlanFlag(step.warnings, graphIndex) : null),[step, graphIndex]@@ -176,9 +217,11 @@ const AssemblyInstructionProperties = ({<VStack spacing={1} className="w-full min-w-0"><HStack className="w-full min-w-0 items-center justify-between gap-2"><Subheading variant="heavy" className="shrink-0 tabular-nums">- {stepIndex != null- ? t`Step ${stepIndex + 1} of ${stepCount}`- : t`Step`}+ {isHeader+ ? t`Sub-Assembly ${number}`+ : number+ ? t`Step ${number}`+ : t`Step`}</Subheading><AssemblyStepStatus status={normalizeStepStatus(step.status)} /></HStack>@@ -186,13 +229,21 @@ const AssemblyInstructionProperties = ({{title}</h3><HStack className="w-full min-w-0 items-center gap-1.5 text-xs text-muted-foreground tabular-nums">- <span>- <Plural- value={componentCount}- one="# component"- other="# components"- />- </span>+ {isHeader ? (+ <span>+ <Plural value={memberCount} one="# step" other="# steps" />+ {" · "}+ <Plural value={partCount} one="# part" other="# parts" />+ </span>+ ) : (+ <span>+ <Plural+ value={componentCount}+ one="# component"+ other="# components"+ />+ </span>+ )}{planFlag && (<><span aria-hidden>·</span>@@ -207,7 +258,20 @@ const AssemblyInstructionProperties = ({</Subheading>)}</div>- {step ? (+ {step && isHeader ? (+ <AssemblySubAssemblyProperties+ key={step.id}+ step={step}+ viewerSteps={viewerSteps}+ subPlan={subPlan}+ titleOf={titleOf}+ isDisabled={isDisabled}+ itemMentions={itemMentions}+ onSelectStep={onSelectStep}+ onSetCamera={onSetCamera}+ onClearCamera={onClearCamera}+ />+ ) : step ? (<Tabs defaultValue="details" className="w-full px-4 pb-2 pt-3"><TabsList className="w-full mb-4"><TabsTrigger className="flex-1" value="details">@@ -248,6 +312,8 @@ const AssemblyInstructionProperties = ({onSetCamera={onSetCamera}onClearCamera={onClearCamera}viewerSteps={viewerSteps}+ subPlan={subPlan}+ titleOf={titleOf}onSelectStep={onSelectStep}/></TabsContent>@@ -369,6 +435,8 @@ function StepForm({onSetCamera,onClearCamera,viewerSteps,+ subPlan,+ titleOf,onSelectStep}: {step: AssemblyInstructionStepRow;@@ -391,6 +459,8 @@ function StepForm({onSetCamera: (stepId: string) => void;onClearCamera: (stepId: string) => void;viewerSteps: AssemblyStep[];+ subPlan: Map<string, SubAssemblyInfo>;+ titleOf: (stepId: string) => string;onSelectStep: (stepId: string) => void;}) {const { id: instructionId } = useParams();@@ -544,6 +614,11 @@ function StepForm({/><StepComponentsEditor+ stepId={step.id}+ viewerSteps={viewerSteps}+ subPlan={subPlan}+ titleOf={titleOf}+ onSelectStep={onSelectStep}componentNodeIds={componentNodeIds}graphIndex={graphIndex}selectedNodeIds={selectedNodeIds}@@ -636,14 +711,6 @@ function StepForm({</HStack>)}</PlaybackRow>- <AssemblyStepJoin- stepId={step.id}- steps={viewerSteps}- graphIndex={graphIndex}- units={units}- isDisabled={isDisabled}- onSelectStep={onSelectStep}- /></div></VStack>@@ -670,6 +737,11 @@ function StepForm({* autosave immediately.*/function StepComponentsEditor({+ stepId,+ viewerSteps,+ subPlan,+ titleOf,+ onSelectStep,componentNodeIds,graphIndex,selectedNodeIds,@@ -680,6 +752,11 @@ function StepComponentsEditor({onStopAddComponents,onRemoveComponents}: {+ stepId: string;+ viewerSteps: AssemblyStep[];+ subPlan: Map<string, SubAssemblyInfo>;+ titleOf: (stepId: string) => string;+ onSelectStep: (stepId: string) => void;componentNodeIds: string[];graphIndex: AssemblyGraphIndex | null;selectedNodeIds: string[];@@ -701,30 +778,126 @@ function StepComponentsEditor({);const { t } = useLingui();+ const { id: instructionId } = useParams();+ if (!instructionId) throw new Error("Could not find id");+ const [, setSearchParams] = useSearchParams();+ const subAssemblyFetcher = useFetcher<{ success: boolean }>();++ // Sub-assemblies this step fits as one piece, and the ones it could.+ const usedSubAssemblies = viewerSteps+ .filter(+ (viewerStep) =>+ subPlan.get(viewerStep.id)?.isHeader &&+ viewerStep.usedInStepId === stepId+ )+ .map((header) => ({+ headerId: header.id,+ number: subPlan.get(header.id)?.number ?? "",+ title: titleOf(header.id),+ partCount: subAssemblyPartIds(viewerSteps, header.id).length+ }));+ const useOptions = usableSubAssemblies(viewerSteps, stepId).map((option) => {+ const header = viewerSteps.find((s) => s.id === option.headerId);+ const usedIn = header?.usedInStepId ?? null;+ const note =+ option.reason === "own"+ ? t`This step is part of it`+ : option.reason === "before"+ ? t`Built after this step`+ : usedIn === stepId+ ? t`Used in this step`+ : usedIn+ ? t`Used in ${subPlan.get(usedIn)?.number ?? ""} — moves here`+ : null;+ return {+ headerId: option.headerId,+ label: `${subPlan.get(option.headerId)?.number ?? ""} · ${titleOf(+ option.headerId+ )}`,+ note,+ isDisabled: option.reason !== null || usedIn === stepId+ };+ });+ const setUsedIn = (headerId: string, usedInStepId: string) => {+ const formData = new FormData();+ formData.append("usedInStepId", usedInStepId);+ subAssemblyFetcher.submit(formData, {+ method: "post",+ action: path.to.assemblySubAssembly(instructionId, headerId)+ });+ };+ const openSubAssembly = (headerId: string) =>+ setSearchParams(+ (prev) => {+ const next = new URLSearchParams(prev);+ next.set(SUB_ASSEMBLY_PARAM, headerId);+ return next;+ },+ { preventScrollReset: true }+ );return (<VStack spacing={2} className="w-full">- <HStack className="w-full justify-between">- <Subheading as="h4" variant="heavy" className="tabular-nums">+ <HStack className="w-full flex-wrap justify-between gap-y-2">+ <Subheading+ as="h4"+ variant="heavy"+ className="shrink-0 whitespace-nowrap tabular-nums"+ ><Trans>Components</Trans> · {componentNodeIds.length}</Subheading>{!isDisabled && (- <Button- variant={isAddingComponents ? "primary" : "secondary"}- size="sm"- leftIcon={isAddingComponents ? undefined : <LuCirclePlus />}- onClick={() =>- isAddingComponents- ? onStopAddComponents()- : onStartAddComponents()- }- >- {isAddingComponents ? (- <Trans>Done Adding</Trans>- ) : (- <Trans>Add</Trans>+ <HStack spacing={1} className="ml-auto">+ {useOptions.length > 0 && (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="secondary" size="sm" leftIcon={<LuBoxes />}>+ <Trans>Use Sub-Assembly</Trans>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="end"+ className="min-w-[16rem] max-w-[20rem]"+ >+ <DropdownMenuLabel>+ <Trans>Use a finished sub-assembly in this step</Trans>+ </DropdownMenuLabel>+ {useOptions.map((option) => (+ <DropdownMenuItem+ key={option.headerId}+ disabled={option.isDisabled}+ onClick={() => setUsedIn(option.headerId, stepId)}+ >+ <div className="min-w-0">+ <span className="block truncate">{option.label}</span>+ {option.note && (+ <span className="block truncate text-xs text-muted-foreground">+ {option.note}+ </span>+ )}+ </div>+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>)}- </Button>+ <Button+ variant={isAddingComponents ? "primary" : "secondary"}+ size="sm"+ leftIcon={isAddingComponents ? undefined : <LuCirclePlus />}+ onClick={() =>+ isAddingComponents+ ? onStopAddComponents()+ : onStartAddComponents()+ }+ >+ {isAddingComponents ? (+ <Trans>Done Adding</Trans>+ ) : (+ <Trans>Add</Trans>+ )}+ </Button>+ </HStack>)}</HStack>{isAddingComponents && (@@ -735,10 +908,60 @@ function StepComponentsEditor({</Trans></p>)}+ {usedSubAssemblies.length > 0 && (+ <ul className="w-full divide-y divide-border rounded-lg border border-border">+ {usedSubAssemblies.map((used) => (+ <li+ key={used.headerId}+ className="group flex w-full items-center gap-2 px-2 py-1.5 text-sm"+ >+ <span className="inline-flex size-[22px] shrink-0 items-center justify-center rounded-md border border-border bg-card text-muted-foreground">+ <LuBoxes className="size-3.5" />+ </span>+ <button+ type="button"+ className="min-w-0 flex-1 text-left focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"+ onClick={() => onSelectStep(used.headerId)}+ >+ <span className="block truncate font-medium">{used.title}</span>+ <span className="block truncate text-xs text-muted-foreground">+ <Trans>+ Sub-Assembly {used.number} ·{" "}+ <Plural+ value={used.partCount}+ one="# part"+ other="# parts"+ />+ </Trans>+ </span>+ </button>+ <Button+ variant="ghost"+ size="sm"+ onClick={() => openSubAssembly(used.headerId)}+ >+ <Trans>Open</Trans>+ </Button>+ {!isDisabled && (+ <IconButton+ aria-label={t`Stop using ${used.title} in this step`}+ icon={<LuX />}+ variant="ghost"+ size="sm"+ className="opacity-0 group-hover:opacity-100 focus:opacity-100"+ onClick={() => setUsedIn(used.headerId, "")}+ />+ )}+ </li>+ ))}+ </ul>+ )}{groups.length === 0 ? (- <p className="text-xs text-muted-foreground">- <Trans>No components yet</Trans>- </p>+ usedSubAssemblies.length === 0 && (+ <p className="text-xs text-muted-foreground">+ <Trans>No components yet</Trans>+ </p>+ )) : (<ul className="max-h-64 w-full divide-y divide-border overflow-y-auto rounded-lg border border-border scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">{groups.map((group) => {diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepJoin.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepJoin.tsxdeleted file mode 100644index 450222a170..0000000000--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepJoin.tsx+++ /dev/null@@ -1,157 +0,0 @@-import {- Button,- DropdownMenu,- DropdownMenuContent,- DropdownMenuRadioGroup,- DropdownMenuRadioItem,- DropdownMenuTrigger,- HStack,- LabelWithHelp-} from "@carbon/react";-import type {- AssemblyGraphIndex,- AssemblyStep,- NamedUnit-} from "@carbon/viewer";-import { describeStep, joinTargets } from "@carbon/viewer";-import { Trans, useLingui } from "@lingui/react/macro";-import type { ReactNode } from "react";-import { LuChevronDown } from "react-icons/lu";-import { useFetcher, useParams } from "react-router";-import { path } from "~/utils/path";-import PlaybackRow from "./AssemblyPlaybackRow";--type AssemblyStepJoinProps = {- stepId: string;- /** Every step of the instruction, in order */- steps: AssemblyStep[];- graphIndex: AssemblyGraphIndex | null;- units: NamedUnit[];- isDisabled: boolean;- onSelectStep: (stepId: string) => void;-};--/**- * "Build off to the side", one row of the step's Playback box: point this step- * at a later join step so its parts are built beside the model and carried in- * there. Autosaves like the step status. On a join step, lists the steps whose- * group it brings in.- */-export default function AssemblyStepJoin({- stepId,- steps,- graphIndex,- units,- isDisabled,- onSelectStep-}: AssemblyStepJoinProps) {- const { t } = useLingui();- const { id: instructionId } = useParams();- if (!instructionId) throw new Error("Could not find id");- const fetcher = useFetcher<{ success: boolean }>();-- const { targets, locked } = joinTargets(steps, stepId);- const numbered = steps.map((step, index) => ({- step,- number: index + 1,- title: describeStep(step, graphIndex, units) ?? t`Untitled step`- }));- const options = numbered.filter(({ step }) => targets.includes(step.id));- const broughtIn = numbered.filter(({ step }) => step.joinStepId === stepId);-- const saved = steps.find((step) => step.id === stepId)?.joinStepId ?? "";- const value =- fetcher.state !== "idle" && fetcher.formData- ? ((fetcher.formData.get("joinStepId") as string | null) ?? saved)- : saved;- const selected = numbered.find(({ step }) => step.id === value);- const shortLabel = selected ? t`Joins step ${selected.number}` : t`No`;-- const onChange = (next: string) => {- if (next === value) return;- const formData = new FormData();- formData.append("joinStepId", next);- fetcher.submit(formData, {- method: "post",- action: path.to.assemblyInstructionStepJoin(instructionId, stepId)- });- };-- let control: ReactNode;- if (locked === "base") {- control = (- <span className="text-xs text-muted-foreground">- <Trans>No, it's the base</Trans>- </span>- );- } else if (locked === "join") {- control = (- <HStack spacing={1} className="flex-wrap items-center text-xs">- <span className="text-muted-foreground">- <Trans>Brings in steps</Trans>- </span>- {broughtIn.map(({ step, number }) => (- <Button- key={step.id}- variant="link"- size="sm"- className="h-auto px-0.5 tabular-nums"- onClick={() => onSelectStep(step.id)}- >- {number}- </Button>- ))}- </HStack>- );- } else if (isDisabled) {- control = <span className="text-xs text-foreground">{shortLabel}</span>;- } else {- control = (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <button- type="button"- className="inline-flex h-6 max-w-[10rem] items-center gap-1 rounded-md border border-border bg-card px-2 text-xs text-foreground shadow-button-base hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"- >- <span className="truncate">{shortLabel}</span>- <LuChevronDown className="size-3 shrink-0 text-muted-foreground" />- </button>- </DropdownMenuTrigger>- <DropdownMenuContent- align="end"- className="min-w-[16rem] max-w-[20rem] max-h-72 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"- >- <DropdownMenuRadioGroup value={value} onValueChange={onChange}>- <DropdownMenuRadioItem value="">- <Trans>No, build in place</Trans>- </DropdownMenuRadioItem>- {options.map(({ step, number, title }) => {- const label = t`Joins step ${number}: ${title}`;- return (- <DropdownMenuRadioItem- key={step.id}- value={step.id}- title={label}- >- <span className="truncate">{label}</span>- </DropdownMenuRadioItem>- );- })}- </DropdownMenuRadioGroup>- </DropdownMenuContent>- </DropdownMenu>- );- }-- return (- <PlaybackRow- label={- <LabelWithHelp termId="assembly-step-build-aside" variant="inline">- <Trans>Build off to the side</Trans>- </LabelWithHelp>- }- >- {control}- </PlaybackRow>- );-}diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepList.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepList.tsxnew file mode 100644index 0000000000..416f1b7ef5--- /dev/null+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyStepList.tsx@@ -0,0 +1,1240 @@+import {+ Button,+ cn,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuIcon,+ DropdownMenuItem,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuTrigger,+ IconButton,+ Tooltip,+ TooltipContent,+ TooltipTrigger,+ TruncatedTooltipText+} from "@carbon/react";+import type { AssemblyStep, SubAssemblyInfo } from "@carbon/viewer";+import {+ buildSubAssemblyPlan,+ displayOrder,+ subAssemblyPartIds,+ validateSubAssemblies+} from "@carbon/viewer";+import type {+ Announcements,+ DragEndEvent,+ DragMoveEvent,+ DragOverEvent,+ DragStartEvent,+ KeyboardCoordinateGetter,+ UniqueIdentifier+} from "@dnd-kit/core";+import {+ DndContext,+ DragOverlay,+ KeyboardSensor,+ PointerSensor,+ useDroppable,+ useSensor,+ useSensors+} from "@dnd-kit/core";+import {+ arrayMove,+ SortableContext,+ sortableKeyboardCoordinates,+ useSortable,+ verticalListSortingStrategy+} from "@dnd-kit/sortable";+import { CSS } from "@dnd-kit/utilities";+import { Trans, useLingui } from "@lingui/react/macro";+import type { ReactNode } from "react";+import { useCallback, useEffect, useMemo, useState } from "react";+import { createPortal } from "react-dom";+import {+ LuArrowLeft,+ LuBoxes,+ LuChevronDown,+ LuCornerLeftUp,+ LuEllipsisVertical,+ LuFolderInput,+ LuGripVertical,+ LuHand,+ LuSquareArrowOutUpRight,+ LuTrash,+ LuTriangleAlert,+ LuUngroup+} from "react-icons/lu";+import { useFetcher, useParams, useSearchParams } from "react-router";+import { ProcedureStepTypeIcon } from "~/components/Icons";+import { ConfirmDelete } from "~/components/Modals";+import { usePermissions } from "~/hooks";+import { path } from "~/utils/path";+import {+ assemblyStepStatuses,+ stepPlanWarningsSchema+} from "../../production.models";+import type { AssemblyInstructionStepRow } from "../../types";+import type { AssemblyStepStatusValue } from "./AssemblyStepStatus";+import {+ AssemblyStepStatusIcon,+ normalizeStepStatus,+ useStepStatusLabel+} from "./AssemblyStepStatus";++/** The search param that opens a sub-assembly: the list and player show only its steps. */+export const SUB_ASSEMBLY_PARAM = "subAssembly";++/** Horizontal drag distance (px) that moves a step one level in or out. */+const INDENT = 24;+const DROP_ZONE_PREFIX = "drop:";++type StepLink = { id: string; parentStepId: string | null };+type Row = { stepId: string; depth: 0 | 1 };++// Up/Down reorder like any sortable list; Left/Right move a step out of or+// into the sub-assembly it sits next to (same as dragging sideways).+const coordinateGetter: KeyboardCoordinateGetter = (event, args) => {+ if (event.code === "ArrowRight" || event.code === "ArrowLeft") {+ event.preventDefault();+ const shift = event.code === "ArrowRight" ? INDENT : -INDENT;+ return {+ ...args.currentCoordinates,+ x: args.currentCoordinates.x + shift+ };+ }+ return sortableKeyboardCoordinates(event, args);+};++/** Display rows (header above its members) → stored play order (members before their header). */+function toPlayOrder(rows: Row[], isHeader: (id: string) => boolean) {+ const order: StepLink[] = [];+ let header: string | null = null;+ let members: StepLink[] = [];+ const flush = () => {+ if (header) order.push(...members, { id: header, parentStepId: null });+ header = null;+ members = [];+ };+ for (const row of rows) {+ if (row.depth === 1 && header) {+ members.push({ id: row.stepId, parentStepId: header });+ continue;+ }+ flush();+ if (isHeader(row.stepId)) {+ header = row.stepId;+ } else {+ order.push({ id: row.stepId, parentStepId: null });+ }+ }+ flush();+ return order;+}++/** Index just past a header's last member in `rows` (the header's own index + 1 when empty). */+function groupEnd(rows: Row[], headerIndex: number) {+ let end = headerIndex + 1;+ while (end < rows.length && rows[end].depth === 1) end += 1;+ return end;+}++type AssemblyStepListProps = {+ steps: AssemblyInstructionStepRow[];+ viewerStepMap: Map<string, AssemblyStep>;+ stepTitles: Map<string, string>;+ /** Lower-cased search needle; empty = not searching */+ search: string;+ searchText: Map<string, string>;+ selectedStepId: string | null;+ isDisabled: boolean;+ onSelectStep: (stepId: string) => void;+ onPreviewStep: (stepId: string) => void;+ onDeleteStep: (step: AssemblyInstructionStepRow) => void;+};++export default function AssemblyStepList({+ steps,+ viewerStepMap,+ stepTitles,+ search,+ searchText,+ selectedStepId,+ isDisabled,+ onSelectStep,+ onPreviewStep,+ onDeleteStep+}: AssemblyStepListProps) {+ const { id } = useParams();+ if (!id) throw new Error("Could not find id");+ const { t } = useLingui();++ const sortOrderFetcher = useFetcher<{ success: boolean }>();+ const subAssemblyFetcher = useFetcher<{ success: boolean; id?: string }>();+ const ungroupFetcher = useFetcher<{ success: boolean }>();+ // One structural change at a time: each is saved from the list's current+ // order, so starting another before it lands would build on a stale one.+ const isSaving =+ sortOrderFetcher.state !== "idle" ||+ subAssemblyFetcher.state !== "idle" ||+ ungroupFetcher.state !== "idle";++ const isSearching = search.length > 0;+ const canDrag = !isDisabled && !isSearching && !isSaving;++ const [order, setOrder] = useState<StepLink[]>(() =>+ steps.map((step) => ({ id: step.id, parentStepId: step.parentStepId }))+ );++ useEffect(() => {+ setOrder((prev) => {+ const next = steps.map((step) => ({+ id: step.id,+ parentStepId: step.parentStepId+ }));+ const prevIds = new Set(prev.map((link) => link.id));+ const sameSet =+ prev.length === next.length &&+ next.every((link) => prevIds.has(link.id));+ if (sameSet) {+ // Until a move's save lands, the server list still has the old+ // order; keep the local one so the move doesn't snap back.+ if (sortOrderFetcher.state !== "idle") return prev;+ const same = next.every(+ (link, i) =>+ prev[i].id === link.id && prev[i].parentStepId === link.parentStepId+ );+ return same ? prev : next;+ }+ // Steps added or removed — resync to the server list.+ return next;+ });+ }, [steps, sortOrderFetcher.state]);++ // Select a sub-assembly right after "Make Sub-Assembly" creates it, so it+ // can be named in Properties.+ useEffect(() => {+ if (subAssemblyFetcher.data?.success && subAssemblyFetcher.data.id) {+ onSelectStep(subAssemblyFetcher.data.id);+ }+ }, [subAssemblyFetcher.data, onSelectStep]);++ const structureFor = useCallback(+ (links: StepLink[]) =>+ links.flatMap(({ id: stepId, parentStepId }) => {+ const step = viewerStepMap.get(stepId);+ return step ? [{ ...step, parentStepId }] : [];+ }),+ [viewerStepMap]+ );+ const structure = useMemo(() => structureFor(order), [structureFor, order]);+ const plan = useMemo(() => buildSubAssemblyPlan(structure), [structure]);+ const rows = useMemo(() => displayOrder(structure), [structure]);++ const isHeader = useCallback(+ (stepId: string) => plan.get(stepId)?.isHeader === true,+ [plan]+ );+ const partCountByHeader = useMemo(() => {+ const counts = new Map<string, number>();+ for (const step of structure) {+ if (plan.get(step.id)?.isHeader) {+ counts.set(step.id, subAssemblyPartIds(structure, step.id).length);+ }+ }+ return counts;+ }, [structure, plan]);+ const headers = useMemo(+ () => rows.filter((row) => isHeader(row.stepId)).map((row) => row.stepId),+ [rows, isHeader]+ );++ const [searchParams, setSearchParams] = useSearchParams();+ const requestedOpen = searchParams.get(SUB_ASSEMBLY_PARAM);+ const openHeaderId =+ requestedOpen && isHeader(requestedOpen) ? requestedOpen : null;++ const setOpenHeader = useCallback(+ (headerId: string | null) => {+ setSearchParams(+ (prev) => {+ const next = new URLSearchParams(prev);+ if (headerId) {+ next.set(SUB_ASSEMBLY_PARAM, headerId);+ } else {+ next.delete(SUB_ASSEMBLY_PARAM);+ }+ return next;+ },+ { preventScrollReset: true }+ );+ },+ [setSearchParams]+ );++ // A stale ?subAssembly= (ungrouped, deleted) falls back to all steps.+ useEffect(() => {+ if (requestedOpen && !openHeaderId && steps.length > 0) {+ setOpenHeader(null);+ }+ }, [requestedOpen, openHeaderId, steps.length, setOpenHeader]);++ const [collapsed, setCollapsed] = useState<Set<string>>(() => new Set());+ const [activeId, setActiveId] = useState<string | null>(null);+ const [overId, setOverId] = useState<string | null>(null);+ const [offsetX, setOffsetX] = useState(0);++ const activeIsHeader = activeId ? isHeader(activeId) : false;++ const visibleRows = useMemo(() => {+ if (openHeaderId) {+ return rows.filter(+ (row) =>+ row.depth === 1 && plan.get(row.stepId)?.headerId === openHeaderId+ );+ }+ if (isSearching) {+ return rows.filter((row) => searchText.get(row.stepId)?.includes(search));+ }+ return rows.filter((row) => {+ if (row.depth === 0) return true;+ const headerId = plan.get(row.stepId)?.headerId;+ if (!headerId) return true;+ // A dragged sub-assembly moves as one block: its steps travel with it.+ if (activeIsHeader && headerId === activeId) return false;+ return !collapsed.has(headerId);+ });+ }, [+ rows,+ plan,+ openHeaderId,+ isSearching,+ search,+ searchText,+ collapsed,+ activeIsHeader,+ activeId+ ]);+ const visibleIds = useMemo(+ () => visibleRows.map((row) => row.stepId),+ [visibleRows]+ );+ const rowById = useMemo(+ () => new Map(rows.map((row) => [row.stepId, row])),+ [rows]+ );+ const stepById = useMemo(+ () => new Map(steps.map((step) => [step.id, step])),+ [steps]+ );++ // Saved right away: a drop (or menu move) is one discrete change.+ const saveOrder = (links: StepLink[]) => {+ const updates: Record<+ string,+ { sortOrder: number; parentStepId: string | null }+ > = {};+ links.forEach((link, index) => {+ updates[link.id] = {+ sortOrder: index + 1,+ parentStepId: link.parentStepId+ };+ });+ const formData = new FormData();+ formData.append("updates", JSON.stringify(updates));+ sortOrderFetcher.submit(formData, {+ method: "post",+ action: path.to.assemblyInstructionStepOrder(id)+ });+ };++ /** Apply new display rows if they keep the sub-assembly rules; false = refused. */+ const commitRows = (nextRows: Row[]) => {+ const nextOrder = toPlayOrder(nextRows, isHeader);+ if (validateSubAssemblies(structureFor(nextOrder)).length > 0) return false;+ setOrder(nextOrder);+ saveOrder(nextOrder);+ return true;+ };++ /** Take a row (and a header's steps) out of `rows`. */+ const extract = (stepId: string) => {+ const index = rows.findIndex((row) => row.stepId === stepId);+ if (index < 0) return null;+ const end = isHeader(stepId) ? groupEnd(rows, index) : index + 1;+ const block = rows.slice(index, end);+ const rest = [...rows.slice(0, index), ...rows.slice(end)];+ return { block, rest };+ };++ const moveInto = (stepId: string, headerId: string) => {+ const taken = extract(stepId);+ if (!taken) return;+ const headerIndex = taken.rest.findIndex((row) => row.stepId === headerId);+ if (headerIndex < 0) return;+ const at = groupEnd(taken.rest, headerIndex);+ commitRows([+ ...taken.rest.slice(0, at),+ { stepId, depth: 1 },+ ...taken.rest.slice(at)+ ]);+ setCollapsed((prev) => {+ const next = new Set(prev);+ next.delete(headerId);+ return next;+ });+ };++ const moveOut = (stepId: string) => {+ const headerId = plan.get(stepId)?.headerId;+ const taken = extract(stepId);+ if (!taken || !headerId) return;+ const headerIndex = taken.rest.findIndex((row) => row.stepId === headerId);+ if (headerIndex < 0) return;+ const at = groupEnd(taken.rest, headerIndex);+ commitRows([+ ...taken.rest.slice(0, at),+ { stepId, depth: 0 },+ ...taken.rest.slice(at)+ ]);+ };++ const makeSubAssembly = (stepId: string) => {+ const formData = new FormData();+ formData.append("stepId", stepId);+ subAssemblyFetcher.submit(formData, {+ method: "post",+ action: path.to.assemblySubAssemblyNew(id)+ });+ };++ const ungroup = (headerId: string) => {+ if (openHeaderId === headerId) setOpenHeader(null);+ ungroupFetcher.submit(new FormData(), {+ method: "post",+ action: path.to.assemblySubAssemblyUngroup(id, headerId)+ });+ };+ const [headerToDelete, setHeaderToDelete] = useState<string | null>(null);++ const sensors = useSensors(+ useSensor(PointerSensor, { activationConstraint: { distance: 8 } }),+ useSensor(KeyboardSensor, { coordinateGetter })+ );++ /**+ * Where the dragged row would land: its depth (top level or inside a+ * sub-assembly) from the rows it would sit between and how far it was+ * dragged sideways. `null` = not a place it can go.+ */+ const projection = useMemo(() => {+ if (!activeId || !overId) return null;+ if (overId.startsWith(DROP_ZONE_PREFIX)) {+ if (activeIsHeader) return null;+ return {+ kind: "zone" as const,+ headerId: overId.slice(DROP_ZONE_PREFIX.length)+ };+ }+ const from = visibleIds.indexOf(activeId);+ const to = visibleIds.indexOf(overId);+ if (from < 0 || to < 0) return null;+ const moved = arrayMove(visibleIds, from, to);+ const prev = to > 0 ? rowById.get(moved[to - 1]) : undefined;+ const next = rowById.get(moved[to + 1] ?? "");+ const nextIsMember = next?.depth === 1;++ if (openHeaderId) {+ return { kind: "row" as const, moved, depth: 1 as const };+ }+ if (activeIsHeader) {+ return nextIsMember+ ? null+ : { kind: "row" as const, moved, depth: 0 as const };+ }+ const prevOpenHeader =+ prev && isHeader(prev.stepId) && !collapsed.has(prev.stepId);+ const maxDepth = prevOpenHeader || prev?.depth === 1 ? 1 : 0;+ const minDepth = nextIsMember ? 1 : 0;+ const current = rowById.get(activeId)?.depth ?? 0;+ const wanted = current + Math.round(offsetX / INDENT);+ const depth = Math.max(minDepth, Math.min(maxDepth, wanted)) as 0 | 1;+ return { kind: "row" as const, moved, depth };+ }, [+ activeId,+ overId,+ offsetX,+ visibleIds,+ rowById,+ activeIsHeader,+ openHeaderId,+ isHeader,+ collapsed+ ]);++ const rowsForDrop = (): Row[] | null => {+ if (!activeId || !projection) return null;+ const taken = extract(activeId);+ if (!taken) return null;+ const { block, rest } = taken;++ if (projection.kind === "zone") {+ const headerIndex = rest.findIndex(+ (row) => row.stepId === projection.headerId+ );+ if (headerIndex < 0) return null;+ const at = groupEnd(rest, headerIndex);+ return [+ ...rest.slice(0, at),+ { stepId: activeId, depth: 1 },+ ...rest.slice(at)+ ];+ }++ const to = projection.moved.indexOf(activeId);+ const anchorId = to > 0 ? projection.moved[to - 1] : null;+ let at = 0;+ if (anchorId) {+ const anchorIndex = rest.findIndex((row) => row.stepId === anchorId);+ if (anchorIndex < 0) return null;+ // After a sub-assembly: inside it (first step) only when dropped one+ // level in; otherwise after all of its steps.+ at =+ isHeader(anchorId) && projection.depth === 0+ ? groupEnd(rest, anchorIndex)+ : anchorIndex + 1;+ } else if (openHeaderId) {+ at = rest.findIndex((row) => row.stepId === openHeaderId) + 1;+ }+ const placed: Row[] = isHeader(activeId)+ ? block+ : [{ stepId: activeId, depth: projection.depth }];+ return [...rest.slice(0, at), ...placed, ...rest.slice(at)];+ };++ const resetDrag = () => {+ setActiveId(null);+ setOverId(null);+ setOffsetX(0);+ };++ const onDragStart = ({ active }: DragStartEvent) => {+ setActiveId(String(active.id));+ setOverId(String(active.id));+ };+ const onDragMove = ({ delta }: DragMoveEvent) => setOffsetX(delta.x);+ const onDragOver = ({ over }: DragOverEvent) =>+ setOverId(over ? String(over.id) : null);+ const onDragEnd = (_event: DragEndEvent) => {+ const nextRows = rowsForDrop();+ resetDrag();+ if (!nextRows) return;+ const unchanged =+ nextRows.length === rows.length &&+ nextRows.every(+ (row, i) => row.stepId === rows[i].stepId && row.depth === rows[i].depth+ );+ if (!unchanged) commitRows(nextRows);+ };++ const plainTitle = (stepId: UniqueIdentifier) => {+ const key = String(stepId);+ if (key.startsWith(DROP_ZONE_PREFIX)) {+ const headerId = key.slice(DROP_ZONE_PREFIX.length);+ return t`inside ${stepTitles.get(headerId) ?? ""}`;+ }+ const number = plan.get(key)?.number ?? "";+ return `${number} ${stepTitles.get(key) ?? ""}`.trim();+ };+ const announcements: Announcements = {+ onDragStart: ({ active }) => t`Picked up step ${plainTitle(active.id)}`,+ onDragOver: ({ active, over }) =>+ over+ ? t`Step ${plainTitle(active.id)} is over ${plainTitle(over.id)}`+ : t`Step ${plainTitle(active.id)} is no longer over a drop position`,+ onDragEnd: ({ active, over }) =>+ over+ ? t`Step ${plainTitle(active.id)} was dropped at ${plainTitle(over.id)}`+ : t`Step ${plainTitle(active.id)} was dropped`,+ onDragCancel: ({ active }) =>+ t`Moving step ${plainTitle(active.id)} was cancelled`+ };++ const openInfo = openHeaderId ? plan.get(openHeaderId) : null;+ const openTitle = openHeaderId ? (stepTitles.get(openHeaderId) ?? "") : "";++ const depthFor = (row: Row) =>+ row.stepId === activeId && projection?.kind === "row"+ ? projection.depth+ : row.depth;++ const renderRow = (row: Row) => {+ const step = stepById.get(row.stepId);+ const info = plan.get(row.stepId);+ if (!step || !info) return null;+ const common = {+ step,+ info,+ title: stepTitles.get(step.id) ?? "",+ isDisabled,+ isBusy: isSaving,+ canDrag,+ isSelected: step.id === selectedStepId,+ onSelect: () => onSelectStep(step.id)+ };+ if (info.isHeader) {+ const usedIn = viewerStepMap.get(step.id)?.usedInStepId;+ const isCollapsed = collapsed.has(step.id);+ return (+ <SubAssemblyRow+ key={step.id}+ {...common}+ usedInNumber={usedIn ? (plan.get(usedIn)?.number ?? null) : null}+ partCount={partCountByHeader.get(step.id) ?? 0}+ isCollapsed={isCollapsed}+ onToggle={() =>+ setCollapsed((prev) => {+ const next = new Set(prev);+ if (isCollapsed) next.delete(step.id);+ else next.add(step.id);+ return next;+ })+ }+ onOpen={() => setOpenHeader(step.id)}+ onUngroup={() => ungroup(step.id)}+ onDelete={() => setHeaderToDelete(step.id)}+ />+ );+ }+ return (+ <StepRow+ key={step.id}+ {...common}+ depth={openHeaderId ? 0 : depthFor(row)}+ uses={info.carriesIn.map((headerId) => ({+ headerId,+ number: plan.get(headerId)?.number ?? "",+ title: stepTitles.get(headerId) ?? ""+ }))}+ headers={headers.map((headerId) => ({+ headerId,+ label: `${plan.get(headerId)?.number ?? ""} · ${+ stepTitles.get(headerId) ?? ""+ }`,+ isOwn: info.headerId === headerId+ }))}+ onPreview={() => onPreviewStep(step.id)}+ onSelectHeader={onSelectStep}+ onMakeSubAssembly={() => makeSubAssembly(step.id)}+ onMoveInto={(headerId) => moveInto(step.id, headerId)}+ onMoveOut={() => moveOut(step.id)}+ onDelete={() => onDeleteStep(step)}+ />+ );+ };++ const emptyZone = (headerId: string) => (+ <SubAssemblyDropZone+ key={`${DROP_ZONE_PREFIX}${headerId}`}+ headerId={headerId}+ isDisabled={!canDrag || activeIsHeader}+ />+ );++ const listRows: ReactNode[] = [];+ for (const row of visibleRows) {+ listRows.push(renderRow(row));+ const info = plan.get(row.stepId);+ if (+ !openHeaderId &&+ !isSearching &&+ info?.isHeader &&+ !collapsed.has(row.stepId) &&+ !rows.some(+ (other) =>+ other.depth === 1 && plan.get(other.stepId)?.headerId === row.stepId+ )+ ) {+ listRows.push(emptyZone(row.stepId));+ }+ }+ if (openHeaderId && visibleRows.length === 0) {+ listRows.push(emptyZone(openHeaderId));+ }++ const activeRow = activeId ? rowById.get(activeId) : null;++ return (+ <>+ {openHeaderId && openInfo && (+ <div className="flex w-full flex-none items-center gap-2 border-b border-border px-2 py-1.5">+ <Button+ variant="ghost"+ size="sm"+ leftIcon={<LuArrowLeft />}+ onClick={() => setOpenHeader(null)}+ >+ <Trans>All steps</Trans>+ </Button>+ <span className="min-w-0 flex-1 truncate text-xs text-muted-foreground">+ <Trans>+ Sub-Assembly {openInfo.number} · {openTitle}+ </Trans>+ </span>+ </div>+ )}+ <DndContext+ sensors={sensors}+ accessibility={{ announcements }}+ onDragStart={onDragStart}+ onDragMove={onDragMove}+ onDragOver={onDragOver}+ onDragEnd={onDragEnd}+ onDragCancel={resetDrag}+ >+ <SortableContext+ items={visibleIds}+ strategy={verticalListSortingStrategy}+ >+ <div className="w-full">{listRows}</div>+ </SortableContext>+ {typeof document !== "undefined" &&+ createPortal(+ <DragOverlay dropAnimation={null}>+ {activeRow ? (+ <div className="flex items-center gap-2 rounded-md border border-border bg-card px-3 py-2 text-sm shadow-md">+ <LuGripVertical className="size-3.5 text-muted-foreground" />+ <span className="text-xs tabular-nums text-muted-foreground">+ {plan.get(activeRow.stepId)?.number}+ </span>+ {isHeader(activeRow.stepId) && (+ <LuBoxes className="size-3.5 text-muted-foreground" />+ )}+ <span className="truncate">+ {stepTitles.get(activeRow.stepId)}+ </span>+ </div>+ ) : null}+ </DragOverlay>,+ document.body+ )}+ </DndContext>+ {steps.length > 0 && isSearching && visibleRows.length === 0 && (+ <p className="w-full px-4 py-3 text-center text-xs text-muted-foreground">+ <Trans>No steps match "{search}"</Trans>+ </p>+ )}+ {headerToDelete && (+ <ConfirmDelete+ action={path.to.assemblySubAssemblyDelete(id, headerToDelete)}+ name={stepTitles.get(headerToDelete) ?? t`Sub-Assembly`}+ text={t`Delete this sub-assembly and all of its steps? This cannot be undone.`}+ onCancel={() => setHeaderToDelete(null)}+ onSubmit={() => {+ if (openHeaderId === headerToDelete) setOpenHeader(null);+ setHeaderToDelete(null);+ }}+ />+ )}+ </>+ );+}++/** Where an empty sub-assembly takes its first step. */+function SubAssemblyDropZone({+ headerId,+ isDisabled+}: {+ headerId: string;+ isDisabled: boolean;+}) {+ const { setNodeRef, isOver } = useDroppable({+ id: `${DROP_ZONE_PREFIX}${headerId}`,+ disabled: isDisabled+ });+ return (+ <div className="relative border-b border-border py-2 pl-6 pr-2.5">+ <span+ aria-hidden+ className="pointer-events-none absolute inset-y-0 left-[17px] w-px bg-border"+ />+ <div+ ref={setNodeRef}+ className={cn(+ "rounded-md border border-dashed border-border px-3 py-2 text-center text-xs text-muted-foreground",+ isOver && "border-primary bg-primary/5 text-foreground"+ )}+ >+ <Trans>Drag steps here to build them on their own.</Trans>+ </div>+ </div>+ );+}++type RowBaseProps = {+ step: AssemblyInstructionStepRow;+ info: SubAssemblyInfo;+ title: string;+ isDisabled: boolean;+ /** A structural change is saving; moves wait for it. */+ isBusy: boolean;+ canDrag: boolean;+ isSelected: boolean;+ onSelect: () => void;+};++function useRowSortable(stepId: string, canDrag: boolean) {+ const sortable = useSortable({ id: stepId, disabled: !canDrag });+ return {+ ...sortable,+ style: {+ transform: CSS.Translate.toString(sortable.transform),+ transition: sortable.transition+ }+ };+}++function DragHandle({+ canDrag,+ sortable+}: {+ canDrag: boolean;+ sortable: ReturnType<typeof useRowSortable>;+}) {+ const { t } = useLingui();+ return (+ <IconButton+ ref={sortable.setActivatorNodeRef}+ aria-label={t`Drag handle`}+ icon={<LuGripVertical />}+ variant="ghost"+ size="sm"+ disabled={!canDrag}+ className="size-6 shrink-0 cursor-grab touch-none text-muted-foreground/50 hover:text-muted-foreground active:cursor-grabbing"+ onClick={(e) => e.stopPropagation()}+ {...sortable.attributes}+ {...sortable.listeners}+ />+ );+}++function SubAssemblyRow({+ step,+ info,+ title,+ isDisabled,+ isBusy,+ canDrag,+ isSelected,+ onSelect,+ usedInNumber,+ partCount,+ isCollapsed,+ onToggle,+ onOpen,+ onUngroup,+ onDelete+}: RowBaseProps & {+ usedInNumber: string | null;+ partCount: number;+ isCollapsed: boolean;+ onToggle: () => void;+ onOpen: () => void;+ onUngroup: () => void;+ onDelete: () => void;+}) {+ const { t } = useLingui();+ const permissions = usePermissions();+ const sortable = useRowSortable(step.id, canDrag);+ const name = title || t`Sub-Assembly`;++ return (+ <div+ ref={sortable.setNodeRef}+ style={sortable.style}+ className={cn(+ "group relative flex w-full cursor-pointer select-none items-center gap-1.5 border-b border-border bg-card py-2.5 pl-1.5 pr-2.5 hover:bg-accent/30",+ isSelected && "bg-accent/40 hover:bg-accent/40",+ sortable.isDragging && "opacity-40"+ )}+ onClick={onSelect}+ onDoubleClick={onOpen}+ title={t`Double-click to open this sub-assembly`}+ >+ {isSelected && (+ <span+ aria-hidden+ className="pointer-events-none absolute inset-y-0 left-0 w-0.5 bg-primary"+ />+ )}+ <DragHandle canDrag={canDrag} sortable={sortable} />+ <IconButton+ aria-label={isCollapsed ? t`Expand ${name}` : t`Collapse ${name}`}+ aria-expanded={!isCollapsed}+ icon={+ <LuChevronDown+ className={cn(+ "transition-transform duration-150",+ isCollapsed && "-rotate-90"+ )}+ />+ }+ variant="ghost"+ size="sm"+ className="size-5 shrink-0 text-muted-foreground"+ onClick={(e) => {+ e.stopPropagation();+ onToggle();+ }}+ />+ <span className="shrink-0 text-xs font-medium tabular-nums text-foreground">+ {info.number}+ </span>+ <LuBoxes className="size-3.5 shrink-0 text-muted-foreground" />+ <div className="min-w-0 flex-1">+ <TruncatedTooltipText+ tooltip={name}+ className="block w-full truncate text-sm font-medium text-foreground"+ >+ {name}+ </TruncatedTooltipText>+ <span className="block w-full truncate text-xs text-muted-foreground">+ {usedInNumber+ ? t`Sub-Assembly · used in ${usedInNumber}`+ : t`Sub-Assembly · joins main build`}+ </span>+ </div>+ <span className="shrink-0 text-xs tabular-nums text-muted-foreground">+ ×{partCount}+ </span>+ <StepStatusControl+ stepId={step.id}+ status={normalizeStepStatus(step.status)}+ isDisabled={isDisabled}+ />+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label={t`More options`}+ size="sm"+ variant="ghost"+ className="size-6 shrink-0 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 data-[state=open]:opacity-100"+ icon={<LuEllipsisVertical />}+ onClick={(e) => e.stopPropagation()}+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent onClick={(e) => e.stopPropagation()}>+ <DropdownMenuItem onClick={onOpen}>+ <DropdownMenuIcon icon={<LuSquareArrowOutUpRight />} />+ <Trans>Open Sub-Assembly</Trans>+ </DropdownMenuItem>+ <DropdownMenuItem disabled={isDisabled || isBusy} onClick={onUngroup}>+ <DropdownMenuIcon icon={<LuUngroup />} />+ <Trans>Ungroup</Trans>+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ destructive+ disabled={isDisabled || !permissions.can("delete", "production")}+ onClick={onDelete}+ >+ <DropdownMenuIcon icon={<LuTrash />} />+ <Trans>Delete Sub-Assembly</Trans>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ );+}++function StepRow({+ step,+ info,+ title,+ isDisabled,+ isBusy,+ canDrag,+ isSelected,+ onSelect,+ depth,+ uses,+ headers,+ onPreview,+ onSelectHeader,+ onMakeSubAssembly,+ onMoveInto,+ onMoveOut,+ onDelete+}: RowBaseProps & {+ depth: 0 | 1;+ uses: { headerId: string; number: string; title: string }[];+ headers: { headerId: string; label: string; isOwn: boolean }[];+ onPreview: () => void;+ onSelectHeader: (headerId: string) => void;+ onMakeSubAssembly: () => void;+ onMoveInto: (headerId: string) => void;+ onMoveOut: () => void;+ onDelete: () => void;+}) {+ const { t } = useLingui();+ const permissions = usePermissions();+ const sortable = useRowSortable(step.id, canDrag);++ const componentCount = step.componentNodeIds?.length ?? 0;+ const stepType = step.type ?? "Task";+ const needsSupport = (step.warnings as { needsSupport?: boolean } | null)+ ?.needsSupport;+ const flagged =+ stepPlanWarningsSchema.safeParse(step.warnings).data?.flagged === true;+ const isMember = info.headerId !== null;+ const displayTitle = title || t`Untitled step`;++ return (+ <div+ ref={sortable.setNodeRef}+ style={sortable.style}+ className={cn(+ "group relative flex w-full cursor-pointer select-none items-center gap-1.5 border-b border-border bg-card py-3 pl-1.5 pr-2.5 hover:bg-accent/30",+ depth === 1 && "pl-6",+ isSelected && "bg-accent/40 hover:bg-accent/40",+ sortable.isDragging && "opacity-40"+ )}+ onClick={onSelect}+ onDoubleClick={onPreview}+ title={t`Double-click to play this step`}+ >+ {isSelected && (+ <span+ aria-hidden+ className="pointer-events-none absolute inset-y-0 left-0 w-0.5 bg-primary"+ />+ )}+ {depth === 1 && (+ <span+ aria-hidden+ className="pointer-events-none absolute inset-y-0 left-[17px] w-px bg-border"+ />+ )}+ <DragHandle canDrag={canDrag} sortable={sortable} />+ <span className="w-7 shrink-0 text-right text-xs tabular-nums text-muted-foreground">+ {info.number}+ </span>+ {/* Only a non-default type earns an icon — the same Task icon on every row said nothing */}+ {stepType !== "Task" && (+ <ProcedureStepTypeIcon+ type={stepType}+ className="size-3.5 shrink-0 text-muted-foreground"+ />+ )}+ <TruncatedTooltipText+ tooltip={displayTitle}+ className="min-w-0 flex-1 truncate text-sm text-foreground"+ >+ {displayTitle}+ </TruncatedTooltipText>+ {flagged && (+ <RowIcon label={t`No collision-free path`}>+ <LuTriangleAlert className="size-3.5 text-amber-500" />+ </RowIcon>+ )}+ {needsSupport && (+ <RowIcon+ label={t`A part in this step may tip once placed — consider a fixture or a second person.`}+ >+ <LuHand className="size-3.5 text-amber-500" />+ </RowIcon>+ )}+ {uses.map((use) => (+ <Tooltip key={use.headerId}>+ <TooltipTrigger asChild>+ <button+ type="button"+ className="inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-md border border-border bg-card px-1.5 text-xs font-medium hover:bg-muted focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"+ onClick={(e) => {+ e.stopPropagation();+ onSelectHeader(use.headerId);+ }}+ >+ <Trans>Uses {use.number}</Trans>+ </button>+ </TooltipTrigger>+ <TooltipContent>+ <Trans>+ Uses sub-assembly {use.number} · {use.title}+ </Trans>+ </TooltipContent>+ </Tooltip>+ ))}+ <span className="shrink-0 text-xs tabular-nums text-muted-foreground">+ ×{componentCount}+ </span>+ <StepStatusControl+ stepId={step.id}+ status={normalizeStepStatus(step.status)}+ isDisabled={isDisabled}+ />+ {!isDisabled && (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton+ aria-label={t`More options`}+ size="sm"+ variant="ghost"+ className="size-6 shrink-0 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 data-[state=open]:opacity-100"+ icon={<LuEllipsisVertical />}+ onClick={(e) => e.stopPropagation()}+ />+ </DropdownMenuTrigger>+ <DropdownMenuContent onClick={(e) => e.stopPropagation()}>+ <DropdownMenuItem+ disabled={isMember || isBusy}+ onClick={onMakeSubAssembly}+ >+ <DropdownMenuIcon icon={<LuBoxes />} />+ <Trans>Make Sub-Assembly</Trans>+ </DropdownMenuItem>+ <DropdownMenuSub>+ <DropdownMenuSubTrigger disabled={headers.length === 0 || isBusy}>+ <DropdownMenuIcon icon={<LuFolderInput />} />+ <Trans>Move Into</Trans>+ </DropdownMenuSubTrigger>+ <DropdownMenuSubContent>+ {headers.map((header) => (+ <DropdownMenuItem+ key={header.headerId}+ disabled={header.isOwn}+ onClick={() => onMoveInto(header.headerId)}+ >+ {header.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuSubContent>+ </DropdownMenuSub>+ <DropdownMenuItem+ disabled={!isMember || isBusy}+ onClick={onMoveOut}+ >+ <DropdownMenuIcon icon={<LuCornerLeftUp />} />+ <Trans>Move Out of Sub-Assembly</Trans>+ </DropdownMenuItem>+ <DropdownMenuSeparator />+ <DropdownMenuItem+ destructive+ disabled={!permissions.can("delete", "production")}+ onClick={onDelete}+ >+ <DropdownMenuIcon icon={<LuTrash />} />+ <Trans>Delete Step</Trans>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ )}+ </div>+ );+}++function StepStatusControl({+ stepId,+ status,+ isDisabled+}: {+ stepId: string;+ status: AssemblyStepStatusValue;+ isDisabled: boolean;+}) {+ const { id } = useParams();+ if (!id) throw new Error("Could not find id");++ const { t } = useLingui();+ const statusLabel = useStepStatusLabel();+ const fetcher = useFetcher<{ success: boolean }>();++ // Optimistic: show the in-flight status while the fetcher is busy+ const displayed =+ fetcher.state !== "idle" && fetcher.formData+ ? normalizeStepStatus(fetcher.formData.get("status") as string | null)+ : status;+ const label = statusLabel(displayed);++ const onSelect = (value: string) => {+ if (value === status) return;+ const formData = new FormData();+ formData.append("status", value);+ fetcher.submit(formData, {+ method: "post",+ action: path.to.assemblyInstructionStepStatus(id, stepId)+ });+ };++ // Published/archived instructions can't be edited: the icon alone, named by its tooltip+ if (isDisabled) {+ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <span+ role="img"+ aria-label={t`Step status: ${label}`}+ className="inline-flex size-6 shrink-0 items-center justify-center"+ >+ <AssemblyStepStatusIcon status={displayed} />+ </span>+ </TooltipTrigger>+ <TooltipContent>{label}</TooltipContent>+ </Tooltip>+ );+ }++ return (+ <DropdownMenu>+ <Tooltip>+ <TooltipTrigger asChild>+ <DropdownMenuTrigger asChild>+ <button+ type="button"+ aria-label={t`Step status: ${label}. Change status`}+ className="inline-flex size-6 shrink-0 items-center justify-center rounded-md hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 active:scale-[0.96]"+ onClick={(e) => e.stopPropagation()}+ >+ <AssemblyStepStatusIcon status={displayed} />+ </button>+ </DropdownMenuTrigger>+ </TooltipTrigger>+ <TooltipContent>{label}</TooltipContent>+ </Tooltip>+ <DropdownMenuContent+ align="end"+ className="min-w-[8rem]"+ onClick={(e) => e.stopPropagation()}+ >+ <DropdownMenuRadioGroup value={displayed} onValueChange={onSelect}>+ {assemblyStepStatuses.map((option) => (+ <DropdownMenuRadioItem key={option} value={option}>+ <span className="flex items-center gap-2">+ <AssemblyStepStatusIcon status={option} className="size-3.5" />+ {statusLabel(option)}+ </span>+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}++/** A small meaning-carrying icon in a step row, named by its tooltip. */+function RowIcon({ label, children }: { label: string; children: ReactNode }) {+ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <span role="img" aria-label={label} className="inline-flex shrink-0">+ {children}+ </span>+ </TooltipTrigger>+ <TooltipContent>{label}</TooltipContent>+ </Tooltip>+ );+}diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblySubAssemblyProperties.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblySubAssemblyProperties.tsxnew file mode 100644index 0000000000..0baf5527ce--- /dev/null+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblySubAssemblyProperties.tsx@@ -0,0 +1,357 @@+import { Hidden, Input, Submit, ValidatedForm } from "@carbon/form";+import type { JSONContent } from "@carbon/react";+import {+ Button,+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuTrigger,+ HStack,+ Label,+ LabelWithHelp,+ Subheading,+ VStack+} from "@carbon/react";+import { Editor } from "@carbon/react/Editor";+import type { AssemblyStep, SubAssemblyInfo } from "@carbon/viewer";+import { usableSubAssemblies } from "@carbon/viewer";+import { Trans, useLingui } from "@lingui/react/macro";+import { useMemo, useState } from "react";+import { LuChevronDown, LuTrash, LuUngroup } from "react-icons/lu";+import { useFetcher, useParams, useSearchParams } from "react-router";+import { ConfirmDelete } from "~/components/Modals";+import { useImageUpload, usePermissions } from "~/hooks";+import { path } from "~/utils/path";+import { assemblyInstructionStepValidator } from "../../production.models";+import type { AssemblyInstructionStepRow } from "../../types";+import PlaybackRow from "./AssemblyPlaybackRow";+import { SUB_ASSEMBLY_PARAM } from "./AssemblyStepList";++type AssemblySubAssemblyPropertiesProps = {+ step: AssemblyInstructionStepRow;+ /** Every step of the instruction, in play order */+ viewerSteps: AssemblyStep[];+ subPlan: Map<string, SubAssemblyInfo>;+ titleOf: (stepId: string) => string;+ isDisabled: boolean;+ itemMentions: { id: string; label: string; helper?: string }[];+ onSelectStep: (stepId: string) => void;+ onSetCamera: (stepId: string) => void;+ onClearCamera: (stepId: string) => void;+};++/**+ * Properties of a selected sub-assembly (a header row): its name, its steps,+ * the step that uses it, and — when nothing uses it — how it joins the main+ * build (instruction + camera). Ungroup and delete live here too.+ */+export default function AssemblySubAssemblyProperties({+ step,+ viewerSteps,+ subPlan,+ titleOf,+ isDisabled,+ itemMentions,+ onSelectStep,+ onSetCamera,+ onClearCamera+}: AssemblySubAssemblyPropertiesProps) {+ const { id: instructionId } = useParams();+ if (!instructionId) throw new Error("Could not find id");+ const { t } = useLingui();+ const permissions = usePermissions();+ const [, setSearchParams] = useSearchParams();++ const formFetcher = useFetcher<{ success: boolean }>();+ const usedInFetcher = useFetcher<{ success: boolean }>();+ const ungroupFetcher = useFetcher<{ success: boolean }>();+ const [isDeleting, setIsDeleting] = useState(false);+ const [description, setDescription] = useState<JSONContent>(+ (step.description as JSONContent) ?? {}+ );+ const onUploadImage = useImageUpload(`assembly/${instructionId}`);++ const members = useMemo(+ () => viewerSteps.filter((s) => s.parentStepId === step.id),+ [viewerSteps, step.id]+ );++ // The steps that may use this sub-assembly: later, ordinary, not its own.+ const usingOptions = useMemo(+ () =>+ viewerSteps+ .filter(+ (candidate) =>+ usableSubAssemblies(viewerSteps, candidate.id).find(+ (option) => option.headerId === step.id+ )?.reason === null+ )+ .map((candidate) => ({+ stepId: candidate.id,+ label: `${subPlan.get(candidate.id)?.number ?? ""} · ${titleOf(+ candidate.id+ )}`+ })),+ [viewerSteps, step.id, subPlan, titleOf]+ );++ const savedUsedIn = step.usedInStepId ?? "";+ const usedIn =+ usedInFetcher.state !== "idle" && usedInFetcher.formData+ ? ((usedInFetcher.formData.get("usedInStepId") as string | null) ?? "")+ : savedUsedIn;+ const usedInLabel = usedIn+ ? t`Step ${subPlan.get(usedIn)?.number ?? ""} · ${titleOf(usedIn)}`+ : t`Main build (after its last step)`;++ const onUsedInChange = (next: string) => {+ if (next === usedIn) return;+ const formData = new FormData();+ formData.append("usedInStepId", next);+ usedInFetcher.submit(formData, {+ method: "post",+ action: path.to.assemblySubAssembly(instructionId, step.id)+ });+ };++ const closeIfOpen = () =>+ setSearchParams(+ (prev) => {+ const next = new URLSearchParams(prev);+ if (next.get(SUB_ASSEMBLY_PARAM) === step.id) {+ next.delete(SUB_ASSEMBLY_PARAM);+ }+ return next;+ },+ { preventScrollReset: true }+ );++ const cannotSave = isDisabled || !permissions.can("update", "production");+ const hasCamera = step.camera != null;+ const name = step.title || t`Sub-Assembly`;++ return (+ <VStack spacing={4} className="w-full px-4 pb-4 pt-3">+ <ValidatedForm+ validator={assemblyInstructionStepValidator}+ method="post"+ action={path.to.assemblyInstructionStep(instructionId, step.id)}+ defaultValues={{+ id: step.id,+ assemblyInstructionId: instructionId,+ title: step.title ?? ""+ }}+ fetcher={formFetcher}+ className="w-full"+ >+ <Hidden name="id" />+ <Hidden name="assemblyInstructionId" />+ <Hidden name="type" value="Task" />+ <Hidden name="description" value={JSON.stringify(description)} />+ <VStack spacing={4} className="w-full">+ <Input+ name="title"+ label={t`Name`}+ placeholder={t`Sub-Assembly`}+ isReadOnly={isDisabled}+ />+ {!usedIn && (+ <VStack spacing={2} className="w-full">+ <Label>+ <Trans>Instruction</Trans>+ </Label>+ <Editor+ initialValue={(step.description as JSONContent) ?? {}}+ onUpload={onUploadImage}+ onChange={setDescription}+ mentions={[{ char: "@", items: itemMentions }]}+ className="[&_.is-empty]:text-muted-foreground min-h-[88px] max-h-[360px] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent p-3 rounded-lg border w-full"+ />+ <p className="text-xs text-muted-foreground">+ <Trans>+ How the finished sub-assembly joins the main build.+ </Trans>+ </p>+ </VStack>+ )}+ {!cannotSave && (+ <Submit+ isDisabled={formFetcher.state !== "idle"}+ isLoading={formFetcher.state !== "idle"}+ >+ <Trans>Save</Trans>+ </Submit>+ )}+ </VStack>+ </ValidatedForm>++ <VStack spacing={2} className="w-full">+ <Subheading as="h4" variant="heavy" className="tabular-nums">+ <Trans>Steps</Trans> · {members.length}+ </Subheading>+ {members.length === 0 ? (+ <p className="text-xs text-muted-foreground">+ <Trans>+ No steps yet. Drag steps into it, or use Move Into from a step's+ menu.+ </Trans>+ </p>+ ) : (+ <ul className="w-full divide-y divide-border rounded-lg border border-border">+ {members.map((member) => (+ <li key={member.id}>+ <button+ type="button"+ className="flex w-full items-center gap-2 px-2 py-1.5 text-left text-sm hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"+ onClick={() => onSelectStep(member.id)}+ >+ <span className="w-8 shrink-0 text-xs tabular-nums text-muted-foreground">+ {subPlan.get(member.id)?.number}+ </span>+ <span className="min-w-0 flex-1 truncate">+ {titleOf(member.id)}+ </span>+ </button>+ </li>+ ))}+ </ul>+ )}+ </VStack>++ <VStack spacing={2} className="w-full">+ <Subheading as="h4" variant="heavy">+ <Trans>Where it goes</Trans>+ </Subheading>+ <div className="w-full divide-y divide-border rounded-lg border border-border bg-card">+ <PlaybackRow+ label={+ <LabelWithHelp termId="assembly-sub-assembly" variant="inline">+ <span className="whitespace-nowrap">+ <Trans>Used in</Trans>+ </span>+ </LabelWithHelp>+ }+ >+ {isDisabled ? (+ <span className="truncate text-xs text-foreground">+ {usedInLabel}+ </span>+ ) : (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <button+ type="button"+ className="inline-flex h-6 max-w-[11rem] items-center gap-1 rounded-md border border-border bg-card px-2 text-xs text-foreground shadow-button-base hover:bg-accent focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50"+ >+ <span className="truncate">{usedInLabel}</span>+ <LuChevronDown className="size-3 shrink-0 text-muted-foreground" />+ </button>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ align="end"+ className="min-w-[16rem] max-w-[20rem] max-h-72 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"+ >+ <DropdownMenuRadioGroup+ value={usedIn}+ onValueChange={onUsedInChange}+ >+ <DropdownMenuRadioItem value="">+ <Trans>Main build (after its last step)</Trans>+ </DropdownMenuRadioItem>+ {usingOptions.map((option) => (+ <DropdownMenuRadioItem+ key={option.stepId}+ value={option.stepId}+ title={option.label}+ >+ <span className="truncate">{option.label}</span>+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ )}+ </PlaybackRow>+ {!usedIn && (+ <PlaybackRow+ label={+ <LabelWithHelp termId="assembly-step-camera" variant="inline">+ <Trans>Camera</Trans>+ </LabelWithHelp>+ }+ value={+ hasCamera ? <Trans>Saved view</Trans> : <Trans>Automatic</Trans>+ }+ >+ {!isDisabled && (+ <HStack spacing={1}>+ {hasCamera && (+ <Button+ variant="ghost"+ size="sm"+ onClick={() => onClearCamera(step.id)}+ >+ <Trans>Clear</Trans>+ </Button>+ )}+ <Button+ variant="secondary"+ size="sm"+ onClick={() => onSetCamera(step.id)}+ >+ <Trans>Use Current View</Trans>+ </Button>+ </HStack>+ )}+ </PlaybackRow>+ )}+ </div>+ </VStack>++ {!isDisabled && (+ <HStack spacing={2} className="w-full flex-wrap">+ <Button+ variant="secondary"+ leftIcon={<LuUngroup />}+ isLoading={ungroupFetcher.state !== "idle"}+ isDisabled={ungroupFetcher.state !== "idle"}+ onClick={() => {+ closeIfOpen();+ ungroupFetcher.submit(new FormData(), {+ method: "post",+ action: path.to.assemblySubAssemblyUngroup(+ instructionId,+ step.id+ )+ });+ }}+ >+ <Trans>Ungroup</Trans>+ </Button>+ <Button+ variant="destructive"+ leftIcon={<LuTrash />}+ isDisabled={!permissions.can("delete", "production")}+ onClick={() => setIsDeleting(true)}+ >+ <Trans>Delete Sub-Assembly</Trans>+ </Button>+ </HStack>+ )}++ {isDeleting && (+ <ConfirmDelete+ action={path.to.assemblySubAssemblyDelete(instructionId, step.id)}+ name={name}+ text={t`Delete this sub-assembly and all of its steps? This cannot be undone.`}+ onCancel={() => setIsDeleting(false)}+ onSubmit={() => {+ closeIfOpen();+ setIsDeleting(false);+ }}+ />+ )}+ </VStack>+ );+}diff --git a/apps/erp/app/modules/shared/sort-order.ts b/apps/erp/app/modules/shared/sort-order.tsindex fc2f38442c..a4e4128523 100644--- a/apps/erp/app/modules/shared/sort-order.ts+++ b/apps/erp/app/modules/shared/sort-order.ts@@ -174,3 +174,38 @@ export function parseSortOrderUpdates(sortOrder}));}++// The assembly step list also moves steps in and out of sub-assemblies: each+// id maps to a sort order, or to `{ sortOrder, parentStepId }` when its+// sub-assembly changed (`parentStepId: null` = back to the top level).+const stepOrderUpdatesValidator = z+ .record(+ z.string().min(1),+ z.union([+ sortOrderValue,+ z.object({+ sortOrder: sortOrderValue,+ parentStepId: z.string().min(1).nullable()+ })+ ])+ )+ .refine((map) => Object.keys(map).length > 0);++/** `parseSortOrderUpdates` for the assembly step list (see above). */+export function parseStepOrderUpdates(+ formData: FormData+): { id: string; sortOrder: number; parentStepId?: string | null }[] | null {+ const raw = formData.get("updates");+ if (typeof raw !== "string" || !raw) return null;+ let json: unknown;+ try {+ json = JSON.parse(raw);+ } catch {+ return null;+ }+ const parsed = stepOrderUpdatesValidator.safeParse(json);+ if (!parsed.success) return null;+ return Object.entries(parsed.data).map(([id, value]) =>+ typeof value === "number" ? { id, sortOrder: value } : { id, ...value }+ );+}diff --git a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.jsonindex bab790beaf..c61ec999a4 100644--- a/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json+++ b/apps/erp/app/routes/api+/mcp+/lib/tool-manifest.digest.json@@ -1,5 +1,5 @@{- "totalTools": 1557,+ "totalTools": 1560,"modules": 15,"tools": [{"name":"account_deleteUserAttributeValue","classification":"DESTRUCTIVE","paramCount":2,"schema":"0d38e12233b4","response":"bcde375ebd4c","injectAuth":"companyId+userId","permission":"none","paginates":false},@@ -649,6 +649,7 @@{"name":"production_deleteAssemblyInstructionStepMaterial","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:delete","paginates":false},{"name":"production_deleteAssemblyInstructionStepSlide","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:delete","paginates":false},{"name":"production_deleteAssemblyInstructionStepTool","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:delete","paginates":false},+ {"name":"production_deleteAssemblySubAssembly","classification":"DESTRUCTIVE","paramCount":2,"schema":"4bb5885b787b","response":"none","injectAuth":"companyId+userId","permission":"production:delete","paginates":false},{"name":"production_deleteAssemblyUnit","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:delete","paginates":false},{"name":"production_deleteFailureMode","classification":"DESTRUCTIVE","paramCount":1,"schema":"4a3e0384d72f","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:delete","paginates":false},{"name":"production_deleteInspectionDocument","classification":"DESTRUCTIVE","paramCount":1,"schema":"3797626bd17e","response":"e92dda062549","injectAuth":"companyId","permission":"production:delete","paginates":false},@@ -683,7 +684,7 @@{"name":"production_getAssemblyInstructions","classification":"READ","paramCount":5,"schema":"902de08eaf06","response":"845b5a451089","injectAuth":"companyId","permission":"production:view","paginates":true},{"name":"production_getAssemblyInstructionsForItem","classification":"READ","paramCount":1,"schema":"623ca47a6c74","response":"c881f4ef7d23","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getAssemblyInstructionStepMaterials","classification":"READ","paramCount":1,"schema":"0f56299d6859","response":"89a5f52bebf8","injectAuth":"companyId","permission":"production:view","paginates":false},- {"name":"production_getAssemblyInstructionSteps","classification":"READ","paramCount":1,"schema":"f9ddf194f67e","response":"f380180c6600","injectAuth":"companyId","permission":"production:view","paginates":false},+ {"name":"production_getAssemblyInstructionSteps","classification":"READ","paramCount":1,"schema":"f9ddf194f67e","response":"5d620778dd6f","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getAssemblyInstructionStepSlides","classification":"READ","paramCount":1,"schema":"0f56299d6859","response":"60aa9b57a118","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getAssemblyInstructionStepTools","classification":"READ","paramCount":1,"schema":"0f56299d6859","response":"d771814f7578","injectAuth":"companyId","permission":"production:view","paginates":false},{"name":"production_getAssemblyInstructionVersions","classification":"READ","paramCount":2,"schema":"0c21424ecd86","response":"81c6e04c54bd","injectAuth":"companyId","permission":"production:view","paginates":false},@@ -794,6 +795,7 @@{"name":"production_insertJob","classification":"WRITE","paramCount":2,"schema":"fea224e085b1","response":"ad63dfd9d877","injectAuth":"companyId+createdBy+updatedBy","permission":"production:create","paginates":false},{"name":"production_invalidateAssemblyModelCache","classification":"DESTRUCTIVE","paramCount":1,"schema":"277f7d872d8c","response":"bcde375ebd4c","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_issueMaterial","classification":"WRITE","paramCount":7,"schema":"0408bd8c9bde","response":"none","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_makeAssemblySubAssembly","classification":"WRITE","paramCount":2,"schema":"e39572ccf46c","response":"00404e686415","injectAuth":"companyId+userId","permission":"production:update","paginates":false},{"name":"production_maxToolQuantityByItem","classification":"WRITE","paramCount":1,"schema":"8b9e90037b9a","response":"none","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_movePeopleAssignment","classification":"DESTRUCTIVE","paramCount":2,"schema":"a726aa587ccc","response":"fe5e1dc03da5","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_movePeopleWeek","classification":"DESTRUCTIVE","paramCount":5,"schema":"fec8ebf1add4","response":"3badaa1686e8","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},@@ -820,17 +822,18 @@{"name":"production_setPeopleOvertimeBulk","classification":"WRITE","paramCount":6,"schema":"8f082483561d","response":"577d7088b794","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_syncAssemblyInstructionToOperation","classification":"DESTRUCTIVE","paramCount":2,"schema":"8160f8d92b1b","response":"4348d3bad80b","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},{"name":"production_syncAssemblyStepMaterialsFromMappings","classification":"WRITE","paramCount":4,"schema":"7f7346bb3bd0","response":"5815c4dbf43d","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},- {"name":"production_toViewerStep","classification":"WRITE","paramCount":1,"schema":"3f809a44cba0","response":"fc07d477afea","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_toViewerStep","classification":"WRITE","paramCount":1,"schema":"3f809a44cba0","response":"8d1c3851225e","injectAuth":"companyId","permission":"production:update","paginates":false},{"name":"production_unassignPeopleWeek","classification":"DESTRUCTIVE","paramCount":4,"schema":"06ead5d3d9ce","response":"9658926b2cd2","injectAuth":"companyId","permission":"production:update","paginates":false},+ {"name":"production_ungroupAssemblySubAssembly","classification":"DESTRUCTIVE","paramCount":2,"schema":"4bb5885b787b","response":"none","injectAuth":"companyId+userId","permission":"production:update","paginates":false},{"name":"production_unreleaseJobOperationBatch","classification":"WRITE","paramCount":1,"schema":"979f64cb9229","response":"none","injectAuth":"companyId+userId","permission":"production:update","paginates":false},{"name":"production_updateAssemblyInstructionStatus","classification":"WRITE","paramCount":2,"schema":"e43955681d7c","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateAssemblyInstructionStepMaterialOrder","classification":"WRITE","paramCount":2,"schema":"5a4d7dc208a5","response":"none","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},- {"name":"production_updateAssemblyInstructionStepOrder","classification":"WRITE","paramCount":2,"schema":"5a4d7dc208a5","response":"none","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},+ {"name":"production_updateAssemblyInstructionStepOrder","classification":"WRITE","paramCount":2,"schema":"86adf519c2e9","response":"none","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateAssemblyInstructionStepStatus","classification":"WRITE","paramCount":2,"schema":"9291eed55a4a","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateAssemblyStepComponents","classification":"WRITE","paramCount":2,"schema":"d7ea6b1800f7","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateAssemblyStepHiddenComponents","classification":"WRITE","paramCount":3,"schema":"3ac4e88c4df0","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},- {"name":"production_updateAssemblyStepJoin","classification":"WRITE","paramCount":3,"schema":"fe25857086d1","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateAssemblyStepMotion","classification":"WRITE","paramCount":3,"schema":"6665a9b53a17","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},+ {"name":"production_updateAssemblySubAssembly","classification":"WRITE","paramCount":4,"schema":"0f0cbf9e32e1","response":"none","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},{"name":"production_updateInspectionDocumentSampling","classification":"WRITE","paramCount":7,"schema":"e85058fba971","response":"bcde375ebd4c","injectAuth":"companyId+updatedBy+userId","permission":"production:update","paginates":false},{"name":"production_updateJob","classification":"WRITE","paramCount":21,"schema":"e224c0a5aa29","response":"3797626bd17e","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},{"name":"production_updateJobBatchNumber","classification":"WRITE","paramCount":2,"schema":"a4c2a31bb8a6","response":"f7a40899c090","injectAuth":"companyId+updatedBy","permission":"production:update","paginates":false},diff --git a/apps/erp/app/routes/x+/assembly+/$id.steps.join.$stepId.tsx b/apps/erp/app/routes/x+/assembly+/$id.steps.join.$stepId.tsxdeleted file mode 100644index 32afc30f15..0000000000--- a/apps/erp/app/routes/x+/assembly+/$id.steps.join.$stepId.tsx+++ /dev/null@@ -1,51 +0,0 @@-import { assertIsPost, error, notFound } from "@carbon/auth";-import { requirePermissions } from "@carbon/auth/auth.server";-import { flash } from "@carbon/auth/session.server";-import { validator } from "@carbon/form";-import type { ActionFunctionArgs } from "react-router";-import { data } from "react-router";-import {- assemblyInstructionStepJoinValidator,- updateAssemblyStepJoin-} from "~/modules/production";--// Autosave target for a step's "Build off to the side" select; touches only-// the step's join link (parentStepId).-export async function action({ request, params }: ActionFunctionArgs) {- assertIsPost(request);- const { client, companyId, userId } = await requirePermissions(request, {- update: "production"- });-- const { id, stepId } = params;- if (!id) throw notFound("id is not found");- if (!stepId) throw notFound("step id is not found");-- const validation = await validator(- assemblyInstructionStepJoinValidator- ).validate(await request.formData());-- if (validation.error) {- return data(- { success: false },- await flash(request, error(validation.error, "Failed to update step"))- );- }-- const update = await updateAssemblyStepJoin(client, {- assemblyInstructionId: id,- stepId,- joinStepId: validation.data.joinStepId || null,- companyId,- updatedBy: userId- });-- if (update.error) {- return data(- { success: false },- await flash(request, error(update.error, update.error.message))- );- }-- return { success: true };-}diff --git a/apps/erp/app/routes/x+/assembly+/$id.steps.order.tsx b/apps/erp/app/routes/x+/assembly+/$id.steps.order.tsxindex e565862583..b2c71cd02a 100644--- a/apps/erp/app/routes/x+/assembly+/$id.steps.order.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.steps.order.tsx@@ -4,7 +4,7 @@ import { flash } from "@carbon/auth/session.server";import type { ActionFunctionArgs } from "react-router";import { data } from "react-router";import { updateAssemblyInstructionStepOrder } from "~/modules/production";-import { parseSortOrderUpdates } from "~/modules/shared/sort-order";+import { parseStepOrderUpdates } from "~/modules/shared/sort-order";import { getDatabaseClient } from "~/services/database.server";export async function action({ request, params }: ActionFunctionArgs) {@@ -15,7 +15,7 @@ export async function action({ request, params }: ActionFunctionArgs) {if (!params.id) throw new Error("Could not find id");- const updates = parseSortOrderUpdates(await request.formData());+ const updates = parseStepOrderUpdates(await request.formData());if (!updates) {return data({ success: false },diff --git a/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.delete.tsx b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.delete.tsxnew file mode 100644index 0000000000..b1327614f6--- /dev/null+++ b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.delete.tsx@@ -0,0 +1,48 @@+import { assertIsPost, error, notFound } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { getLogger } from "@carbon/logger";+import type { ActionFunctionArgs } from "react-router";+import { data } from "react-router";+import { deleteAssemblySubAssembly } from "~/modules/production";+import { getDatabaseClient } from "~/services/database.server";++const logger = getLogger("erp", "assembly-sub-assembly-delete");++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "production"+ });++ const { id, stepId } = params;+ if (!id) throw notFound("id is not found");+ if (!stepId) throw notFound("step id is not found");++ try {+ await deleteAssemblySubAssembly(getDatabaseClient(), {+ assemblyInstructionId: id,+ headerId: stepId,+ companyId,+ userId+ });+ return { success: true };+ } catch (err) {+ logger.error("Failed to delete sub-assembly", {+ companyId,+ assemblyInstructionId: id,+ headerId: stepId,+ error: err+ });+ return data(+ { success: false },+ await flash(+ request,+ error(+ err,+ err instanceof Error ? err.message : "Failed to delete sub-assembly"+ )+ )+ );+ }+}diff --git a/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.tsx b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.tsxnew file mode 100644index 0000000000..dd109fd427--- /dev/null+++ b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.tsx@@ -0,0 +1,72 @@+import { assertIsPost, error, notFound } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validator } from "@carbon/form";+import { getLogger } from "@carbon/logger";+import type { ActionFunctionArgs } from "react-router";+import { data } from "react-router";+import {+ assemblySubAssemblyUpdateValidator,+ updateAssemblySubAssembly+} from "~/modules/production";+import { getDatabaseClient } from "~/services/database.server";++const logger = getLogger("erp", "assembly-sub-assembly-update");++// Autosave target for a sub-assembly's name and "Used in" step. Only the fields+// posted are changed; an empty `usedInStepId` means it joins the main build.+export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "production"+ });++ const { id, stepId } = params;+ if (!id) throw notFound("id is not found");+ if (!stepId) throw notFound("step id is not found");++ const formData = await request.formData();+ const validation = await validator(+ assemblySubAssemblyUpdateValidator+ ).validate(formData);+ if (validation.error) {+ return data(+ { success: false },+ await flash(+ request,+ error(validation.error, "Failed to update sub-assembly")+ )+ );+ }++ try {+ await updateAssemblySubAssembly(getDatabaseClient(), {+ assemblyInstructionId: id,+ headerId: stepId,+ title: formData.has("title") ? (validation.data.title ?? "") : undefined,+ usedInStepId: formData.has("usedInStepId")+ ? (validation.data.usedInStepId ?? null)+ : undefined,+ companyId,+ userId+ });+ return { success: true };+ } catch (err) {+ logger.error("Failed to update sub-assembly", {+ companyId,+ assemblyInstructionId: id,+ headerId: stepId,+ error: err+ });+ return data(+ { success: false },+ await flash(+ request,+ error(+ err,+ err instanceof Error ? err.message : "Failed to update sub-assembly"+ )+ )+ );+ }+}diff --git a/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.ungroup.tsx b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.ungroup.tsxnew file mode 100644index 0000000000..d90164347a--- /dev/null+++ b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.$stepId.ungroup.tsx@@ -0,0 +1,48 @@+import { assertIsPost, error, notFound } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { getLogger } from "@carbon/logger";+import type { ActionFunctionArgs } from "react-router";+import { data } from "react-router";+import { ungroupAssemblySubAssembly } from "~/modules/production";+import { getDatabaseClient } from "~/services/database.server";++const logger = getLogger("erp", "assembly-sub-assembly-ungroup");++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "production"+ });++ const { id, stepId } = params;+ if (!id) throw notFound("id is not found");+ if (!stepId) throw notFound("step id is not found");++ try {+ await ungroupAssemblySubAssembly(getDatabaseClient(), {+ assemblyInstructionId: id,+ headerId: stepId,+ companyId,+ userId+ });+ return { success: true };+ } catch (err) {+ logger.error("Failed to ungroup sub-assembly", {+ companyId,+ assemblyInstructionId: id,+ headerId: stepId,+ error: err+ });+ return data(+ { success: false },+ await flash(+ request,+ error(+ err,+ err instanceof Error ? err.message : "Failed to ungroup sub-assembly"+ )+ )+ );+ }+}diff --git a/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.new.tsx b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.new.tsxnew file mode 100644index 0000000000..493c7e4288--- /dev/null+++ b/apps/erp/app/routes/x+/assembly+/$id.sub-assemblies.new.tsx@@ -0,0 +1,64 @@+import { assertIsPost, error, notFound } from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import { validator } from "@carbon/form";+import { getLogger } from "@carbon/logger";+import type { ActionFunctionArgs } from "react-router";+import { data } from "react-router";+import {+ assemblySubAssemblyNewValidator,+ makeAssemblySubAssembly+} from "~/modules/production";+import { getDatabaseClient } from "~/services/database.server";++const logger = getLogger("erp", "assembly-sub-assembly-new");++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {+ update: "production"+ });++ const { id } = params;+ if (!id) throw notFound("id is not found");++ const validation = await validator(assemblySubAssemblyNewValidator).validate(+ await request.formData()+ );+ if (validation.error) {+ return data(+ { success: false },+ await flash(+ request,+ error(validation.error, "Failed to make sub-assembly")+ )+ );+ }++ try {+ const headerId = await makeAssemblySubAssembly(getDatabaseClient(), {+ assemblyInstructionId: id,+ stepId: validation.data.stepId,+ companyId,+ userId+ });+ return { success: true, id: headerId };+ } catch (err) {+ logger.error("Failed to make sub-assembly", {+ companyId,+ assemblyInstructionId: id,+ stepId: validation.data.stepId,+ error: err+ });+ return data(+ { success: false },+ await flash(+ request,+ error(+ err,+ err instanceof Error ? err.message : "Failed to make sub-assembly"+ )+ )+ );+ }+}diff --git a/apps/erp/app/routes/x+/assembly+/$id.tsx b/apps/erp/app/routes/x+/assembly+/$id.tsxindex 7230fb2635..4d38495eb5 100644--- a/apps/erp/app/routes/x+/assembly+/$id.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.tsx@@ -18,19 +18,26 @@ import type {} from "@carbon/viewer";import {AssemblyPlayer,+ buildSubAssemblyPlan,indexAssemblyGraph,- stagedGroupNodeIds+ subAssemblyPartIds} from "@carbon/viewer";import { msg } from "@lingui/core/macro";+import { useLingui } from "@lingui/react/macro";import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router";+import type {+ ActionFunctionArgs,+ LoaderFunctionArgs,+ ShouldRevalidateFunction+} from "react-router";import {data,redirect,useFetcher,useLoaderData,useParams,- useRevalidator+ useRevalidator,+ useSearchParams} from "react-router";import { Empty } from "~/components";import { PanelProvider, ResizablePanels } from "~/components/Layout/Panels";@@ -56,6 +63,7 @@ import { isAssemblerServiceHealthy } from "~/modules/production/production.serveimport AssemblyInstructionExplorer from "~/modules/production/ui/Assemblies/AssemblyInstructionExplorer";import AssemblyInstructionHeader from "~/modules/production/ui/Assemblies/AssemblyInstructionHeader";import AssemblyInstructionProperties from "~/modules/production/ui/Assemblies/AssemblyInstructionProperties";+import { SUB_ASSEMBLY_PARAM } from "~/modules/production/ui/Assemblies/AssemblyStepList";import { ModelConvertProgress } from "~/modules/production/ui/Assemblies/ModelConvertProgress";import { detailBreadcrumb, type Handle } from "~/utils/handle";import { getPrivateUrl, path } from "~/utils/path";@@ -68,6 +76,28 @@ export const handle: Handle = {module: "production"};+// Opening or closing a sub-assembly (?subAssembly=) changes only what the list+// and player show; skip the heavy loader. Revalidator calls (same URL) and+// actions still revalidate.+export const shouldRevalidate: ShouldRevalidateFunction = ({+ currentUrl,+ nextUrl,+ formMethod,+ defaultShouldRevalidate+}) => {+ if (!formMethod && currentUrl.href !== nextUrl.href) {+ const withoutSubAssembly = (url: URL) => {+ const next = new URL(url);+ next.searchParams.delete(SUB_ASSEMBLY_PARAM);+ return next.href;+ };+ if (withoutSubAssembly(currentUrl) === withoutSubAssembly(nextUrl)) {+ return false;+ }+ }+ return defaultShouldRevalidate;+};+export async function loader({ request, params }: LoaderFunctionArgs) {const { client, companyId } = await requirePermissions(request, {view: "production",@@ -320,14 +350,21 @@ export default function AssemblyInstructionRoute() {[steps, draftHiddenNodeIds, selectedStep]);- // A join step also "owns" the group built aside for it: those parts move on- // it, so they get the This-step badge and can't be hidden there.+ const subPlan = useMemo(+ () => buildSubAssemblyPlan(viewerSteps),+ [viewerSteps]+ );++ // A step that carries a finished sub-assembly in also "owns" its parts:+ // they move on it, so they get the This-step badge and can't be hidden there.const selectedOwnNodeIds = useMemo(() => {const own = draftComponentNodeIds ?? selectedStep?.componentNodeIds ?? [];if (!selectedStep) return own;- const staged = stagedGroupNodeIds(viewerSteps, selectedStep.id);- return staged.length === 0 ? own : [...new Set([...own, ...staged])];- }, [draftComponentNodeIds, selectedStep, viewerSteps]);+ const carried = (subPlan.get(selectedStep.id)?.carriesIn ?? []).flatMap(+ (headerId) => subAssemblyPartIds(viewerSteps, headerId)+ );+ return carried.length === 0 ? own : [...new Set([...own, ...carried])];+ }, [draftComponentNodeIds, selectedStep, viewerSteps, subPlan]);// Mirrors the DB trigger for the in-flight drafts: a part the step installs is// never listed as hidden on it (e.g. right after adding it to the step).const selectedHiddenNodeIds = useMemo(() => {@@ -348,6 +385,66 @@ export default function AssemblyInstructionRoute() {[isDisabled, selectedStep, saveHiddenNodeIds]);+ // An opened sub-assembly (?subAssembly=) scopes the player to its steps.+ const { t } = useLingui();+ const [searchParams] = useSearchParams();+ const requestedSubAssembly = searchParams.get(SUB_ASSEMBLY_PARAM);+ const openSubAssemblyId =+ requestedSubAssembly && subPlan.get(requestedSubAssembly)?.isHeader+ ? requestedSubAssembly+ : null;+ const scopeStepIds = useMemo(+ () =>+ openSubAssemblyId+ ? viewerSteps+ .filter((step) => step.parentStepId === openSubAssemblyId)+ .map((step) => step.id)+ : null,+ [openSubAssemblyId, viewerSteps]+ );++ // A used sub-assembly's header plays nothing (the unit joins at the step+ // that uses it), so selecting it shows its finished last step instead.+ const playerStepIndex = useMemo(() => {+ const info = selectedStep ? subPlan.get(selectedStep.id) : undefined;+ if (!info?.isHeader || info.plays) return activeStepIndex;+ const members = viewerSteps.filter(+ (step) => step.parentStepId === info.stepId+ );+ const last = members[members.length - 1];+ return last+ ? viewerSteps.findIndex((step) => step.id === last.id)+ : activeStepIndex;+ }, [selectedStep, subPlan, viewerSteps, activeStepIndex]);++ const subAssemblyName = useCallback(+ (headerId: string) =>+ viewerSteps.find((step) => step.id === headerId)?.title ||+ t`Sub-Assembly`,+ [viewerSteps, t]+ );+ // Labels follow the step the player shows (a used header shows its last step).+ const playerStepId = viewerSteps[playerStepIndex]?.id;+ const activeInfo = playerStepId ? subPlan.get(playerStepId) : undefined;+ const isolationLabel =+ activeInfo && !activeInfo.isHeader && activeInfo.headerId+ ? t`Sub-Assembly ${subPlan.get(activeInfo.headerId)?.number ?? ""} · ${subAssemblyName(+ activeInfo.headerId+ )} — shown on its own`+ : null;+ const carriedIn = (activeInfo?.carriesIn ?? []).filter(+ (headerId) => headerId !== playerStepId+ );+ const carryInLabel =+ carriedIn.length > 0+ ? carriedIn+ .map(+ (headerId) =>+ t`Uses ${subPlan.get(headerId)?.number ?? ""} · ${subAssemblyName(headerId)}`+ )+ .join(", ")+ : null;+// Bumped to preview (play) the active step — a double-click in the Explorer.const [playStepNonce, setPlayStepNonce] = useState(0);@@ -376,6 +473,16 @@ export default function AssemblyInstructionRoute() {[]);+ // Opening a sub-assembly lands on its first step (the player only plays its+ // steps). Keyed on the opened id alone so picking another step afterwards+ // (its header in Properties, say) isn't bounced back.+ // biome-ignore lint/correctness/useExhaustiveDependencies: runs only when a sub-assembly is opened+ useEffect(() => {+ if (!scopeStepIds || scopeStepIds.length === 0) return;+ if (selectedStep && scopeStepIds.includes(selectedStep.id)) return;+ onSelectStep(scopeStepIds[0]);+ }, [openSubAssemblyId]);+// Double-clicking a step previews it: select it, then bump the nonce so the// player animates its insertion (single-click just shows it seated).const onPreviewStep = useCallback(@@ -654,7 +761,10 @@ export default function AssemblyInstructionRoute() {glbUrl={getPrivateUrl(glbPath)}graphUrl={getPrivateUrl(graphPath)}steps={viewerSteps}- activeStepIndex={Math.max(activeStepIndex, 0)}+ scopeStepIds={scopeStepIds}+ isolationLabel={isolationLabel}+ carryInLabel={carryInLabel}+ activeStepIndex={Math.max(playerStepIndex, 0)}playStepNonce={playStepNonce}onStepChange={(index) => {const step = steps[index];@@ -734,8 +844,6 @@ export default function AssemblyInstructionRoute() {<AssemblyInstructionPropertieskey={selectedStep?.id ?? "empty"}step={selectedStep}- stepIndex={selectedStep ? activeStepIndex : null}- stepCount={steps.length}draftComponentNodeIds={draftComponentNodeIds}selectedNodeIds={selectedNodeIds}isAddingComponents={isAddingComponents}diff --git a/apps/erp/app/routes/x+/assembly+/$id.units.$unitId.tsx b/apps/erp/app/routes/x+/assembly+/$id.units.$unitId.tsxindex 7f46608a26..fc9f6f4213 100644--- a/apps/erp/app/routes/x+/assembly+/$id.units.$unitId.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.units.$unitId.tsx@@ -28,7 +28,10 @@ export async function action({ request, params }: ActionFunctionArgs) {if (validation.error) {return data({ success: false },- await flash(request, error(validation.error, "Failed to update unit"))+ await flash(+ request,+ error(validation.error, "Failed to update component group")+ ));}@@ -45,7 +48,10 @@ export async function action({ request, params }: ActionFunctionArgs) {if (update.error) {return data({ success: false },- await flash(request, error(update.error, "Failed to update unit"))+ await flash(+ request,+ error(update.error, "Failed to update component group")+ ));}diff --git a/apps/erp/app/routes/x+/assembly+/$id.units.delete.$unitId.tsx b/apps/erp/app/routes/x+/assembly+/$id.units.delete.$unitId.tsxindex 8f5ef1975c..87953db3f9 100644--- a/apps/erp/app/routes/x+/assembly+/$id.units.delete.$unitId.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.units.delete.$unitId.tsx@@ -17,7 +17,10 @@ export async function action({ request, params }: ActionFunctionArgs) {if (remove.error) {return data({ success: false },- await flash(request, error(remove.error, "Failed to delete unit"))+ await flash(+ request,+ error(remove.error, "Failed to delete component group")+ ));}diff --git a/apps/erp/app/routes/x+/assembly+/$id.units.new.tsx b/apps/erp/app/routes/x+/assembly+/$id.units.new.tsxindex 68dcb3074d..6e2f62a042 100644--- a/apps/erp/app/routes/x+/assembly+/$id.units.new.tsx+++ b/apps/erp/app/routes/x+/assembly+/$id.units.new.tsx@@ -22,7 +22,10 @@ export async function action({ request }: ActionFunctionArgs) {if (validation.error) {return data({ success: false },- await flash(request, error(validation.error, "Failed to create unit"))+ await flash(+ request,+ error(validation.error, "Failed to create component group")+ ));}@@ -37,7 +40,10 @@ export async function action({ request }: ActionFunctionArgs) {if (create.error) {return data({ success: false },- await flash(request, error(create.error, "Failed to create unit"))+ await flash(+ request,+ error(create.error, "Failed to create component group")+ ));}diff --git a/apps/erp/app/utils/path.ts b/apps/erp/app/utils/path.tsindex d2a60b7c30..a1a1fdc0d8 100644--- a/apps/erp/app/utils/path.ts+++ b/apps/erp/app/utils/path.ts@@ -376,8 +376,6 @@ export const path = {generatePath(`${x}/assembly/${id}/steps/components/reassign`),assemblyInstructionStepHiddenComponents: (id: string, stepId: string) =>generatePath(`${x}/assembly/${id}/steps/hidden/${stepId}`),- assemblyInstructionStepJoin: (id: string, stepId: string) =>- generatePath(`${x}/assembly/${id}/steps/join/${stepId}`),assemblyInstructionStepMotion: (id: string, stepId: string) =>generatePath(`${x}/assembly/${id}/steps/motion/${stepId}`),assemblyInstructionStepOrder: (id: string) =>@@ -399,6 +397,14 @@ export const path = {generatePath(`${x}/assembly/${id}/materials/${materialId}`),assemblyStepMaterialOrder: (id: string) =>generatePath(`${x}/assembly/${id}/materials/order`),+ assemblySubAssembly: (id: string, stepId: string) =>+ generatePath(`${x}/assembly/${id}/sub-assemblies/${stepId}`),+ assemblySubAssemblyDelete: (id: string, stepId: string) =>+ generatePath(`${x}/assembly/${id}/sub-assemblies/${stepId}/delete`),+ assemblySubAssemblyNew: (id: string) =>+ generatePath(`${x}/assembly/${id}/sub-assemblies/new`),+ assemblySubAssemblyUngroup: (id: string, stepId: string) =>+ generatePath(`${x}/assembly/${id}/sub-assemblies/${stepId}/ungroup`),assemblySyncBop: (id: string) =>generatePath(`${x}/assembly/${id}/sync-bop`),assetClass: (id: string) =>diff --git a/apps/mes/app/components/AssemblyView.tsx b/apps/mes/app/components/AssemblyView.tsxindex 15e4e55565..ded268201c 100644--- a/apps/mes/app/components/AssemblyView.tsx+++ b/apps/mes/app/components/AssemblyView.tsx@@ -51,11 +51,14 @@ import type {Fastener,Motion} from "@carbon/viewer";-import { AssemblyPlayer } from "@carbon/viewer";+import { AssemblyPlayer, buildSubAssemblyPlan } from "@carbon/viewer";import { ModelPreview } from "@carbon/viewer/model-preview";+import { useLingui } from "@lingui/react/macro";import { useEffect, useMemo, useRef, useState } from "react";import {+ LuArrowLeft,LuBox,+ LuBoxes,LuCheck,LuChevronLeft,LuChevronRight,@@ -196,8 +199,11 @@ type AssemblyPlayback = {instructionText: string | null;componentNodeIds: string[] | null;hiddenComponentNodeIds: string[] | null;- /** The join step this step is built aside for (sub-assembly staging) */+ /** The sub-assembly (header step) this step belongs to */parentStepId: string | null;+ /** On a header: the step that fits the finished sub-assembly */+ usedInStepId: string | null;+ isSubAssembly: boolean;motion: Json;camera: Json | null;fastener: Json | null;@@ -208,6 +214,9 @@ type AssemblyPlayback = {const playerMotionTypes = ["linear", "L", "helix", "path", "none"];+/** Opens a sub-assembly: the step bar and the player show only its steps. */+const SUB_ASSEMBLY_PARAM = "subAssembly";+// DB row → @carbon/viewer AssemblyStep.function toViewerStep(step: AssemblyPlayback["steps"][number]): AssemblyStep {const motion = step.motion as Motion | null;@@ -218,7 +227,9 @@ function toViewerStep(step: AssemblyPlayback["steps"][number]): AssemblyStep {instructionText: step.instructionText,componentNodeIds: step.componentNodeIds ?? [],hiddenComponentNodeIds: step.hiddenComponentNodeIds ?? [],- joinStepId: step.parentStepId ?? null,+ parentStepId: step.parentStepId ?? null,+ usedInStepId: step.usedInStepId ?? null,+ isSubAssembly: step.isSubAssembly,motion:motion &&typeof motion === "object" &&@@ -526,6 +537,7 @@ export function AssemblyView({const navigate = useNavigate();const revalidate = useRealtimeRevalidator();const [searchParams, setSearchParams] = useSearchParams();+ const { t } = useLingui();// Which main panel is shown: the assembly details, the 3D model, or chat.const [tab, setTab] = useState<"details" | "model" | "chat">("details");@@ -1090,6 +1102,88 @@ export function AssemblyView({return index >= 0 ? index : null;}, [assemblyPlayback, step]);const playbackAvailable = playbackIndex !== null && viewerSteps.length > 0;++ // Sub-assemblies come from the instruction: a job step belongs to one when+ // its instruction step (the provenance marker) does. The bar shows each+ // sub-assembly as one entry; ?subAssembly= opens it, so the bar and the+ // player show only its steps. Hand-authored job steps stay top level.+ const subPlan = useMemo(+ () => buildSubAssemblyPlan(viewerSteps),+ [viewerSteps]+ );+ const headerOfJobStep = (jobStep: Step | undefined) => {+ const marker = jobStep?.assemblyInstructionStepId;+ const info = marker ? subPlan.get(marker) : undefined;+ return info && !info.isHeader ? info.headerId : null;+ };+ const subAssemblyTitle = (headerId: string) =>+ viewerSteps.find((viewerStep) => viewerStep.id === headerId)?.title ||+ t`Sub-Assembly`;+ const subAssemblyNumber = (headerId: string) =>+ subPlan.get(headerId)?.number ?? "";+ const requestedSubAssembly = searchParams.get(SUB_ASSEMBLY_PARAM);+ const openSubAssemblyId =+ requestedSubAssembly && subPlan.get(requestedSubAssembly)?.isHeader+ ? requestedSubAssembly+ : null;+ const scopeStepIds = useMemo(+ () =>+ openSubAssemblyId+ ? viewerSteps+ .filter(+ (viewerStep) => viewerStep.parentStepId === openSubAssemblyId+ )+ .map((viewerStep) => viewerStep.id)+ : null,+ [openSubAssemblyId, viewerSteps]+ );+ const playbackInfo =+ playbackIndex !== null+ ? subPlan.get(viewerSteps[playbackIndex]?.id ?? "")+ : undefined;+ const isolationLabel =+ playbackInfo && !playbackInfo.isHeader && playbackInfo.headerId+ ? t`Sub-Assembly ${subAssemblyNumber(playbackInfo.headerId)} · ${subAssemblyTitle(+ playbackInfo.headerId+ )} — shown on its own`+ : null;+ const carriedIn = playbackInfo?.carriesIn ?? [];+ const carryInLabel =+ carriedIn.length > 0+ ? carriedIn+ .map(+ (headerId) =>+ t`Uses ${subAssemblyNumber(headerId)} · ${subAssemblyTitle(headerId)}`+ )+ .join(", ")+ : null;++ // The bar's entries: a job step, or a sub-assembly holding its job steps.+ type BarItem =+ | { kind: "step"; index: number }+ | { kind: "subAssembly"; headerId: string; indices: number[] };+ const barItems: BarItem[] = [];+ const subAssemblyItems = new Map<+ string,+ Extract<BarItem, { kind: "subAssembly" }>+ >();+ steps.forEach((jobStep, index) => {+ const headerId = headerOfJobStep(jobStep);+ if (!headerId) {+ barItems.push({ kind: "step", index });+ return;+ }+ let item = subAssemblyItems.get(headerId);+ if (!item) {+ item = { kind: "subAssembly", headerId, indices: [] };+ subAssemblyItems.set(headerId, item);+ barItems.push(item);+ }+ item.indices.push(index);+ });+ const openIndices = openSubAssemblyId+ ? (subAssemblyItems.get(openSubAssemblyId)?.indices ?? [])+ : [];const selectedCaption =typeof selected === "number"? (stepSlides[selected]?.caption ?? null)@@ -1130,12 +1224,70 @@ export function AssemblyView({(prev) => {const next = new URLSearchParams(prev);next.set("step", String(n));+ // Leaving an opened sub-assembly's steps closes it.+ const open = next.get(SUB_ASSEMBLY_PARAM);+ if (open && headerOfJobStep(steps[n]) !== open) {+ next.delete(SUB_ASSEMBLY_PARAM);+ }return next;},{ replace: true, preventScrollReset: true });}+ function openSubAssembly(headerId: string, indices: number[]) {+ const target =+ indices.find((index) => !isStepDone(steps[index])) ?? indices[0] ?? 0;+ setSearchParams(+ (prev) => {+ const next = new URLSearchParams(prev);+ next.set(SUB_ASSEMBLY_PARAM, headerId);+ next.set("step", String(target));+ return next;+ },+ { preventScrollReset: true }+ );+ }++ const stepMatchesFilter = (s: Step) =>+ stepFilter === "all"+ ? true+ : stepFilter === "completed"+ ? isStepDone(s)+ : !isStepDone(s);+ const stepSegmentTone = (s: Step, i: number) =>+ isStepDone(s)+ ? isStepBadResult(s)+ ? "bg-red-500"+ : "bg-emerald-500"+ : i === currentStep+ ? "bg-foreground"+ : "bg-border";+ const renderStepSegment = (s: Step, i: number) => (+ <button+ key={s.id}+ type="button"+ aria-label={`Go to step ${i + 1}`}+ onClick={() => goToStep(i)}+ className={cn(+ "h-3 flex-1 rounded-[2px] transition-colors",+ stepSegmentTone(s, i),+ !isStepDone(s) && i !== currentStep && "hover:bg-muted-foreground/40"+ )}+ />+ );++ function closeSubAssembly() {+ setSearchParams(+ (prev) => {+ const next = new URLSearchParams(prev);+ next.delete(SUB_ASSEMBLY_PARAM);+ return next;+ },+ { preventScrollReset: true }+ );+ }+// ── Auto-advance + labor automation ──────────────────────────────────────// Reduce keystrokes on the shop floor: the moment the step the operator is// looking at flips to "done" (a record just landed — Mark done, Record, a@@ -1583,7 +1735,7 @@ export function AssemblyView({{/* ── STEPS BAR (segmented, click to jump; green = done) ── */}{steps.length > 0 && (- <div className="flex h-9 shrink-0 items-center gap-3 bg-card border-b border-border px-5">+ <div className="flex min-h-9 shrink-0 items-center gap-3 bg-card border-b border-border px-5 py-1">{/* Label reflects the active filter so a filtered bar (e.g. only the completed,all-green steps) is never mistaken for "everything done". */}<span className="whitespace-nowrap text-xs text-muted-foreground">@@ -1593,34 +1745,64 @@ export function AssemblyView({? `${steps.length - doneCount} incomplete`: `${doneCount} / ${steps.length} done`}</span>- <div className="flex flex-1 items-center gap-1">- {steps- .map((s, i) => [s, i] as const)- .filter(([s]) =>- stepFilter === "all"- ? true- : stepFilter === "completed"- ? isStepDone(s)- : !isStepDone(s)- )- .map(([s, i]) => (- <button- key={s.id}- type="button"- aria-label={`Go to step ${i + 1}`}- onClick={() => goToStep(i)}- className={cn(- "h-3 flex-1 rounded-[2px] transition-colors",- isStepDone(s)- ? isStepBadResult(s)- ? "bg-red-500"- : "bg-emerald-500"- : i === currentStep- ? "bg-foreground"- : "bg-border hover:bg-muted-foreground/40"- )}- />- ))}+ <div className="flex min-w-0 flex-1 items-center gap-1">+ {openSubAssemblyId ? (+ <>+ <Button+ variant="ghost"+ size="md"+ leftIcon={<LuArrowLeft />}+ onClick={closeSubAssembly}+ >+ {t`All steps`}+ </Button>+ <span className="max-w-[40%] shrink-0 truncate text-xs text-muted-foreground">+ {t`Sub-Assembly ${subAssemblyNumber(openSubAssemblyId)} · ${subAssemblyTitle(openSubAssemblyId)}`}+ </span>+ {openIndices+ .filter((i) => stepMatchesFilter(steps[i]))+ .map((i) => renderStepSegment(steps[i], i))}+ </>+ ) : (+ barItems.map((item) => {+ if (item.kind === "step") {+ const s = steps[item.index];+ return stepMatchesFilter(s)+ ? renderStepSegment(s, item.index)+ : null;+ }+ const members = item.indices.map((i) => steps[i]);+ const allDone = members.every(isStepDone);+ if (stepFilter === "completed" && !allDone) return null;+ if (stepFilter === "incomplete" && allDone) return null;+ const isCurrent = item.indices.includes(currentStep);+ return (+ <button+ key={item.headerId}+ type="button"+ aria-label={t`Open sub-assembly ${subAssemblyNumber(item.headerId)}: ${subAssemblyTitle(item.headerId)}`}+ title={t`Sub-Assembly ${subAssemblyNumber(item.headerId)} · ${subAssemblyTitle(item.headerId)}`}+ onClick={() => openSubAssembly(item.headerId, item.indices)}+ style={{ flexGrow: item.indices.length }}+ className={cn(+ "flex h-6 flex-1 basis-0 items-center gap-0.5 rounded-[3px] border px-1 transition-colors hover:bg-muted",+ isCurrent ? "border-foreground" : "border-border"+ )}+ >+ <LuBoxes className="size-3.5 shrink-0 text-muted-foreground" />+ {item.indices.map((i) => (+ <span+ key={steps[i].id}+ className={cn(+ "h-2 flex-1 rounded-[1px]",+ stepSegmentTone(steps[i], i)+ )}+ />+ ))}+ </button>+ );+ })+ )}{stepFilter === "incomplete" && doneCount === steps.length && (<span className="text-xs text-emerald-500">All steps done</span>)}@@ -1979,6 +2161,9 @@ export function AssemblyView({glbUrl={getPrivateUrl(assemblyPlayback.glbPath)}graphUrl={getPrivateUrl(assemblyPlayback.graphPath)}steps={viewerSteps}+ scopeStepIds={scopeStepIds}+ isolationLabel={isolationLabel}+ carryInLabel={carryInLabel}activeStepIndex={playbackIndex ?? 0}playStepNonce={currentStep}autoPlaydiff --git a/apps/mes/app/services/operations.service.ts b/apps/mes/app/services/operations.service.tsindex f65edc6b0f..4f8cf6d18e 100644--- a/apps/mes/app/services/operations.service.ts+++ b/apps/mes/app/services/operations.service.ts@@ -672,7 +672,7 @@ export async function getAssemblyPlaybackByOperationId(const steps = await client.from("assemblyInstructionStep").select(- "id, title, instructionText, componentNodeIds, hiddenComponentNodeIds, parentStepId, motion, camera, fastener, durationSeconds, warnings"+ "id, title, instructionText, componentNodeIds, hiddenComponentNodeIds, parentStepId, usedInStepId, isSubAssembly, motion, camera, fastener, durationSeconds, warnings").eq("assemblyInstructionId", instructionId).order("sortOrder", { ascending: true });diff --git a/docs/content/src/glossary/terms.ts b/docs/content/src/glossary/terms.tsindex b6dd823d48..325cf77fc6 100644--- a/docs/content/src/glossary/terms.ts+++ b/docs/content/src/glossary/terms.ts@@ -106,6 +106,11 @@ export const terms = {definition: msg`Builds this step's components beside the model as a group, then carries the group in at a later join step.`,href: "/docs/reference/assembly-instructions#building-a-group-off-to-the-side"},+ "assembly-sub-assembly": {+ term: msg`Sub-assembly`,+ definition: msg`Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps.`,+ href: "/docs/reference/assembly-instructions#sub-assemblies"+ },"assembly-step-hidden-components": {term: msg`Hidden on this step`,definition: msg`Components hidden only while this step plays, such as a fixture in the way; use the eye in the Components tab to hide one.`,diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex 3a741109db..9175958a4b 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -53361,6 +53361,12 @@ export default {{$ref: "#/parameters/rowFilter.assemblyInstructionStep.hiddenComponentNodeIds"},+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.usedInStepId"+ },+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.isSubAssembly"+ },{$ref: "#/parameters/select"},@@ -53516,6 +53522,12 @@ export default {{$ref: "#/parameters/rowFilter.assemblyInstructionStep.hiddenComponentNodeIds"},+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.usedInStepId"+ },+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.isSubAssembly"+ },{$ref: "#/parameters/preferReturn"}@@ -53625,6 +53637,12 @@ export default {{$ref: "#/parameters/rowFilter.assemblyInstructionStep.hiddenComponentNodeIds"},+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.usedInStepId"+ },+ {+ $ref: "#/parameters/rowFilter.assemblyInstructionStep.isSubAssembly"+ },{$ref: "#/parameters/body.assemblyInstructionStep"},@@ -131739,7 +131757,8 @@ export default {"createdBy","createdAt","status",- "hiddenComponentNodeIds"+ "hiddenComponentNodeIds",+ "isSubAssembly"],properties: {id: {@@ -131906,6 +131925,17 @@ export default {type: "string"},type: "array"+ },+ usedInStepId: {+ description:+ "Note:\nThis is a Foreign Key to `assemblyInstructionStep.id`.<fk table='assemblyInstructionStep' column='id'/>",+ format: "text",+ type: "string"+ },+ isSubAssembly: {+ default: false,+ format: "boolean",+ type: "boolean"}},type: "object"@@ -179678,6 +179708,18 @@ export default {in: "query",type: "string"},+ "rowFilter.assemblyInstructionStep.usedInStepId": {+ name: "usedInStepId",+ required: false,+ in: "query",+ type: "string"+ },+ "rowFilter.assemblyInstructionStep.isSubAssembly": {+ name: "isSubAssembly",+ required: false,+ in: "query",+ type: "string"+ },"body.receiptLine": {name: "receiptLine",description: "receiptLine",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex b84dc53ab5..7fb4b33bf4 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -3634,6 +3634,7 @@ export type Database = {hiddenComponentNodeIds: string[]id: stringinstructionText: string | null+ isSubAssembly: booleanlistValues: string[] | nullmaxValue: number | nullminValue: number | null@@ -3650,6 +3651,7 @@ export type Database = {unitOfMeasureCode: string | nullupdatedAt: string | nullupdatedBy: string | null+ usedInStepId: string | nullwarnings: Json | null}Insert: {@@ -3668,6 +3670,7 @@ export type Database = {hiddenComponentNodeIds?: string[]id?: stringinstructionText?: string | null+ isSubAssembly?: booleanlistValues?: string[] | nullmaxValue?: number | nullminValue?: number | null@@ -3684,6 +3687,7 @@ export type Database = {unitOfMeasureCode?: string | nullupdatedAt?: string | nullupdatedBy?: string | null+ usedInStepId?: string | nullwarnings?: Json | null}Update: {@@ -3702,6 +3706,7 @@ export type Database = {hiddenComponentNodeIds?: string[]id?: stringinstructionText?: string | null+ isSubAssembly?: booleanlistValues?: string[] | nullmaxValue?: number | nullminValue?: number | null@@ -3718,6 +3723,7 @@ export type Database = {unitOfMeasureCode?: string | nullupdatedAt?: string | nullupdatedBy?: string | null+ usedInStepId?: string | nullwarnings?: Json | null}Relationships: [@@ -3853,6 +3859,13 @@ export type Database = {isOneToOne: falsereferencedRelation: "userDefaults"referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "assemblyInstructionStep_usedInStepId_fkey"+ columns: ["usedInStepId"]+ isOneToOne: false+ referencedRelation: "assemblyInstructionStep"+ referencedColumns: ["id"]}]}diff --git a/packages/database/supabase/functions/get-method/index.ts b/packages/database/supabase/functions/get-method/index.tsindex 62a0e5c141..d3531e3f09 100644--- a/packages/database/supabase/functions/get-method/index.ts+++ b/packages/database/supabase/functions/get-method/index.ts@@ -8176,9 +8176,11 @@ async function insertAssemblyDataForJobOperation(if (instruction.error) return new Set<string>();- const sourceSteps = (instruction.data?.assemblyInstructionStep ?? []).sort(- (a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0)- );+ // A sub-assembly (header) row is not a build action, so it never becomes a+ // job step; its member steps are copied in play order like any other.+ const sourceSteps = (instruction.data?.assemblyInstructionStep ?? [])+ .filter((step) => !step.isSubAssembly)+ .sort((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0));if (sourceSteps.length === 0) return new Set<string>();const sourceStepIds = sourceSteps.map((step) => step.id);diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex b84dc53ab5..7fb4b33bf4 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -3634,6 +3634,7 @@ export type Database = {hiddenComponentNodeIds: string[]id: stringinstructionText: string | null+ isSubAssembly: booleanlistValues: string[] | nullmaxValue: number | nullminValue: number | null@@ -3650,6 +3651,7 @@ export type Database = {unitOfMeasureCode: string | nullupdatedAt: string | nullupdatedBy: string | null+ usedInStepId: string | nullwarnings: Json | null}Insert: {@@ -3668,6 +3670,7 @@ export type Database = {hiddenComponentNodeIds?: string[]id?: stringinstructionText?: string | null+ isSubAssembly?: booleanlistValues?: string[] | nullmaxValue?: number | nullminValue?: number | null@@ -3684,6 +3687,7 @@ export type Database = {unitOfMeasureCode?: string | nullupdatedAt?: string | nullupdatedBy?: string | null+ usedInStepId?: string | nullwarnings?: Json | null}Update: {@@ -3702,6 +3706,7 @@ export type Database = {hiddenComponentNodeIds?: string[]id?: stringinstructionText?: string | null+ isSubAssembly?: booleanlistValues?: string[] | nullmaxValue?: number | nullminValue?: number | null@@ -3718,6 +3723,7 @@ export type Database = {unitOfMeasureCode?: string | nullupdatedAt?: string | nullupdatedBy?: string | null+ usedInStepId?: string | nullwarnings?: Json | null}Relationships: [@@ -3853,6 +3859,13 @@ export type Database = {isOneToOne: falsereferencedRelation: "userDefaults"referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "assemblyInstructionStep_usedInStepId_fkey"+ columns: ["usedInStepId"]+ isOneToOne: false+ referencedRelation: "assemblyInstructionStep"+ referencedColumns: ["id"]}]}diff --git a/packages/database/supabase/migrations/20260930133226_assembly-sub-assemblies.sql b/packages/database/supabase/migrations/20260930133226_assembly-sub-assemblies.sqlnew file mode 100644index 0000000000..ba9f41da84--- /dev/null+++ b/packages/database/supabase/migrations/20260930133226_assembly-sub-assemblies.sql@@ -0,0 +1,75 @@+-- Sub-assemblies replace "Build off to the side".+-- isSubAssembly = the row is a sub-assembly (header). It can exist before any+-- step is moved into it.+-- parentStepId = the sub-assembly this step belongs to (was: a later JOIN step).+-- usedInStepId = on a header: the step that fits the finished sub-assembly.+-- NULL = nothing uses it, so it joins the main build at the header.+-- Rows stay in play order: a sub-assembly's steps sit directly before its header.+-- ON DELETE SET NULL: deleting the using step leaves the sub-assembly joining the+-- main build; deleting a header returns its steps to the top level.+BEGIN;++ALTER TABLE "assemblyInstructionStep"+ ADD COLUMN IF NOT EXISTS "usedInStepId" TEXT+ REFERENCES "assemblyInstructionStep"("id") ON DELETE SET NULL,+ ADD COLUMN IF NOT EXISTS "isSubAssembly" BOOLEAN NOT NULL DEFAULT false;++CREATE INDEX IF NOT EXISTS "assemblyInstructionStep_usedInStepId_idx"+ ON "assemblyInstructionStep" ("usedInStepId");++-- A sub-assembly installs nothing itself: its parts come from its steps. Header+-- rows are never copied into job steps, so a part on one would never reach the floor.+ALTER TABLE "assemblyInstructionStep"+ ADD CONSTRAINT "assemblyInstructionStep_subAssembly_no_parts"+ CHECK (NOT "isSubAssembly" OR cardinality("componentNodeIds") = 0);++-- Convert build-aside data: every join step's staged steps become one+-- sub-assembly used at that join step, placed where the last staged step was.+CREATE TEMP TABLE "_subAssemblyJoin" ON COMMIT DROP AS+SELECT+ j."id" AS "joinId",+ j."assemblyInstructionId" AS "assemblyInstructionId",+ j."companyId" AS "companyId",+ j."createdBy" AS "createdBy",+ xid() AS "headerId",+ MAX(s."sortOrder") AS "lastStaged"+FROM "assemblyInstructionStep" s+JOIN "assemblyInstructionStep" j ON j."id" = s."parentStepId"+GROUP BY j."id", j."assemblyInstructionId", j."companyId", j."createdBy";++INSERT INTO "assemblyInstructionStep"+ ("id", "assemblyInstructionId", "companyId", "title", "sortOrder",+ "usedInStepId", "isSubAssembly", "componentNodeIds", "planConfidence", "createdBy")+SELECT "headerId", "assemblyInstructionId", "companyId", NULL, "lastStaged",+ "joinId", true, '{}', 'manual', "createdBy"+FROM "_subAssemblyJoin";++UPDATE "assemblyInstructionStep" s+SET "parentStepId" = jn."headerId"+FROM "_subAssemblyJoin" jn+WHERE s."parentStepId" = jn."joinId";++-- Renumber affected instructions so each sub-assembly's steps sit directly+-- before its header (play order).+WITH keyed AS (+ SELECT+ s."id",+ s."assemblyInstructionId",+ COALESCE(m."lastStaged", h."lastStaged", s."sortOrder") AS k1,+ CASE WHEN h."headerId" IS NOT NULL THEN 1 ELSE 0 END AS k2,+ s."sortOrder" AS k3+ FROM "assemblyInstructionStep" s+ LEFT JOIN "_subAssemblyJoin" m ON m."headerId" = s."parentStepId"+ LEFT JOIN "_subAssemblyJoin" h ON h."headerId" = s."id"+ WHERE s."assemblyInstructionId" IN (SELECT "assemblyInstructionId" FROM "_subAssemblyJoin")+),+numbered AS (+ SELECT "id", ROW_NUMBER() OVER (PARTITION BY "assemblyInstructionId" ORDER BY k1, k2, k3) AS rn+ FROM keyed+)+UPDATE "assemblyInstructionStep" s+SET "sortOrder" = n.rn+FROM numbered n+WHERE s."id" = n."id";++COMMIT;diff --git a/packages/jobs/manifests/schema.json b/packages/jobs/manifests/schema.jsonindex 715b1a7a61..a8cce18ad3 100644--- a/packages/jobs/manifests/schema.json+++ b/packages/jobs/manifests/schema.json@@ -1,11 +1,11 @@{"kind": "carbon-company-backup","version": 1,- "schemaVersion": "20260928023448",+ "schemaVersion": "20260930133226","sourceCompanyId": "schema-baseline","sourceCompanyGroupId": null,"sourceCompanyName": null,- "exportedAt": "2026-09-28T20:45:32.712Z",+ "exportedAt": "2026-09-30T18:00:33.029Z","exportedBy": "schema-baseline","label": "schema baseline","includeStorage": "none",@@ -428,6 +428,7 @@"accountsReceivableEmail","defaultSupplierCc","assetTaxRate",+ "showBomExplorerReadableId","rfqReadyNotificationGroup","operationsDispatchNotificationGroup","kanbanOutput",@@ -1824,6 +1825,7 @@"validTo","amountType","minQuantity",+ "configurationPrices","itemIds","customerIds","id",@@ -2681,11 +2683,13 @@"notes","warnings","componentNodeIds",+ "isSubAssembly","assemblyInstructionId","listValues","instructionText","buildWave","status",+ "usedInStepId","unitOfMeasureCode","companyId","id",@@ -4216,6 +4220,7 @@"createdBy","exchangeRate","accountId",+ "configuration","promisedDate","description","modelUploadId",diff --git a/packages/locale/locales/de/erp.po b/packages/locale/locales/de/erp.poindex 64343a9317..c292ea9e9d 100644--- a/packages/locale/locales/de/erp.po+++ b/packages/locale/locales/de/erp.po@@ -48,6 +48,10 @@ msgstr "„{taskName}\" ist erledigt – alle {0} seiner Setup-Map-Elemente sindmsgid "(excluded for this customer)"msgstr "(für diesen Kunden ausgeschlossen)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# Tag Puffer} other {# Tage Puffer}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# Zeile verweist auf Daten außerhalb dieses Unternehmemsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# Zeile verweist auf Daten außerhalb dieses Unternehmens, daher kann sie nicht gesichert werden. Wenn Sie sie überspringen, wird alles andere gesichert.} other {# Zeilen verweisen auf Daten außerhalb dieses Unternehmens, daher können sie nicht gesichert werden. Wenn Sie sie überspringen, wird alles andere gesichert.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Dieser Artikel ist auf 1 offener Änderungsmitteilung} other {Dieser Artikel ist auf # offenen Änderungsmitteilungen}}"@@ -343,6 +351,9 @@ msgstr "{load} in Warteschlange"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB-Limit"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} Monate mit abweichenden Summen"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} Teile übersprungen — es gibt nichts zu produzieremsgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} wird zur Bearbeitung erneut geöffnet als Revision {0}. Das bereits an den Lieferanten gesendete Dokument bleibt unverändert, bis Sie die Bestellung abschließen und erneut senden."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {# Zeile dauerhaft löschen?} other {# Zeilen dauerhaft löschen?}}"@@ -1358,6 +1372,10 @@ msgstr "Hinzufügen"msgid "Add {0} operations"msgstr "{0} Arbeitsgänge hinzufügen"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Hinzufügen & Ausgeben"@@ -1783,6 +1801,9 @@ msgstr "Alle Schichten"msgid "All slotted dimension values are mapped"msgstr "Alle eingeplanten Dimensionswerte sind zugeordnet"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Alle Lieferanten"@@ -3248,9 +3269,6 @@ msgstr "Breadcrumb-Navigation"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Importieren Sie Ihre Teile, BOMs, Arbeitsgangliste und Kalkulation — mit Carbons Importwerkzeugen, CSV oder LLM-Hilfe."-msgid "Brings in steps"-msgstr "Bringt Schritte ein"-msgid "Browse library"msgstr "Bibliothek durchsuchen"@@ -3293,12 +3311,12 @@ msgstr "Erstellen Sie maßgeschneiderte, rollenbasierte Schulungsmaterialien"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Erstellt die Komponenten dieses Schritts neben dem Modell als Gruppe und trägt die Gruppe dann in einem späteren Verbindungsschritt ein."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Als eigene Methode aufgebaut und kalkuliert"-msgid "Built off to the side, then carried in at its join step"-msgstr "Seitlich gebaut, dann in seinem Verbindungsschritt eingetragen"-msgid "Bulk Import"msgstr "Massen-Import"@@ -3702,6 +3720,9 @@ msgstr "Geändert von"msgid "Changes"msgstr "Änderungen"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Dies wird die vorhandene Methode überschreiben"@@ -3909,6 +3930,9 @@ msgstr "Einklappen"msgid "Collapse {0}"msgstr "Zusammenklappen {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Alle einklappen"@@ -4063,6 +4087,12 @@ msgstr "Abschlusszeit"msgid "Component details: {0}"msgstr "Komponentendetails: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Komponenten"@@ -5712,6 +5742,10 @@ msgstr "Kategorie löschen"msgid "Delete Change Notice"msgstr "Änderungsmitteilung löschen"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Verbrauchsmaterial löschen"@@ -5928,9 +5962,8 @@ msgstr "Speichertyp löschen"msgid "Delete Storage Unit"msgstr "Lagereinheit löschen"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Baugruppe {0} löschen"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Substanz löschen"@@ -5957,6 +5990,9 @@ msgstr "Lieferantentyp löschen"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Die Preisstaffel für Menge {0} löschen? Dies kann nicht rückgängig gemacht werden."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Zeitkarte löschen"@@ -6330,6 +6366,9 @@ msgstr "Pfadbearbeitung abgeschlossen"msgid "Done when day-to-day runs without us in the room"msgstr "Erledigt, wenn der Tagesablauf ohne unsere Anwesenheit läuft"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Doppelklicken Sie, um diesen Schritt abzuspielen"@@ -6376,6 +6415,9 @@ msgstr "Ziehen Sie eine Bestellungs-PDF hierher, oder klicken Sie, um eine Dateimsgid "Drag handle"msgstr "Ziehgriff"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Ziehen Sie die roten Wegpunkte im Viewer"@@ -6654,6 +6696,13 @@ msgstr "Änderungsmitteilung-Typ bearbeiten"msgid "Edit column visibility"msgstr "Spaltensichtbarkeit bearbeiten"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Kontakt bearbeiten"@@ -6885,10 +6934,6 @@ msgstr "Speichertyp bearbeiten"msgid "Edit Storage Unit"msgstr "Lagereinheit bearbeiten"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Baugruppe {0} bearbeiten"-msgid "Edit Substance"msgstr "Substanz bearbeiten"@@ -7434,6 +7479,9 @@ msgstr "Erweitern"msgid "Expand {0}"msgstr "Erweitern {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Alle erweitern"@@ -8613,6 +8661,9 @@ msgstr "Bruttogewinn"msgid "Group"msgstr "Gruppe"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Gruppieren nach"@@ -8835,6 +8886,9 @@ msgstr "Wie oft diese Instandhaltung wiederkehrt — Täglich, Wöchentlich, Monmsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Wie genau jede Werkstoffeigenschaft stimmen muss, damit Arbeitsgänge einen Los auf diesem Verfahren teilen können."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Wie der Fertigungsauftrag eingestuft wird, wenn der Planer Kapazität verteilt — ASAP beansprucht zuerst, dann Hard Deadline, Soft Deadline und No Deadline zuletzt. Nur ein Ranking-Signal; kein Deadline-Typ blockiert oder sperrt die Platzierung."@@ -9181,6 +9235,10 @@ msgstr "Eingaben"msgid "Insert token"msgstr "Token einfügen"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Inspizieren"@@ -9707,13 +9765,6 @@ msgstr "Fertigungsaufträge, die diesen Artikel auf ihrer Stückliste haben"msgid "Join {0}"msgstr "Treten Sie {0} bei"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Verbindet sich in Schritt {0}"--msgid "Joins step {number}: {title}"-msgstr "Verbindet sich in Schritt {number}: {title}"-msgid "Journal"msgstr "Buchungssatz"@@ -10333,6 +10384,9 @@ msgstr "MACRS-Eigenschaftsklasse"msgid "Magic link"msgstr "Magic Link"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Verwalten Sie einen einzigen Teil- und Artikelstamm"@@ -10393,6 +10447,9 @@ msgstr "Revision {0} als Standard festlegen?"msgid "Make size {0} default?"msgstr "Größe {0} als Standard festlegen?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Treffen Sie die endgültige Entscheidung zum Go / No-Go"@@ -10961,9 +11018,15 @@ msgstr "Entitäten verschieben"msgid "Move entities…"msgstr "Entitäten verschieben…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Element verschieben"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Lagern Sie einen Teil der Menge in eine neue Verwendungsentscheid-Zeile um, damit die MRB jeden Teil separat entscheiden kann (z. B. etwas Ausschuss, etwas Nacharbeit)."@@ -10993,6 +11056,10 @@ msgstr "Konto verschoben"msgid "Movements"msgstr "Bewegungen"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Noch keine Kommentare. Seien Sie der Erste, der einen Kommentar hinzufümsgid "No completed jobs within range"msgstr "Keine fertiggestellten Fertigungsaufträge im Bereich"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Noch keine Komponenten"@@ -11916,6 +11986,12 @@ msgstr "Keine Sortierungen auf diese Ansicht angewendet"msgid "No step selected"msgstr "Kein Schritt ausgewählt"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Kein Bestand"@@ -11985,12 +12061,6 @@ msgstr "Keine Arbeitsplätze an diesem Standort"msgid "No work centers exist"msgstr "Keine Arbeitsplätze vorhanden"-msgid "No, build in place"-msgstr "Nein, direkt bauen"--msgid "No, it's the base"-msgstr "Nein, das ist die Basis"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Offene Kundenaufträge"msgid "Open Scheduled"msgstr "Offene geplante Wartungen"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Aufgabendetails öffnen"@@ -13172,6 +13245,10 @@ msgstr "Als separate Komponenten entnommen und verbraucht"msgid "Picked quantity"msgstr "Gepickte Menge"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "Kommissionierung anstelle von {substitutedFrom}, dem Artikel auf dem Fertigungsauftrag"@@ -14475,9 +14552,6 @@ msgstr "Generieren Sie den Terminplan für diesen Standort jetzt neu. Er wird aumsgid "Regenerate thumbnail from the 3D model"msgstr "Vorschaubild aus dem 3D-Modell regenerieren"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Das Regenerieren entfernt die Einstellungen „Build off to the side\"."-msgid "Regenerating thumbnail…"msgstr "Vorschaubild wird regeneriert…"@@ -14597,6 +14671,11 @@ msgstr "Entfernen"msgid "Remove {0}"msgstr "Entfernen {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "{0} aus Los entfernen"@@ -16942,9 +17021,31 @@ msgstr "Auf dieser Seite bleiben"msgid "Step"msgstr "Schritt"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Schritt {0} von {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Schritt hinzugefügt"@@ -16976,6 +17077,9 @@ msgstr "Die Schritte werden von der Montageanleitungen geerbt."msgid "Steps are inherited from the inspection plan."msgstr "Schritte werden vom Prüfplan übernommen."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Es ist noch dunkel auf der Werkstatt."@@ -17019,6 +17123,10 @@ msgstr "Empfang beenden"msgid "Stop Shipping"msgstr "Versand stoppen"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Beendet neue Kaufvorschläge nach diesem Datum."@@ -17091,6 +17199,35 @@ msgstr "Stripe hat noch keinen Kunden für diesen Carbon-Kunden. Die Buchung wirmsgid "Style of kanban output to show in the Kanban table"msgstr "Stil der Kanban-Ausgabe, die in der Kanban-Tabelle angezeigt werden soll"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Nur Ablauf von Baugruppen"@@ -18086,6 +18223,9 @@ msgstr "Das Material wird für diese spezifische Bestellung von einem Lieferantemsgid "The material types you organize your stock by"msgstr "Die Materialtypen, nach denen Sie Ihren Bestand organisieren"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Der Monat, in dem Ihr Geschäftsjahr beginnt; Perioden werden von diesem Monat an nummeriert."@@ -18767,6 +18907,9 @@ msgstr "Diese Arbeitsstation läuft befähigungsgesteuerte Arbeit – sie läuftmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Diese Station führt Arbeiten ohne Qualifikationsanforderung durch; Werker, die auf der Besetzungstafel zugewiesen sind, bestimmen das verfügbare Personal."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Dieser Speichertyp wird derzeit von {usageCount} Lagereinheit{0} verwendet."@@ -19371,6 +19514,9 @@ msgstr "Nach der Richtlinie Maximale Menge ordert die Planung bis zu diesem Istbmsgid "Undo"msgstr "Rückgängig machen"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Deinstallieren"@@ -19726,21 +19872,37 @@ msgstr "Verwenden Sie ein anderes Konto"msgid "Use a different email"msgstr "Verwenden Sie eine andere E-Mail"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Aktuelle Anzeige verwenden"msgid "Use metric system for default material dimensions."msgstr "Metrisches System für Standard-Materialdimensionen verwenden."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Verwendet in"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Wird in der Navigation und auf Dokumenten wie Kundenaufträgen verwendet"msgid "Used in the navigation in dark mode"msgstr "Wird in der Navigation im dunklen Modus verwendet"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Wird auf dem Startbildschirm und in digitalen Angeboten verwendet"@@ -19792,6 +19954,20 @@ msgstr "Benutzer auf abgedeckten Domänen können sich nur mit SAML SSO anmeldenmsgid "Users to Update"msgstr "Benutzer zum Aktualisieren"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Gültig ab"@@ -20511,6 +20687,9 @@ msgstr "Wo und wie Sie Dinge herstellen."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Wohin die Waren auf dieser Bestellung standardmäßig versendet werden; pro Position Lieferstandorte der Bestellung setzen das für Direktlieferung und geteilte Lieferungen außer Kraft."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Wo es heute lebt"diff --git a/packages/locale/locales/de/mes.po b/packages/locale/locales/de/mes.poindex 7e61b803a5..e20873017b 100644--- a/packages/locale/locales/de/mes.po+++ b/packages/locale/locales/de/mes.po@@ -161,6 +161,9 @@ msgstr "Alle Nacharbeit"msgid "All scrap"msgstr "Alles Ausschuss"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Fehlerhafte Einheiten zuordnen"@@ -1111,6 +1114,11 @@ msgstr "Öffnen Sie einen NCR für MRB-Verwendungsentscheid"msgid "Open Jobs"msgstr "Offene Fertigungsaufträge"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Arbeitsgänge"@@ -1598,6 +1606,21 @@ msgstr "Schritte fehlen"msgid "Storage Unit"msgstr "Lagereinheit"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Anonym einreichen"@@ -1784,6 +1807,11 @@ msgstr "Verwenden Sie ein anderes Konto"msgid "Used automatically at completion"msgstr "Wird automatisch bei Fertigstellung verwendet"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Wert"diff --git a/packages/locale/locales/en/erp.po b/packages/locale/locales/en/erp.poindex 2d01833972..291757b8d4 100644--- a/packages/locale/locales/en/erp.po+++ b/packages/locale/locales/en/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" is done — all {0} of its Setup Map items are configuredmsgid "(excluded for this customer)"msgstr "(excluded for this customer)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr "{0, plural, one {# component in this group} other {# components in this group}}"+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# day of slack} other {# days of slack}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# row links to data outside this company, so a safety cmsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"@@ -343,6 +351,9 @@ msgstr "{load} in queue"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB limit"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr "{memberCount, plural, one {# step} other {# steps}}"+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} months with mismatched totals"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} parts skipped — nothing to make"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr "{partCount, plural, one {# part} other {# parts}}"+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"@@ -1358,6 +1372,10 @@ msgstr "Add"msgid "Add {0} operations"msgstr "Add {0} operations"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr "Add {0} selected"+msgid "Add & Issue"msgstr "Add & Issue"@@ -1783,6 +1801,9 @@ msgstr "All Shifts"msgid "All slotted dimension values are mapped"msgstr "All slotted dimension values are mapped"+msgid "All steps"+msgstr "All steps"+msgid "All Suppliers"msgstr "All Suppliers"@@ -3248,9 +3269,6 @@ msgstr "Breadcrumb"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."-msgid "Brings in steps"-msgstr "Brings in steps"-msgid "Browse library"msgstr "Browse library"@@ -3293,12 +3311,12 @@ msgstr "Build tailored, role-based training materials"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Builds this step's components beside the model as a group, then carries the group in at a later join step."+msgid "Built after this step"+msgstr "Built after this step"+msgid "Built and costed as its own method"msgstr "Built and costed as its own method"-msgid "Built off to the side, then carried in at its join step"-msgstr "Built off to the side, then carried in at its join step"-msgid "Bulk Import"msgstr "Bulk Import"@@ -3702,6 +3720,9 @@ msgstr "Changed By"msgid "Changes"msgstr "Changes"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgid "Changing this will overwrite the existing method"msgstr "Changing this will overwrite the existing method"@@ -3909,6 +3930,9 @@ msgstr "Collapse"msgid "Collapse {0}"msgstr "Collapse {0}"+msgid "Collapse {name}"+msgstr "Collapse {name}"+msgid "Collapse all"msgstr "Collapse all"@@ -4063,6 +4087,12 @@ msgstr "Completion Time"msgid "Component details: {0}"msgstr "Component details: {0}"+msgid "Component group name"+msgstr "Component group name"++msgid "Component group updated — re-run motion planning to apply the change"+msgstr "Component group updated — re-run motion planning to apply the change"+msgid "Components"msgstr "Components"@@ -5712,6 +5742,10 @@ msgstr "Delete Category"msgid "Delete Change Notice"msgstr "Delete Change Notice"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr "Delete component group {0}"+msgid "Delete Consumable"msgstr "Delete Consumable"@@ -5928,9 +5962,8 @@ msgstr "Delete Storage Type"msgid "Delete Storage Unit"msgstr "Delete Storage Unit"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Delete subassembly {0}"+msgid "Delete Sub-Assembly"+msgstr "Delete Sub-Assembly"msgid "Delete Substance"msgstr "Delete Substance"@@ -5957,6 +5990,9 @@ msgstr "Delete Supplier Type"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Delete the price break for quantity {0}? This can't be undone."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr "Delete this sub-assembly and all of its steps? This cannot be undone."+msgid "Delete Timecard"msgstr "Delete Timecard"@@ -6330,6 +6366,9 @@ msgstr "Done Editing Path"msgid "Done when day-to-day runs without us in the room"msgstr "Done when day-to-day runs without us in the room"+msgid "Double-click to open this sub-assembly"+msgstr "Double-click to open this sub-assembly"+msgid "Double-click to play this step"msgstr "Double-click to play this step"@@ -6376,6 +6415,9 @@ msgstr "Drag and drop a Purchase Order PDF here, or click to select a file"msgid "Drag handle"msgstr "Drag handle"+msgid "Drag steps here to build them on their own."+msgstr "Drag steps here to build them on their own."+msgid "Drag the red waypoints in the viewer"msgstr "Drag the red waypoints in the viewer"@@ -6654,6 +6696,13 @@ msgstr "Edit Change Notice Type"msgid "Edit column visibility"msgstr "Edit column visibility"+msgid "Edit Component Group"+msgstr "Edit Component Group"++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr "Edit component group {0}"+msgid "Edit Contact"msgstr "Edit Contact"@@ -6885,10 +6934,6 @@ msgstr "Edit Storage Type"msgid "Edit Storage Unit"msgstr "Edit Storage Unit"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Edit subassembly {0}"-msgid "Edit Substance"msgstr "Edit Substance"@@ -7434,6 +7479,9 @@ msgstr "Expand"msgid "Expand {0}"msgstr "Expand {0}"+msgid "Expand {name}"+msgstr "Expand {name}"+msgid "Expand all"msgstr "Expand all"@@ -8613,6 +8661,9 @@ msgstr "Gross Profit"msgid "Group"msgstr "Group"+msgid "Group as One Component"+msgstr "Group as One Component"+msgid "Group by"msgstr "Group by"@@ -8835,6 +8886,9 @@ msgstr "How often this maintenance recurs — Daily, Weekly, Monthly, On Cycle Cmsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "How strictly each material property must match for operations to share a batch on this process."+msgid "How the finished sub-assembly joins the main build."+msgstr "How the finished sub-assembly joins the main build."+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."@@ -9181,6 +9235,10 @@ msgstr "Inputs"msgid "Insert token"msgstr "Insert token"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr "inside {0}"+msgid "Inspect"msgstr "Inspect"@@ -9707,13 +9765,6 @@ msgstr "Jobs that have this item on their bill of materials"msgid "Join {0}"msgstr "Join {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Joins step {0}"--msgid "Joins step {number}: {title}"-msgstr "Joins step {number}: {title}"-msgid "Journal"msgstr "Journal"@@ -10333,6 +10384,9 @@ msgstr "MACRS Property Class"msgid "Magic link"msgstr "Magic link"+msgid "Main build (after its last step)"+msgstr "Main build (after its last step)"+msgid "Maintain a single part and item master"msgstr "Maintain a single part and item master"@@ -10393,6 +10447,9 @@ msgstr "Make revision {0} default?"msgid "Make size {0} default?"msgstr "Make size {0} default?"+msgid "Make Sub-Assembly"+msgstr "Make Sub-Assembly"+msgid "Make the final go / no-go call"msgstr "Make the final go / no-go call"@@ -10961,9 +11018,15 @@ msgstr "Move entities"msgid "Move entities…"msgstr "Move entities…"+msgid "Move Into"+msgstr "Move Into"+msgid "Move item"msgstr "Move item"+msgid "Move Out of Sub-Assembly"+msgstr "Move Out of Sub-Assembly"+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."@@ -10993,6 +11056,10 @@ msgstr "Moved account"msgid "Movements"msgstr "Movements"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr "Moving step {0} was cancelled"+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "No comments yet. Be the first to add a comment."msgid "No completed jobs within range"msgstr "No completed jobs within range"+msgid "No components — add a selection or cancel."+msgstr "No components — add a selection or cancel."+msgid "No components yet"msgstr "No components yet"@@ -11916,6 +11986,12 @@ msgstr "No sorts applied to this view"msgid "No step selected"msgstr "No step selected"+msgid "No steps match \"{search}\""+msgstr "No steps match \"{search}\""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgid "No stock"msgstr "No stock"@@ -11985,12 +12061,6 @@ msgstr "No work centers at this location"msgid "No work centers exist"msgstr "No work centers exist"-msgid "No, build in place"-msgstr "No, build in place"--msgid "No, it's the base"-msgstr "No, it's the base"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Open Sales Orders"msgid "Open Scheduled"msgstr "Open Scheduled"+msgid "Open Sub-Assembly"+msgstr "Open Sub-Assembly"+msgid "Open task details"msgstr "Open task details"@@ -13172,6 +13245,10 @@ msgstr "Picked and consumed as separate components"msgid "Picked quantity"msgstr "Picked quantity"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr "Picked up step {0}"+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "picking in place of {substitutedFrom}, the item on the job"@@ -14475,9 +14552,6 @@ msgstr "Regenerate the schedule for this location now. It also runs automaticallmsgid "Regenerate thumbnail from the 3D model"msgstr "Regenerate thumbnail from the 3D model"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Regenerating removes \"Build off to the side\" settings."-msgid "Regenerating thumbnail…"msgstr "Regenerating thumbnail…"@@ -14597,6 +14671,11 @@ msgstr "Remove"msgid "Remove {0}"msgstr "Remove {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr "Remove {0} from {1}"+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Remove {0} from batch"@@ -16942,9 +17021,31 @@ msgstr "Stay on this page"msgid "Step"msgstr "Step"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Step {0} of {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr "Step {0} · {1}"++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr "Step {0} is no longer over a drop position"++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr "Step {0} is over {1}"++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr "Step {0} was dropped"++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr "Step {0} was dropped at {1}"++msgid "Step {number}"+msgstr "Step {number}"msgid "Step added"msgstr "Step added"@@ -16976,6 +17077,9 @@ msgstr "Steps are inherited from the assembly instruction."msgid "Steps are inherited from the inspection plan."msgstr "Steps are inherited from the inspection plan."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgid "Still dark out on the floor."msgstr "Still dark out on the floor."@@ -17019,6 +17123,10 @@ msgstr "Stop Receiving"msgid "Stop Shipping"msgstr "Stop Shipping"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr "Stop using {0} in this step"+msgid "Stops new purchase suggestions after this date."msgstr "Stops new purchase suggestions after this date."@@ -17091,6 +17199,35 @@ msgstr "Stripe has no customer for this Carbon customer yet. Posting will createmsgid "Style of kanban output to show in the Kanban table"msgstr "Style of kanban output to show in the Kanban table"+msgid "Sub-assembly"+msgstr "Sub-assembly"++msgid "Sub-Assembly"+msgstr "Sub-Assembly"++msgid "Sub-Assembly · joins main build"+msgstr "Sub-Assembly · joins main build"++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr "Sub-Assembly · used in {usedInNumber}"++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr "Sub-Assembly {0} · {1} — shown on its own"++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr "Sub-Assembly {0} · {openTitle}"++msgid "Sub-Assembly {number}"+msgstr "Sub-Assembly {number}"+msgid "Sub-assembly expiries only"msgstr "Sub-assembly expiries only"@@ -18086,6 +18223,9 @@ msgstr "The material is purchased from a supplier for that specific order, rathemsgid "The material types you organize your stock by"msgstr "The material types you organize your stock by"+msgid "The model is still loading."+msgstr "The model is still loading."+msgid "The month your financial year begins; periods are numbered from this month."msgstr "The month your financial year begins; periods are numbered from this month."@@ -18767,6 +18907,9 @@ msgstr "This station runs ability-gated work — it only runs while a qualifiedmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."+msgid "This step is part of it"+msgstr "This step is part of it"+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "This storage type is currently used by {usageCount} storage unit{0}."@@ -19371,6 +19514,9 @@ msgstr "Under Maximum Quantity policy, planning orders up to this on-hand levelmsgid "Undo"msgstr "Undo"+msgid "Ungroup"+msgstr "Ungroup"+msgid "Uninstall"msgstr "Uninstall"@@ -19726,21 +19872,37 @@ msgstr "Use a different account"msgid "Use a different email"msgstr "Use a different email"+msgid "Use a finished sub-assembly in this step"+msgstr "Use a finished sub-assembly in this step"+msgid "Use Current View"msgstr "Use Current View"msgid "Use metric system for default material dimensions."msgstr "Use metric system for default material dimensions."+msgid "Use Sub-Assembly"+msgstr "Use Sub-Assembly"++msgid "Used in"+msgstr "Used in"+msgid "Used In"msgstr "Used In"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr "Used in {0} — moves here"+msgid "Used in the navigation and on documents like sales orders"msgstr "Used in the navigation and on documents like sales orders"msgid "Used in the navigation in dark mode"msgstr "Used in the navigation in dark mode"+msgid "Used in this step"+msgstr "Used in this step"+msgid "Used on the home screen and digital quotes"msgstr "Used on the home screen and digital quotes"@@ -19792,6 +19954,20 @@ msgstr "Users on covered domains can sign in only with SAML SSO; magic link, Goomsgid "Users to Update"msgstr "Users to Update"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr "Uses {0}"++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr "Uses {0} · {1}"++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr "Uses sub-assembly {0} · {1}"+msgid "Valid From"msgstr "Valid From"@@ -20511,6 +20687,9 @@ msgstr "Where and how you make things."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."+msgid "Where it goes"+msgstr "Where it goes"+msgid "Where it lives today"msgstr "Where it lives today"diff --git a/packages/locale/locales/en/mes.po b/packages/locale/locales/en/mes.poindex 8271726991..c158036059 100644--- a/packages/locale/locales/en/mes.po+++ b/packages/locale/locales/en/mes.po@@ -161,6 +161,9 @@ msgstr "All rework"msgid "All scrap"msgstr "All scrap"+msgid "All steps"+msgstr "All steps"+msgid "Allocate failed units"msgstr "Allocate failed units"@@ -1111,6 +1114,11 @@ msgstr "Open an NCR for MRB disposition"msgid "Open Jobs"msgstr "Open Jobs"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr "Open sub-assembly {0}: {1}"+msgid "Operations"msgstr "Operations"@@ -1598,6 +1606,21 @@ msgstr "Steps are missing"msgid "Storage Unit"msgstr "Storage Unit"+msgid "Sub-Assembly"+msgstr "Sub-Assembly"++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr "Sub-Assembly {0} · {1}"++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr "Sub-Assembly {0} · {1} — shown on its own"+msgid "Submit anonymously"msgstr "Submit anonymously"@@ -1784,6 +1807,11 @@ msgstr "Use a different account"msgid "Used automatically at completion"msgstr "Used automatically at completion"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr "Uses {0} · {1}"+msgid "Value"msgstr "Value"diff --git a/packages/locale/locales/es/erp.po b/packages/locale/locales/es/erp.poindex ec55f8128b..a6736c0102 100644--- a/packages/locale/locales/es/erp.po+++ b/packages/locale/locales/es/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" está hecho — todos los {0} elementos de su Mapa de Conmsgid "(excluded for this customer)"msgstr "(excluido para este cliente)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# día de holgura} other {# días de holgura}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# fila vincula a datos fuera de esta empresa, por lo qumsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# fila vincula a datos fuera de esta empresa, por lo que no se puede hacer backup. Omitirla permite hacer backup del resto.} other {# filas vinculan a datos fuera de esta empresa, por lo que no se pueden hacer backup. Omitirlas permite hacer backup del resto.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Este artículo está en 1 aviso de cambio abierto} other {Este artículo está en # avisos de cambio abiertos}}"@@ -343,6 +351,9 @@ msgstr "{load} en cola"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB límite"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} meses con totales no coincidentes"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} piezas omitidas — no hay nada que fabricar"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} se reabrirá para edición como revisión {0}. El documento ya enviado al proveedor permanece sin cambios hasta que finalices y reenvíes la orden."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {¿Eliminar permanentemente # fila?} other {¿Eliminar permanentemente # filas?}}"@@ -1358,6 +1372,10 @@ msgstr "Agregar"msgid "Add {0} operations"msgstr "Agregar {0} operaciones"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Agregar y Emitir"@@ -1783,6 +1801,9 @@ msgstr "Todos los turnos"msgid "All slotted dimension values are mapped"msgstr "Todos los valores de dimensión asignados están mapeados"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Todos los proveedores"@@ -3248,9 +3269,6 @@ msgstr "Migas de pan"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Traiga sus piezas, BOMs, lista de operaciones y costeo — con herramientas de importación de Carbon, CSV o ayuda de LLM."-msgid "Brings in steps"-msgstr "Trae pasos"-msgid "Browse library"msgstr "Examinar biblioteca"@@ -3293,12 +3311,12 @@ msgstr "Crear materiales de capacitación personalizados basados en roles"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Construye los componentes de este paso junto al modelo como un grupo, luego lleva el grupo en un paso de unión posterior."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Construido y calculado como su propio método"-msgid "Built off to the side, then carried in at its join step"-msgstr "Construido a un lado, luego llevado en su paso de unión"-msgid "Bulk Import"msgstr "Importación masiva"@@ -3702,6 +3720,9 @@ msgstr "Cambiado por"msgid "Changes"msgstr "Cambios"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Cambiar esto sobrescribirá el método existente"@@ -3909,6 +3930,9 @@ msgstr "Contraer"msgid "Collapse {0}"msgstr "Contraer {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Contraer todo"@@ -4063,6 +4087,12 @@ msgstr "Tiempo de Finalización"msgid "Component details: {0}"msgstr "Detalles del componente: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Componentes"@@ -5712,6 +5742,10 @@ msgstr "Eliminar Categoría"msgid "Delete Change Notice"msgstr "Eliminar Aviso de Cambio"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Eliminar Consumible"@@ -5928,9 +5962,8 @@ msgstr "Eliminar Tipo de Almacenamiento"msgid "Delete Storage Unit"msgstr "Eliminar Unidad de Almacenamiento"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Eliminar subensamble {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Eliminar Sustancia"@@ -5957,6 +5990,9 @@ msgstr "Eliminar Tipo de Proveedor"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "¿Eliminar la escala de precios para cantidad {0}? No se puede deshacer."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Eliminar Tarjeta de Tiempo"@@ -6330,6 +6366,9 @@ msgstr "Terminado"msgid "Done when day-to-day runs without us in the room"msgstr "Hecho cuando las operaciones diarias se ejecutan sin nosotros en la sala"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Doble clic para reproducir este paso"@@ -6376,6 +6415,9 @@ msgstr "Arrastra y suelta un PDF de Orden de Compra aquí, o haz clic para selecmsgid "Drag handle"msgstr "Controlador de arrastre"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Arrastra los puntos de ruta rojo en el visor"@@ -6654,6 +6696,13 @@ msgstr "Editar Tipo de Aviso de Cambio"msgid "Edit column visibility"msgstr "Editar visibilidad de columnas"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Editar Contacto"@@ -6885,10 +6934,6 @@ msgstr "Editar Tipo de Almacenamiento"msgid "Edit Storage Unit"msgstr "Editar Unidad de Almacenamiento"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Editar subensamble {0}"-msgid "Edit Substance"msgstr "Editar Sustancia"@@ -7434,6 +7479,9 @@ msgstr "Expandir"msgid "Expand {0}"msgstr "Expandir {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Expandir todo"@@ -8613,6 +8661,9 @@ msgstr "Ganancia Bruta"msgid "Group"msgstr "Grupo"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Agrupar por"@@ -8835,6 +8886,9 @@ msgstr "Con qué frecuencia se repite este Mantenimiento — Diario, Semanal, Memsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Qué tan estrictamente cada propiedad del material debe coincidir para que las operaciones compartan un lote de producción en este proceso."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Cómo se clasifica la orden de trabajo cuando el programador asigna capacidad — ASAP va primero, luego Plazo firme, Plazo flexible, y Sin plazo al final. Solo una señal de clasificación; ningún tipo de plazo bloquea o restringe la colocación."@@ -9181,6 +9235,10 @@ msgstr "Entradas"msgid "Insert token"msgstr "Insertar token"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Inspeccionar"@@ -9707,13 +9765,6 @@ msgstr "Órdenes de trabajo que tienen este artículo en su lista de materiales"msgid "Join {0}"msgstr "Unirse a {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Se une al paso {0}"--msgid "Joins step {number}: {title}"-msgstr "Se une al paso {number}: {title}"-msgid "Journal"msgstr "Asiento"@@ -10333,6 +10384,9 @@ msgstr "Clase de Propiedad MACRS"msgid "Magic link"msgstr "Enlace mágico"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Mantener un único maestro de partes y artículos"@@ -10393,6 +10447,9 @@ msgstr "¿Hacer la revisión {0} predeterminada?"msgid "Make size {0} default?"msgstr "¿Hacer el tamaño {0} predeterminado?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Tomar la decisión final de continuar o no continuar"@@ -10961,9 +11018,15 @@ msgstr "Mover entidades"msgid "Move entities…"msgstr "Mover entidades…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Mover elemento"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Mover parte de la cantidad a una nueva línea de disposición para que MRB pueda decidir cada porción por separado (por ejemplo, desperdiciar parte, retrabajar parte)."@@ -10993,6 +11056,10 @@ msgstr "Cuenta movida"msgid "Movements"msgstr "Movimientos"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "No hay comentarios aún. Sé el primero en agregar un comentario."msgid "No completed jobs within range"msgstr "No hay órdenes de trabajo completadas dentro del rango"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Sin componentes aún"@@ -11916,6 +11986,12 @@ msgstr "No hay ordenamientos aplicados a esta vista"msgid "No step selected"msgstr "Ningún paso seleccionado"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Sin stock"@@ -11985,12 +12061,6 @@ msgstr "No hay centros de trabajo en esta ubicación"msgid "No work centers exist"msgstr "No existen centros de trabajo"-msgid "No, build in place"-msgstr "No, construir en su lugar"--msgid "No, it's the base"-msgstr "No, es la base"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Pedidos de venta abiertos"msgid "Open Scheduled"msgstr "Programado Abierto"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Abrir detalles de la tarea"@@ -13172,6 +13245,10 @@ msgstr "Seleccionado y consumido como componentes separados"msgid "Picked quantity"msgstr "Cantidad recogida"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "picking en lugar de {substitutedFrom}, el artículo en la orden de trabajo"@@ -14475,9 +14552,6 @@ msgstr "Regenera el programa para esta ubicación ahora. También se ejecuta autmsgid "Regenerate thumbnail from the 3D model"msgstr "Regenerar miniatura del modelo 3D"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "La regeneración elimina la configuración de « Construir a un lado »."-msgid "Regenerating thumbnail…"msgstr "Regenerando miniatura…"@@ -14597,6 +14671,11 @@ msgstr "Quitar"msgid "Remove {0}"msgstr "Quitar {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Quitar {0} del lote de producción"@@ -16942,9 +17021,31 @@ msgstr "Quedarse en esta página"msgid "Step"msgstr "Paso"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Paso {0} de {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Paso agregado"@@ -16976,6 +17077,9 @@ msgstr "Los pasos se heredan de la instrucción de montaje."msgid "Steps are inherited from the inspection plan."msgstr "Los pasos se heredan del plan de inspección."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Todavía está oscuro en el taller."@@ -17019,6 +17123,10 @@ msgstr "Detener recepción"msgid "Stop Shipping"msgstr "Detener envío"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Detiene las sugerencias de compra después de esta fecha."@@ -17091,6 +17199,35 @@ msgstr "Stripe aún no tiene un cliente para este cliente de Carbon. La contabilmsgid "Style of kanban output to show in the Kanban table"msgstr "Estilo de salida de kanban para mostrar en la tabla Kanban"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Solo vencimientos de subensamblajes"@@ -18086,6 +18223,9 @@ msgstr "El material se compra a un proveedor para ese pedido específico, en lugmsgid "The material types you organize your stock by"msgstr "Los tipos de material por los que organizas tu inventario"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "El mes en que comienza su año fiscal; los períodos se numeran a partir de este mes."@@ -18767,6 +18907,9 @@ msgstr "Esta estación ejecuta trabajo protegido por habilidad — solo se ejecumsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Esta estación ejecuta trabajo sin requisito de habilidad; los operarios asignados en el tablero de personal moldean la mano de obra disponible."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Este tipo de almacenamiento está siendo utilizado actualmente por {usageCount} unidad de almacenamiento{0}."@@ -19371,6 +19514,9 @@ msgstr "Bajo la política de Cantidad Máxima, el sistema planifica hasta este nmsgid "Undo"msgstr "Deshacer"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Desinstalar"@@ -19726,21 +19872,37 @@ msgstr "Usar una cuenta diferente"msgid "Use a different email"msgstr "Usar un correo electrónico diferente"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Utilizar Vista Actual"msgid "Use metric system for default material dimensions."msgstr "Utilizar el sistema métrico para las dimensiones predeterminadas del material."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Utilizado en"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Utilizado en la navegación y en documentos como pedidos de venta"msgid "Used in the navigation in dark mode"msgstr "Utilizado en la navegación en modo oscuro"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Utilizado en la pantalla de inicio y presupuestos digitales"@@ -19792,6 +19954,20 @@ msgstr "Los usuarios en dominios cubiertos pueden iniciar sesión solo con SAMLmsgid "Users to Update"msgstr "Usuarios a Actualizar"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Válido desde"@@ -20511,6 +20687,9 @@ msgstr "Dónde y cómo fabricas las cosas."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Dónde se envían los bienes en este PO por defecto; ubicaciones de entrega por línea en el PO anulan esto para escenarios de envío directo y entrega dividida."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Dónde vive hoy"diff --git a/packages/locale/locales/es/mes.po b/packages/locale/locales/es/mes.poindex 9988076bc0..9d57d095d8 100644--- a/packages/locale/locales/es/mes.po+++ b/packages/locale/locales/es/mes.po@@ -161,6 +161,9 @@ msgstr "Todo retrabajo"msgid "All scrap"msgstr "Todo desperdicio"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Asignar unidades fallidas"@@ -1111,6 +1114,11 @@ msgstr "Abrir un NCR para la disposición de MRB"msgid "Open Jobs"msgstr "Órdenes de trabajo abiertas"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Operaciones"@@ -1598,6 +1606,21 @@ msgstr "Faltan pasos"msgid "Storage Unit"msgstr "Unidad de Almacenamiento"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Enviar de forma anónima"@@ -1784,6 +1807,11 @@ msgstr "Usar una cuenta diferente"msgid "Used automatically at completion"msgstr "Se utiliza automáticamente al completar"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Valor"diff --git a/packages/locale/locales/fr/erp.po b/packages/locale/locales/fr/erp.poindex 7e456acd75..ded2dc199d 100644--- a/packages/locale/locales/fr/erp.po+++ b/packages/locale/locales/fr/erp.po@@ -48,6 +48,10 @@ msgstr "« {taskName} » est fait – tous les {0} éléments de sa carte de mismsgid "(excluded for this customer)"msgstr "(exclu pour ce client)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# jour de marge} other {# jours de marge}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# ligne se connecte à des données en dehors de cettemsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# ligne se connecte à des données en dehors de cette Société, donc elle ne peut pas être sauvegardée. L'ignorer sauvegarde tout le reste.} other {# lignes se connectent à des données en dehors de cette Société, donc elles ne peuvent pas être sauvegardées. Les ignorer sauvegarde tout le reste.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Cet article est sur 1 avis de modification ouvert} other {Cet article est sur # avis de modification ouverts}}"@@ -343,6 +351,9 @@ msgstr "{load} en attente"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB limite"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} mois avec des totaux non concordants"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} pièces ignorées — rien à fabriquer"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} sera rouvert pour modification en tant que révision {0}. Le document déjà envoyé au fournisseur reste inchangé jusqu'à ce que vous le finalisiez et le renvoiez."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Supprimer définitivement # ligne ?} other {Supprimer définitivement # lignes ?}}"@@ -1358,6 +1372,10 @@ msgstr "Ajouter"msgid "Add {0} operations"msgstr "Ajouter {0} opérations"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Ajouter et émettre"@@ -1783,6 +1801,9 @@ msgstr "Toutes les Équipes"msgid "All slotted dimension values are mapped"msgstr "Toutes les valeurs d'Axe analytique assignées sont mappées"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Tous les fournisseurs"@@ -3248,9 +3269,6 @@ msgstr "Fil d'Ariane"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Apportez vos pièces, BOMs, Listes des opérations et calcul des coûts — avec les outils d'importation de Carbon, CSV ou aide LLM."-msgid "Brings in steps"-msgstr "Apporte des étapes"-msgid "Browse library"msgstr "Parcourir la bibliothèque"@@ -3293,12 +3311,12 @@ msgstr "Créer des matériels de formation personnalisés et basés sur les rôlmsgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Construit les composants de cette étape à côté du modèle en tant que groupe, puis apporte le groupe à une étape de jonction ultérieure."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Construit et chiffré comme sa propre méthode"-msgid "Built off to the side, then carried in at its join step"-msgstr "Construit sur le côté, puis apporté à son étape de jonction"-msgid "Bulk Import"msgstr "Importation en masse"@@ -3702,6 +3720,9 @@ msgstr "Modifié par"msgid "Changes"msgstr "Modifications"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Modifier ceci remplacera la méthode existante"@@ -3909,6 +3930,9 @@ msgstr "Réduire"msgid "Collapse {0}"msgstr "Réduire {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Réduire tout"@@ -4063,6 +4087,12 @@ msgstr "Temps d'exécution"msgid "Component details: {0}"msgstr "Détails du composant : {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Composants"@@ -5712,6 +5742,10 @@ msgstr "Supprimer la catégorie"msgid "Delete Change Notice"msgstr "Supprimer l'avis de modification"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Supprimer la consommable"@@ -5928,9 +5962,8 @@ msgstr "Supprimer le type de stockage"msgid "Delete Storage Unit"msgstr "Supprimer l'unité de stockage"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Supprimer le sous-ensemble {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Supprimer la substance"@@ -5957,6 +5990,9 @@ msgstr "Supprimer le type de fournisseur"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Supprimer le palier de prix pour la quantité {0} ? Cette action ne peut pas être annulée."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Supprimer la feuille de temps"@@ -6330,6 +6366,9 @@ msgstr "Édition du chemin terminée"msgid "Done when day-to-day runs without us in the room"msgstr "Terminé quand les opérations quotidiennes fonctionnent sans nous."+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Double-cliquez pour jouer cette étape"@@ -6376,6 +6415,9 @@ msgstr "Glissez-déposez un PDF de bon de commande ici, ou cliquez pour sélectimsgid "Drag handle"msgstr "Poignée de déplacement"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Faites glisser les points de passage rouges dans la visionneuse"@@ -6654,6 +6696,13 @@ msgstr "Modifier le type d'avis de modification"msgid "Edit column visibility"msgstr "Modifier la visibilité des colonnes"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Modifier le contact"@@ -6885,10 +6934,6 @@ msgstr "Modifier le type de stockage"msgid "Edit Storage Unit"msgstr "Modifier l'unité de stockage"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Modifier le sous-ensemble {0}"-msgid "Edit Substance"msgstr "Modifier la substance"@@ -7434,6 +7479,9 @@ msgstr "Développer"msgid "Expand {0}"msgstr "Développer {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Développer tout"@@ -8613,6 +8661,9 @@ msgstr "Bénéfice brut"msgid "Group"msgstr "Groupe"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Grouper par"@@ -8835,6 +8886,9 @@ msgstr "Fréquence de récurrence de cette maintenance — Quotidien, Hebdomadaimsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Le degré de correspondance requis pour chaque propriété de matière afin que les opérations partagent un lot de production sur ce procédé."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Comment l'ordre de fabrication est classé lors de l'allocation de capacité par le planificateur — Dès que possible d'abord, puis Délai critique, Délai souple et Sans délai en dernier. Un signal de classement uniquement ; aucun type de délai ne bloque ou ne contrôle le placement."@@ -9181,6 +9235,10 @@ msgstr "Entrées"msgid "Insert token"msgstr "Insérer un jeton"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Inspecter"@@ -9707,13 +9765,6 @@ msgstr "Ordres de fabrication qui ont cet article sur leur nomenclature"msgid "Join {0}"msgstr "Rejoindre {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Rejoint l'étape {0}"--msgid "Joins step {number}: {title}"-msgstr "Rejoint l'étape {number} : {title}"-msgid "Journal"msgstr "Écriture"@@ -10333,6 +10384,9 @@ msgstr "Classe de Propriété MACRS"msgid "Magic link"msgstr "Lien magique"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Maintenir un maître de pièce et d'article unique"@@ -10393,6 +10447,9 @@ msgstr "Rendre la révision {0} par défaut ?"msgid "Make size {0} default?"msgstr "Rendre la taille {0} par défaut ?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Prendre la décision finale go / no-go"@@ -10961,9 +11018,15 @@ msgstr "Déplacer les entités"msgid "Move entities…"msgstr "Déplacer les entités…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Déplacer l'élément"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Déplacer une partie de la quantité vers une nouvelle ligne de traitement afin que le comité de revue des matériaux puisse décider de chaque portion séparément (par exemple, mettre au rebut une partie, faire une retouche sur une autre)."@@ -10993,6 +11056,10 @@ msgstr "Compte déplacé"msgid "Movements"msgstr "Mouvements"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Aucun commentaire pour le moment. Soyez le premier à ajouter un commentmsgid "No completed jobs within range"msgstr "Aucun ordre de fabrication terminé dans cette plage"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Aucun composant pour le moment"@@ -11916,6 +11986,12 @@ msgstr "Aucun tri appliqué à cette vue"msgid "No step selected"msgstr "Aucune étape sélectionnée"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Aucun stock"@@ -11985,12 +12061,6 @@ msgstr "Aucun poste de travail sur ce site"msgid "No work centers exist"msgstr "Aucun poste de travail n'existe"-msgid "No, build in place"-msgstr "Non, construire sur place"--msgid "No, it's the base"-msgstr "Non, c'est la base"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Commandes clients ouvertes"msgid "Open Scheduled"msgstr "Planifiés ouverts"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Ouvrir les détails de la tâche"@@ -13172,6 +13245,10 @@ msgstr "Prélevé et consommé comme composants séparés"msgid "Picked quantity"msgstr "Quantité prélevée"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "prélèvement à la place de {substitutedFrom}, l'article de l'ordre"@@ -14475,9 +14552,6 @@ msgstr "Régénérez le planning pour ce site maintenant. Il s'exécute égalememsgid "Regenerate thumbnail from the 3D model"msgstr "Régénérer la miniature à partir du modèle 3D"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "La régénération supprime les paramètres « Construire sur le côté »."-msgid "Regenerating thumbnail…"msgstr "Régénération de la miniature en cours…"@@ -14597,6 +14671,11 @@ msgstr "Retirer"msgid "Remove {0}"msgstr "Retirer {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Retirer {0} du lot de production"@@ -16942,9 +17021,31 @@ msgstr "Rester sur cette page"msgid "Step"msgstr "Étape"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Étape {0} sur {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Étape ajoutée"@@ -16976,6 +17077,9 @@ msgstr "Les étapes sont héritées de l'instruction d'assemblage."msgid "Steps are inherited from the inspection plan."msgstr "Les étapes sont héritées du plan de contrôle."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Toujours sombre à l'atelier."@@ -17019,6 +17123,10 @@ msgstr "Arrêter la réception"msgid "Stop Shipping"msgstr "Arrêter l'expédition"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Arrête les nouvelles suggestions d'achat après cette date."@@ -17091,6 +17199,35 @@ msgstr "Stripe n'a pas encore de client pour ce client Carbon. La comptabilisatimsgid "Style of kanban output to show in the Kanban table"msgstr "Style de sortie kanban à afficher dans le tableau Kanban"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Expiries des sous-ensembles uniquement"@@ -18086,6 +18223,9 @@ msgstr "Le matériau est acheté auprès d'un fournisseur pour cette commande spmsgid "The material types you organize your stock by"msgstr "Les types de matériaux selon lesquels vous organisez votre stock"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Le mois où votre exercice financier commence; les périodes sont numérotées à partir de ce mois."@@ -18767,6 +18907,9 @@ msgstr "Cette station exécute du travail soumis à gating d'aptitude — elle nmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Cette station exécute un travail sans exigence de compétence ; les opérateurs assignés sur le tableau d'affectation façonnent la main-d'œuvre disponible."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Ce type de stockage est actuellement utilisé par {usageCount} unité de stockage{0}."@@ -19371,6 +19514,9 @@ msgstr "Selon la politique de quantité maximale, la planification commande jusqmsgid "Undo"msgstr "Annuler"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Désinstaller"@@ -19726,21 +19872,37 @@ msgstr "Utiliser un compte différent"msgid "Use a different email"msgstr "Utiliser une adresse e-mail différente"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Utiliser la vue actuelle"msgid "Use metric system for default material dimensions."msgstr "Utiliser le système métrique pour les dimensions de matière par défaut."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Utilisé dans"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Utilisé dans la navigation et sur les documents comme les commandes clients"msgid "Used in the navigation in dark mode"msgstr "Utilisé dans la navigation en mode sombre"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Utilisé sur l'écran d'accueil et les devis numériques"@@ -19792,6 +19954,20 @@ msgstr "Les utilisateurs sur les domaines couverts ne peuvent se connecter qu'avmsgid "Users to Update"msgstr "Utilisateurs à mettre à jour"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Valide à partir du"@@ -20511,6 +20687,9 @@ msgstr "Où et comment vous fabriquez les choses."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Où les marchandises de ce BC sont expédiées par défaut ; les sites de livraison par ligne sur le BC remplacent ceci pour les scénarios de livraison directe et de livraison fractionnée."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Où il se trouve aujourd'hui"diff --git a/packages/locale/locales/fr/mes.po b/packages/locale/locales/fr/mes.poindex 776c1a9634..599e8dbf4b 100644--- a/packages/locale/locales/fr/mes.po+++ b/packages/locale/locales/fr/mes.po@@ -161,6 +161,9 @@ msgstr "Tous les retouches"msgid "All scrap"msgstr "Tout rebut"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Allouer les unités défaillantes"@@ -1111,6 +1114,11 @@ msgstr "Ouvrir une NCR pour le traitement du MRB"msgid "Open Jobs"msgstr "Ordres de fabrication ouverts"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Opérations"@@ -1598,6 +1606,21 @@ msgstr "Des étapes sont manquantes"msgid "Storage Unit"msgstr "Unité de stockage"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Soumettre anonymement"@@ -1784,6 +1807,11 @@ msgstr "Utiliser un compte différent"msgid "Used automatically at completion"msgstr "Utilisé automatiquement à l'achèvement"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Valeur"diff --git a/packages/locale/locales/hi/erp.po b/packages/locale/locales/hi/erp.poindex a2656438d2..31aff5542a 100644--- a/packages/locale/locales/hi/erp.po+++ b/packages/locale/locales/hi/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" पूरा हो गया — इसके सभीmsgid "(excluded for this customer)"msgstr "(इस ग्राहक के लिए बाहर रखा गया)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# दिन का अतिरिक्त समय} other {# दिन का अतिरिक्त समय}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# पंक्ति इस कंपनी के बmsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# पंक्ति इस कंपनी के बाहर डेटा से जुड़ी है, इसलिए इसे बैकअप नहीं किया जा सकता। इसे छोड़ने से सब कुछ और बैकअप हो जाता है।} other {# पंक्तियाँ इस कंपनी के बाहर डेटा से जुड़ी हैं, इसलिए उन्हें बैकअप नहीं किया जा सकता। उन्हें छोड़ने से सब कुछ और बैकअप हो जाता है।}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {यह आइटम 1 खुली परिवर्तन सूचना पर है} other {यह आइटम # खुली परिवर्तन सूचनाओं पर है}}"@@ -343,6 +351,9 @@ msgstr "{load} कतार में"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB सीमा"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} महीने बेमेल कुल के साथ"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} पार्ट्स छोड़ा गया —msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} को रिवीजन {0} के रूप में संपादन के लिए फिर से खोला जाएगा। आपूर्तिकर्ता को भेजा गया दस्तावेज़ अपरिवर्तित रहेगा जब तक आप क्रय आदेश को अंतिम रूप न दें और पुनः न भेजें।"+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {# पंक्ति को स्थायी रूप से हटाएँ?} other {# पंक्तियों को स्थायी रूप से हटाएँ?}}"@@ -1358,6 +1372,10 @@ msgstr "जोड़ें"msgid "Add {0} operations"msgstr "{0} ऑपरेशन जोड़ें"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "जोड़ें और जारी करें"@@ -1783,6 +1801,9 @@ msgstr "सभी शिफ्ट"msgid "All slotted dimension values are mapped"msgstr "सभी स्लॉटेड आयाम मान मैप किए गए हैं"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "सभी आपूर्तिकर्ता"@@ -3248,9 +3269,6 @@ msgstr "ब्रेडक्रम्ब"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "अपने पार्ट्स, BOM, प्रक्रिया सूची, और लागत निर्धारण लाएं — Carbon के आयात उपकरण, CSV, या LLM सहायता के साथ।"-msgid "Brings in steps"-msgstr "चरण लाता है"-msgid "Browse library"msgstr "लाइब्रेरी ब्राउज़ करें"@@ -3293,12 +3311,12 @@ msgstr "अनुकूलित, भूमिका-आधारित प्msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "इस चरण के घटकों को मॉडल के बगल में एक समूह के रूप में बनाता है, फिर समूह को बाद के जॉइन चरण में ले जाता है।"+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "अपनी स्वयं की विधि के रूप में निर्मित और लागत निर्धारित"-msgid "Built off to the side, then carried in at its join step"-msgstr "बग़ल में बनाया गया, फिर इसके जॉइन चरण में ले जाया गया"-msgid "Bulk Import"msgstr "बल्क आयात"@@ -3702,6 +3720,9 @@ msgstr "द्वारा परिवर्तित"msgid "Changes"msgstr "परिवर्तन"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "इसे बदलने से मौजूदा विधि अधिलेखित हो जाएगी"@@ -3909,6 +3930,9 @@ msgstr "संक्षिप्त करें"msgid "Collapse {0}"msgstr "{0} को संक्षिप्त करें"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "सभी को संक्षिप्त करें"@@ -4063,6 +4087,12 @@ msgstr "पूर्ण होने का समय"msgid "Component details: {0}"msgstr "घटक विवरण: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "घटक"@@ -5712,6 +5742,10 @@ msgstr "श्रेणी हटाएं"msgid "Delete Change Notice"msgstr "परिवर्तन सूचना हटाएं"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "उपभोग्य सामग्री हटाएँ"@@ -5928,9 +5962,8 @@ msgstr "स्टोरेज प्रकार हटाएं"msgid "Delete Storage Unit"msgstr "भंडारण इकाई हटाएँ"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "सब-असेंबली {0} हटाएँ"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "पदार्थ हटाएं"@@ -5957,6 +5990,9 @@ msgstr "आपूर्तिकर्ता प्रकार हटाएं"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "मात्रा {0} के लिए मूल्य स्तर हटाएँ? यह पूर्ववत नहीं किया जा सकता।"+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "टाइमकार्ड हटाएं"@@ -6330,6 +6366,9 @@ msgstr "पथ संपादन पूरा किया"msgid "Done when day-to-day runs without us in the room"msgstr "दिन-प्रतिदिन हमारे बिना कमरे में चले तब हो गया"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "इस चरण को चलाने के लिए डबल-क्लिक करें"@@ -6376,6 +6415,9 @@ msgstr "एक क्रय आदेश PDF को यहाँ खींचेmsgid "Drag handle"msgstr "ड्रैग हैंडल"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "दर्शक में लाल waypoints को ड्रैग करें"@@ -6654,6 +6696,13 @@ msgstr "परिवर्तन सूचना प्रकार संपाmsgid "Edit column visibility"msgstr "कॉलम दृश्यता संपादित करें"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "संपर्क संपादित करें"@@ -6885,10 +6934,6 @@ msgstr "स्टोरेज प्रकार संपादित करेmsgid "Edit Storage Unit"msgstr "भंडारण इकाई संपादित करें"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "सब-असेंबली {0} संपादित करें"-msgid "Edit Substance"msgstr "पदार्थ संपादित करें"@@ -7434,6 +7479,9 @@ msgstr "विस्तार करें"msgid "Expand {0}"msgstr "विस्तार करें {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "सभी को विस्तृत करें"@@ -8613,6 +8661,9 @@ msgstr "सकल लाभ"msgid "Group"msgstr "समूह"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "द्वारा समूह"@@ -8835,6 +8886,9 @@ msgstr "यह रखरखाव कितनी बार दोहरायmsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "ऑपरेशन को इस प्रक्रिया पर एक बैच साझा करने के लिए प्रत्येक सामग्री संपत्ति कितनी सख्ती से मेल खानी चाहिए।"+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "जब शेड्यूलर क्षमता देता है तो जॉब कैसे रैंक करता है — ASAP पहले दावे करता है, फिर कठोर समय सीमा, नरम समय सीमा, और कोई समय सीमा नहीं अंतिम। केवल एक रैंकिंग संकेत; कोई समय सीमा प्रकार प्लेसमेंट को रोकता या प्रतिबंधित नहीं करता है।"@@ -9181,6 +9235,10 @@ msgstr "इनपुट्स"msgid "Insert token"msgstr "टोकन डालें"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "निरीक्षण करें"@@ -9707,13 +9765,6 @@ msgstr "जॉब जिनकी सामग्री सूची मेंmsgid "Join {0}"msgstr "{0} में शामिल हों"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "चरण {0} में जुड़ता है"--msgid "Joins step {number}: {title}"-msgstr "चरण {number} में जुड़ता है: {title}"-msgid "Journal"msgstr "जर्नल"@@ -10333,6 +10384,9 @@ msgstr "MACRS संपत्ति वर्ग"msgid "Magic link"msgstr "मैजिक लिंक"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "एक एकल भाग और आइटम मास्टर बनाए रखें"@@ -10393,6 +10447,9 @@ msgstr "क्या रिवीजन {0} को डिफ़ॉल्ट बmsgid "Make size {0} default?"msgstr "आकार {0} को डिफ़ॉल्ट बनाएं?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "अंतिम निर्णय लें - आगे बढ़ें या न बढ़ें"@@ -10961,9 +11018,15 @@ msgstr "संस्थाओं को स्थानांतरित करmsgid "Move entities…"msgstr "संस्थाओं को स्थानांतरित करें…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "आइटम को स्थानांतरित करें"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "कुछ मात्रा को एक नई निपटान पंक्ति में स्थानांतरित करें ताकि MRB प्रत्येक भाग का अलग से निर्णय ले सके (जैसे कुछ स्क्रैप करें, कुछ पुनः कार्य करें)।"@@ -10993,6 +11056,10 @@ msgstr "खाता स्थानांतरित किया गया"msgid "Movements"msgstr "मूवमेंट्स"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "MPN"@@ -11555,6 +11622,9 @@ msgstr "अभी कोई टिप्पणी नहीं है। पहmsgid "No completed jobs within range"msgstr "रेंज में कोई पूर्ण जॉब नहीं"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "अभी कोई घटक नहीं"@@ -11916,6 +11986,12 @@ msgstr "इस दृश्य पर कोई सॉर्ट लागू नmsgid "No step selected"msgstr "कोई चरण चयनित नहीं"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "स्टॉक नहीं"@@ -11985,12 +12061,6 @@ msgstr "इस स्थान पर कोई वर्क सेंटर नmsgid "No work centers exist"msgstr "कोई वर्क सेंटर मौजूद नहीं है"-msgid "No, build in place"-msgstr "नहीं, यहाँ निर्माण करें"--msgid "No, it's the base"-msgstr "नहीं, यह आधार है"-msgid "Nom"msgstr "नाम"@@ -12460,6 +12530,9 @@ msgstr "खुले विक्रय आदेश"msgid "Open Scheduled"msgstr "खुली अनुसूचित"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "कार्य विवरण खोलें"@@ -13172,6 +13245,10 @@ msgstr "अलग घटकों के रूप में चुना औरmsgid "Picked quantity"msgstr "चुना गया मात्रा"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "जॉब पर आइटम {substitutedFrom} की जगह में पिकिंग"@@ -14475,9 +14552,6 @@ msgstr "इस स्थान के लिए अभी शेड्यूलmsgid "Regenerate thumbnail from the 3D model"msgstr "3D मॉडल से थंबनेल पुनः उत्पन्न करें"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "पुनः जनरेट करना «Build off to the side» सेटिंग्स को हटाता है।"-msgid "Regenerating thumbnail…"msgstr "थंबनेल को पुनः उत्पन्न किया जा रहा है…"@@ -14597,6 +14671,11 @@ msgstr "निकालें"msgid "Remove {0}"msgstr "निकालें {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "बैच से {0} निकालें"@@ -16942,9 +17021,31 @@ msgstr "इस पृष्ठ पर रहें"msgid "Step"msgstr "चरण"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "{stepCount} में से चरण {0}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "चरण जोड़ा गया"@@ -16976,6 +17077,9 @@ msgstr "चरण विधानसभा निर्देश से विmsgid "Steps are inherited from the inspection plan."msgstr "चरण निरीक्षण योजना से विरासत में मिले हैं।"+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "अभी भी फर्श पर अंधकार है।"@@ -17019,6 +17123,10 @@ msgstr "प्राप्ति को रोकें"msgid "Stop Shipping"msgstr "शिपिंग बंद करें"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "इस तारीख के बाद नई खरीद सुझाव बंद करता है।"@@ -17091,6 +17199,35 @@ msgstr "Stripe के पास इस Carbon ग्राहक के लिmsgid "Style of kanban output to show in the Kanban table"msgstr "कानबान तालिका में दिखाने के लिए कानबान आउटपुट की शैली"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "उप-विधानसभा समाप्ति केवल"@@ -18086,6 +18223,9 @@ msgstr "सामग्री एक विशेष आदेश के लिmsgid "The material types you organize your stock by"msgstr "आप अपने स्टॉक को जिन सामग्री प्रकारों से व्यवस्थित करते हैं"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "वह महीना जब आपका वित्तीय वर्ष शुरू होता है; अवधियों को इस महीने से गिना जाता है।"@@ -18767,6 +18907,9 @@ msgstr "यह स्टेशन कौशल-गेटेड कार्यmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "यह स्टेशन कोई कौशल आवश्यकता के बिना काम चलाता है; मैनिंग बोर्ड पर असाइन किए गए ऑपरेटर उपलब्ध श्रम को आकार देते हैं।"+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "यह भंडारण प्रकार वर्तमान में {usageCount} भंडारण इकाई{0} द्वारा उपयोग किया जा रहा है।"@@ -19371,6 +19514,9 @@ msgstr "अधिकतम मात्रा नीति के तहत, यmsgid "Undo"msgstr "पूर्ववत करें"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "अनइंस्टॉल करें"@@ -19726,21 +19872,37 @@ msgstr "एक अलग खाता उपयोग करें"msgid "Use a different email"msgstr "एक अलग ईमेल का उपयोग करें"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "वर्तमान दृश्य का उपयोग करें"msgid "Use metric system for default material dimensions."msgstr "डिफ़ॉल्ट सामग्री आयामों के लिए मीट्रिक सिस्टम का उपयोग करें।"+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "में उपयोग किया गया"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "नेविगेशन में और विक्रय आदेश जैसे दस्तावेज़ों पर उपयोग किया जाता है"msgid "Used in the navigation in dark mode"msgstr "डार्क मोड में नेविगेशन में उपयोग किया जाता है"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "होम स्क्रीन और डिजिटल उद्धरणों पर उपयोग किया जाता है"@@ -19792,6 +19954,20 @@ msgstr "कवर किए गए डोमेन पर उपयोगकरmsgid "Users to Update"msgstr "अपडेट करने के लिए उपयोगकर्ता"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "वैध से"@@ -20511,6 +20687,9 @@ msgstr "जहां और कैसे आप चीजें बनातेmsgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "इस पीओ पर माल डिफ़ॉल्ट रूप से आपूर्तिकर्ता द्वारा कहां भेजे जाते हैं; पीओ पर प्रति-पंक्ति डिलीवरी स्थान ड्रॉप-शिप और विभाजित-डिलीवरी परिदृश्यों के लिए इसे ओवरराइड करते हैं।"+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "आज यह कहां रहता है"diff --git a/packages/locale/locales/hi/mes.po b/packages/locale/locales/hi/mes.poindex 7da14a9d9f..1223b25d84 100644--- a/packages/locale/locales/hi/mes.po+++ b/packages/locale/locales/hi/mes.po@@ -161,6 +161,9 @@ msgstr "सभी पुनः कार्य"msgid "All scrap"msgstr "सभी स्क्रैप"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "विफल इकाइयों को आवंटित करें"@@ -1111,6 +1114,11 @@ msgstr "MRB निपटान के लिए एक NCR खोलें"msgid "Open Jobs"msgstr "खुली जॉब्स"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "ऑपरेशन"@@ -1598,6 +1606,21 @@ msgstr "चरण गायब हैं"msgid "Storage Unit"msgstr "भंडारण इकाई"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "गुमनाम रूप से सबमिट करें"@@ -1784,6 +1807,11 @@ msgstr "एक अलग खाता उपयोग करें"msgid "Used automatically at completion"msgstr "पूर्णता पर स्वचालित रूप से उपयोग किया जाता है"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "मान"diff --git a/packages/locale/locales/it/erp.po b/packages/locale/locales/it/erp.poindex 81d619798e..732bb51da6 100644--- a/packages/locale/locales/it/erp.po+++ b/packages/locale/locales/it/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" è completato — tutti i {0} articoli della sua Mappa dimsgid "(excluded for this customer)"msgstr "(escluso per questo cliente)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# giorno di margine} other {# giorni di margine}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# riga si collega ai dati al di fuori di questa Aziendamsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# riga si collega ai dati al di fuori di questa Azienda, quindi non può essere sottoposta a backup. Ignorarla fa il backup di tutto il resto.} other {# righe si collegano ai dati al di fuori di questa Azienda, quindi non possono essere sottoposte a backup. Ignorarle fa il backup di tutto il resto.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Questo articolo è in 1 avviso di modifica aperto} other {Questo articolo è in # avvisi di modifica aperti}}"@@ -343,6 +351,9 @@ msgstr "{load} in coda"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB limite"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} mesi con totali non corrispondenti"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} componenti saltati — nulla da produrre"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} verrà riaperto per la modifica come revisione {0}. Il documento già inviato al fornitore rimane invariato fino a quando non si finalizza e si rinvia l'ordine."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Eliminare definitivamente # riga?} other {Eliminare definitivamente # righe?}}"@@ -1358,6 +1372,10 @@ msgstr "Aggiungi"msgid "Add {0} operations"msgstr "Aggiungi {0} operazioni"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Aggiungi e Emetti"@@ -1783,6 +1801,9 @@ msgstr "Tutti i turni"msgid "All slotted dimension values are mapped"msgstr "Tutti i valori di dimensione assegnati sono mappati"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Tutti i fornitori"@@ -3248,9 +3269,6 @@ msgstr "Breadcrumb"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Importa i tuoi componenti, BOM, lista delle operazioni e calcolo dei costi — con gli strumenti di importazione di Carbon, CSV o aiuto LLM."-msgid "Brings in steps"-msgstr "Porta in passi"-msgid "Browse library"msgstr "Sfoglia libreria"@@ -3293,12 +3311,12 @@ msgstr "Crea materiali di formazione personalizzati basati sui ruoli"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Costruisce i componenti di questo passo accanto al modello come un gruppo, poi porta il gruppo dentro a un passo di unione successivo."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Costruito e calcolato come proprio metodo"-msgid "Built off to the side, then carried in at its join step"-msgstr "Costruito di lato, poi portato dentro al suo passo di unione"-msgid "Bulk Import"msgstr "Importazione in blocco"@@ -3702,6 +3720,9 @@ msgstr "Modificato da"msgid "Changes"msgstr "Modifiche"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Modificare questo sovrascriverà il metodo esistente"@@ -3909,6 +3930,9 @@ msgstr "Comprimi"msgid "Collapse {0}"msgstr "Comprimi {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Comprimi tutto"@@ -4063,6 +4087,12 @@ msgstr "Tempo di completamento"msgid "Component details: {0}"msgstr "Dettagli del componente: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Componenti"@@ -5712,6 +5742,10 @@ msgstr "Elimina Categoria"msgid "Delete Change Notice"msgstr "Elimina avviso di modifica"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Elimina Materiale di consumo"@@ -5928,9 +5962,8 @@ msgstr "Elimina Tipo di Archiviazione"msgid "Delete Storage Unit"msgstr "Elimina Unità di stoccaggio"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Elimina sottoassieme {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Elimina Sostanza"@@ -5957,6 +5990,9 @@ msgstr "Elimina Tipo Fornitore"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Eliminare lo scaglione di prezzo per la quantità {0}? Questa azione non può essere annullata."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Elimina Foglio Presenze"@@ -6330,6 +6366,9 @@ msgstr "Modifica del percorso completata"msgid "Done when day-to-day runs without us in the room"msgstr "Fatto quando le operazioni quotidiane funzionano senza di noi in sala."+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Fai doppio clic per riprodurre questo passo"@@ -6376,6 +6415,9 @@ msgstr "Trascina e rilascia un PDF di ordine di acquisto qui, oppure fai clic pemsgid "Drag handle"msgstr "Maniglia di trascinamento"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Trascina i waypoint rossi nel visualizzatore"@@ -6654,6 +6696,13 @@ msgstr "Modifica tipo di avviso di modifica"msgid "Edit column visibility"msgstr "Modifica visibilità colonna"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Modifica Contatto"@@ -6885,10 +6934,6 @@ msgstr "Modifica Tipo di Archiviazione"msgid "Edit Storage Unit"msgstr "Modifica Unità di stoccaggio"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Modifica sottoassieme {0}"-msgid "Edit Substance"msgstr "Modifica Sostanza"@@ -7434,6 +7479,9 @@ msgstr "Espandi"msgid "Expand {0}"msgstr "Espandi {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Espandi tutto"@@ -8613,6 +8661,9 @@ msgstr "Margine lordo"msgid "Group"msgstr "Gruppo"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Raggruppa per"@@ -8835,6 +8886,9 @@ msgstr "Ogni quanto questa manutenzione ricorre — Giornaliero, Settimanale, Memsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Quanto rigorosamente ogni proprietà del materiale deve corrispondere affinché le operazioni condividano un lotto su questo processo."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Come si classifica l'ordine di produzione quando il scheduler distribuisce la capacità — i claim ASAP vanno per primo, quindi Scadenza rigida, Scadenza flessibile e Nessuna scadenza per ultimo. Solo un segnale di classificazione; nessun tipo di scadenza blocca o limita il posizionamento."@@ -9181,6 +9235,10 @@ msgstr "Input"msgid "Insert token"msgstr "Inserisci token"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Ispeziona"@@ -9707,13 +9765,6 @@ msgstr "Ordini di produzione che hanno questo articolo nella loro distinta base"msgid "Join {0}"msgstr "Unisciti a {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Raggiunge il passo {0}"--msgid "Joins step {number}: {title}"-msgstr "Raggiunge il passo {number}: {title}"-msgid "Journal"msgstr "Prima nota"@@ -10333,6 +10384,9 @@ msgstr "Classe di Proprietà MACRS"msgid "Magic link"msgstr "Link Magico"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Mantenere un singolo master di parte e articolo"@@ -10393,6 +10447,9 @@ msgstr "Rendere la revisione {0} predefinita?"msgid "Make size {0} default?"msgstr "Rendere la dimensione {0} predefinita?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Prendi la decisione finale go / no-go"@@ -10961,9 +11018,15 @@ msgstr "Sposta entità"msgid "Move entities…"msgstr "Sposta entità…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Sposta elemento"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Sposta parte della quantità in una nuova riga di disposizione in modo che il MRB possa decidere ciascuna porzione separatamente (ad es. scartare alcuni, rilavorare altri)."@@ -10993,6 +11056,10 @@ msgstr "Account spostato"msgid "Movements"msgstr "Movimenti"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "MPN"@@ -11555,6 +11622,9 @@ msgstr "Nessun commento ancora. Sii il primo ad aggiungere un commento."msgid "No completed jobs within range"msgstr "Nessun ordine di produzione completato entro l'intervallo"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Nessun componente ancora"@@ -11916,6 +11986,12 @@ msgstr "Nessun ordinamento applicato a questa visualizzazione"msgid "No step selected"msgstr "Nessun passo selezionato"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Nessun stock"@@ -11985,12 +12061,6 @@ msgstr "Nessun centro di lavoro in questa ubicazione"msgid "No work centers exist"msgstr "Non esistono centri di lavoro"-msgid "No, build in place"-msgstr "No, costruisci sul posto"--msgid "No, it's the base"-msgstr "No, è la base"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Ordini di vendita aperti"msgid "Open Scheduled"msgstr "Programmato Aperto"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Apri dettagli attività"@@ -13172,6 +13245,10 @@ msgstr "Prelevato e consumato come componenti separati"msgid "Picked quantity"msgstr "Quantità prelevata"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "prelievo al posto di {substitutedFrom}, l'articolo sull'ordine di produzione"@@ -14475,9 +14552,6 @@ msgstr "Rigenera il programma per questa ubicazione ora. Viene eseguito automatimsgid "Regenerate thumbnail from the 3D model"msgstr "Rigenerare la miniatura dal modello 3D"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "La rigenerazione rimuove le impostazioni «Costruisci di lato»."-msgid "Regenerating thumbnail…"msgstr "Rigenerazione miniatura in corso…"@@ -14597,6 +14671,11 @@ msgstr "Rimuovi"msgid "Remove {0}"msgstr "Rimuovi {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Rimuovi {0} dal lotto di produzione"@@ -16942,9 +17021,31 @@ msgstr "Rimani su questa pagina"msgid "Step"msgstr "Passaggio"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Passo {0} di {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Passaggio aggiunto"@@ -16976,6 +17077,9 @@ msgstr "I passaggi vengono ereditati dalle istruzioni di montaggio."msgid "Steps are inherited from the inspection plan."msgstr "I passi sono ereditati dal piano di controllo."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Ancora buio in officina."@@ -17019,6 +17123,10 @@ msgstr "Interrompi ricezione"msgid "Stop Shipping"msgstr "Arresta spedizione"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Interrompe le nuove proposte di acquisto dopo questa data."@@ -17091,6 +17199,35 @@ msgstr "Stripe non ha ancora un cliente per questo cliente Carbon. La registrazimsgid "Style of kanban output to show in the Kanban table"msgstr "Stile dell'output kanban da mostrare nella tabella Kanban"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Solo scadenze dei sottoassiemi"@@ -18086,6 +18223,9 @@ msgstr "Il materiale viene acquistato da un fornitore per quella specifica ordinmsgid "The material types you organize your stock by"msgstr "I tipi di materiale in base ai quali organizzi il tuo stock"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Il mese in cui inizia il vostro anno fiscale; i periodi sono numerati a partire da questo mese."@@ -18767,6 +18907,9 @@ msgstr "Questa stazione esegue lavoro controllato dalle competenze — viene esemsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Questa stazione esegue lavori senza requisito di competenza; gli operatori assegnati sulla plancia di organico modellano la manodopera disponibile."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Questo tipo di stoccaggio è attualmente utilizzato da {usageCount} unità di stoccaggio{0}."@@ -19371,6 +19514,9 @@ msgstr "Con la politica Quantità Massima, gli ordini di pianificazione raggiungmsgid "Undo"msgstr "Annulla"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Disinstalla"@@ -19726,21 +19872,37 @@ msgstr "Usa un account diverso"msgid "Use a different email"msgstr "Usa un'email diversa"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Usa vista corrente"msgid "Use metric system for default material dimensions."msgstr "Utilizza il sistema metrico per le dimensioni predefinite dei materiali."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Utilizzato in"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Utilizzato nella navigazione e nei documenti come ordini di vendita"msgid "Used in the navigation in dark mode"msgstr "Utilizzato nella navigazione in modalità scura"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Utilizzato nella schermata iniziale e nelle quotazioni digitali"@@ -19792,6 +19954,20 @@ msgstr "Gli utenti sui domini coperti possono accedere solo con SAML SSO; il colmsgid "Users to Update"msgstr "Utenti da aggiornare"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Valido da"@@ -20511,6 +20687,9 @@ msgstr "Dove e come realizzi le cose."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Dove i beni in questo PO vengono spediti per impostazione predefinita; le ubicazioni di consegna per riga nel PO sostituiscono questa per scenari di consegna diretta e consegna suddivisa."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Dove si trova oggi"diff --git a/packages/locale/locales/it/mes.po b/packages/locale/locales/it/mes.poindex 0a416e95d6..e530c27cee 100644--- a/packages/locale/locales/it/mes.po+++ b/packages/locale/locales/it/mes.po@@ -161,6 +161,9 @@ msgstr "Tutto rilavorazione"msgid "All scrap"msgstr "Tutto scarto"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Allocare unità non conformi"@@ -1111,6 +1114,11 @@ msgstr "Apri un NCR per la disposizione MRB"msgid "Open Jobs"msgstr "Ordini di produzione aperti"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Operazioni"@@ -1598,6 +1606,21 @@ msgstr "Passi mancanti"msgid "Storage Unit"msgstr "Unità di Stoccaggio"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Invia in forma anonima"@@ -1784,6 +1807,11 @@ msgstr "Usa un account diverso"msgid "Used automatically at completion"msgstr "Utilizzato automaticamente al completamento"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Valore"diff --git a/packages/locale/locales/ja/erp.po b/packages/locale/locales/ja/erp.poindex 5e3f47000b..7a644908f3 100644--- a/packages/locale/locales/ja/erp.po+++ b/packages/locale/locales/ja/erp.po@@ -48,6 +48,10 @@ msgstr "「{taskName}」は完了しました — セットアップマップのmsgid "(excluded for this customer)"msgstr "(この得意先から除外)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# 日のスラック} other {# 日のスラック}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# 行はこの会社の外部のデータにリンクmsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# 行はこの会社の外部のデータにリンクしているため、バックアップできません。スキップすると、他のすべてがバックアップされます。} other {# 行はこの会社の外部のデータにリンクしているため、バックアップできません。スキップすると、他のすべてがバックアップされます。}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {このアイテムは1つの未完了の変更通知に含まれています} other {このアイテムは#つの未完了の変更通知に含まれています}}"@@ -343,6 +351,9 @@ msgstr "キューに{load}件"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB制限"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount}ヶ月の合計が一致していません"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount}個の部品はスキップ済 — 製造する必要msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} はリビジョン {0} として編集のため再度オープンされます。仕入先に送信済みの文書は、ファイナライズして発注書を再送信するまで変更されません。"+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {# 行を永久に削除しますか?} other {# 行を永久に削除しますか?}}"@@ -1358,6 +1372,10 @@ msgstr "追加"msgid "Add {0} operations"msgstr "{0} 工程を追加"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "追加して発行"@@ -1783,6 +1801,9 @@ msgstr "すべてのシフト"msgid "All slotted dimension values are mapped"msgstr "すべてのスロット化されたディメンション値がマップされています"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "すべての仕入先"@@ -3248,9 +3269,6 @@ msgstr "パンくずリスト"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "部品、BOM、工程表、原価計算をインポート — Carbonのツール、CSV、LLM支援で。"-msgid "Brings in steps"-msgstr "ステップを取り込む"-msgid "Browse library"msgstr "ライブラリを参照"@@ -3293,12 +3311,12 @@ msgstr "カスタマイズされたロールベースの教育訓練教材を構msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "このステップのコンポーネントをモデルの横にグループとして構築し、後の結合ステップでグループを配置します。"+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "独自の方法として構築および原価計算"-msgid "Built off to the side, then carried in at its join step"-msgstr "サイドで構築されて、その結合ステップで配置される"-msgid "Bulk Import"msgstr "一括インポート"@@ -3702,6 +3720,9 @@ msgstr "変更者"msgid "Changes"msgstr "変更"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "これを変更すると、既存のメソッドが上書きされます"@@ -3909,6 +3930,9 @@ msgstr "折りたたむ"msgid "Collapse {0}"msgstr "{0}を折りたたむ"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "すべて折りたたむ"@@ -4063,6 +4087,12 @@ msgstr "完了時間"msgid "Component details: {0}"msgstr "コンポーネント詳細: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "コンポーネント"@@ -5712,6 +5742,10 @@ msgstr "カテゴリを削除"msgid "Delete Change Notice"msgstr "変更通知を削除"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "消耗品を削除"@@ -5928,9 +5962,8 @@ msgstr "ストレージタイプを削除"msgid "Delete Storage Unit"msgstr "保管ユニットを削除"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "サブアセンブリ {0} を削除"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "物質を削除"@@ -5957,6 +5990,9 @@ msgstr "仕入先タイプを削除"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "数量{0}の価格スケールを削除しますか?この操作は取り消せません。"+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "タイムカードを削除"@@ -6330,6 +6366,9 @@ msgstr "パス編集完了"msgid "Done when day-to-day runs without us in the room"msgstr "日常業務が私たちなしで円滑に進むようになったら完了"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "このステップを再生するにはダブルクリック"@@ -6376,6 +6415,9 @@ msgstr "購入発注書のPDFをここにドラッグアンドドロップするmsgid "Drag handle"msgstr "ドラッグハンドル"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "ビューアーで赤いウェイポイントをドラッグ"@@ -6654,6 +6696,13 @@ msgstr "変更通知タイプを編集"msgid "Edit column visibility"msgstr "列の表示/非表示を編集"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "担当者を編集"@@ -6885,10 +6934,6 @@ msgstr "ストレージタイプを編集"msgid "Edit Storage Unit"msgstr "保管ユニットを編集"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "サブアセンブリ {0} を編集"-msgid "Edit Substance"msgstr "物質を編集"@@ -7434,6 +7479,9 @@ msgstr "展開"msgid "Expand {0}"msgstr "展開 {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "すべて展開"@@ -8613,6 +8661,9 @@ msgstr "総利益"msgid "Group"msgstr "グループ"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "グループ化"@@ -8835,6 +8886,9 @@ msgstr "この保全がどのくらい頻繁に繰り返されるか — 毎日msgid "How strictly each material property must match for operations to share a batch on this process."msgstr "このプロセスで工程がバッチを共有する場合、各材料特性がどの程度厳密に一致する必要があるか"+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "スケジューラーが容量を割り当てるときに製造指図がどのようにランク付けされるか — ASAP が最初に請求し、その後ハード期限、ソフト期限、期限なしが最後です。ランキング信号のみ;期限タイプは配置をブロックまたはゲートしません。"@@ -9181,6 +9235,10 @@ msgstr "入力"msgid "Insert token"msgstr "トークンを挿入"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "検査"@@ -9707,13 +9765,6 @@ msgstr "この品目が部品表に含まれる製造指図"msgid "Join {0}"msgstr "{0}に参加"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "ステップ {0} に参加"--msgid "Joins step {number}: {title}"-msgstr "ステップ {number}: {title} に参加"-msgid "Journal"msgstr "仕訳"@@ -10333,6 +10384,9 @@ msgstr "MACRS資産クラス"msgid "Magic link"msgstr "マジックリンク"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "単一の部品とアイテムマスターを維持する"@@ -10393,6 +10447,9 @@ msgstr "リビジョン {0} をデフォルトにしますか?"msgid "Make size {0} default?"msgstr "サイズ {0} をデフォルトにしますか?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "最終的なGO/NO-GOの判断を下す"@@ -10961,9 +11018,15 @@ msgstr "エンティティを移動"msgid "Move entities…"msgstr "エンティティを移動…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "アイテムを移動"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "数量の一部を新しい処置行に移動して、MRBが各部分を個別に決定できるようにします(例えば一部をスクラップ、一部を手直し)。"@@ -10993,6 +11056,10 @@ msgstr "移動されたアカウント"msgid "Movements"msgstr "移動"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "MPN"@@ -11555,6 +11622,9 @@ msgstr "まだコメントがありません。最初のコメントを追加しmsgid "No completed jobs within range"msgstr "範囲内に完了した製造指図がありません"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "まだコンポーネントがない"@@ -11916,6 +11986,12 @@ msgstr "このビューに適用されたソートはありません"msgid "No step selected"msgstr "ステップが選択されていない"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "在庫なし"@@ -11985,12 +12061,6 @@ msgstr "この拠点には作業区がありません"msgid "No work centers exist"msgstr "作業区がありません"-msgid "No, build in place"-msgstr "いいえ、現地で構築してください"--msgid "No, it's the base"-msgstr "いいえ、これがベースです"-msgid "Nom"msgstr "公称値"@@ -12460,6 +12530,9 @@ msgstr "オープン受注"msgid "Open Scheduled"msgstr "スケジュール済みを開く"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "タスク詳細を開く"@@ -13172,6 +13245,10 @@ msgstr "別個のコンポーネントとしてピッキングおよび消費"msgid "Picked quantity"msgstr "ピック数量"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "製造指図の{substitutedFrom}の代わりにピッキング"@@ -14475,9 +14552,6 @@ msgstr "この拠点のスケジュールを今すぐ再生成してくださいmsgid "Regenerate thumbnail from the 3D model"msgstr "3Dモデルからサムネイルを再生成"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "再生成により「横に積み重ねてビルド」設定が削除されます"-msgid "Regenerating thumbnail…"msgstr "サムネイルを再生成中…"@@ -14597,6 +14671,11 @@ msgstr "除去"msgid "Remove {0}"msgstr "{0}を除去"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "バッチから {0} を除去"@@ -16942,9 +17021,31 @@ msgstr "このページに留まる"msgid "Step"msgstr "ステップ"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "ステップ {0} / {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "ステップが追加されました"@@ -16976,6 +17077,9 @@ msgstr "ステップは組立指示から継承されます。"msgid "Steps are inherited from the inspection plan."msgstr "ステップは検査計画から継承されます。"+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "まだフロアは暗い。"@@ -17019,6 +17123,10 @@ msgstr "受信を停止"msgid "Stop Shipping"msgstr "配送を停止"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "この日付以降、新規の購買提案が行われなくなります。"@@ -17091,6 +17199,35 @@ msgstr "StripeにはこのCarbon得意先に対応する顧客がまだありまmsgid "Style of kanban output to show in the Kanban table"msgstr "かんばんテーブルに表示するかんばん出力のスタイル"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "サブアセンブリの有効期限のみ"@@ -18086,6 +18223,9 @@ msgstr "この材料は、製造または在庫から取得するのではなくmsgid "The material types you organize your stock by"msgstr "あなたが在庫を整理する材料タイプ"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "財務年度が開始される月。期間はこの月から番号が付けられます。"@@ -18767,6 +18907,9 @@ msgstr "このステーションはスキル制限のある作業を実行しまmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "このステーションはスキル要求事項がない作業を実行します。マニング ボード上に割り当てられた作業者は、利用可能な労務を形作ります。"+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "このストレージタイプは現在{usageCount}個の保管ユニット{0}で使用されています。"@@ -19371,6 +19514,9 @@ msgstr "最大数量ポリシーの場合、再発注点がトリガされたとmsgid "Undo"msgstr "元に戻す"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "アンインストール"@@ -19726,21 +19872,37 @@ msgstr "別のアカウントを使用"msgid "Use a different email"msgstr "別のメールアドレスを使用"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "現在のビューを使用"msgid "Use metric system for default material dimensions."msgstr "デフォルト材料ディメンションにメートル法を使用してください。"+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "使用されている"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "ナビゲーションと受注などのドキュメントで使用されます"msgid "Used in the navigation in dark mode"msgstr "ダークモードのナビゲーションで使用されます"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "ホーム画面とデジタル見積書で使用されます"@@ -19792,6 +19954,20 @@ msgstr "対象ドメインのユーザーは SAML SSO でのみサインインmsgid "Users to Update"msgstr "更新するユーザー"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "有効期間開始"@@ -20511,6 +20687,9 @@ msgstr "あなたが物を作る場所と方法。"msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "このPO上の商品がデフォルトで出荷される場所。PO上の明細ごとの配送場所は、直送と分割配送のシナリオでこれを上書きします。"+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "今日どこにあるか"diff --git a/packages/locale/locales/ja/mes.po b/packages/locale/locales/ja/mes.poindex 3daedc5410..b002d22b51 100644--- a/packages/locale/locales/ja/mes.po+++ b/packages/locale/locales/ja/mes.po@@ -161,6 +161,9 @@ msgstr "全て手直し"msgid "All scrap"msgstr "すべてスクラップ"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "不合格ユニットを割り当てる"@@ -1111,6 +1114,11 @@ msgstr "MRB処置のためにNCRを開く"msgid "Open Jobs"msgstr "オープンな製造指図"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "工程"@@ -1598,6 +1606,21 @@ msgstr "ステップが未記録です"msgid "Storage Unit"msgstr "保管ユニット"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "匿名で提出"@@ -1784,6 +1807,11 @@ msgstr "別のアカウントを使用"msgid "Used automatically at completion"msgstr "完了時に自動使用"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "値"diff --git a/packages/locale/locales/ko/erp.po b/packages/locale/locales/ko/erp.poindex cd3d5ca459..2d85757b99 100644--- a/packages/locale/locales/ko/erp.po+++ b/packages/locale/locales/ko/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" 완료 — 설정 맵 항목 {0}개가 모두 설정되msgid "(excluded for this customer)"msgstr "(이 고객에게는 제외됨)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {여유 # 일} other {여유 # 일}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# 행은 이 회사 외부의 데이터에 연결되어msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# 행은 이 회사 외부의 데이터에 연결되어 있어서 백업할 수 없습니다. 이를 건너뛰면 다른 모든 것이 백업됩니다.} other {# 행은 이 회사 외부의 데이터에 연결되어 있어서 백업할 수 없습니다. 이를 건너뛰면 다른 모든 것이 백업됩니다.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {이 품목은 1개의 미결 변경 통지에 포함되어 있습니다} other {이 품목은 # 개의 미결 변경 통지에 포함되어 있습니다}}"@@ -343,6 +351,9 @@ msgstr "큐에 {load}개 대기 중"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB 제한"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "총액이 일치하지 않는 {mismatchCount}개월"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount}개 부품이 건너뜀 — 만들 것이 없음"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel}은(는) 리비전 {0}으로 편집하기 위해 다시 열립니다. 이미 공급업체로 전송된 문서는 리비전을 완료하고 다시 전송할 때까지 변경되지 않습니다."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {# 행을 영구 삭제하시겠습니까?} other {# 행을 영구 삭제하시겠습니까?}}"@@ -1358,6 +1372,10 @@ msgstr "추가"msgid "Add {0} operations"msgstr "{0}개 공정 추가"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "추가 및 출고"@@ -1783,6 +1801,9 @@ msgstr "모든 교대조"msgid "All slotted dimension values are mapped"msgstr "모든 슬롯된 차원 값이 매핑되었습니다"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "모든 공급업체"@@ -3248,9 +3269,6 @@ msgstr "이동 경로"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "부품, BOM, 공정 목록 및 원가 계산을 가져오기 — Carbon의 가져오기 도구, CSV 또는 LLM 도움을 사용합니다."-msgid "Brings in steps"-msgstr "단계를 포함"-msgid "Browse library"msgstr "라이브러리 둘러보기"@@ -3293,12 +3311,12 @@ msgstr "맞춤형 역할 기반 교육 자료 제작"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "이 단계의 구성품을 모델 옆에 그룹으로 구축한 후 나중의 조립 단계에서 그룹을 반입합니다."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "독립적인 방법으로 구성되고 원가가 산정됨"-msgid "Built off to the side, then carried in at its join step"-msgstr "옆에서 구축하고 조립 단계에서 반입됨"-msgid "Bulk Import"msgstr "일괄 가져오기"@@ -3702,6 +3720,9 @@ msgstr "변경자"msgid "Changes"msgstr "변경 사항"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "이를 변경하면 기존 제조방법을 덮어씁니다"@@ -3909,6 +3930,9 @@ msgstr "접기"msgid "Collapse {0}"msgstr "축소 {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "모두 접기"@@ -4063,6 +4087,12 @@ msgstr "완료 시간"msgid "Component details: {0}"msgstr "구성품 세부사항: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "구성품"@@ -5712,6 +5742,10 @@ msgstr "카테고리 삭제"msgid "Delete Change Notice"msgstr "변경 통지 삭제"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "소모품 삭제"@@ -5928,9 +5962,8 @@ msgstr "저장 유형 삭제"msgid "Delete Storage Unit"msgstr "보관 단위 삭제"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "서브어셈블리 {0} 삭제"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "재질 삭제"@@ -5957,6 +5990,9 @@ msgstr "공급업체 유형 삭제"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "수량 {0}에 대한 가격 구간을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "근무기록 삭제"@@ -6330,6 +6366,9 @@ msgstr "경로 편집 완료"msgid "Done when day-to-day runs without us in the room"msgstr "저희가 없어도 일상 업무가 원활하게 돌아가면 완료입니다"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "이 단계를 재생하려면 더블 클릭"@@ -6376,6 +6415,9 @@ msgstr "발주서 PDF를 여기에 끌어서 놓거나 파일을 선택하려면msgid "Drag handle"msgstr "드래그 핸들"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "뷰어에서 빨간 경유점을 드래그합니다"@@ -6654,6 +6696,13 @@ msgstr "변경 통지 유형 편집"msgid "Edit column visibility"msgstr "열 표시 여부 편집"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "담당자 편집"@@ -6885,10 +6934,6 @@ msgstr "보관 유형 편집"msgid "Edit Storage Unit"msgstr "보관 단위 편집"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "서브어셈블리 {0} 편집"-msgid "Edit Substance"msgstr "물질 편집"@@ -7434,6 +7479,9 @@ msgstr "펼치기"msgid "Expand {0}"msgstr "{0} 펼치기"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "모두 펼치기"@@ -8613,6 +8661,9 @@ msgstr "매출총이익"msgid "Group"msgstr "그룹"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "그룹화 기준"@@ -8835,6 +8886,9 @@ msgstr "이 유지보수가 반복되는 빈도입니다 — 매일, 매주, 매msgid "How strictly each material property must match for operations to share a batch on this process."msgstr "이 공정에서 공정이 배치를 공유하기 위해 각 자재 속성이 얼마나 엄격하게 일치해야 하는지"+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "스케줄러가 용량을 배분할 때 작업 지시의 순위 — ASAP가 먼저 요청되고, 그 다음 고정 기한, 유연 기한, 기한 없음 순입니다. 순위 신호일 뿐이며, 어떤 기한 유형도 배치를 차단하거나 제한하지 않습니다."@@ -9181,6 +9235,10 @@ msgstr "입력"msgid "Insert token"msgstr "토큰 삽입"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "검사"@@ -9707,13 +9765,6 @@ msgstr "자재 명세서에 이 품목이 있는 작업 지시"msgid "Join {0}"msgstr "{0} 참여"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "단계 {0}에 참여"--msgid "Joins step {number}: {title}"-msgstr "단계 {number}에 참여: {title}"-msgid "Journal"msgstr "전표"@@ -10333,6 +10384,9 @@ msgstr "MACRS 자산 분류"msgid "Magic link"msgstr "매직 링크"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "단일 부품 및 품목 마스터 유지"@@ -10393,6 +10447,9 @@ msgstr "리비전 {0}을(를) 기본값으로 설정하시겠습니까?"msgid "Make size {0} default?"msgstr "사이즈 {0}을(를) 기본값으로 설정하시겠습니까?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "최종 진행 여부를 판단하세요"@@ -10961,9 +11018,15 @@ msgstr "개체 이동"msgid "Move entities…"msgstr "개체 이동…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "품목 이동"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "수량의 일부를 새로운 처분 결정 행으로 할당하여 MRB가 각 부분을 별도로 결정할 수 있도록 합니다(예: 일부는 스크랩, 일부는 재작업)."@@ -10993,6 +11056,10 @@ msgstr "이동된 계정"msgid "Movements"msgstr "이동"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "아직 댓글이 없습니다. 첫 번째 댓글을 추가하세요."msgid "No completed jobs within range"msgstr "범위 내에 완료된 작업 지시가 없습니다"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "아직 구성 요소 없음"@@ -11916,6 +11986,12 @@ msgstr "이 보기에는 정렬이 적용되지 않았습니다"msgid "No step selected"msgstr "선택한 단계 없음"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "재고 없음"@@ -11985,12 +12061,6 @@ msgstr "이 사업장에 작업장이 없습니다"msgid "No work centers exist"msgstr "존재하는 작업장이 없습니다"-msgid "No, build in place"-msgstr "아니요, 제자리에서 구축"--msgid "No, it's the base"-msgstr "아니요, 기본입니다"-msgid "Nom"msgstr "명목"@@ -12460,6 +12530,9 @@ msgstr "미결 수주"msgid "Open Scheduled"msgstr "미결 예약 정비"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "작업 세부정보 열기"@@ -13172,6 +13245,10 @@ msgstr "별도의 구성품으로 피킹 및 소비됨"msgid "Picked quantity"msgstr "피킹 수량"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "{substitutedFrom}(작업 지시의 품목) 대신 피킹"@@ -14475,9 +14552,6 @@ msgstr "이 사업장의 일정을 지금 다시 생성하세요. 마지막 일msgid "Regenerate thumbnail from the 3D model"msgstr "3D 모델에서 썸네일 재생성"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "재생성하면 \"옆에서 구축\" 설정이 제거됩니다."-msgid "Regenerating thumbnail…"msgstr "썸네일 재생성 중…"@@ -14597,6 +14671,11 @@ msgstr "제거"msgid "Remove {0}"msgstr "{0} 제거"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "배치에서 {0} 제거"@@ -16942,9 +17021,31 @@ msgstr "이 페이지에 머무르기"msgid "Step"msgstr "단계"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "단계 {0}/{stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "단계 추가됨"@@ -16976,6 +17077,9 @@ msgstr "단계는 조립 지시사항에서 상속됩니다."msgid "Steps are inherited from the inspection plan."msgstr "단계는 검사 계획에서 상속됩니다."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "작업장은 여전히 어둡습니다."@@ -17019,6 +17123,10 @@ msgstr "수령 중지"msgid "Stop Shipping"msgstr "배송 중지"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "이 날짜 이후로 새로운 구매 제안을 중단합니다."@@ -17091,6 +17199,35 @@ msgstr "이 Carbon 고객에 대한 Stripe 고객이 아직 없습니다. 전기msgid "Style of kanban output to show in the Kanban table"msgstr "칸반 테이블에 표시할 칸반 출력 스타일"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "하위 조립품 유효기한만"@@ -18086,6 +18223,9 @@ msgstr "제조하거나 재고에서 가져오는 대신, 해당 특정 주문msgid "The material types you organize your stock by"msgstr "재고를 분류하는 자재 유형"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "귀사 회계연도가 시작되는 월입니다. 기간은 이 월부터 번호가 매겨집니다."@@ -18767,6 +18907,9 @@ msgstr "이 작업장은 역량 게이트 작업을 실행합니다 — 자격msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "이 스테이션은 역량 요구사항이 없는 작업을 실행합니다. 인력 배치 보드에서 할당된 작업자는 가용 노무를 형성합니다."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "이 보관 단위 유형은 현재 {usageCount}개의 보관 단위{0}에서 사용되고 있습니다."@@ -19371,6 +19514,9 @@ msgstr "최대 수량 정책에서는 재주문점에 도달할 때 이 보유msgid "Undo"msgstr "실행 취소"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "제거"@@ -19726,21 +19872,37 @@ msgstr "다른 계정 사용"msgid "Use a different email"msgstr "다른 이메일 사용"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "현재 보기 사용"msgid "Use metric system for default material dimensions."msgstr "기본 자재 치수에 미터법 시스템 사용"+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "사용처"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "네비게이션과 수주 같은 문서에 사용됩니다"msgid "Used in the navigation in dark mode"msgstr "다크 모드의 내비게이션에서 사용됩니다"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "홈 화면과 디지털 견적에서 사용됩니다"@@ -19792,6 +19954,20 @@ msgstr "적용 대상 도메인의 사용자는 SAML SSO로만 로그인할 수msgid "Users to Update"msgstr "업데이트할 사용자"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "유효 시작일"@@ -20511,6 +20687,9 @@ msgstr "무엇을, 어떻게 만드는지."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "이 발주서의 물품이 기본적으로 배송되는 위치; 발주서의 라인별 배송 사업장은 직송 및 분할 배송 시나리오에서 이를 재정의합니다."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "현재 위치"diff --git a/packages/locale/locales/ko/mes.po b/packages/locale/locales/ko/mes.poindex c5aa6315fb..67b1ba2992 100644--- a/packages/locale/locales/ko/mes.po+++ b/packages/locale/locales/ko/mes.po@@ -161,6 +161,9 @@ msgstr "모두 재작업"msgid "All scrap"msgstr "모든 스크랩"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "실패한 단위 할당"@@ -1111,6 +1114,11 @@ msgstr "MRB 처분 결정을 위해 NCR을 여세요"msgid "Open Jobs"msgstr "작업 지시 열기"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "공정작업"@@ -1598,6 +1606,21 @@ msgstr "단계가 누락되었습니다"msgid "Storage Unit"msgstr "보관 단위"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "익명으로 제출"@@ -1784,6 +1807,11 @@ msgstr "다른 계정 사용"msgid "Used automatically at completion"msgstr "완료 시 자동으로 사용됨"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "값"diff --git a/packages/locale/locales/pl/erp.po b/packages/locale/locales/pl/erp.poindex 9785d3f4dc..23b6fef621 100644--- a/packages/locale/locales/pl/erp.po+++ b/packages/locale/locales/pl/erp.po@@ -48,6 +48,10 @@ msgstr "„{taskName}\" jest gotowe — wszystkie {0} jego elementów Setup Mapmsgid "(excluded for this customer)"msgstr "(wykluczone dla tego klienta)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# dzień luzu} few {# dni luzu} many {# dni luzu} other {# dni luzu}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# wiersz łączy się z danymi spoza tej firmy, dlategomsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# wiersz łączy się z danymi spoza tej firmy, dlatego nie można go zabezpieczyć. Pominięcie go pozwala na zabezpieczenie wszystkiego innego.} other {# wierszy łączy się z danymi spoza tej firmy, dlatego nie można ich zabezpieczyć. Pominięcie ich pozwala na zabezpieczenie wszystkiego innego.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Ten artykuł jest na 1 otwartym zawiadomieniu o zmianie} other {Ten artykuł jest na # otwartych zawiadomieniach o zmianie}}"@@ -343,6 +351,9 @@ msgstr "{load} w kolejce"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB limit"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} miesięcy z niezgodnymi sumami"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} części pominięto — nic do zrobienia"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} zostanie ponownie otwarty do edycji jako rewizja {0}. Dokument już wysłany do dostawcy pozostaje niezmieniony, aż go sfinalizujesz i ponownie wyślesz zamówienie."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Trwale usuń # wiersz?} other {Trwale usuń # wierszy?}}"@@ -1358,6 +1372,10 @@ msgstr "Dodaj"msgid "Add {0} operations"msgstr "Dodaj {0} operacji"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Dodaj i wydaj"@@ -1783,6 +1801,9 @@ msgstr "Wszystkie zmiany"msgid "All slotted dimension values are mapped"msgstr "Wszystkie wartości wymiarów w slotach są mapowane"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Wszyscy dostawcy"@@ -3248,9 +3269,6 @@ msgstr "Nawigacja"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Wprowadź swoje części, BOMy, Listy operacji i kalkulacje kosztów — za pomocą narzędzi importu Carbon, CSV lub pomocy LLM."-msgid "Brings in steps"-msgstr "Wprowadza kroki"-msgid "Browse library"msgstr "Przeglądaj bibliotekę"@@ -3293,12 +3311,12 @@ msgstr "Twórz dostosowane materiały szkoleniowe oparte na rolach"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Buduje komponenty tego kroku obok modelu jako grupę, a następnie wstawia grupę na późniejszym kroku złączenia."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Zbudowany i wyceniony jako własna metoda"-msgid "Built off to the side, then carried in at its join step"-msgstr "Zbudowany z boku, a następnie wstawiony na jego kroku złączenia"-msgid "Bulk Import"msgstr "Import zbiorczy"@@ -3702,6 +3720,9 @@ msgstr "Zmienione przez"msgid "Changes"msgstr "Zmiany"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Zmiana tego spowoduje zastąpienie istniejącej metody"@@ -3909,6 +3930,9 @@ msgstr "Zwiń"msgid "Collapse {0}"msgstr "Zwiń {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Zwiń wszystko"@@ -4063,6 +4087,12 @@ msgstr "Czas ukończenia"msgid "Component details: {0}"msgstr "Szczegóły komponenty: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Komponenty"@@ -5712,6 +5742,10 @@ msgstr "Usuń kategorię"msgid "Delete Change Notice"msgstr "Usuń zawiadomienie o zmianie"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Usuń materiał eksploatacyjny"@@ -5928,9 +5962,8 @@ msgstr "Usuń typ magazynu"msgid "Delete Storage Unit"msgstr "Usuń jednostkę magazynową"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Usuń podzespół {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Usuń substancję"@@ -5957,6 +5990,9 @@ msgstr "Usuń typ dostawcy"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Usunąć próg cenowy dla ilości {0}? Nie można cofnąć tej akcji."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Usuń kartę czasu pracy"@@ -6330,6 +6366,9 @@ msgstr "Gotowe edytowanie ścieżki"msgid "Done when day-to-day runs without us in the room"msgstr "Gotowe, gdy codzienne operacje działają bez naszej obecności"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Kliknij dwukrotnie, aby odtworzyć ten krok"@@ -6376,6 +6415,9 @@ msgstr "Przeciągnij i upuść plik PDF zamówienia zakupu tutaj lub kliknij, abmsgid "Drag handle"msgstr "Uchwyt do przeciągania"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Przeciągnij czerwone punkty orientacyjne w przeglądarce"@@ -6654,6 +6696,13 @@ msgstr "Edytuj typ zawiadomienia o zmianie"msgid "Edit column visibility"msgstr "Edytuj widoczność kolumn"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Edytuj Kontakt"@@ -6885,10 +6934,6 @@ msgstr "Edytuj typ magazynu"msgid "Edit Storage Unit"msgstr "Edytuj jednostkę magazynową"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Edytuj podzespół {0}"-msgid "Edit Substance"msgstr "Edytuj substancję"@@ -7434,6 +7479,9 @@ msgstr "Rozwiń"msgid "Expand {0}"msgstr "Rozwiń {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Rozwiń wszystko"@@ -8613,6 +8661,9 @@ msgstr "Zysk brutto"msgid "Group"msgstr "Grupa"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Grupuj wg"@@ -8835,6 +8886,9 @@ msgstr "Jak często to utrzymanie ruchu się powtarza — Codziennie, Co tydziemsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Jak ściśle każda właściwość materiału musi się zgadzać, aby operacje mogły wspólnie tworzyć partię produkcyjną w tym procesie."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Jak zlecenie produkcyjne jest klasyfikowane, gdy harmonogram przydziela pojemność — ASAP otrzymuje pierwszeństwo, następnie Hard Deadline, Soft Deadline i brak terminu ostatni. Sygnał rankingu tylko; żaden typ terminu nie blokuje ani nie uniemożliwia umieszczenia."@@ -9181,6 +9235,10 @@ msgstr "Dane wejściowe"msgid "Insert token"msgstr "Wstaw token"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Sprawdź"@@ -9707,13 +9765,6 @@ msgstr "Zlecenia produkcyjne, które mają ten artykuł na swojej liście materimsgid "Join {0}"msgstr "Dołącz do {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Dołącza do kroku {0}"--msgid "Joins step {number}: {title}"-msgstr "Dołącza do kroku {number}: {title}"-msgid "Journal"msgstr "Dowód księgowy"@@ -10333,6 +10384,9 @@ msgstr "Klasa Właściwości MACRS"msgid "Magic link"msgstr "Magiczny link"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Utrzymuj pojedynczy katalog części i artykułów"@@ -10393,6 +10447,9 @@ msgstr "Ustaw rewizję {0} jako domyślną?"msgid "Make size {0} default?"msgstr "Ustawić rozmiar {0} jako domyślny?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Podejmij ostateczną decyzję: start / brak startu"@@ -10961,9 +11018,15 @@ msgstr "Przenieś jednostki"msgid "Move entities…"msgstr "Przenieś jednostki…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Przesuń element"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Przenieś część ilości do nowego wiersza dyspozycji, aby komisja oceny materiałów mogła podjąć decyzję dla każdej części osobno (np. części na braki, części na poprawę)."@@ -10993,6 +11056,10 @@ msgstr "Przeniesione konto"msgid "Movements"msgstr "Ruchy"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Brak komentarzy. Bądź pierwszy i dodaj komentarz."msgid "No completed jobs within range"msgstr "Nie znaleziono zakończonych zleceń produkcyjnych w danym zakresie"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Brak komponentów"@@ -11916,6 +11986,12 @@ msgstr "Brak zastosowanych sortowań w tym widoku"msgid "No step selected"msgstr "Nie wybrano kroku"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Brak zapasu"@@ -11985,12 +12061,6 @@ msgstr "Brak stanowisk roboczych w tej lokalizacji"msgid "No work centers exist"msgstr "Nie istnieją stanowiska robocze"-msgid "No, build in place"-msgstr "Nie, buduj na miejscu"--msgid "No, it's the base"-msgstr "Nie, to jest bazą"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Otwarte Zamówienia Sprzedaży"msgid "Open Scheduled"msgstr "Otwarte zaplanowane"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Otwórz szczegóły zadania"@@ -13172,6 +13245,10 @@ msgstr "Pobrane i zużyte jako oddzielne komponenty"msgid "Picked quantity"msgstr "Pobrana ilość"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "kompletacja w miejsce {substitutedFrom}, artykułu na zleceniu"@@ -14475,9 +14552,6 @@ msgstr "Ponownie wygeneruj harmonogram dla tej lokalizacji teraz. Działa równimsgid "Regenerate thumbnail from the 3D model"msgstr "Ponownie wygeneruj miniaturę z modelu 3D"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Regenerowanie usuwa ustawienia „Buduj z boku\"."-msgid "Regenerating thumbnail…"msgstr "Ponownie generowanie miniatury…"@@ -14597,6 +14671,11 @@ msgstr "Usuń z listy"msgid "Remove {0}"msgstr "Usuń z listy {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Usuń z listy {0} z partii produkcyjnej"@@ -16942,9 +17021,31 @@ msgstr "Zostań na tej stronie"msgid "Step"msgstr "Krok"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Krok {0} z {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Krok dodany"@@ -16976,6 +17077,9 @@ msgstr "Kroki są dziedziczone z instrukcji montażu."msgid "Steps are inherited from the inspection plan."msgstr "Kroki są dziedziczone z planu kontroli."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Jeszcze ciemno na hali."@@ -17019,6 +17123,10 @@ msgstr "Zatrzymaj Odbieranie"msgid "Stop Shipping"msgstr "Zatrzymaj wysyłkę"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Wstrzymuje nowe propozycje zakupów po tej dacie."@@ -17091,6 +17199,35 @@ msgstr "Stripe nie ma jeszcze klienta dla tego klienta Carbon. Księgowanie utwomsgid "Style of kanban output to show in the Kanban table"msgstr "Styl wyjścia kanban do wyświetlenia w tabeli Kanban"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Tylko wygaśnięcia podzespołów"@@ -18086,6 +18223,9 @@ msgstr "Materiał jest kupowany od dostawcy dla tego konkretnego zamówienia, zamsgid "The material types you organize your stock by"msgstr "Typy materiałów, według których organizujesz swoje zapasy"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Miesiąc, w którym rozpoczyna się Twój rok obrachunkowy; okresy są numerowane od tego miesiąca."@@ -18767,6 +18907,9 @@ msgstr "To stanowisko robocze wykonuje pracę ograniczoną do uprawnień — dzimsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "To stanowisko wykonuje pracę bez wymagań umiejętności; operatorzy przypisani na tablicy obsady kształtują dostępną robociznę."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Ten typ magazynu jest obecnie używany przez {usageCount} jednostkę magazynową{0}."@@ -19371,6 +19514,9 @@ msgstr "W ramach polityki maksymalnej ilości planowanie zamawia do tego poziomumsgid "Undo"msgstr "Cofnij"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Odinstaluj"@@ -19726,21 +19872,37 @@ msgstr "Użyj innego konta"msgid "Use a different email"msgstr "Użyj innego adresu e-mail"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Użyj bieżącego widoku"msgid "Use metric system for default material dimensions."msgstr "Użyj systemu metrycznego dla domyślnych wymiarów materiału."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Używane w"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Używane w nawigacji i w dokumentach takich jak zamówienia sprzedaży"msgid "Used in the navigation in dark mode"msgstr "Używane w nawigacji w trybie ciemnym"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Używane na ekranie głównym i cyfrowych ofertach"@@ -19792,6 +19954,20 @@ msgstr "Użytkownicy w domenach objętych wymogiem mogą się logować tylko zamsgid "Users to Update"msgstr "Użytkownicy do aktualizacji"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Ważne od"@@ -20511,6 +20687,9 @@ msgstr "Gdzie i jak wytwarzasz rzeczy."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Gdzie towar na tym PO jest domyślnie wysyłany; lokalizacje dostawy na poziomie pozycji na PO nadpisują to dla scenariuszy dostawy bezpośredniej i wysyłki częściowej."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Gdzie znajduje się dzisiaj"diff --git a/packages/locale/locales/pl/mes.po b/packages/locale/locales/pl/mes.poindex c1a63de87d..a74010e3c2 100644--- a/packages/locale/locales/pl/mes.po+++ b/packages/locale/locales/pl/mes.po@@ -161,6 +161,9 @@ msgstr "Wszystkie poprawki"msgid "All scrap"msgstr "Wszystkie braki"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Przydziel jednostki z błędami"@@ -1111,6 +1114,11 @@ msgstr "Otwórz NCR dla dyspozycji MRB"msgid "Open Jobs"msgstr "Otwarte zlecenia produkcyjne"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Operacje"@@ -1598,6 +1606,21 @@ msgstr "Brakuje kroków"msgid "Storage Unit"msgstr "Jednostka magazynowa"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Prześlij anonimowo"@@ -1784,6 +1807,11 @@ msgstr "Użyj innego konta"msgid "Used automatically at completion"msgstr "Używane automatycznie przy zakończeniu"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Wartość"diff --git a/packages/locale/locales/pt/erp.po b/packages/locale/locales/pt/erp.poindex a2915e3273..0f86fe4ab4 100644--- a/packages/locale/locales/pt/erp.po+++ b/packages/locale/locales/pt/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" está feito — todos os {0} itens do seu Mapa de Setup emsgid "(excluded for this customer)"msgstr "(excluído para este cliente)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# dia de folga} other {# dias de folga}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# linha vincula dados fora desta empresa, portanto umamsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# linha vincula dados fora desta empresa, portanto não pode ser feita backup dela. Ignorá-la faz backup de tudo mais.} other {# linhas vinculam dados fora desta empresa, portanto não podem ser feitas backup delas. Ignorá-las fazem backup de tudo mais.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Este item está em 1 aviso de alteração aberto} other {Este item está em # avisos de alteração abertos}}"@@ -343,6 +351,9 @@ msgstr "{load} na fila"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB limit"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} meses com totais não correspondentes"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} peças ignoradas — nada para fabricar"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} será reaberto para edição como revisão {0}. O documento já enviado ao fornecedor permanece inalterado até que você finalize e reenvie o pedido."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Excluir permanentemente # linha?} other {Excluir permanentemente # linhas?}}"@@ -1358,6 +1372,10 @@ msgstr "Adicionar"msgid "Add {0} operations"msgstr "Adicionar {0} operações"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Adicionar e Emitir"@@ -1783,6 +1801,9 @@ msgstr "Todos os Turnos"msgid "All slotted dimension values are mapped"msgstr "Todos os valores de dimensão com slot estão mapeados"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Todos os Fornecedores"@@ -3248,9 +3269,6 @@ msgstr "Migalha de pão"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Traga suas peças, BOMs, listas de operações e custeio — com as ferramentas de importação do Carbon, CSV ou ajuda de LLM."-msgid "Brings in steps"-msgstr "Traz etapas"-msgid "Browse library"msgstr "Procurar biblioteca"@@ -3293,12 +3311,12 @@ msgstr "Criar materiais de treinamento personalizados baseados em funções"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Constrói os componentes desta etapa ao lado do modelo como um grupo, depois transporta o grupo em uma etapa de junção posterior."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Construído e calculado como seu próprio método"-msgid "Built off to the side, then carried in at its join step"-msgstr "Construído ao lado, depois transportado em sua etapa de junção"-msgid "Bulk Import"msgstr "Importação em Massa"@@ -3702,6 +3720,9 @@ msgstr "Alterado por"msgid "Changes"msgstr "Alterações"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Alterar isto irá sobrescrever o método existente"@@ -3909,6 +3930,9 @@ msgstr "Recolher"msgid "Collapse {0}"msgstr "Recolher {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Recolher tudo"@@ -4063,6 +4087,12 @@ msgstr "Tempo de Conclusão"msgid "Component details: {0}"msgstr "Detalhes do componente: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Componentes"@@ -5712,6 +5742,10 @@ msgstr "Excluir categoria"msgid "Delete Change Notice"msgstr "Excluir aviso de alteração"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Excluir consumível"@@ -5928,9 +5962,8 @@ msgstr "Excluir Tipo de armazenamento"msgid "Delete Storage Unit"msgstr "Excluir Unidade de armazenamento"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Excluir subconjunto {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Excluir Substância"@@ -5957,6 +5990,9 @@ msgstr "Excluir Tipo de fornecedor"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Excluir a faixa de preço para quantidade {0}? Isso não pode ser desfeito."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Excluir Cartão de ponto"@@ -6330,6 +6366,9 @@ msgstr "Edição de Caminho Concluída"msgid "Done when day-to-day runs without us in the room"msgstr "Feito quando o dia a dia funciona sem nós"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Clique duas vezes para reproduzir esta etapa"@@ -6376,6 +6415,9 @@ msgstr "Arraste e solte um PDF de Pedido de Compra aqui ou clique para selecionamsgid "Drag handle"msgstr "Puxador de arrasto"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Arraste os pontos de rota vermelhos no visualizador"@@ -6654,6 +6696,13 @@ msgstr "Editar Tipo de Aviso de alteração"msgid "Edit column visibility"msgstr "Editar visibilidade da coluna"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Editar Contacto"@@ -6885,10 +6934,6 @@ msgstr "Editar Tipo de Armazenamento"msgid "Edit Storage Unit"msgstr "Editar Unidade de Armazenamento"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Editar subconjunto {0}"-msgid "Edit Substance"msgstr "Editar Substância"@@ -7434,6 +7479,9 @@ msgstr "Expandir"msgid "Expand {0}"msgstr "Expandir {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Expandir tudo"@@ -8613,6 +8661,9 @@ msgstr "Lucro Bruto"msgid "Group"msgstr "Grupo"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Agrupar por"@@ -8835,6 +8886,9 @@ msgstr "Com que frequência esta manutenção se repete — Diário, Semanal, Memsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Quão rigorosamente cada propriedade do material deve coincidir para operações compartilharem um lote de produção neste processo."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Como a ordem de produção se classifica quando o agendador distribui capacidade — As solicitações ASAP vêm primeiro, depois Prazo Firme, Prazo Flexível e Sem Prazo por último. Apenas um sinal de classificação; nenhum tipo de prazo bloqueia ou impede a colocação."@@ -9181,6 +9235,10 @@ msgstr "Entradas"msgid "Insert token"msgstr "Inserir token"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Inspecionar"@@ -9707,13 +9765,6 @@ msgstr "Ordens de produção que têm este item em sua lista de materiais"msgid "Join {0}"msgstr "Juntar-se a {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Se une à etapa {0}"--msgid "Joins step {number}: {title}"-msgstr "Se une à etapa {number}: {title}"-msgid "Journal"msgstr "Diário"@@ -10333,6 +10384,9 @@ msgstr "Classe de Propriedade MACRS"msgid "Magic link"msgstr "Link mágico"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Manter um único mestre de peça e item"@@ -10393,6 +10447,9 @@ msgstr "Tornar revisão {0} padrão?"msgid "Make size {0} default?"msgstr "Tornar tamanho {0} padrão?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Tome a decisão final de prosseguir ou não"@@ -10961,9 +11018,15 @@ msgstr "Mover entidades"msgid "Move entities…"msgstr "Mover entidades…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Mover item"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Mover parte da quantidade para uma nova linha de disposição para que o Comitê de análise de materiais possa decidir cada parte separadamente (por exemplo, refugar parte, fazer retrabalho em parte)."@@ -10993,6 +11056,10 @@ msgstr "Conta movida"msgid "Movements"msgstr "Movimentações"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Sem comentários ainda. Seja o primeiro a adicionar um comentário."msgid "No completed jobs within range"msgstr "Nenhuma ordem de produção concluída dentro do intervalo"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Nenhum componente ainda"@@ -11916,6 +11986,12 @@ msgstr "Nenhuma ordenação aplicada a esta visualização"msgid "No step selected"msgstr "Nenhuma etapa selecionada"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Sem stock"@@ -11985,12 +12061,6 @@ msgstr "Sem centros de trabalho neste local"msgid "No work centers exist"msgstr "Nenhum centro de trabalho existe"-msgid "No, build in place"-msgstr "Não, montar no local"--msgid "No, it's the base"-msgstr "Não, é a base"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Pedidos de Venda Abertos"msgid "Open Scheduled"msgstr "Agendado Aberto"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Abrir detalhes da tarefa"@@ -13172,6 +13245,10 @@ msgstr "Selecionado e consumido como componentes separados"msgid "Picked quantity"msgstr "Quantidade colhida"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "separação no lugar de {substitutedFrom}, o item na ordem de produção"@@ -14475,9 +14552,6 @@ msgstr "Regenere a programação para este local agora. Ele também é executadomsgid "Regenerate thumbnail from the 3D model"msgstr "Regenerar miniatura do modelo 3D"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Regenerar remove configurações de \"Construir ao lado\"."-msgid "Regenerating thumbnail…"msgstr "Regenerando miniatura…"@@ -14597,6 +14671,11 @@ msgstr "Remover"msgid "Remove {0}"msgstr "Remover {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Remover {0} do lote de produção"@@ -16942,9 +17021,31 @@ msgstr "Ficar nesta página"msgid "Step"msgstr "Etapa"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Etapa {0} de {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Etapa adicionada"@@ -16976,6 +17077,9 @@ msgstr "As etapas são herdadas da instrução de montagem."msgid "Steps are inherited from the inspection plan."msgstr "As etapas são herdadas do plano de inspeção."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Ainda está escuro no chão."@@ -17019,6 +17123,10 @@ msgstr "Parar Recebimento"msgid "Stop Shipping"msgstr "Parar Envio"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Interrompe novas sugestões de compra após esta data."@@ -17091,6 +17199,35 @@ msgstr "Stripe ainda não tem um cliente para este cliente do Carbon. A Contabilmsgid "Style of kanban output to show in the Kanban table"msgstr "Estilo de saída do kanban para mostrar na tabela Kanban"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Apenas expirações de subconjuntos"@@ -18086,6 +18223,9 @@ msgstr "O material é comprado de um fornecedor para esse pedido específico, emmsgid "The material types you organize your stock by"msgstr "Os tipos de material pelos quais você organiza seu estoque"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "O mês em que seu ano fiscal começa; os períodos são numerados a partir deste mês."@@ -18767,6 +18907,9 @@ msgstr "Esta estação executa trabalho com requisitos de habilidade — ela funmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Esta estação executa trabalho sem requisito de habilidade; operadores atribuídos no quadro de pessoal moldam a mão de obra disponível."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Este tipo de armazenamento está sendo usado por {usageCount} unidade de armazenamento{0}."@@ -19371,6 +19514,9 @@ msgstr "Sob política de quantidade máxima, o planejamento pede até este nívemsgid "Undo"msgstr "Desfazer"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Desinstalar"@@ -19726,21 +19872,37 @@ msgstr "Use uma conta diferente"msgid "Use a different email"msgstr "Usar um email diferente"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Usar Visualização Atual"msgid "Use metric system for default material dimensions."msgstr "Utilize o sistema métrico para dimensões padrão de materiais."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Usado Em"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Usado na navegação e em documentos como pedidos de venda"msgid "Used in the navigation in dark mode"msgstr "Usado na navegação no modo escuro"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Usado na tela inicial e em cotações digitais"@@ -19792,6 +19954,20 @@ msgstr "Os usuários em domínios cobertos podem entrar apenas com SAML SSO; linmsgid "Users to Update"msgstr "Usuários a atualizar"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Válido a partir de"@@ -20511,6 +20687,9 @@ msgstr "Onde e como você fabrica as coisas."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Para onde os bens neste Pedido de compra são enviados por padrão; locais de entrega por linha no Pedido de compra anulam isso para cenários de entrega direta e entrega dividida."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Onde fica hoje"diff --git a/packages/locale/locales/pt/mes.po b/packages/locale/locales/pt/mes.poindex b6c3dba565..db705be0b6 100644--- a/packages/locale/locales/pt/mes.po+++ b/packages/locale/locales/pt/mes.po@@ -161,6 +161,9 @@ msgstr "Todos para retrabalho"msgid "All scrap"msgstr "Todo refugo"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Alocar unidades com falha"@@ -1111,6 +1114,11 @@ msgstr "Abrir um NCR para disposição MRB"msgid "Open Jobs"msgstr "Ordens de produção abertas"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Operações"@@ -1598,6 +1606,21 @@ msgstr "Etapas ausentes"msgid "Storage Unit"msgstr "Unidade de Armazenamento"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Enviar anonimamente"@@ -1784,6 +1807,11 @@ msgstr "Usar uma conta diferente"msgid "Used automatically at completion"msgstr "Usado automaticamente na conclusão"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Valor"diff --git a/packages/locale/locales/ru/erp.po b/packages/locale/locales/ru/erp.poindex 15c1fe4ca8..ea1888c928 100644--- a/packages/locale/locales/ru/erp.po+++ b/packages/locale/locales/ru/erp.po@@ -48,6 +48,10 @@ msgstr "«{taskName}» готово — все {0} позиций графикаmsgid "(excluded for this customer)"msgstr "(исключено для этого покупателя)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# день страхового запаса} few {# дня страхового запаса} many {# дней страхового запаса} other {# дней страхового запаса}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# строка связана с данными внеmsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# строка связана с данными вне этой организации, поэтому она не может быть зарезервирована. Пропуск позволит зарезервировать все остальное.} other {# строк связаны с данными вне этой организации, поэтому они не могут быть зарезервированы. Пропуск позволит зарезервировать все остальное.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Эта номенклатура находится в 1 открытом извещении об изменении} other {Эта номенклатура находится в # открытых извещениях об изменении}}"@@ -343,6 +351,9 @@ msgstr "{load} в очереди"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}МБ максимум"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} месяцев с несовпадающими итогами"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} деталей пропущено — нечегоmsgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} будет переоткрыт для редактирования как ревизия {0}. Отправленный поставщику документ останется неизменным, пока вы не завершите и не переотправите заказ."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {Окончательно удалить # строку?} other {Окончательно удалить # строк?}}"@@ -1358,6 +1372,10 @@ msgstr "Добавить"msgid "Add {0} operations"msgstr "Добавить {0} операции"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Добавить и выдать"@@ -1783,6 +1801,9 @@ msgstr "Все смены"msgid "All slotted dimension values are mapped"msgstr "Все значения измерений сопоставлены"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Все поставщики"@@ -3248,9 +3269,6 @@ msgstr "Навигационная цепочка"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Импортируйте ваши детали, BOM, перечень операций и калькуляцию — используя инструменты импорта Carbon, CSV или помощь LLM."-msgid "Brings in steps"-msgstr "Вносит шаги"-msgid "Browse library"msgstr "Обзор библиотеки"@@ -3293,12 +3311,12 @@ msgstr "Создавайте адаптированные материалы оmsgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Собирает компоненты этого шага рядом с моделью как группу, затем вносит группу на более позднем шаге присоединения."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Построен и рассчитан как собственный метод"-msgid "Built off to the side, then carried in at its join step"-msgstr "Собрано отдельно, затем внесено на его шаг присоединения"-msgid "Bulk Import"msgstr "Массовый импорт"@@ -3702,6 +3720,9 @@ msgstr "Изменено"msgid "Changes"msgstr "Изменения"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Это изменение перезапишет существующий метод"@@ -3909,6 +3930,9 @@ msgstr "Свернуть"msgid "Collapse {0}"msgstr "Свернуть {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Свернуть все"@@ -4063,6 +4087,12 @@ msgstr "Время завершения"msgid "Component details: {0}"msgstr "Сведения о компоненте: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Компоненты"@@ -5712,6 +5742,10 @@ msgstr "Удалить категорию"msgid "Delete Change Notice"msgstr "Удалить извещение об изменении"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Удалить расходный материал"@@ -5928,9 +5962,8 @@ msgstr "Удалить тип хранилища"msgid "Delete Storage Unit"msgstr "Удалить единицу хранения"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Удалить узел {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Удалить вещество"@@ -5957,6 +5990,9 @@ msgstr "Удалить тип поставщика"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Удалить ценовую шкалу для количества {0}? Это не может быть отменено."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Удалить табель учета рабочего времени"@@ -6330,6 +6366,9 @@ msgstr "Редактирование пути завершено"msgid "Done when day-to-day runs without us in the room"msgstr "Готово, когда ежедневные операции работают без нас в офисе"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Дважды щелкните, чтобы воспроизвести этот шаг"@@ -6376,6 +6415,9 @@ msgstr "Перетащите PDF-файл заказа поставщику сюmsgid "Drag handle"msgstr "Ручка перетаскивания"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Перетащите красные точки маршрута в средство просмотра"@@ -6654,6 +6696,13 @@ msgstr "Изменить тип извещения об изменении"msgid "Edit column visibility"msgstr "Изменить видимость столбцов"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "Изменить контактное лицо"@@ -6885,10 +6934,6 @@ msgstr "Изменить Тип хранилища"msgid "Edit Storage Unit"msgstr "Изменить Единицу хранения"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Изменить узел {0}"-msgid "Edit Substance"msgstr "Изменить Вещество"@@ -7434,6 +7479,9 @@ msgstr "Развернуть"msgid "Expand {0}"msgstr "Развернуть {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Развернуть все"@@ -8613,6 +8661,9 @@ msgstr "Валовая прибыль"msgid "Group"msgstr "Группа"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Группировать по"@@ -8835,6 +8886,9 @@ msgstr "Как часто это техобслуживание повторяеmsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Насколько строго должны совпадать свойства материала для размещения операций в одной серии на этом процессе."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "Как производственный заказ рангируется, когда планировщик распределяет мощность — ASAP занимает первое место, затем Жесткий срок, Мягкий срок и Нет срока в последнюю очередь. Только сигнал ранжирования; ни один тип срока не блокирует и не ограничивает размещение."@@ -9181,6 +9235,10 @@ msgstr "Входные данные"msgid "Insert token"msgstr "Вставить токен"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "Проверить"@@ -9707,13 +9765,6 @@ msgstr "Производственные заказы, у которых этаmsgid "Join {0}"msgstr "Присоединиться к {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Присоединяется к шагу {0}"--msgid "Joins step {number}: {title}"-msgstr "Присоединяется к шагу {number}: {title}"-msgid "Journal"msgstr "Операция"@@ -10333,6 +10384,9 @@ msgstr "Класс имущества MACRS"msgid "Magic link"msgstr "Волшебная ссылка"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Ведите единый реестр деталей и товаров"@@ -10393,6 +10447,9 @@ msgstr "Сделать ревизию {0} по умолчанию?"msgid "Make size {0} default?"msgstr "Сделать размер {0} размером по умолчанию?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Принять окончательное решение: идти или не идти"@@ -10961,9 +11018,15 @@ msgstr "Переместить сущности"msgid "Move entities…"msgstr "Переместить сущности…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Переместить элемент"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Переместить часть количества в новую строку решения, чтобы MRB мог решить каждую часть отдельно (например, отправить на брак, отправить на доработку)."@@ -10993,6 +11056,10 @@ msgstr "Перемещённый счёт"msgid "Movements"msgstr "Движения"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Нет комментариев. Будьте первым, кто доmsgid "No completed jobs within range"msgstr "Нет завершенных производственных заказов в диапазоне"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Компонентов еще нет"@@ -11916,6 +11986,12 @@ msgstr "Сортировка не применена к этому предстmsgid "No step selected"msgstr "Шаг не выбран"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Нет запасов"@@ -11985,12 +12061,6 @@ msgstr "На этой площадке нет рабочих центров"msgid "No work centers exist"msgstr "Рабочих центров не существует"-msgid "No, build in place"-msgstr "Нет, строить на месте"--msgid "No, it's the base"-msgstr "Нет, это основа"-msgid "Nom"msgstr "Номин"@@ -12460,6 +12530,9 @@ msgstr "Открытые Заказы покупателей"msgid "Open Scheduled"msgstr "Открытые запланированные"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Открыть детали задачи"@@ -13172,6 +13245,10 @@ msgstr "Подобрано и потреблено как отдельные кmsgid "Picked quantity"msgstr "Выбранное количество"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "отбор вместо {substitutedFrom}, номенклатуры в производственном заказе"@@ -14475,9 +14552,6 @@ msgstr "Пересчитать график для этой площадки сmsgid "Regenerate thumbnail from the 3D model"msgstr "Восстановить миниатюру из 3D модели"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Регенерирование удаляет параметры «Build off to the side»."-msgid "Regenerating thumbnail…"msgstr "Создание миниатюры…"@@ -14597,6 +14671,11 @@ msgstr "Убрать"msgid "Remove {0}"msgstr "Убрать {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "Убрать {0} из серии"@@ -16942,9 +17021,31 @@ msgstr "Остаться на этой странице"msgid "Step"msgstr "Шаг"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Шаг {0} из {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Шаг добавлен"@@ -16976,6 +17077,9 @@ msgstr "Шаги наследуются из инструкции сборки."msgid "Steps are inherited from the inspection plan."msgstr "Шаги наследуются из плана контроля."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "На производстве всё ещё темно."@@ -17019,6 +17123,10 @@ msgstr "Остановить получение"msgid "Stop Shipping"msgstr "Остановить отправку"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Останавливает новые предложения по закупкам после этой даты."@@ -17091,6 +17199,35 @@ msgstr "Stripe еще не имеет покупателя для этого пmsgid "Style of kanban output to show in the Kanban table"msgstr "Стиль вывода канбана для отображения в таблице Канбана"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Только сроки действия подсборок"@@ -18086,6 +18223,9 @@ msgstr "Материал закупается у поставщика для эmsgid "The material types you organize your stock by"msgstr "Типы материалов, по которым вы организуете свой запас"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Месяц начала финансового года; периоды нумеруются, начиная с этого месяца."@@ -18767,6 +18907,9 @@ msgstr "Эта станция выполняет работу, требующуmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Эта станция выполняет работу без требований навыков; операторы, назначенные на таблицу назначений, формируют доступный труд."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Этот тип хранения в настоящее время используется {usageCount} единиц хранения{0}."@@ -19371,6 +19514,9 @@ msgstr "При политике максимального количестваmsgid "Undo"msgstr "Отменить"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Удалить"@@ -19726,21 +19872,37 @@ msgstr "Использовать другую учетную запись"msgid "Use a different email"msgstr "Использовать другой адрес электронной почты"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Использовать текущий просмотр"msgid "Use metric system for default material dimensions."msgstr "Используйте метрическую систему для измерений материала по умолчанию."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Используется в"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Используется в навигации и в документах, таких как Заказы покупателя"msgid "Used in the navigation in dark mode"msgstr "Используется в навигации в темном режиме"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Используется на главном экране и в цифровых предложениях"@@ -19792,6 +19954,20 @@ msgstr "Пользователи на охватываемых доменах мmsgid "Users to Update"msgstr "Пользователи для обновления"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Действительно с"@@ -20511,6 +20687,9 @@ msgstr "Где и как вы производите товары."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Куда по умолчанию отправляются товары на этом РП; места доставки на уровне строки РП переопределяют это для сценариев прямой поставки и разделенной доставки."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Где это находится сегодня"diff --git a/packages/locale/locales/ru/mes.po b/packages/locale/locales/ru/mes.poindex bd15e24369..ac49005f87 100644--- a/packages/locale/locales/ru/mes.po+++ b/packages/locale/locales/ru/mes.po@@ -161,6 +161,9 @@ msgstr "Все доработки"msgid "All scrap"msgstr "Весь брак"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Распределить неудачные единицы"@@ -1111,6 +1114,11 @@ msgstr "Открыть NCR для решения MRB"msgid "Open Jobs"msgstr "Открытые производственные заказы"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Операции"@@ -1598,6 +1606,21 @@ msgstr "Шаги не заполнены"msgid "Storage Unit"msgstr "Единица хранения"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Отправить анонимно"@@ -1784,6 +1807,11 @@ msgstr "Использовать другой аккаунт"msgid "Used automatically at completion"msgstr "Используется автоматически при завершении"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Значение"diff --git a/packages/locale/locales/tr/erp.po b/packages/locale/locales/tr/erp.poindex 0e6e1f637b..277fd9568d 100644--- a/packages/locale/locales/tr/erp.po+++ b/packages/locale/locales/tr/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\" bitti — tüm {0} Kurulum Haritası öğesi yapılandırmsgid "(excluded for this customer)"msgstr "(bu müşteri için hariç tutulmuş)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# gün esneklik payı} other {# gün esneklik payı}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# satır bu şirketin dışındaki verilere bağlantımsgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle yedeklenemez. Bunu atlayarak diğer her şeyi yedekleyebilirsiniz.} other {# satır bu şirketin dışındaki verilere bağlantı kuruyor, bu nedenle yedeklenemez. Bunları atlayarak diğer her şeyi yedekleyebilirsiniz.}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {Bu ürün 1 açık değişiklik bildirisinde yer alıyor} other {Bu ürün # açık değişiklik bildirisinde yer alıyor}}"@@ -343,6 +351,9 @@ msgstr "{load} kuyruğunda"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB sınırı"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount} ay tutarları uyuşmazlığı"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} parça atlandı — yapılacak bir şey yok"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} revizyon {0} olarak düzenlenmek üzere yeniden açılacaktır. Tedarikçiye gönderilen belge, siparişi sonlandırıp yeniden gönderene kadar değişmez."+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {# satırı kalıcı olarak sil?} other {# satırı kalıcı olarak sil?}}"@@ -1358,6 +1372,10 @@ msgstr "Ekle"msgid "Add {0} operations"msgstr "{0} operasyonu ekle"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "Ekle ve Çıkış Yap"@@ -1783,6 +1801,9 @@ msgstr "Tüm Vardiyalar"msgid "All slotted dimension values are mapped"msgstr "Tüm boyut değerleri eşlendi"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "Tüm Tedarikçiler"@@ -3248,9 +3269,6 @@ msgstr "Sayfa Yolu"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "Parçalarınızı, BOM'ları, Operasyon listesini ve maliyetlendirmeyi getirin — Carbon'ın içe aktarma araçları, CSV veya LLM yardımıyla."-msgid "Brings in steps"-msgstr "Adımları getirir"-msgid "Browse library"msgstr "Kütüphaneyi göz at"@@ -3293,12 +3311,12 @@ msgstr "Özelleştirilmiş, rol tabanlı eğitim materyalleri oluşturun"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "Bu adımın bileşenlerini modelin yanında bir grup olarak inşa eder, ardından grubu daha sonraki bir birleştirme adımında taşır."+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "Kendi yöntemi olarak oluşturulmuş ve maliyetlendirilmiş"-msgid "Built off to the side, then carried in at its join step"-msgstr "Yanında inşa edildi, ardından birleştirme adımında taşındı"-msgid "Bulk Import"msgstr "Toplu İçe Aktarma"@@ -3702,6 +3720,9 @@ msgstr "Değiştiren"msgid "Changes"msgstr "Değişiklikler"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "Bunu değiştirmek mevcut yöntemi geçersiz kılacaktır"@@ -3909,6 +3930,9 @@ msgstr "Daralt"msgid "Collapse {0}"msgstr "{0} öğesini daralt"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "Tümünü daralt"@@ -4063,6 +4087,12 @@ msgstr "Tamamlama Süresi"msgid "Component details: {0}"msgstr "Bileşen ayrıntıları: {0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "Bileşenler"@@ -5712,6 +5742,10 @@ msgstr "Kategoriyi Sil"msgid "Delete Change Notice"msgstr "Değişiklik Bildirisini Sil"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "Sarf malzemesini sil"@@ -5928,9 +5962,8 @@ msgstr "Depolama Türünü Sil"msgid "Delete Storage Unit"msgstr "Depolama Birimini Sil"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "Alt montaj {0} öğesini sil"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "Madde Sil"@@ -5957,6 +5990,9 @@ msgstr "Tedarikçi Türünü Sil"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "Miktar {0} için fiyat kademesi silinsin mi? Bu işlem geri alınamaz."+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "Çalışma Kaydını Sil"@@ -6330,6 +6366,9 @@ msgstr "Yolu Düzenleme Bitti"msgid "Done when day-to-day runs without us in the room"msgstr "Günlük işlemler bizim olmadan kendi kendine çalışırken bitti"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "Bu adımı oynatmak için çift tıklayın"@@ -6376,6 +6415,9 @@ msgstr "Satın Alma Siparişi PDF'ini buraya sürükleyip bırakın veya bir dosmsgid "Drag handle"msgstr "Sürükle tutma"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "Görüntüleyicide kırmızı yol noktalarını sürükleyin"@@ -6654,6 +6696,13 @@ msgstr "Değişiklik Bildirisi Türünü Düzenle"msgid "Edit column visibility"msgstr "Sütun görünürlüğünü düzenle"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "İlgili Kişiyi Düzenle"@@ -6885,10 +6934,6 @@ msgstr "Depolama Türünü Düzenle"msgid "Edit Storage Unit"msgstr "Depolama Birimini Düzenle"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "Alt montaj {0} öğesini düzenle"-msgid "Edit Substance"msgstr "Madde Düzenle"@@ -7434,6 +7479,9 @@ msgstr "Genişlet"msgid "Expand {0}"msgstr "Genişlet {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "Tümünü genişlet"@@ -8613,6 +8661,9 @@ msgstr "Brüt Kar"msgid "Group"msgstr "Grup"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "Grupla"@@ -8835,6 +8886,9 @@ msgstr "Bu bakım ne sıklıkla tekrarlanır — Günlük, Haftalık, Aylık, Pemsgid "How strictly each material property must match for operations to share a batch on this process."msgstr "Bu operasyon üzerinde bir partide paylaşmak için her malzeme özelliğinin ne kadar katı eşleşmesi gerekir."+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "İş emri'nin, zamanlayıcı kapasite dağıttığında nasıl sıralandığı — ASAP ilk öncelik alır, sonra Sert Son Tarih, Esnek Son Tarih ve Son Tarih Yok son sırada. Yalnızca bir sıralama sinyali; hiçbir son tarih türü yerleştirmeyi engellemiyor veya kısıtlamıyor."@@ -9181,6 +9235,10 @@ msgstr "Girişler"msgid "Insert token"msgstr "Token ekle"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "İncele"@@ -9707,13 +9765,6 @@ msgstr "Bu stok kartının ürün ağacında bulunduğu iş emirleri"msgid "Join {0}"msgstr "Join {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "Adım {0}'a katılır"--msgid "Joins step {number}: {title}"-msgstr "Adım {number}'a katılır: {title}"-msgid "Journal"msgstr "Muhasebe fişi"@@ -10333,6 +10384,9 @@ msgstr "MACRS Mülk Sınıfı"msgid "Magic link"msgstr "Sihirli Bağlantı"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "Tek bir parça ve madde ana kaydını yönetin"@@ -10393,6 +10447,9 @@ msgstr "Revizyonu {0} varsayılan yapmak mı?"msgid "Make size {0} default?"msgstr "Boyut {0}'ı varsayılan yap?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "Son kararı ver / devam etme kararını al"@@ -10961,9 +11018,15 @@ msgstr "Varlıkları taşı"msgid "Move entities…"msgstr "Varlıkları taşı..."+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "Öğeyi taşı"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "Miktarın bir kısmını yeni bir karar satırına taşıyın, böylece MRB her bölümü ayrı ayrı karar verebilir (örneğin, bazılarını fire edin, bazılarını yeniden işleyin)."@@ -10993,6 +11056,10 @@ msgstr "Taşınan hesap"msgid "Movements"msgstr "Hareketler"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "Henüz yorum yok. İlk yorumu ekleyin."msgid "No completed jobs within range"msgstr "Aralıkta tamamlanmış İş emri yok"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "Henüz bileşen yok"@@ -11916,6 +11986,12 @@ msgstr "Bu görünüme herhangi bir sıralama uygulanmadı"msgid "No step selected"msgstr "Adım seçilmedi"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "Stok yok"@@ -11985,12 +12061,6 @@ msgstr "Bu lokasyonda İş merkezi yok"msgid "No work centers exist"msgstr "İş merkezi bulunmamaktadır"-msgid "No, build in place"-msgstr "Hayır, yerinde oluştur"--msgid "No, it's the base"-msgstr "Hayır, bu temeldir"-msgid "Nom"msgstr "Nom"@@ -12460,6 +12530,9 @@ msgstr "Açık Satış Siparişleri"msgid "Open Scheduled"msgstr "Planlanmış Açık"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "Görev ayrıntılarını aç"@@ -13172,6 +13245,10 @@ msgstr "Ayrı bileşenler olarak toplanmış ve tüketilmiş"msgid "Picked quantity"msgstr "Alınan miktar"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "{substitutedFrom} yerine toplama, iş emrindeki stok kartı"@@ -14475,9 +14552,6 @@ msgstr "Bu lokasyon için çizelgeyi şimdi yeniden oluşturun. Son çizelgelememsgid "Regenerate thumbnail from the 3D model"msgstr "3D modelinden Küçük resim yeniden oluştur"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "Yeniden oluşturma «Yan tarafa oluştur» ayarlarını kaldırır."-msgid "Regenerating thumbnail…"msgstr "Küçük resim yenileniyor…"@@ -14597,6 +14671,11 @@ msgstr "Kaldır"msgid "Remove {0}"msgstr "Kaldır {0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "{0}'i partiden kaldır"@@ -16942,9 +17021,31 @@ msgstr "Bu sayfada kal"msgid "Step"msgstr "Adım"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "Adım {0} / {stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "Adım eklendi"@@ -16976,6 +17077,9 @@ msgstr "Adımlar montaj talimatından devralınır."msgid "Steps are inherited from the inspection plan."msgstr "Adımlar kontrol planından devralınır."+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "Fabrikada hala karanlık."@@ -17019,6 +17123,10 @@ msgstr "Alımı Durdur"msgid "Stop Shipping"msgstr "Gönderimi Durdur"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "Bu tarihten sonra yeni satın alma önerilerini durdurur."@@ -17091,6 +17199,35 @@ msgstr "Bu Carbon müşterisi için Stripe'da henüz müşteri yok. Muhasebeleşmsgid "Style of kanban output to show in the Kanban table"msgstr "Kanban tablosunda gösterilecek kanban çıktısı stili"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "Yalnızca alt montaj son kullanma tarihleri"@@ -18086,6 +18223,9 @@ msgstr "Malzeme, yapılmak veya stoktan çekilmek yerine, bu belirli sipariş imsgid "The material types you organize your stock by"msgstr "Stok organizasyonunuz için kullandığınız malzeme türleri"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "Mali yılınızın başladığı ay; dönemler bu aydan itibaren numaralandırılır."@@ -18767,6 +18907,9 @@ msgstr "Bu istasyon yetkinlik kapısı geçmeli işleri çalıştırır — yalnmsgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "Bu istasyon hiçbir Yetkinlik gereksinimi olmaksızın iş çalıştırır; personel panosuna atanan Operatörler mevcut İşçiliği şekillendirir."+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "Bu depolama türü şu anda {usageCount} depolama birimi{0} tarafından kullanılıyor."@@ -19371,6 +19514,9 @@ msgstr "Maksimum Miktar politikası altında, yeniden sipariş noktası tetiklenmsgid "Undo"msgstr "Geri Al"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "Kaldır"@@ -19726,21 +19872,37 @@ msgstr "Farklı bir hesap kullan"msgid "Use a different email"msgstr "Farklı bir e-posta kullan"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "Mevcut Görünümü Kullan"msgid "Use metric system for default material dimensions."msgstr "Varsayılan malzeme boyutları için metrik sistemi kullanın."+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "Kullanıldığı Yer"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "Gezinavigasyda ve satış siparişleri gibi belgelerde kullanılır"msgid "Used in the navigation in dark mode"msgstr "Koyu modda navigasyonda kullanılır"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "Ana sayfada ve dijital tekliflerde kullanılır"@@ -19792,6 +19954,20 @@ msgstr "Kapsanan etki alanlarındaki kullanıcılar yalnızca SAML SSO ile oturumsgid "Users to Update"msgstr "Güncellenecek Kullanıcılar"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "Geçerli Tarih"@@ -20511,6 +20687,9 @@ msgstr "Nerede ve nasıl şeyler yaparsınız."msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "Bu satın alma siparişindeki mallar varsayılan olarak nereye sevk edilir; doğrudan sevkiyat ve bölünmüş teslimat senaryoları için satın alma siparişindeki satır başına teslimat lokasyonları bunu geçersiz kılar."+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "Bugün nerede yaşıyor"diff --git a/packages/locale/locales/tr/mes.po b/packages/locale/locales/tr/mes.poindex 061671f714..05f3548313 100644--- a/packages/locale/locales/tr/mes.po+++ b/packages/locale/locales/tr/mes.po@@ -161,6 +161,9 @@ msgstr "Tümünü yeniden işle"msgid "All scrap"msgstr "Hepsi fire"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "Başarısız birimleri tahsis et"@@ -1111,6 +1114,11 @@ msgstr "MRB kararı için NCR aç"msgid "Open Jobs"msgstr "Açık İş emirleri"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "Operasyonlar"@@ -1598,6 +1606,21 @@ msgstr "Adımlar eksik"msgid "Storage Unit"msgstr "Depolama Birimi"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "Anonim olarak gönder"@@ -1784,6 +1807,11 @@ msgstr "Farklı bir hesap kullan"msgid "Used automatically at completion"msgstr "Tamamlama sırasında otomatik olarak kullanılır"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "Değer"diff --git a/packages/locale/locales/zh/erp.po b/packages/locale/locales/zh/erp.poindex 6d17e62be7..4b50d1482f 100644--- a/packages/locale/locales/zh/erp.po+++ b/packages/locale/locales/zh/erp.po@@ -48,6 +48,10 @@ msgstr "\"{taskName}\"已完成——其所有{0}个设置映射项都已配置msgid "(excluded for this customer)"msgstr "(已为此客户排除)"+#. placeholder {0}: memberIds.length+msgid "{0, plural, one {# component in this group} other {# components in this group}}"+msgstr ""+#. placeholder {0}: target.slackDaysmsgid "{0, plural, one {# day of slack} other {# days of slack}}"msgstr "{0, plural, one {# 天的松弛} other {# 天的松弛}}"@@ -68,6 +72,10 @@ msgstr "{0, plural, one {# 行链接到该公司外的数据,无法制作当msgid "{0, plural, one {# row links to data outside this company, so it can't be backed up. Skipping it backs up everything else.} other {# rows link to data outside this company, so they can't be backed up. Skipping them backs up everything else.}}"msgstr "{0, plural, one {# 行链接到该公司外的数据,无法备份。跳过它可以备份其他所有内容。} other {# 行链接到该公司外的数据,无法备份。跳过它们可以备份其他所有内容。}}"+#. placeholder {0}: componentNodeIds.length+msgid "{0, plural, one {The planner treats this component as one rigid body — one step in the instructions. Re-run the plan to apply.} other {The planner treats these # components as one rigid body — one step in the instructions. Re-run the plan to apply.}}"+msgstr ""+#. placeholder {0}: open.lengthmsgid "{0, plural, one {This item is on 1 open change notice} other {This item is on # open change notices}}"msgstr "{0, plural, one {此物料有1个未结的变更通知} other {此物料有#个未结的变更通知}}"@@ -343,6 +351,9 @@ msgstr "{load} 在队列中"msgid "{maxSizeMB}MB limit"msgstr "{maxSizeMB}MB 限制"+msgid "{memberCount, plural, one {# step} other {# steps}}"+msgstr ""+msgid "{mismatchCount} months with mismatched totals"msgstr "{mismatchCount}个月的总计不匹配"@@ -374,6 +385,9 @@ msgstr "{noDemandItemCount} 个零件已跳过 — 没有需要生产的"msgid "{orderLabel} will be reopened for editing as revision {0}. The document already sent to the supplier is unchanged until you finalize and resend the order."msgstr "{orderLabel} 将被重新打开以作为修订版本 {0} 进行编辑。已发送给供应商的文件在您完成并重新发送订单前保持不变。"+msgid "{partCount, plural, one {# part} other {# parts}}"+msgstr ""+msgid "{purgeRowCount, plural, one {Permanently delete # row?} other {Permanently delete # rows?}}"msgstr "{purgeRowCount, plural, one {永久删除 # 行?} other {永久删除 # 行?}}"@@ -1358,6 +1372,10 @@ msgstr "添加"msgid "Add {0} operations"msgstr "添加 {0} 项操作"+#. placeholder {0}: addableIds.length+msgid "Add {0} selected"+msgstr ""+msgid "Add & Issue"msgstr "添加并发放"@@ -1783,6 +1801,9 @@ msgstr "所有班次"msgid "All slotted dimension values are mapped"msgstr "所有分配维度的值都已映射"+msgid "All steps"+msgstr ""+msgid "All Suppliers"msgstr "所有供应商"@@ -3248,9 +3269,6 @@ msgstr "面包屑"msgid "Bring in your parts, BOMs, Bill of Process, and costing — with Carbon's import tools, CSV, or LLM help."msgstr "导入您的零件、BOM、工序清单和成本核算—使用 Carbon 的导入工具、CSV 或 LLM 帮助。"-msgid "Brings in steps"-msgstr "引入步骤"-msgid "Browse library"msgstr "浏览库"@@ -3293,12 +3311,12 @@ msgstr "构建定制的、基于角色的培训材料"msgid "Builds this step's components beside the model as a group, then carries the group in at a later join step."msgstr "在模型旁边将此步骤的组件作为一个组构建,然后在稍后的连接步骤中将该组带入。"+msgid "Built after this step"+msgstr ""+msgid "Built and costed as its own method"msgstr "作为独立方法构建和计算成本"-msgid "Built off to the side, then carried in at its join step"-msgstr "在侧面构建,然后在其连接步骤中带入"-msgid "Bulk Import"msgstr "批量导入"@@ -3702,6 +3720,9 @@ msgstr "更改者"msgid "Changes"msgstr "更改"+msgid "Changing the components redefines the group. Re-run Motion Planning to apply the change to the steps."+msgstr ""+msgid "Changing this will overwrite the existing method"msgstr "更改此项将覆盖现有方法"@@ -3909,6 +3930,9 @@ msgstr "折叠"msgid "Collapse {0}"msgstr "折叠 {0}"+msgid "Collapse {name}"+msgstr ""+msgid "Collapse all"msgstr "全部折叠"@@ -4063,6 +4087,12 @@ msgstr "完成时间"msgid "Component details: {0}"msgstr "组件详情:{0}"+msgid "Component group name"+msgstr ""++msgid "Component group updated — re-run motion planning to apply the change"+msgstr ""+msgid "Components"msgstr "组件"@@ -5712,6 +5742,10 @@ msgstr "删除分类"msgid "Delete Change Notice"msgstr "删除变更通知"+#. placeholder {0}: unit.name+msgid "Delete component group {0}"+msgstr ""+msgid "Delete Consumable"msgstr "删除耗材"@@ -5928,9 +5962,8 @@ msgstr "删除存储类型"msgid "Delete Storage Unit"msgstr "删除存储单元"-#. placeholder {0}: unit.name-msgid "Delete subassembly {0}"-msgstr "删除子装配件 {0}"+msgid "Delete Sub-Assembly"+msgstr ""msgid "Delete Substance"msgstr "删除物质"@@ -5957,6 +5990,9 @@ msgstr "删除供应商类型"msgid "Delete the price break for quantity {0}? This can't be undone."msgstr "删除数量{0}的价格阶梯?此操作无法撤销。"+msgid "Delete this sub-assembly and all of its steps? This cannot be undone."+msgstr ""+msgid "Delete Timecard"msgstr "删除时间卡"@@ -6330,6 +6366,9 @@ msgstr "完成编辑路径"msgid "Done when day-to-day runs without us in the room"msgstr "完成时日常运营无需我们在场"+msgid "Double-click to open this sub-assembly"+msgstr ""+msgid "Double-click to play this step"msgstr "双击播放此步骤"@@ -6376,6 +6415,9 @@ msgstr "将采购订单 PDF 拖放到此处,或点击选择文件"msgid "Drag handle"msgstr "拖动手柄"+msgid "Drag steps here to build them on their own."+msgstr ""+msgid "Drag the red waypoints in the viewer"msgstr "在查看器中拖动红色路点"@@ -6654,6 +6696,13 @@ msgstr "编辑变更通知类型"msgid "Edit column visibility"msgstr "编辑列可见性"+msgid "Edit Component Group"+msgstr ""++#. placeholder {0}: unit.name+msgid "Edit component group {0}"+msgstr ""+msgid "Edit Contact"msgstr "编辑联系人"@@ -6885,10 +6934,6 @@ msgstr "编辑存储类型"msgid "Edit Storage Unit"msgstr "编辑存储单元"-#. placeholder {0}: unit.name-msgid "Edit subassembly {0}"-msgstr "编辑子装配件 {0}"-msgid "Edit Substance"msgstr "编辑物质"@@ -7434,6 +7479,9 @@ msgstr "展开"msgid "Expand {0}"msgstr "展开 {0}"+msgid "Expand {name}"+msgstr ""+msgid "Expand all"msgstr "全部展开"@@ -8613,6 +8661,9 @@ msgstr "毛利润"msgid "Group"msgstr "组"+msgid "Group as One Component"+msgstr ""+msgid "Group by"msgstr "分组依据"@@ -8835,6 +8886,9 @@ msgstr "此维护的重复频率——每日、每周、每月、循环盘点;msgid "How strictly each material property must match for operations to share a batch on this process."msgstr "在此工序上,为使多个操作能够共享一个生产批次,每个原材料属性必须匹配的严格程度。"+msgid "How the finished sub-assembly joins the main build."+msgstr ""+msgid "How the job ranks when the scheduler hands out capacity — ASAP claims first, then Hard Deadline, Soft Deadline, and No Deadline last. A ranking signal only; no deadline type blocks or gates placement."msgstr "调度程序分配产能时工单的排名方式——立即执行优先,然后是硬期限、软期限,最后是无期限。仅作为排序信号;任何期限类型都不会阻止或限制安排。"@@ -9181,6 +9235,10 @@ msgstr "输入"msgid "Insert token"msgstr "插入令牌"+#. placeholder {0}: stepTitles.get(headerId) ?? ""+msgid "inside {0}"+msgstr ""+msgid "Inspect"msgstr "检查"@@ -9707,13 +9765,6 @@ msgstr "物料清单中包含此物料的工单"msgid "Join {0}"msgstr "加入 {0}"-#. placeholder {0}: selected.number-msgid "Joins step {0}"-msgstr "加入步骤 {0}"--msgid "Joins step {number}: {title}"-msgstr "加入步骤 {number}: {title}"-msgid "Journal"msgstr "凭证"@@ -10333,6 +10384,9 @@ msgstr "MACRS资产类别"msgid "Magic link"msgstr "魔法链接"+msgid "Main build (after its last step)"+msgstr ""+msgid "Maintain a single part and item master"msgstr "维护单一零件和物料主数据"@@ -10393,6 +10447,9 @@ msgstr "将修订版本 {0} 设为默认?"msgid "Make size {0} default?"msgstr "将尺寸 {0} 设为默认值?"+msgid "Make Sub-Assembly"+msgstr ""+msgid "Make the final go / no-go call"msgstr "做出最终的启动/不启动决定"@@ -10961,9 +11018,15 @@ msgstr "移动实体"msgid "Move entities…"msgstr "移动实体…"+msgid "Move Into"+msgstr ""+msgid "Move item"msgstr "移动项目"+msgid "Move Out of Sub-Assembly"+msgstr ""+msgid "Move some of the quantity into a new disposition row so MRB can decide each portion separately (e.g. scrap some, rework some)."msgstr "将部分数量移动到新的处置行,以便MRB可以分别决定每一部分(例如报废部分、返工部分)。"@@ -10993,6 +11056,10 @@ msgstr "已移动账户"msgid "Movements"msgstr "移动"+#. placeholder {0}: plainTitle(active.id)+msgid "Moving step {0} was cancelled"+msgstr ""+msgid "Mpn"msgstr "Mpn"@@ -11555,6 +11622,9 @@ msgstr "还没有评论。成为第一个添加评论的人。"msgid "No completed jobs within range"msgstr "范围内没有已完成的工单"+msgid "No components — add a selection or cancel."+msgstr ""+msgid "No components yet"msgstr "还没有组件"@@ -11916,6 +11986,12 @@ msgstr "此查看未应用任何排序"msgid "No step selected"msgstr "未选择步骤"+msgid "No steps match \"{search}\""+msgstr ""++msgid "No steps yet. Drag steps into it, or use Move Into from a step's menu."+msgstr ""+msgid "No stock"msgstr "无库存"@@ -11985,12 +12061,6 @@ msgstr "此地点没有工作中心"msgid "No work centers exist"msgstr "没有工作中心存在"-msgid "No, build in place"-msgstr "否,原地构建"--msgid "No, it's the base"-msgstr "否,这是基础"-msgid "Nom"msgstr "标称值"@@ -12460,6 +12530,9 @@ msgstr "未结销售订单"msgid "Open Scheduled"msgstr "打开 Scheduled"+msgid "Open Sub-Assembly"+msgstr ""+msgid "Open task details"msgstr "打开任务详情"@@ -13172,6 +13245,10 @@ msgstr "已拣货且作为单独组件已消耗"msgid "Picked quantity"msgstr "已拣货数量"+#. placeholder {0}: plainTitle(active.id)+msgid "Picked up step {0}"+msgstr ""+msgid "picking in place of {substitutedFrom}, the item on the job"msgstr "拣货替代{substitutedFrom}(工单上的物料)"@@ -14475,9 +14552,6 @@ msgstr "立即为该地点重新生成排程。它也会在最后一次排程变msgid "Regenerate thumbnail from the 3D model"msgstr "从 3D 模型重新生成缩略图"-msgid "Regenerating removes \"Build off to the side\" settings."-msgstr "重新生成会删除「异地构建」设置。"-msgid "Regenerating thumbnail…"msgstr "正在重新生成缩略图…"@@ -14597,6 +14671,11 @@ msgstr "移除"msgid "Remove {0}"msgstr "移除{0}"+#. placeholder {0}: group.name+#. placeholder {1}: unit.name+msgid "Remove {0} from {1}"+msgstr ""+#. placeholder {0}: selectedIds.sizemsgid "Remove {0} from batch"msgstr "从生产批次中移除 {0}"@@ -16942,9 +17021,31 @@ msgstr "留在此页面"msgid "Step"msgstr "步骤"-#. placeholder {0}: stepIndex + 1-msgid "Step {0} of {stepCount}"-msgstr "步骤 {0}/{stepCount}"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+#. placeholder {1}: titleOf(usedIn)+msgid "Step {0} · {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} is no longer over a drop position"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} is over {1}"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+msgid "Step {0} was dropped"+msgstr ""++#. placeholder {0}: plainTitle(active.id)+#. placeholder {1}: plainTitle(over.id)+msgid "Step {0} was dropped at {1}"+msgstr ""++msgid "Step {number}"+msgstr ""msgid "Step added"msgstr "已添加步骤"@@ -16976,6 +17077,9 @@ msgstr "步骤继承自装配说明。"msgid "Steps are inherited from the inspection plan."msgstr "步骤继承自检验计划。"+msgid "Steps built on their own, then fitted as one piece: in the step that uses it, or, when nothing uses it, right after its own steps."+msgstr ""+msgid "Still dark out on the floor."msgstr "车间仍在黑暗中。"@@ -17019,6 +17123,10 @@ msgstr "停止接收"msgid "Stop Shipping"msgstr "停止发货"+#. placeholder {0}: used.title+msgid "Stop using {0} in this step"+msgstr ""+msgid "Stops new purchase suggestions after this date."msgstr "在此日期之后停止新采购建议。"@@ -17091,6 +17199,35 @@ msgstr "Stripe还没有该Carbon客户对应的客户。过账将在您的连接msgid "Style of kanban output to show in the Kanban table"msgstr "看板输出在看板表中显示的样式"+msgid "Sub-assembly"+msgstr ""++msgid "Sub-Assembly"+msgstr ""++msgid "Sub-Assembly · joins main build"+msgstr ""++msgid "Sub-Assembly · used in {usedInNumber}"+msgstr ""++#. placeholder {0}: used.number+#. placeholder {1}: used.partCount+msgid "Sub-Assembly {0} · {1, plural, one {# part} other {# parts}}"+msgstr ""++#. placeholder {0}: subPlan.get(activeInfo.headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName( activeInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""++#. placeholder {0}: openInfo.number+msgid "Sub-Assembly {0} · {openTitle}"+msgstr ""++msgid "Sub-Assembly {number}"+msgstr ""+msgid "Sub-assembly expiries only"msgstr "仅子组件过期日期"@@ -18086,6 +18223,9 @@ msgstr "原材料是从供应商购买用于该特定订单,而不是制造或msgid "The material types you organize your stock by"msgstr "您用来组织库存的原材料类型"+msgid "The model is still loading."+msgstr ""+msgid "The month your financial year begins; periods are numbered from this month."msgstr "财政年度开始的月份;期间从该月份开始编号。"@@ -18767,6 +18907,9 @@ msgstr "此工作中心运行需要特定技能的工作 — 仅当具有资格msgid "This station runs work with no ability requirement; operators assigned on the manning board shape available labor."msgstr "该站运行无技能要求的工作;人员配备板上分配的操作员塑造可用人工。"+msgid "This step is part of it"+msgstr ""+#. placeholder {0}: usageCount === 1 ? "" : "s"msgid "This storage type is currently used by {usageCount} storage unit{0}."msgstr "此存储类型当前被 {usageCount} 个存储单元{0}使用。"@@ -19371,6 +19514,9 @@ msgstr "在最大数量政策下,当达到再订货点时,计划订购至此msgid "Undo"msgstr "撤销"+msgid "Ungroup"+msgstr ""+msgid "Uninstall"msgstr "卸载"@@ -19726,21 +19872,37 @@ msgstr "使用不同的账户"msgid "Use a different email"msgstr "使用不同的电子邮件"+msgid "Use a finished sub-assembly in this step"+msgstr ""+msgid "Use Current View"msgstr "使用当前视图"msgid "Use metric system for default material dimensions."msgstr "使用公制作为默认原材料尺寸。"+msgid "Use Sub-Assembly"+msgstr ""++msgid "Used in"+msgstr ""+msgid "Used In"msgstr "用于"+#. placeholder {0}: subPlan.get(usedIn)?.number ?? ""+msgid "Used in {0} — moves here"+msgstr ""+msgid "Used in the navigation and on documents like sales orders"msgstr "用于导航和销售订单等文档中"msgid "Used in the navigation in dark mode"msgstr "在深色模式下的导航中使用"+msgid "Used in this step"+msgstr ""+msgid "Used on the home screen and digital quotes"msgstr "用于主屏幕和数字报价"@@ -19792,6 +19954,20 @@ msgstr "覆盖域上的用户只能使用 SAML SSO 登录;magic link、Googlemsgid "Users to Update"msgstr "要更新的用户"+#. placeholder {0}: use.number+msgid "Uses {0}"+msgstr ""++#. placeholder {0}: subPlan.get(headerId)?.number ?? ""+#. placeholder {1}: subAssemblyName(headerId)+msgid "Uses {0} · {1}"+msgstr ""++#. placeholder {0}: use.number+#. placeholder {1}: use.title+msgid "Uses sub-assembly {0} · {1}"+msgstr ""+msgid "Valid From"msgstr "有效期开始"@@ -20511,6 +20687,9 @@ msgstr "你在哪里以及如何制造产品。"msgid "Where goods on this PO are shipped to by default; per-line delivery locations on the PO override this for drop-ship and split-delivery scenarios."msgstr "此采购订单上的货物默认发货到的位置;采购订单上的按行交货地点为直发和分割交货情景覆盖此设置。"+msgid "Where it goes"+msgstr ""+msgid "Where it lives today"msgstr "它今天在哪里"diff --git a/packages/locale/locales/zh/mes.po b/packages/locale/locales/zh/mes.poindex b48a2125ed..d08c7413e8 100644--- a/packages/locale/locales/zh/mes.po+++ b/packages/locale/locales/zh/mes.po@@ -161,6 +161,9 @@ msgstr "全部返工"msgid "All scrap"msgstr "全部报废"+msgid "All steps"+msgstr ""+msgid "Allocate failed units"msgstr "分配不合格单位"@@ -1111,6 +1114,11 @@ msgstr "为MRB处置打开NCR"msgid "Open Jobs"msgstr "未结工单"+#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+msgid "Open sub-assembly {0}: {1}"+msgstr ""+msgid "Operations"msgstr "工序"@@ -1598,6 +1606,21 @@ msgstr "缺少步骤"msgid "Storage Unit"msgstr "存储单元"+msgid "Sub-Assembly"+msgstr ""++#. placeholder {0}: subAssemblyNumber(item.headerId)+#. placeholder {0}: subAssemblyNumber(openSubAssemblyId)+#. placeholder {1}: subAssemblyTitle(item.headerId)+#. placeholder {1}: subAssemblyTitle(openSubAssemblyId)+msgid "Sub-Assembly {0} · {1}"+msgstr ""++#. placeholder {0}: subAssemblyNumber(playbackInfo.headerId)+#. placeholder {1}: subAssemblyTitle( playbackInfo.headerId )+msgid "Sub-Assembly {0} · {1} — shown on its own"+msgstr ""+msgid "Submit anonymously"msgstr "匿名提交"@@ -1784,6 +1807,11 @@ msgstr "使用不同的帐户"msgid "Used automatically at completion"msgstr "在完成时自动使用"+#. placeholder {0}: subAssemblyNumber(headerId)+#. placeholder {1}: subAssemblyTitle(headerId)+msgid "Uses {0} · {1}"+msgstr ""+msgid "Value"msgstr "值"diff --git a/packages/viewer/AGENTS.md b/packages/viewer/AGENTS.mdindex e7dcde6569..e7500fdfa0 100644--- a/packages/viewer/AGENTS.md+++ b/packages/viewer/AGENTS.md@@ -6,8 +6,8 @@- **graph.json** (`AssemblyGraph`) — assembly tree written by the geometry service `/convert`; leaf nodes carry a stable `nodeId` (also baked into GLB node extras as `userData.nodeId`). All joins between steps, plans, and scene objects are by `nodeId`.- **plan.json** (`AssemblyPlan`) — per-component insertion `Motion`, sequence, subassembly `groups`, and body-level `contacts`, written by the geometry service `/plan`. `CURRENT_PLAN_VERSION` (currently `3`) — stored plans below it are STALE and must be treated as absent so the pipeline re-plans.-- **Step** (`AssemblyStep`) — one build instruction: `componentNodeIds`, a `Motion`, optional `camera`, `fastener`, per-step `hiddenComponentNodeIds`, and `joinStepId`. Built from a plan by `buildAssemblyStepGroups`.-- **Sub-assembly staging** (`staging.ts`) — a step with `joinStepId` (DB `parentStepId`) is built OFF TO THE SIDE: its parts sit at a computed staging spot (beside the model along +X or +Z — never above/below, Y is up — whichever is most side-on to the saved cameras of the steps involved, +X by default; one lane per group) until the later JOIN step, which glides the whole group in (`STAGING_GLIDE_SECONDS`, `buildStepClip`'s `glide`) and then plays its own insertion. The player's clip effect is the ONLY place that moves parked nodes (`parkNodes`), so park/unpark stay paired with the clip's save/restore. Picking and path editing always show parts seated. Invalid links (backwards, from the base step, nested chains, unknown ids) play as built in place.+- **Step** (`AssemblyStep`) — one build instruction: `componentNodeIds`, a `Motion`, optional `camera`, `fastener`, per-step `hiddenComponentNodeIds`, and the sub-assembly fields `isSubAssembly` / `parentStepId` / `usedInStepId`. Built from a plan by `buildAssemblyStepGroups`.+- **Sub-assemblies** (`subassembly.ts`) — a header step (`isSubAssembly`) groups the steps whose `parentStepId` points at it; those steps sit directly before it in play order and are BUILT ON THEIR OWN: while one is active the player isolates its sub-assembly's parts (focus-style, ancestors kept, not cleared by playback, framed on their own bounds). A header's `usedInStepId` names the later step that carries the finished unit in (glide from beside the build, `CARRY_IN_GLIDE_SECONDS` / `buildStepClip`'s `glide.nodeIds`, then the step's insertion); without one the header itself is where the unit joins the main build, and a USED header plays nothing (0-length segment, skipped by prev/next). No nesting — a step USES a finished sub-assembly instead, so chains of any length work. `arrivalIndexByNode(steps, world)` is THE answer to "when does this part appear in the build on screen" and drives visibility; `validateSubAssemblies` is THE structural rule the ERP service and editor share. `scopeStepIds` limits the timeline to an opened sub-assembly.- **Motion** — discriminated union `linear | L | helix | path | none`. Insertion motion; the player derives removal (reverse) and start poses. `flagged`/`blockedBy` steps use `none` and fade in (no collision-free path exists — a synthesized path would clip through geometry).- **Artifact tiers** — a model renders from best-available: LOD GLB → optimised GLB → lossless GLB → raw WASM (in-browser occt-import-js) fallback.@@ -35,7 +35,7 @@## Validation Commands```bash-pnpm --filter @carbon/viewer test # vitest — camera, fallback, graph, motion, plan, staging, visibility+pnpm --filter @carbon/viewer test # vitest — camera, fallback, graph, motion, plan, subassembly, visibilitypnpm --filter @carbon/viewer typecheck # tsgo --noEmit```@@ -50,7 +50,7 @@ pnpm --filter @carbon/viewer typecheck # tsgo --noEmit| `./optimize-progress` | `OptimizeProgress` — optimise-status chip || `./use-optimized-model` | `useOptimizedModel` — TanStack Query polling of the model optimise lifecycle (shared by ERP `CadModel` + MES model tab) |-Key non-exported building blocks: `useAssembly` (loads meshopt GLB + graph.json, indexes nodes by nodeId), `motion.ts` (`buildStepClip`, `motionToKeyframes`, `naturalizeMotion`), `fallback.ts` (`synthesizeFallbackMotion` — AABB escape for legacy `none` motions), `staging.ts` (`buildStaging` / `parkedOffsetsAt` / `stagedGroupNodeIds` / `joinTargets` — sub-assemblies built aside; `joinTargets` is THE link rule the ERP service, the ERP select and playback share, and it and `stagedGroupNodeIds` are also on `./steps`), `camera.ts` (`fitFraming` — live frustum fit around the planner's baked view direction), `raw/` (WASM fallback tier: `loadRawModel` via occt-import-js).+Key non-exported building blocks: `useAssembly` (loads meshopt GLB + graph.json, indexes nodes by nodeId), `motion.ts` (`buildStepClip`, `motionToKeyframes`, `naturalizeMotion`), `fallback.ts` (`synthesizeFallbackMotion` — AABB escape for legacy `none` motions), `subassembly.ts` (`buildSubAssemblyPlan` / `arrivalIndexByNode` / `validateSubAssemblies` / `usableSubAssemblies` / `displayOrder` — also on `./steps`), `camera.ts` (`fitFraming` — live frustum fit around the planner's baked view direction), `raw/` (WASM fallback tier: `loadRawModel` via occt-import-js).## Cross-Referencesdiff --git a/packages/viewer/src/AssemblyPlayer.tsx b/packages/viewer/src/AssemblyPlayer.tsxindex 0f21d6cfb2..52c294789f 100644--- a/packages/viewer/src/AssemblyPlayer.tsx+++ b/packages/viewer/src/AssemblyPlayer.tsx@@ -36,16 +36,17 @@ import { indexAssemblyGraph } from "./graph";import { MotionPathEditor } from "./MotionPathEditor";import {buildStepClip,+ CARRY_IN_GLIDE_SECONDS,displayMotionForStep,naturalizeMotion,stepTimelineSeconds} from "./motion";import {- buildStaging,- parkedOffsetsAt,- STAGING_GLIDE_SECONDS,- type Staging-} from "./staging";+ arrivalIndexByNode,+ buildSubAssemblyPlan,+ subAssemblyPartIds,+ worldOf+} from "./subassembly";import type {AssemblyGraph,AssemblyStep,@@ -160,6 +161,19 @@ export type AssemblyPlayerProps = {* caption is redundant there.*/hideCaption?: boolean;+ /**+ * Plays only these steps (an opened sub-assembly): the timeline, counter and+ * prev/next cover just them. Every step is still passed in `steps`, so parts+ * built earlier render correctly.+ */+ scopeStepIds?: string[] | null;+ /**+ * Shown in a pill at the top of the canvas while the active step belongs to+ * a sub-assembly (it is built on its own). The host translates it.+ */+ isolationLabel?: string | null;+ /** Shown next to the isolation label while the active step carries a finished sub-assembly in. */+ carryInLabel?: string | null;mode?: "dark" | "light";className?: string;};@@ -210,6 +224,9 @@ export const AssemblyPlayer = forwardRef<units,suppressFallbackMotions = false,hideCaption = false,+ scopeStepIds,+ isolationLabel,+ carryInLabel,mode = "dark",className},@@ -321,11 +338,64 @@ export const AssemblyPlayer = forwardRef<return () => window.removeEventListener("keydown", onKeyDown);}, [readOnly, onSelectComponents, graphIndex, nodesById]);- // Sub-assemblies built off to the side (`joinStepId`): which steps stage,- // where each group sits, and which step carries it in.- const staging = useMemo(- () => buildStaging(steps, graphIndex),- [steps, graphIndex]+ // --- Sub-assemblies ----------------------------------------------------+ // A sub-assembly's steps are built on their own ("its world"); the finished+ // unit is carried into the step that uses it, or into the main build at its+ // header. Each part therefore arrives at a different step depending on which+ // build is on screen — `arrivals` answers that per world.+ const subPlan = useMemo(() => buildSubAssemblyPlan(steps), [steps]);+ const stepWorlds = useMemo(+ () => steps.map((step) => worldOf(steps, step.id)),+ [steps]+ );+ const arrivals = useMemo(() => {+ const byWorld = new Map<string | null, Map<string, number>>();+ for (const world of new Set(stepWorlds)) {+ byWorld.set(world, arrivalIndexByNode(steps, world));+ }+ return byWorld;+ }, [steps, stepWorlds]);+ /** Per step: the parts of the finished sub-assemblies it carries in. */+ const carriedPartIds = useMemo(+ () =>+ steps.map((step) => {+ const headers = subPlan.get(step.id)?.carriesIn ?? [];+ return [+ ...new Set(headers.flatMap((id) => subAssemblyPartIds(steps, id)))+ ];+ }),+ [steps, subPlan]+ );+ const scopeSet = useMemo(+ () => (scopeStepIds ? new Set(scopeStepIds) : null),+ [scopeStepIds]+ );+ /** A used sub-assembly's header plays nothing; an opened one limits the rest. */+ const playable = useMemo(+ () =>+ steps.map(+ (step) =>+ subPlan.get(step.id)?.plays !== false &&+ (!scopeSet || scopeSet.has(step.id))+ ),+ [steps, subPlan, scopeSet]+ );+ const playableIndices = useMemo(+ () => playable.flatMap((isPlayable, index) => (isPlayable ? [index] : [])),+ [playable]+ );+ const nextPlayable = useCallback(+ (from: number, direction: 1 | -1) => {+ for (+ let index = from + direction;+ index >= 0 && index < playable.length;+ index += direction+ ) {+ if (playable[index]) return index;+ }+ return -1;+ },+ [playable]);// Display-only motion adjustments — the stored data is untouched:@@ -343,56 +413,29 @@ export const AssemblyPlayer = forwardRef<root.max[1] - root.min[1],root.max[2] - root.min[2]);- // Fallback synthesis sees only the components already installed by earlier- // steps — the parts actually on the canvas when this step plays. A group- // built aside has its own world (only its earlier parts, at the staging- // spot) until its join step carries it onto the main one.- const present = new Set<string>();- const stagedPresent = new Map<number, Set<string>>();return steps.map((original, index) => {- // A join step moves its own parts AND the group built aside for it, so- // every per-step consumer (clip, fallback, framing, hidden list) sees- // the whole moving set.- const join = staging.joins.get(index);- const joinIndex = staging.stagedToJoin.get(index);- const stagedOffset =- joinIndex === undefined- ? null- : (staging.joins.get(joinIndex)?.offset ?? null);+ // A step that carries a finished sub-assembly in moves its own parts AND+ // the unit, so every per-step consumer (clip, fallback, framing, hidden+ // list) sees the whole moving set.+ const carried = carriedPartIds[index] ?? [];let step = original;- if (join) {- step = {- ...step,- componentNodeIds: [- ...new Set([...step.componentNodeIds, ...join.nodeIds])- ]- };- }- // Path keyframes are absolute; a staged step plays at its staging spot.- if (stagedOffset && step.motion.type === "path") {+ if (carried.length > 0) {step = {...step,- motion: {- ...step.motion,- keyframes: step.motion.keyframes.map((keyframe) => ({- ...keyframe,- position: keyframe.position.map(- (value, axis) => value + (stagedOffset[axis] ?? 0)- ) as Vec3- }))- }+ componentNodeIds: [...new Set([...step.componentNodeIds, ...carried])]};}- const world =- joinIndex === undefined- ? present- : (stagedPresent.get(joinIndex) ?? new Set<string>());+ // Fallback synthesis sees only the parts already in this step's build —+ // what is actually on the canvas when it plays.+ const arrival = arrivals.get(stepWorlds[index] ?? null);+ const world = new Set<string>();+ for (const [nodeId, arrivedAt] of arrival ?? []) {+ if (arrivedAt < index) world.add(nodeId);+ }const baseMotion = suppressFallbackMotions? step.motion: displayMotionForStep(step, index, graphIndex, world);- for (const nodeId of step.componentNodeIds) world.add(nodeId);- if (joinIndex !== undefined) stagedPresent.set(joinIndex, world);let minBox: [number, number, number] | null = null;let maxBox: [number, number, number] | null = null;@@ -432,22 +475,31 @@ export const AssemblyPlayer = forwardRef<);return motion === step.motion ? step : { ...step, motion };});- }, [steps, graphIndex, suppressFallbackMotions, staging]);+ }, [+ steps,+ graphIndex,+ suppressFallbackMotions,+ carriedPartIds,+ arrivals,+ stepWorlds+ ]);// --- Continuous timeline ---------------------------------------------- // A join step also spends the glide carrying its group in from the side- // (unless the author set an explicit duration).+ // A carry-in step also spends the glide bringing the unit in (unless the+ // author set an explicit duration). Steps that don't play (a used+ // sub-assembly's header, or outside an opened sub-assembly) take no time.const segments = useMemo(() =>- displaySteps.map(- (step, index) =>- stepTimelineSeconds(step) +- (staging.joins.has(index) &&- !(step.durationSeconds && step.durationSeconds > 0)- ? STAGING_GLIDE_SECONDS- : 0)+ displaySteps.map((step, index) =>+ playable[index]+ ? stepTimelineSeconds(step) ++ ((carriedPartIds[index]?.length ?? 0) > 0 &&+ !(step.durationSeconds && step.durationSeconds > 0)+ ? CARRY_IN_GLIDE_SECONDS+ : 0)+ : 0),- [displaySteps, staging]+ [displaySteps, playable, carriedPartIds]);const startTimes = useMemo(() => {let elapsed = 0;@@ -511,13 +563,14 @@ export const AssemblyPlayer = forwardRef<// Auto-advance to the next step only during a continuous play-through. A// single-step play (from selecting a step) stops here, paused at the seated// pose.- if (continuous && clampedIndex < stepCount - 1) {- goToStep(clampedIndex + 1, { play: true });+ const next = nextPlayable(clampedIndex, 1);+ if (continuous && next >= 0) {+ goToStep(next, { play: true });} else {setIsPlaying(false);setContinuous(false);}- }, [continuous, clampedIndex, stepCount, goToStep]);+ }, [continuous, clampedIndex, nextPlayable, goToStep]);const onScrub = useCallback((seconds: number) => {@@ -529,6 +582,12 @@ export const AssemblyPlayer = forwardRef<) {index++;}+ // Steps that don't play take no time, so a boundary can land on one:+ // settle on the playable step that owns this moment.+ if (!playable[index]) {+ const back = nextPlayable(index, -1);+ index = back >= 0 ? back : Math.max(nextPlayable(index, 1), 0);+ }seekRef.current = clamped - (startTimes[index] ?? 0);playheadRef.current = clamped;setDisplayTime(clamped);@@ -538,9 +597,50 @@ export const AssemblyPlayer = forwardRef<setSeekVersion((version) => version + 1);}},- [totalSeconds, stepCount, startTimes, clampedIndex, onStepChange]+ [+ totalSeconds,+ stepCount,+ startTimes,+ clampedIndex,+ onStepChange,+ playable,+ nextPlayable+ ]);+ const activeInfo = activeStep ? subPlan.get(activeStep.id) : undefined;+ const isolatePartIds = activeInfo?.isolatePartIds ?? null;+ const activeCarried = carriedPartIds[clampedIndex] ?? NO_NODE_IDS;+ const activeArrivals = arrivals.get(stepWorlds[clampedIndex] ?? null) ?? null;+ // An isolated sub-assembly frames on its own parts, not the whole model.+ const frameBounds = useMemo(() => {+ const root = graphIndex?.graph.root.bbox ?? null;+ if (!graphIndex || !isolatePartIds || isolatePartIds.length === 0) {+ return root;+ }+ return unionBounds(isolatePartIds, graphIndex.nodesById) ?? root;+ }, [graphIndex, isolatePartIds]);+ // The carried unit glides in from beside the build that receives it.+ const carryIn = useMemo(() => {+ if (!graphIndex || activeCarried.length === 0 || !frameBounds) return null;+ const unit = unionBounds(activeCarried, graphIndex.nodesById);+ if (!unit) return null;+ const diagonal = Math.hypot(+ frameBounds.max[0] - frameBounds.min[0],+ frameBounds.max[1] - frameBounds.min[1],+ frameBounds.max[2] - frameBounds.min[2]+ );+ const offset: Vec3 = [+ frameBounds.max[0] + diagonal * CARRY_IN_GAP_FRACTION - unit.min[0],+ 0,+ 0+ ];+ return { nodeIds: activeCarried, offset };+ }, [graphIndex, activeCarried, frameBounds]);+ const playablePosition = playableIndices.indexOf(clampedIndex);+ const prevIndex = nextPlayable(clampedIndex, -1);+ const nextIndex = nextPlayable(clampedIndex, 1);+// Double-click a step → preview it: restart the active step from its start and// play just that one (not a continuous run-through). Skips the initial nonce// value and the motion-path editor.@@ -577,7 +677,7 @@ export const AssemblyPlayer = forwardRef<onMotionChange={onMotionChange}assemblyDiagonal={assemblyDiagonal}capturePoseRef={capturePoseRef}- assemblyBounds={graphIndex?.graph.root.bbox ?? null}+ assemblyBounds={frameBounds}leafBounds={graphIndex?.leaves ?? null}seatedBoundsById={graphIndex?.nodesById ?? null}segments={segments}@@ -590,10 +690,24 @@ export const AssemblyPlayer = forwardRef<cameraMode={cameraMode}onFreeCamera={handleFreeCamera}componentPickerActive={componentPickerActive}- staging={staging}+ installIndexByNode={activeArrivals}+ isolateNodeIds={isolatePartIds}+ carryIn={carryIn}/>)}</AssemblyViewer>+ {isolationLabel && isolatePartIds && (+ <div className="pointer-events-none absolute left-1/2 top-3 z-10 flex -translate-x-1/2 items-center gap-2 whitespace-nowrap rounded-full border border-border bg-card px-3 py-1.5 text-xs font-medium text-foreground shadow-lg">+ <BoxesIcon />+ <span>{isolationLabel}</span>+ {carryInLabel && activeCarried.length > 0 && (+ <>+ <span aria-hidden className="h-3.5 w-px bg-border" />+ <span className="text-muted-foreground">{carryInLabel}</span>+ </>+ )}+ </div>+ )}{cameraMode === "free" && (<buttontype="button"@@ -660,19 +774,19 @@ export const AssemblyPlayer = forwardRef<<p className="text-sm text-destructive">{error.message}</p></div>)}- {stepCount > 1 && (+ {playableIndices.length > 1 && (<><OverlayNavButtonside="left"aria-label="Previous step"- disabled={clampedIndex <= 0}- onClick={() => goToStep(clampedIndex - 1)}+ disabled={prevIndex < 0}+ onClick={() => goToStep(prevIndex)}/><OverlayNavButtonside="right"aria-label="Next step"- disabled={clampedIndex >= stepCount - 1}- onClick={() => goToStep(clampedIndex + 1)}+ disabled={nextIndex < 0}+ onClick={() => goToStep(nextIndex)}/></>)}@@ -682,8 +796,8 @@ export const AssemblyPlayer = forwardRef<<div className="flex flex-wrap items-center gap-2 border-t border-border bg-background px-3 py-2"><ControlButtonaria-label="Previous step"- disabled={clampedIndex <= 0}- onClick={() => goToStep(clampedIndex - 1)}+ disabled={prevIndex < 0}+ onClick={() => goToStep(prevIndex)}><ChevronLeftIcon /></ControlButton>@@ -701,17 +815,26 @@ export const AssemblyPlayer = forwardRef<onSelectComponents?.([]);// Play = run on through the rest of the steps.const nextStart =- startTimes[clampedIndex + 1] ?? Number.POSITIVE_INFINITY;+ nextIndex >= 0+ ? (startTimes[nextIndex] ?? Number.POSITIVE_INFINITY)+ : Number.POSITIVE_INFINITY;const currentStepFinished =- clampedIndex < stepCount - 1 &&- playheadRef.current >= nextStart - 0.05;- if (stepCount > 0 && playheadRef.current >= totalSeconds - 0.05) {+ nextIndex >= 0 && playheadRef.current >= nextStart - 0.05;+ if (!playable[clampedIndex]) {+ // Sitting on a step that doesn't play (a used sub-assembly's+ // header) → start from the next one that does.+ const start = nextIndex >= 0 ? nextIndex : playableIndices[0];+ if (start !== undefined) goToStep(start, { play: true });+ } else if (+ stepCount > 0 &&+ playheadRef.current >= totalSeconds - 0.05+ ) {// Parked at the very end → restart the whole sequence.onScrub(0);} else if (currentStepFinished) {// Current step already finished (e.g. after a single-step play) →// continue with the next one rather than replaying this one.- goToStep(clampedIndex + 1, { play: true });+ goToStep(nextIndex, { play: true });} else {// Mid-step or a fresh step → (re)play it from the current position.setSeekVersion((version) => version + 1);@@ -724,18 +847,18 @@ export const AssemblyPlayer = forwardRef<</ControlButton><ControlButtonaria-label="Next step"- disabled={clampedIndex >= stepCount - 1}- onClick={() => goToStep(clampedIndex + 1)}+ disabled={nextIndex < 0}+ onClick={() => goToStep(nextIndex)}><ChevronRightIcon /></ControlButton><TimelineScrubber- segments={segments}- startTimes={startTimes}+ segments={playableIndices.map((index) => segments[index] ?? 0)}+ startTimes={playableIndices.map((index) => startTimes[index] ?? 0)}totalSeconds={totalSeconds}displayTime={displayTime}- activeStepIndex={clampedIndex}- stepCount={stepCount}+ activeStepIndex={playablePosition}+ stepCount={playableIndices.length}onScrub={onScrub}/><span className="whitespace-nowrap text-xs tabular-nums text-muted-foreground">@@ -746,7 +869,9 @@ export const AssemblyPlayer = forwardRef<: "–"}</span><span className="whitespace-nowrap text-xs tabular-nums text-muted-foreground">- {stepCount > 0 ? `${clampedIndex + 1} / ${stepCount}` : ""}+ {playableIndices.length > 0+ ? `${playablePosition >= 0 ? playablePosition + 1 : "–"} / ${playableIndices.length}`+ : ""}</span>{/* Deliberately NOT gated on `readOnly`: an author and an operator askthe same question of the model, so the control reads the same in@@ -931,7 +1056,9 @@ function AssemblyScene({cameraMode,onFreeCamera,componentPickerActive,- staging+ installIndexByNode,+ isolateNodeIds,+ carryIn}: {scene: Object3D;nodesById: Map<string, Object3D>;@@ -989,8 +1116,16 @@ function AssemblyScene({/** Picking components to add to a step — ghost every not-yet-installed part so* un-animated parts are visible and clickable */componentPickerActive: boolean;- /** Sub-assemblies built aside: parked at a staging spot until their join step */- staging: Staging;+ /**+ * When each part arrives in the build on screen (see `arrivalIndexByNode`).+ * Parts absent from it are not part of this build. `null` = derive from the+ * steps as a flat sequence.+ */+ installIndexByNode: ReadonlyMap<string, number> | null;+ /** The active step's sub-assembly parts: only these render (built on its own). */+ isolateNodeIds: string[] | null;+ /** A finished sub-assembly carried in at the active step, gliding from `offset`. */+ carryIn: { nodeIds: string[]; offset: Vec3 } | null;}) {const camera = useThree((state) => state.camera);const controls = useThree(@@ -1117,17 +1252,29 @@ function AssemblyScene({const claim = (nodeId: string, index: number) => {if (!map.has(nodeId)) map.set(nodeId, index);};+ const claimTree = (nodeId: string, index: number) => {+ claim(nodeId, index);+ nodesById.get(nodeId)?.traverse((descendant) => {+ const childId = descendant.userData?.nodeId;+ if (typeof childId === "string") claim(childId, index);+ });+ };+ if (installIndexByNode) {+ // Earliest arrival first, so a descendant claims its own arrival step.+ const ordered = [...installIndexByNode].sort(([, a], [, b]) => a - b);+ for (const [nodeId, index] of ordered) claimTree(nodeId, index);+ return map;+ }steps.forEach((step, index) => {- for (const nodeId of step.componentNodeIds) {- claim(nodeId, index);- nodesById.get(nodeId)?.traverse((descendant) => {- const childId = descendant.userData?.nodeId;- if (typeof childId === "string") claim(childId, index);- });- }+ for (const nodeId of step.componentNodeIds) claimTree(nodeId, index);});return map;- }, [steps, nodesById]);+ }, [steps, nodesById, installIndexByNode]);++ const isolateSet = useMemo(+ () => new Set(isolateNodeIds ?? []),+ [isolateNodeIds]+ );// --- Component visual states (visibility + material overrides) ---------------@@ -1265,6 +1412,23 @@ function AssemblyScene({}}+ // A sub-assembly is built on its own: only its parts render while one of+ // its steps is active, in every view. Same ancestor-safe rule as focus, but+ // playback doesn't clear it. Picking components shows everything, so the+ // author can still reach parts no step has claimed yet.+ if (isolateSet.size > 0 && !componentPickerActive) {+ const keep = new Set<Object3D>();+ for (const nodeId of isolateSet) {+ const node = nodesById.get(nodeId);+ if (!node) continue;+ for (let a: Object3D | null = node; a; a = a.parent) keep.add(a);+ node.traverse((descendant) => keep.add(descendant));+ }+ for (const node of nodesById.values()) {+ if (!keep.has(node)) node.visible = false;+ }+ }+// Explicitly hidden components (fixtures/reference geometry) always hide,// even when highlightedfor (const nodeId of hiddenSet) {@@ -1317,6 +1481,7 @@ function AssemblyScene({highlightedSet,hiddenSet,focusedSet,+ isolateSet,drill]);@@ -1346,16 +1511,12 @@ function AssemblyScene({startTimesLiveRef.current = startTimes;const segmentsLiveRef = useRef(segments);segmentsLiveRef.current = segments;- const stagingLiveRef = useRef(staging);- stagingLiveRef.current = staging;- // Where groups built aside sit for this step, and the glide of a join step —- // part of the signature so a staging change re-parks and rebuilds the clip.- const stagingKey = JSON.stringify([- [...parkedOffsetsAt(staging, steps, activeStepIndex)].sort(([a], [b]) =>- a < b ? -1 : a > b ? 1 : 0- ),- staging.joins.get(activeStepIndex)?.offset ?? null- ]);+ const carryInLiveRef = useRef(carryIn);+ carryInLiveRef.current = carryIn;+ // The carry-in glide is part of the signature so a change rebuilds the clip.+ const carryInKey = carryIn+ ? JSON.stringify([carryIn.offset, carryIn.nodeIds.length])+ : "";const clipKey = activeStep? [activeStepIndex,@@ -1364,7 +1525,7 @@ function AssemblyScene({activeStep.componentNodeIds.join(","),isEditingActive,componentPickerActive,- stagingKey+ carryInKey].join("|"): `none|${activeStepIndex}`;@@ -1383,40 +1544,24 @@ function AssemblyScene({if (!step) return;- // Groups built aside sit at their staging spot until their join step. This- // effect is the one place that moves them, so park and unpark stay paired- // with the clip's own save/restore. Picking and path editing keep- // everything seated: a click must select what the BOM tree shows.- const seatedOnly = isEditingActive || componentPickerActive;- const parked = seatedOnly- ? []- : parkNodes(- parkedOffsetsAt(- stagingLiveRef.current,- stepsLiveRef.current,- activeStepIndex- ),- nodesById- );- const unpark = () => {- for (const { node, position } of parked) {- node.position.copy(position);- node.updateMatrixWorld(true);- }- };-// Editing this step's path: keep components at their seated pose, skip the clip// so the animation doesn't fight the drag handles.- if (isEditingActive) return unpark;+ if (isEditingActive) return;- const join = seatedOnly- ? undefined- : stagingLiveRef.current.joins.get(activeStepIndex);+ // A carried-in sub-assembly glides in from beside the build first. Picking+ // keeps everything seated: a click must select what the BOM tree shows.+ const carry = componentPickerActive ? null : carryInLiveRef.current;const clip = buildStepClip(step,nodesById,- join- ? { glide: { offset: join.offset, seconds: STAGING_GLIDE_SECONDS } }+ carry+ ? {+ glide: {+ offset: carry.offset,+ seconds: CARRY_IN_GLIDE_SECONDS,+ nodeIds: carry.nodeIds+ }+ }: {});if (!clip) {@@ -1433,7 +1578,7 @@ function AssemblyScene({playheadRef.current =(startTimesLiveRef.current[activeStepIndex] ?? 0) + settled;}- return unpark;+ return;}// Save seated transforms so we can restore them when the step changes@@ -1476,7 +1621,6 @@ function AssemblyScene({node.position.copy(position);node.quaternion.copy(quaternion);}- unpark();};}, [mixer,@@ -1533,13 +1677,13 @@ function AssemblyScene({fadeRef.current = null;return;}- // A join step glides its group in from the side instead of fading.+ // A carry-in step glides its unit in from the side instead of fading.const fadesIn =step &&step.motion.type === "none" &&step.componentNodeIds.length > 0 &&(step.flagged || activeStepIndex > 0) &&- !staging.joins.has(activeStepIndex);+ !carryIn;if (!fadesIn) {fadeRef.current = null;return;@@ -1586,7 +1730,7 @@ function AssemblyScene({// Materials are reassigned by the visual-state pass on step changefor (const mesh of meshes) mesh.renderOrder = 0;};- }, [steps, activeStepIndex, nodesById, segments, editMotion, staging]);+ }, [steps, activeStepIndex, nodesById, segments, editMotion, carryIn]);useFrame(() => {const fade = fadeRef.current;@@ -1803,7 +1947,8 @@ function AssemblyScene({futureMode,installedMode,[...hiddenSet].sort().join(","),- stagingKey+ carryInKey,+ isolateNodeIds?.length ?? 0].join("|");if (framingKey === lastFramedKeyRef.current) return;lastFramedKeyRef.current = framingKey;@@ -1832,11 +1977,6 @@ function AssemblyScene({if (step.componentNodeIds.length === 0) return;- // Groups built aside: frame the parts where they are drawn (the staging- // spot), and a join step from the staging spot to its seat.- const parkedOffsets = parkedOffsetsAt(staging, steps, activeStepIndex);- const joinOffset = staging.joins.get(activeStepIndex)?.offset ?? null;-const assemblyBox = getAssemblyBox().clone();if (assemblyBox.isEmpty()) return;@@ -1844,19 +1984,11 @@ function AssemblyScene({for (const nodeId of step.componentNodeIds) {const seated = seatedBoundsById?.get(nodeId);if (seated) {- const parkedOffset = parkedOffsets.get(nodeId);- const shift = parkedOffset- ? new Vector3(...parkedOffset)- : new Vector3();componentBox.expandByPoint(- new Vector3(...(seated.bbox.min as [number, number, number])).add(- shift- )+ new Vector3(...(seated.bbox.min as [number, number, number])));componentBox.expandByPoint(- new Vector3(...(seated.bbox.max as [number, number, number])).add(- shift- )+ new Vector3(...(seated.bbox.max as [number, number, number])));continue;}@@ -1864,8 +1996,8 @@ function AssemblyScene({if (node) componentBox.expandByObject(node);}if (componentBox.isEmpty()) return;- const joinShift = joinOffset ? new Vector3(...joinOffset) : null;- // Keep the staging spot inside the standing distance, not just the target.+ // A carried-in unit starts beside the build: keep that spot in frame too.+ const joinShift = carryIn ? new Vector3(...carryIn.offset) : null;assemblyBox.union(componentBox);if (joinShift) {assemblyBox.union(componentBox.clone().translate(joinShift));@@ -2052,8 +2184,9 @@ function AssemblyScene({futureMode,installedMode,cameraMode,- staging,- stagingKey+ carryIn,+ carryInKey,+ isolateNodeIds]);// --- Selection -------------------------------------------------------------@@ -2785,39 +2918,50 @@ const VIEW_LABELS: Record<full: { label: "Full", description: "Show every component solid" }};-/**- * Moves each node to seat + offset (a world-space translation) and returns- * the seated local positions to restore. A node inside another parked node- * already moves with it, so only the top-most ones are shifted.- */-function parkNodes(- offsets: ReadonlyMap<string, Vec3>,- nodesById: Map<string, Object3D>-): { node: Object3D; position: Vector3 }[] {- const parked: { node: Object3D; position: Vector3 }[] = [];- for (const [nodeId, offset] of offsets) {+/** Gap between a build and a carried-in unit's start, as a fraction of the build's diagonal. */+const CARRY_IN_GAP_FRACTION = 0.25;++/** Stable empty list, so memos keyed on "no ids" don't churn. */+const NO_NODE_IDS: string[] = [];++/** Seated world bounds of the given nodes, from graph.json; null when none resolve. */+function unionBounds(+ nodeIds: string[],+ nodesById: ReadonlyMap<string, { bbox: { min: Vec3; max: Vec3 } }>+): { min: Vec3; max: Vec3 } | null {+ let min: Vec3 | null = null;+ let max: Vec3 | null = null;+ for (const nodeId of nodeIds) {const node = nodesById.get(nodeId);if (!node) continue;- let ancestor = node.parent;- let nested = false;- while (ancestor) {- const ancestorId = ancestor.userData?.nodeId;- if (typeof ancestorId === "string" && offsets.has(ancestorId)) {- nested = true;- break;- }- ancestor = ancestor.parent;+ if (!min || !max) {+ min = [...node.bbox.min];+ max = [...node.bbox.max];+ continue;+ }+ for (let axis = 0; axis < 3; axis++) {+ min[axis] = Math.min(min[axis] ?? 0, node.bbox.min[axis] ?? 0);+ max[axis] = Math.max(max[axis] ?? 0, node.bbox.max[axis] ?? 0);}- if (nested) continue;-- node.updateWorldMatrix(true, false);- const world = new Vector3()- .setFromMatrixPosition(node.matrixWorld)- .add(new Vector3(...offset));- parked.push({ node, position: node.position.clone() });- if (node.parent) node.parent.worldToLocal(world);- node.position.copy(world);- node.updateMatrixWorld(true);}- return parked;+ return min && max ? { min, max } : null;+}++function BoxesIcon() {+ return (+ <svg+ className="size-3.5"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden+ >+ <path d="M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z" />+ <path d="M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z" />+ <path d="M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z" />+ </svg>+ );}diff --git a/packages/viewer/src/index.ts b/packages/viewer/src/index.tsindex 6b47532ac5..43ed4c0ef8 100644--- a/packages/viewer/src/index.ts+++ b/packages/viewer/src/index.ts@@ -46,16 +46,17 @@ export {type StepPhase} from "./plan";export {- buildStaging,- EMPTY_STAGING,- type JoinTargets,- joinTargets,- parkedOffsetsAt,- STAGING_GLIDE_SECONDS,- type Staging,- type StagingJoin,- stagedGroupNodeIds-} from "./staging";+ buildSubAssemblyPlan,+ displayOrder,+ isSubAssemblyHeader,+ type SubAssemblyInfo,+ type SubAssemblyRule,+ type SubAssemblyViolation,+ subAssemblyPartIds,+ type UnusableReason,+ usableSubAssemblies,+ validateSubAssemblies+} from "./subassembly";export type {AssemblyGraph,AssemblyGraphNode,diff --git a/packages/viewer/src/motion.test.ts b/packages/viewer/src/motion.test.tsindex 31c6bbb3e1..0dfa32c953 100644--- a/packages/viewer/src/motion.test.ts+++ b/packages/viewer/src/motion.test.ts@@ -394,7 +394,7 @@ describe("buildStepClip", () => {expect(times[times.length - 2]).toBeCloseTo(2);});- it("glides a join step from its staging spot, then inserts", () => {+ it("glides a carried-in unit from beside the build, then inserts", () => {const { nodesById } = makeAssembly();const motion: Motion = {type: "linear",@@ -429,7 +429,7 @@ describe("buildStepClip", () => {}});- it("glides a none-motion join step straight to the seat", () => {+ it("glides a none-motion carry-in step straight to the seat", () => {const { nodesById } = makeAssembly();const clip = buildStepClip(makeStep({ type: "none" }, ["node-a"]),@@ -448,6 +448,30 @@ describe("buildStepClip", () => {expectVectorClose(values.slice(-3), [1, 2, 3]);});+ it("glides only the carried unit; the step's own parts wait at their start", () => {+ const { nodesById } = makeAssembly();+ const motion: Motion = {+ type: "linear",+ direction: [1, 0, 0],+ distance: 10+ };+ const clip = buildStepClip(makeStep(motion, ["node-a"]), nodesById, {+ duration: 2,+ holdSeconds: 0,+ glide: { offset: [0, 100, 0], seconds: 1.2, nodeIds: ["other"] }+ });+ if (!clip) throw new Error("expected clip");+ const [positionTrack] = clip.tracks;+ if (!positionTrack) throw new Error("expected tracks");+ const values = [...positionTrack.values];+ const times = [...positionTrack.times];+ // Not carried: sits at its insertion start (local [-9,2,3]) through the glide.+ expectVectorClose(values.slice(0, 3), [-9, 2, 3]);+ const glideEnd = times.findIndex((time) => Math.abs(time - 1.2) < 1e-5);+ expectVectorClose(values.slice(glideEnd * 3, glideEnd * 3 + 3), [-9, 2, 3]);+ expectVectorClose(values.slice(-3), [1, 2, 3]);+ });+it("converts world-space motion into the local space of a rotated parent", () => {const root = new Group();const parent = new Group();diff --git a/packages/viewer/src/motion.ts b/packages/viewer/src/motion.tsindex e2ccf2301b..ccbbe184e1 100644--- a/packages/viewer/src/motion.ts+++ b/packages/viewer/src/motion.ts@@ -47,13 +47,18 @@ export type StepClipOptions = MotionKeyframeOptions & {/** Seconds to hold the seated pose at the end of each loop. */holdSeconds?: number;/**- * Join step of a sub-assembly built aside: prepend a straight glide from- * seat + `offset` (the staging spot) to where the insertion starts. Never- * clamped like the insertion travel is — the staging spot is far by design.+ * A step that carries a finished sub-assembly in: prepend a straight glide+ * from seat + `offset` (beside the build) to where the insertion starts.+ * Never clamped like the insertion travel is — it starts far by design.+ * With `nodeIds`, only those nodes glide; the step's other parts wait at+ * their insertion start until the glide ends.*/- glide?: { offset: Vec3; seconds: number };+ glide?: { offset: Vec3; seconds: number; nodeIds?: string[] };};+/** Seconds a carried-in sub-assembly takes to glide to its insertion start. */+export const CARRY_IN_GLIDE_SECONDS = 1.2;+const INSERTION_SPEED_MM_PER_S = 60;const MIN_DURATION_S = 1;const MAX_DURATION_S = 4;@@ -530,8 +535,14 @@ export function buildStepClip(step.motion.type === "linear" || step.motion.type === "L"? resampleEased(rawKeyframes): rawKeyframes;+ const glides = glide && (!glide.nodeIds || glide.nodeIds.includes(nodeId));const keyframes = glide- ? prependGlide(insertion, glide.offset, seatedPose, glide.seconds)+ ? prependGlide(+ insertion,+ glides ? glide.offset : null,+ seatedPose,+ glide.seconds+ ): insertion;const parentWorldInverse = node.parent@@ -594,17 +605,20 @@ export function buildStepClip(/*** Prepends an eased straight glide from seat + `offset` to the insertion's* first pose, and shifts the insertion to start when the glide ends. The part- * holds the insertion's starting orientation while it glides (staging is a- * pure translation), so a helix that starts unscrewed doesn't snap.+ * holds the insertion's starting orientation while it glides (the carry is a+ * pure translation), so a helix that starts unscrewed doesn't snap. A `null`+ * offset holds the part at its insertion start for the glide's duration.*/function prependGlide(insertion: MotionKeyframes,- offset: Vec3,+ offset: Vec3 | null,seatedPose: Pose,seconds: number): MotionKeyframes {const end = new Vector3().fromArray(insertion.positions, 0);- const start = toVector3(seatedPose.position).add(toVector3(offset));+ const start = offset+ ? toVector3(seatedPose.position).add(toVector3(offset))+ : end.clone();const quaternion = new Quaternion().fromArray(insertion.quaternions, 0);const times: number[] = [];diff --git a/packages/viewer/src/staging.test.ts b/packages/viewer/src/staging.test.tsdeleted file mode 100644index e303cc7cdb..0000000000--- a/packages/viewer/src/staging.test.ts+++ /dev/null@@ -1,272 +0,0 @@-import { describe, expect, it } from "vitest";-import { indexAssemblyGraph } from "./graph";-import {- buildStaging,- EMPTY_STAGING,- joinTargets,- parkedOffsetsAt,- stagedGroupNodeIds-} from "./staging";-import type {- AssemblyGraph,- AssemblyGraphNode,- AssemblyStep,- Vec3-} from "./types";--const IDENTITY = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];--function leaf(nodeId: string, min: Vec3, max: Vec3): AssemblyGraphNode {- return {- nodeId,- name: nodeId,- isAssembly: false,- geometryHash: nodeId,- transform: IDENTITY,- bbox: { min, max },- volume: 1,- color: null,- children: []- };-}--// A trailing arm with a front hub (bearing, circlip, disc).-const graph: AssemblyGraph = {- version: 1,- unit: "mm",- sourceUnit: "mm",- componentCount: 6,- root: {- nodeId: "root",- name: "Trailing arm assembly",- isAssembly: true,- geometryHash: null,- transform: IDENTITY,- bbox: { min: [0, 0, 0], max: [100, 50, 50] },- volume: null,- color: null,- children: [- leaf("arm", [0, 0, 0], [100, 50, 50]),- leaf("hub", [40, 10, 10], [60, 40, 40]),- leaf("bearing", [45, 15, 15], [55, 35, 35]),- leaf("circlip", [48, 20, 20], [52, 30, 30]),- leaf("disc", [30, 0, 0], [70, 50, 50]),- leaf("bolt", [90, 0, 0], [95, 5, 5])- ]- }-};-const index = indexAssemblyGraph(graph);-const DIAGONAL = Math.hypot(100, 50, 50);-const GAP = DIAGONAL * 0.25;--type Step = Pick<- AssemblyStep,- "id" | "componentNodeIds" | "joinStepId" | "camera"->;--function step(- id: string,- componentNodeIds: string[],- joinStepId?: string-): Step {- return { id, componentNodeIds, joinStepId: joinStepId ?? null, camera: null };-}--// 0 arm (base) · 1 hub · 2 bearing · 3 circlip · 4 disc · 5 join (hub group into arm)-const steps: Step[] = [- step("s0", ["arm"]),- step("s1", ["hub"], "s5"),- step("s2", ["bearing"], "s5"),- step("s3", ["circlip"], "s5"),- step("s4", ["disc"], "s5"),- step("s5", [])-];--describe("buildStaging", () => {- it("groups the staged steps under their join step", () => {- const staging = buildStaging(steps, index);- expect([...staging.joins.keys()]).toEqual([5]);- const join = staging.joins.get(5);- expect(join?.nodeIds).toEqual(["hub", "bearing", "circlip", "disc"]);- // The group's left edge (disc, x=30) lands one gap right of the model.- expect(join?.offset[0]).toBeCloseTo(100 + GAP - 30);- expect(join?.offset[1]).toBe(0);- expect(join?.offset[2]).toBe(0);- expect([...staging.stagedToJoin]).toEqual([- [1, 5],- [2, 5],- [3, 5],- [4, 5]- ]);- });-- it("ignores backwards, base and unknown links", () => {- const staging = buildStaging(- [- step("s0", ["arm"], "s2"), // the base can't be staged- step("s1", ["hub"], "s0"), // backwards- step("s2", ["bearing"], "missing"), // unknown id- step("s3", ["circlip"]),- step("s4", ["disc"], "s5"),- step("s5", [])- ],- index- );- expect([...staging.stagedToJoin]).toEqual([[4, 5]]);- expect(staging.joins.get(5)?.nodeIds).toEqual(["disc"]);- });-- it("builds a nested chain in place — neither link counts", () => {- // s1 → s2 → s3: s2 is both a join target and staged. The ERP refuses this;- // a row that slips through plays as if nothing were staged.- const staging = buildStaging(- [- step("s0", ["arm"]),- step("s1", ["hub"], "s2"),- step("s2", ["bearing"], "s3"),- step("s3", [])- ],- index- );- expect(staging).toBe(EMPTY_STAGING);- });-- it("gives several groups their own non-overlapping lanes", () => {- const staging = buildStaging(- [- step("s0", ["arm"]),- step("s1", ["hub"], "s2"),- step("s2", []),- step("s3", ["bolt"], "s4"),- step("s4", [])- ],- index- );- const first = staging.joins.get(2);- const second = staging.joins.get(4);- if (!first || !second) throw new Error("expected two joins");- const firstMax = 60 + first.offset[0];- const secondMin = 90 + second.offset[0];- expect(secondMin).toBeCloseTo(firstMax + GAP);- });-- it("stages beside the model, side-on to a saved camera", () => {- // The join step's saved view looks straight down X: staging along X would- // hide the group behind the model, so it goes along Z instead.- const staging = buildStaging(- [- step("s0", ["arm"]),- step("s1", ["hub"], "s2"),- {- ...step("s2", []),- camera: { position: [500, 25, 25], target: [50, 25, 25], fov: 45 }- }- ],- index- );- const offset = staging.joins.get(2)?.offset;- expect(offset?.[0]).toBe(0);- expect(offset?.[1]).toBe(0);- // Hub's near face (z=10) lands one gap past the model's far face (z=50).- expect(offset?.[2]).toBeCloseTo(50 + GAP - 10);- });-- it("never stages above or below the model", () => {- // A camera looking straight down Y is side-on to every horizontal axis.- const staging = buildStaging(- [- step("s0", ["arm"]),- step("s1", ["hub"], "s2"),- {- ...step("s2", []),- camera: { source: "plan", direction: [0, 1, 0] }- }- ],- index- );- expect(staging.joins.get(2)?.offset[1]).toBe(0);- expect(staging.joins.get(2)?.offset[0]).toBeGreaterThan(0);- });-- it("is empty without a graph or without links", () => {- expect(buildStaging(steps, null)).toBe(EMPTY_STAGING);- expect(- buildStaging([step("s0", ["arm"]), step("s1", ["hub"])], index)- ).toBe(EMPTY_STAGING);- });-- it("skips a join whose parts no longer resolve", () => {- const staging = buildStaging(- [step("s0", ["arm"]), step("s1", ["gone"], "s2"), step("s2", [])],- index- );- expect(staging.joins.size).toBe(0);- expect(staging.stagedToJoin.size).toBe(0);- });-});--describe("parkedOffsetsAt", () => {- const staging = buildStaging(steps, index);- const offset = staging.joins.get(5)?.offset;-- it("parks nothing before the first staged step", () => {- expect(parkedOffsetsAt(staging, steps, 0).size).toBe(0);- });-- it("parks the active staged step's own parts and the earlier staged parts", () => {- expect([...parkedOffsetsAt(staging, steps, 1).keys()]).toEqual(["hub"]);- const atCirclip = parkedOffsetsAt(staging, steps, 3);- expect([...atCirclip.keys()]).toEqual(["hub", "bearing", "circlip"]);- expect(atCirclip.get("bearing")).toEqual(offset);- });-- it("parks nothing at or after the join step", () => {- expect(parkedOffsetsAt(staging, steps, 5).size).toBe(0);- });-});--describe("stagedGroupNodeIds", () => {- it("returns the carried-in parts for a join step and nothing otherwise", () => {- expect(stagedGroupNodeIds(steps, "s5")).toEqual([- "hub",- "bearing",- "circlip",- "disc"- ]);- expect(stagedGroupNodeIds(steps, "s2")).toEqual([]);- expect(stagedGroupNodeIds(steps, "missing")).toEqual([]);- });-});--describe("joinTargets", () => {- it("locks the base step", () => {- expect(joinTargets(steps, "s0")).toEqual({ targets: [], locked: "base" });- });-- it("locks a join step", () => {- expect(joinTargets(steps, "s5")).toEqual({ targets: [], locked: "join" });- });-- it("offers later steps that aren't built aside themselves", () => {- // s2–s4 are staged (they point at s5), so s1 may only join s5.- expect(joinTargets(steps, "s1")).toEqual({ targets: ["s5"], locked: null });- expect(- joinTargets(- [- step("s0", ["arm"]),- step("s1", ["hub"]),- step("s2", []),- step("s3", [])- ],- "s1"- )- ).toEqual({ targets: ["s2", "s3"], locked: null });- });-- it("offers nothing for an unknown step", () => {- expect(joinTargets(steps, "missing")).toEqual({- targets: [],- locked: null- });- });-});diff --git a/packages/viewer/src/staging.ts b/packages/viewer/src/staging.tsdeleted file mode 100644index 1a70d83f5d..0000000000--- a/packages/viewer/src/staging.ts+++ /dev/null@@ -1,219 +0,0 @@-import type { AssemblyGraphIndex } from "./graph";-import type { AssemblyStep, Vec3 } from "./types";--/**- * Sub-assembly staging: steps that point at a later JOIN step (`joinStepId`)- * build their parts off to the side of the main model; the join step carries- * the finished group in. Pure — no three.js — so it is unit-testable in node.- *- * Bad links (backwards, from the base step, nested, unknown id) are ignored- * here rather than thrown: the ERP validates on write, and a stale row must- * still play as "built in place".- */--/** Seconds the staged group takes to glide from its staging spot to the insertion start. */-export const STAGING_GLIDE_SECONDS = 1.2;-/** Gap between the main model and a staging lane, and between lanes, as a fraction of the assembly diagonal. */-const STAGING_GAP_FRACTION = 0.25;--type StagingStep = Pick<- AssemblyStep,- "id" | "componentNodeIds" | "joinStepId"-> & { camera?: AssemblyStep["camera"] };--/** Unit target→eye direction of a saved camera, or null when the step auto-frames. */-function viewDirection(camera: StagingStep["camera"]): Vec3 | null {- if (!camera) return null;- const raw: Vec3 =- "source" in camera- ? camera.direction- : [- camera.position[0] - camera.target[0],- camera.position[1] - camera.target[1],- camera.position[2] - camera.target[2]- ];- const length = Math.hypot(raw[0], raw[1], raw[2]);- return length > 1e-9- ? [raw[0] / length, raw[1] / length, raw[2] / length]- : null;-}--/**- * The side a group is staged on: +X or +Z (never above/below — the viewer is- * Y-up), whichever is most side-on to every saved view of the steps involved- * so a fixed camera never looks straight along it; +X on a tie or with no- * saved views. Auto-framed steps adapt on their own.- */-function stagingAxis(views: Vec3[]): 0 | 2 {- const along = (axis: 0 | 2) =>- Math.max(0, ...views.map((view) => Math.abs(view[axis])));- return along(2) < along(0) - 1e-6 ? 2 : 0;-}--export type StagingJoin = {- joinIndex: number;- /** Every node installed by this join's staged steps, in step order, deduped */- nodeIds: string[];- /** Pure world translation from seat to staging spot (along one side axis) */- offset: Vec3;-};--export type Staging = {- /** Keyed by join step index */- joins: Map<number, StagingJoin>;- /** Staged step index → its join step index */- stagedToJoin: Map<number, number>;-};--export const EMPTY_STAGING: Staging = {- joins: new Map(),- stagedToJoin: new Map()-};--export type JoinTargets = {- /** Ids of the steps this one may be built aside for, in order */- targets: string[];- /** Why the step can't be built aside at all: the base step, or a join step */- locked: "base" | "join" | null;-};--/**- * THE rule for sub-assembly links, shared by the ERP select, the ERP service- * and playback: one level only — the base step and join steps build in place,- * and a step joins a LATER step that isn't itself built aside.- */-export function joinTargets(- steps: Pick<AssemblyStep, "id" | "joinStepId">[],- stepId: string-): JoinTargets {- const index = steps.findIndex((step) => step.id === stepId);- if (index === 0) return { targets: [], locked: "base" };- if (steps.some((step) => step.joinStepId === stepId)) {- return { targets: [], locked: "join" };- }- if (index < 0) return { targets: [], locked: null };- return {- targets: steps- .slice(index + 1)- .filter((step) => !step.joinStepId)- .map((step) => step.id),- locked: null- };-}--/** Staged step index → join step index, for the links `joinTargets` allows. */-function validLinks(steps: StagingStep[]): Map<number, number> {- const indexById = new Map(steps.map((step, index) => [step.id, index]));- const links = new Map<number, number>();- steps.forEach((step, index) => {- const joinIndex = step.joinStepId- ? indexById.get(step.joinStepId)- : undefined;- if (joinIndex === undefined) return;- if (!joinTargets(steps, step.id).targets.includes(step.joinStepId ?? "")) {- return;- }- links.set(index, joinIndex);- });- return links;-}--/** Ids of the parts a join step carries in: every componentNodeId of the steps pointing at it. */-export function stagedGroupNodeIds(- steps: StagingStep[],- joinStepId: string-): string[] {- const joinIndex = steps.findIndex((step) => step.id === joinStepId);- if (joinIndex < 0) return [];- const nodeIds = new Set<string>();- for (const [stagedIndex, target] of validLinks(steps)) {- if (target !== joinIndex) continue;- for (const nodeId of steps[stagedIndex]?.componentNodeIds ?? []) {- nodeIds.add(nodeId);- }- }- return [...nodeIds];-}--export function buildStaging(- steps: StagingStep[],- graphIndex: AssemblyGraphIndex | null-): Staging {- if (!graphIndex) return EMPTY_STAGING;- const links = validLinks(steps);- if (links.size === 0) return EMPTY_STAGING;-- const groups = new Map<number, Set<string>>();- for (const [stagedIndex, joinIndex] of [...links].sort(([a], [b]) => a - b)) {- const group = groups.get(joinIndex) ?? new Set<string>();- for (const nodeId of steps[stagedIndex]?.componentNodeIds ?? []) {- group.add(nodeId);- }- groups.set(joinIndex, group);- }-- const root = graphIndex.graph.root.bbox;- const diagonal = Math.hypot(- root.max[0] - root.min[0],- root.max[1] - root.min[1],- root.max[2] - root.min[2]- );- const gap = diagonal * STAGING_GAP_FRACTION;- // One lane cursor per axis: the next free coordinate past the model along it.- const cursors = new Map<0 | 2, number>();-- const joins = new Map<number, StagingJoin>();- for (const joinIndex of [...groups.keys()].sort((a, b) => a - b)) {- const nodeIds = [...(groups.get(joinIndex) ?? [])];- const views: Vec3[] = [];- for (const [stagedIndex, target] of links) {- if (target !== joinIndex) continue;- const view = viewDirection(steps[stagedIndex]?.camera);- if (view) views.push(view);- }- const joinView = viewDirection(steps[joinIndex]?.camera);- if (joinView) views.push(joinView);-- const axis = stagingAxis(views);- let min = Number.POSITIVE_INFINITY;- let max = Number.NEGATIVE_INFINITY;- for (const nodeId of nodeIds) {- const node = graphIndex.nodesById.get(nodeId);- if (!node) continue;- min = Math.min(min, node.bbox.min[axis]);- max = Math.max(max, node.bbox.max[axis]);- }- // Nothing resolves (stale nodeIds after a re-upload): build in place.- if (!Number.isFinite(min) || !Number.isFinite(max)) continue;-- const cursor = cursors.get(axis) ?? root.max[axis] + gap;- const offset: Vec3 = [0, 0, 0];- offset[axis] = cursor - min;- joins.set(joinIndex, { joinIndex, nodeIds, offset });- cursors.set(axis, cursor + (max - min) + gap);- }-- const stagedToJoin = new Map<number, number>();- for (const [stagedIndex, joinIndex] of links) {- if (joins.has(joinIndex)) stagedToJoin.set(stagedIndex, joinIndex);- }- return { joins, stagedToJoin };-}--/** nodeId → offset for every node that sits at its staging spot while step `activeIndex` is shown. */-export function parkedOffsetsAt(- staging: Staging,- steps: Pick<AssemblyStep, "componentNodeIds">[],- activeIndex: number-): Map<string, Vec3> {- const parked = new Map<string, Vec3>();- for (const [stagedIndex, joinIndex] of staging.stagedToJoin) {- if (stagedIndex > activeIndex || activeIndex >= joinIndex) continue;- const join = staging.joins.get(joinIndex);- if (!join) continue;- for (const nodeId of steps[stagedIndex]?.componentNodeIds ?? []) {- parked.set(nodeId, join.offset);- }- }- return parked;-}diff --git a/packages/viewer/src/steps.ts b/packages/viewer/src/steps.tsindex 6660895f86..e13c06c0ea 100644--- a/packages/viewer/src/steps.ts+++ b/packages/viewer/src/steps.ts@@ -9,16 +9,32 @@ import {buildAssemblyStepGroups,CURRENT_PLAN_VERSION} from "./plan";-import { joinTargets, stagedGroupNodeIds } from "./staging";+import {+ buildSubAssemblyPlan,+ displayOrder,+ isSubAssemblyHeader,+ subAssemblyPartIds,+ usableSubAssemblies,+ validateSubAssemblies+} from "./subassembly";export {assignStepPhases,buildAssemblyStepGroups,+ buildSubAssemblyPlan,CURRENT_PLAN_VERSION,+ displayOrder,indexAssemblyGraph,- joinTargets,- stagedGroupNodeIds+ isSubAssemblyHeader,+ subAssemblyPartIds,+ usableSubAssemblies,+ validateSubAssemblies};export type { AssemblyGraphIndex } from "./graph";export type { AssemblyPlan, AssemblyStepGroup, StepPhase } from "./plan";+export type {+ SubAssemblyInfo,+ SubAssemblyViolation,+ UnusableReason+} from "./subassembly";export type { AssemblyGraph } from "./types";diff --git a/packages/viewer/src/subassembly.test.ts b/packages/viewer/src/subassembly.test.tsnew file mode 100644index 0000000000..79803766e8--- /dev/null+++ b/packages/viewer/src/subassembly.test.ts@@ -0,0 +1,220 @@+import { describe, expect, it } from "vitest";+import {+ arrivalIndexByNode,+ buildSubAssemblyPlan,+ displayOrder,+ subAssemblyPartIds,+ usableSubAssemblies,+ validateSubAssemblies,+ worldOf+} from "./subassembly";+import type { AssemblyStep } from "./types";++type Row = Pick<+ AssemblyStep,+ "id" | "componentNodeIds" | "parentStepId" | "usedInStepId" | "isSubAssembly"+>;++const step = (+ id: string,+ parts: string[] = [],+ extra: Partial<Row> = {}+): Row => ({ id, componentNodeIds: parts, ...extra });++// Play order. Drive Train (1.1–1.3) is used by 4.2; Heel Module (4.1–4.2)+// joins the main build.+const example: Row[] = [+ step("plate", ["plate"], { parentStepId: "drive" }),+ step("pinion", ["pinion"], { parentStepId: "drive" }),+ step("idler", ["idler"], { parentStepId: "drive" }),+ step("drive", [], { isSubAssembly: true, usedInStepId: "fit" }),+ step("sole", ["sole"]),+ step("counter", ["counter"]),+ step("shell", ["shell"], { parentStepId: "heel" }),+ step("fit", ["battery"], { parentStepId: "heel" }),+ step("heel", [], { isSubAssembly: true }),+ step("upper", ["upper"])+];++describe("displayOrder", () => {+ it("puts each header above its members", () => {+ expect(displayOrder(example)).toEqual([+ { stepId: "drive", depth: 0 },+ { stepId: "plate", depth: 1 },+ { stepId: "pinion", depth: 1 },+ { stepId: "idler", depth: 1 },+ { stepId: "sole", depth: 0 },+ { stepId: "counter", depth: 0 },+ { stepId: "heel", depth: 0 },+ { stepId: "shell", depth: 1 },+ { stepId: "fit", depth: 1 },+ { stepId: "upper", depth: 0 }+ ]);+ });++ it("shows an empty sub-assembly at its own place", () => {+ const rows = displayOrder([+ step("a", ["a"]),+ step("empty", [], { isSubAssembly: true }),+ step("b", ["b"])+ ]);+ expect(rows.map((r) => r.stepId)).toEqual(["a", "empty", "b"]);+ });+});++describe("buildSubAssemblyPlan", () => {+ const plan = buildSubAssemblyPlan(example);++ it("numbers top-level items and members", () => {+ const numbers = Object.fromEntries(+ [...plan.values()].map((info) => [info.stepId, info.number])+ );+ expect(numbers).toEqual({+ drive: "1",+ plate: "1.1",+ pinion: "1.2",+ idler: "1.3",+ sole: "2",+ counter: "3",+ heel: "4",+ shell: "4.1",+ fit: "4.2",+ upper: "5"+ });+ });++ it("a used header does not play; an unused one joins the main build", () => {+ expect(plan.get("drive")?.plays).toBe(false);+ expect(plan.get("heel")?.plays).toBe(true);+ expect(plan.get("heel")?.carriesIn).toEqual(["heel"]);+ expect(plan.get("fit")?.carriesIn).toEqual(["drive"]);+ expect(plan.get("sole")?.carriesIn).toEqual([]);+ });++ it("isolates members to their sub-assembly's parts, including used ones", () => {+ expect(plan.get("pinion")?.isolatePartIds?.sort()).toEqual(+ ["idler", "pinion", "plate"].sort()+ );+ expect(plan.get("shell")?.isolatePartIds?.sort()).toEqual(+ ["battery", "idler", "pinion", "plate", "shell"].sort()+ );+ expect(plan.get("sole")?.isolatePartIds).toBeNull();+ expect(plan.get("heel")?.isolatePartIds).toBeNull();+ });+});++describe("worldOf / arrivalIndexByNode", () => {+ it("places each step in its build", () => {+ expect(worldOf(example, "pinion")).toBe("drive");+ expect(worldOf(example, "fit")).toBe("heel");+ expect(worldOf(example, "sole")).toBeNull();+ expect(worldOf(example, "heel")).toBeNull();+ });++ it("main build: a sub-assembly's parts arrive when its unit joins", () => {+ const arrival = arrivalIndexByNode(example, null);+ const heelIndex = example.findIndex((s) => s.id === "heel");+ expect(arrival.get("sole")).toBe(4);+ expect(arrival.get("upper")).toBe(9);+ // Drive Train is inside Heel Module, which joins at its header.+ expect(arrival.get("plate")).toBe(heelIndex);+ expect(arrival.get("battery")).toBe(heelIndex);+ });++ it("inside a sub-assembly: used units arrive at the using step", () => {+ const heel = arrivalIndexByNode(example, "heel");+ const fitIndex = example.findIndex((s) => s.id === "fit");+ expect(heel.get("shell")).toBe(6);+ expect(heel.get("battery")).toBe(fitIndex);+ expect(heel.get("pinion")).toBe(fitIndex);+ expect(heel.has("sole")).toBe(false);++ const drive = arrivalIndexByNode(example, "drive");+ expect(drive.get("plate")).toBe(0);+ expect(drive.get("idler")).toBe(2);+ expect(drive.has("shell")).toBe(false);+ });+});++describe("subAssemblyPartIds", () => {+ it("follows uses and survives a cycle", () => {+ expect(subAssemblyPartIds(example, "drive").sort()).toEqual(+ ["idler", "pinion", "plate"].sort()+ );+ const cyclic: Row[] = [+ step("m1", ["x"], { parentStepId: "h1" }),+ step("h1", [], { isSubAssembly: true, usedInStepId: "m2" }),+ step("m2", ["y"], { parentStepId: "h2" }),+ step("h2", [], { isSubAssembly: true, usedInStepId: "m1" })+ ];+ expect(subAssemblyPartIds(cyclic, "h1").sort()).toEqual(["x", "y"]);+ });+});++describe("validateSubAssemblies", () => {+ it("accepts the example", () => {+ expect(validateSubAssemblies(example)).toEqual([]);+ });++ it("rule 1: members must sit directly before the header", () => {+ const rows = [+ step("m1", ["a"], { parentStepId: "h" }),+ step("main", ["b"]),+ step("m2", ["c"], { parentStepId: "h" }),+ step("h", [], { isSubAssembly: true })+ ];+ expect(validateSubAssemblies(rows).map((v) => v.rule)).toEqual([1]);+ });++ it("rule 2: no nesting, and members only belong to headers", () => {+ const nested = [+ step("inner", [], { isSubAssembly: true, parentStepId: "outer" }),+ step("outer", [], { isSubAssembly: true })+ ];+ expect(validateSubAssemblies(nested).map((v) => v.rule)).toEqual([2]);+ const notHeader = [+ step("a", ["a"], { parentStepId: "b" }),+ step("b", ["b"])+ ];+ expect(validateSubAssemblies(notHeader).map((v) => v.rule)).toEqual([2]);+ });++ it("rule 3: used later, by an ordinary step outside it", () => {+ const early = [+ step("use", ["u"]),+ step("m", ["a"], { parentStepId: "h" }),+ step("h", [], { isSubAssembly: true, usedInStepId: "use" })+ ];+ expect(validateSubAssemblies(early)[0]?.message).toMatch(+ /after it is built/+ );++ const own = [+ step("m", ["a"], { parentStepId: "h" }),+ step("h", [], { isSubAssembly: true, usedInStepId: "m" })+ ];+ expect(validateSubAssemblies(own)[0]?.message).toMatch(/own steps/);++ const byHeader = [+ step("m", ["a"], { parentStepId: "h" }),+ step("h", [], { isSubAssembly: true, usedInStepId: "h2" }),+ step("h2", [], { isSubAssembly: true })+ ];+ expect(validateSubAssemblies(byHeader)[0]?.rule).toBe(3);++ const onStep = [step("a", ["a"], { usedInStepId: "b" }), step("b", ["b"])];+ expect(validateSubAssemblies(onStep)[0]?.rule).toBe(3);+ });+});++describe("usableSubAssemblies", () => {+ it("explains why a sub-assembly can't be used", () => {+ const reasons = (id: string) =>+ Object.fromEntries(+ usableSubAssemblies(example, id).map((u) => [u.headerId, u.reason])+ );+ expect(reasons("fit")).toEqual({ drive: null, heel: "own" });+ expect(reasons("sole")).toEqual({ drive: null, heel: "before" });+ expect(reasons("heel")).toEqual({ drive: "header", heel: "header" });+ });+});diff --git a/packages/viewer/src/subassembly.ts b/packages/viewer/src/subassembly.tsnew file mode 100644index 0000000000..7312b16168--- /dev/null+++ b/packages/viewer/src/subassembly.ts@@ -0,0 +1,317 @@+/**+ * Sub-assemblies: pure structure over an instruction's steps. No three.js.+ *+ * Steps arrive in PLAY order (`sortOrder`). A sub-assembly is a header step+ * (`isSubAssembly`) plus the steps whose `parentStepId` is the header; those+ * steps sit directly before their header. A header's `usedInStepId` names the+ * later step that fits the finished unit; without one, the header itself is+ * where the unit joins the main build.+ *+ * Shared by the player (numbering, isolation, carry-in), the ERP editor+ * (step list, which actions to offer) and the ERP service (write validation),+ * so all three answer the same question the same way.+ */+import type { AssemblyStep } from "./types";++type StructureStep = Pick<+ AssemblyStep,+ "id" | "componentNodeIds" | "parentStepId" | "usedInStepId" | "isSubAssembly"+>;++export type SubAssemblyInfo = {+ stepId: string;+ /** Members: their header. Headers: themselves. Main-build steps: null. */+ headerId: string | null;+ isHeader: boolean;+ /** "1", "4.2": top level counts headers and main-build steps in display order. */+ number: string;+ /** False only for a header something uses: that unit joins at the using step. */+ plays: boolean;+ /** Members: every part of their sub-assembly (shown on its own). Otherwise null. */+ isolatePartIds: string[] | null;+ /** Headers whose finished parts arrive at this step. */+ carriesIn: string[];+};++export const isSubAssemblyHeader = (+ step: Pick<AssemblyStep, "isSubAssembly">+) => step.isSubAssembly === true;++function membersOf(steps: StructureStep[], headerId: string) {+ return steps.filter((step) => step.parentStepId === headerId);+}++/**+ * Every part a sub-assembly contains: what its steps install, plus the parts of+ * every sub-assembly those steps use (a gear train used inside a heel module).+ */+export function subAssemblyPartIds(+ steps: StructureStep[],+ headerId: string,+ seen: Set<string> = new Set()+): string[] {+ if (seen.has(headerId)) return [];+ seen.add(headerId);+ const parts = new Set<string>();+ for (const member of membersOf(steps, headerId)) {+ for (const id of member.componentNodeIds) parts.add(id);+ for (const used of steps) {+ if (isSubAssemblyHeader(used) && used.usedInStepId === member.id) {+ for (const id of subAssemblyPartIds(steps, used.id, seen))+ parts.add(id);+ }+ }+ }+ return [...parts];+}++/**+ * The build a step happens in: its sub-assembly's header id, or `null` for the+ * main build. Headers themselves are main-build steps (an unused one is where+ * its unit joins the main build).+ */+export function worldOf(steps: StructureStep[], stepId: string): string | null {+ const step = steps.find((s) => s.id === stepId);+ if (!step?.parentStepId || isSubAssemblyHeader(step)) return null;+ const header = steps.find((s) => s.id === step.parentStepId);+ return header && isSubAssemblyHeader(header) ? header.id : null;+}++/**+ * When each part shows up in a given build (`world`): a part installed there+ * appears at its own step; a finished sub-assembly's parts appear at the step+ * that carries the unit into that build (following uses outward, so a gear+ * train used in a heel module reaches the main build when the heel module+ * does). Parts that never reach `world` are absent from the map.+ */+export function arrivalIndexByNode(+ steps: StructureStep[],+ world: string | null+): Map<string, number> {+ const indexById = new Map(steps.map((step, index) => [step.id, index]));+ const byId = new Map(steps.map((step) => [step.id, step]));+ const worlds = new Map(+ steps.map((step) => [step.id, worldOf(steps, step.id)])+ );+ const arrival = new Map<string, number>();++ steps.forEach((installer) => {+ if (installer.componentNodeIds.length === 0) return;+ let current: StructureStep | undefined = installer;+ for (let hops = 0; current && hops <= steps.length; hops++) {+ const here: string | null = worlds.get(current.id) ?? null;+ if (here === world) {+ const index = indexById.get(current.id)!;+ for (const nodeId of installer.componentNodeIds) {+ if (!arrival.has(nodeId)) arrival.set(nodeId, index);+ }+ return;+ }+ // Already in the main build and still not in `world`: it never gets there.+ if (here === null) return;+ const header = byId.get(here);+ if (!header) return;+ current = header.usedInStepId ? byId.get(header.usedInStepId) : header;+ }+ });+ return arrival;+}++/**+ * The step list's rows: each header directly above its members (members are+ * stored before it), everything else in play order.+ */+export function displayOrder(+ steps: StructureStep[]+): { stepId: string; depth: 0 | 1 }[] {+ const rows: { stepId: string; depth: 0 | 1 }[] = [];+ const emitted = new Set<string>();+ const byId = new Map(steps.map((step) => [step.id, step]));+ for (const step of steps) {+ if (emitted.has(step.id)) continue;+ const header = step.parentStepId ? byId.get(step.parentStepId) : undefined;+ if (header && isSubAssemblyHeader(header)) {+ rows.push({ stepId: header.id, depth: 0 });+ emitted.add(header.id);+ for (const member of membersOf(steps, header.id)) {+ rows.push({ stepId: member.id, depth: 1 });+ emitted.add(member.id);+ }+ continue;+ }+ rows.push({ stepId: step.id, depth: 0 });+ emitted.add(step.id);+ }+ return rows;+}++export function buildSubAssemblyPlan(+ steps: StructureStep[]+): Map<string, SubAssemblyInfo> {+ const plan = new Map<string, SubAssemblyInfo>();+ const byId = new Map(steps.map((step) => [step.id, step]));+ const partsByHeader = new Map<string, string[]>();+ const partsOf = (headerId: string) => {+ let parts = partsByHeader.get(headerId);+ if (!parts) {+ parts = subAssemblyPartIds(steps, headerId);+ partsByHeader.set(headerId, parts);+ }+ return parts;+ };++ let top = 0;+ let child = 0;+ for (const { stepId, depth } of displayOrder(steps)) {+ const step = byId.get(stepId)!;+ const isHeader = isSubAssemblyHeader(step);+ if (depth === 0) {+ top += 1;+ child = 0;+ } else {+ child += 1;+ }+ const headerId = isHeader+ ? step.id+ : depth === 1+ ? (step.parentStepId ?? null)+ : null;+ const carriesIn = steps+ .filter((s) => isSubAssemblyHeader(s) && s.usedInStepId === step.id)+ .map((s) => s.id);+ if (isHeader && !step.usedInStepId) carriesIn.push(step.id);++ plan.set(step.id, {+ stepId: step.id,+ headerId,+ isHeader,+ number: depth === 0 ? String(top) : `${top}.${child}`,+ plays: !(isHeader && step.usedInStepId),+ isolatePartIds: depth === 1 && headerId ? partsOf(headerId) : null,+ carriesIn+ });+ }+ return plan;+}++export type SubAssemblyRule = 1 | 2 | 3;++export type SubAssemblyViolation = {+ stepId: string;+ rule: SubAssemblyRule;+ message: string;+};++/**+ * The structural rules, checked on every write:+ * 1. a sub-assembly's steps sit directly before its header;+ * 2. no nesting: only headers have members, and headers are never members;+ * 3. a header is used by a later, ordinary step that is not one of its own.+ */+export function validateSubAssemblies(+ steps: StructureStep[]+): SubAssemblyViolation[] {+ const violations: SubAssemblyViolation[] = [];+ const indexById = new Map(steps.map((step, index) => [step.id, index]));+ const byId = new Map(steps.map((step) => [step.id, step]));++ steps.forEach((step, index) => {+ if (step.parentStepId) {+ const header = byId.get(step.parentStepId);+ if (!header || !isSubAssemblyHeader(header)) {+ violations.push({+ stepId: step.id,+ rule: 2,+ message: "A step can only belong to a sub-assembly"+ });+ } else if (isSubAssemblyHeader(step)) {+ violations.push({+ stepId: step.id,+ rule: 2,+ message: "A sub-assembly can't be inside another sub-assembly"+ });+ }+ }++ if (!isSubAssemblyHeader(step)) {+ if (step.usedInStepId) {+ violations.push({+ stepId: step.id,+ rule: 3,+ message: "Only a sub-assembly can be used in a step"+ });+ }+ return;+ }++ const members = membersOf(steps, step.id);+ const contiguous = members.every(+ (member, i) => indexById.get(member.id) === index - members.length + i+ );+ if (!contiguous) {+ violations.push({+ stepId: step.id,+ rule: 1,+ message: "A sub-assembly's steps must come directly before it"+ });+ }++ if (step.usedInStepId) {+ const target = byId.get(step.usedInStepId);+ const targetIndex = indexById.get(step.usedInStepId);+ if (!target || targetIndex === undefined) {+ violations.push({+ stepId: step.id,+ rule: 3,+ message: "The step using this sub-assembly doesn't exist"+ });+ } else if (isSubAssemblyHeader(target)) {+ violations.push({+ stepId: step.id,+ rule: 3,+ message:+ "A sub-assembly is used in a step, not in another sub-assembly"+ });+ } else if (target.parentStepId === step.id) {+ violations.push({+ stepId: step.id,+ rule: 3,+ message: "A sub-assembly can't be used by one of its own steps"+ });+ } else if (targetIndex < index) {+ violations.push({+ stepId: step.id,+ rule: 3,+ message: "A sub-assembly can only be used after it is built"+ });+ }+ }+ });++ return violations;+}++export type UnusableReason = "header" | "own" | "before";++/** The sub-assemblies a step could use, with why each one can't be. */+export function usableSubAssemblies(+ steps: StructureStep[],+ stepId: string+): { headerId: string; reason: UnusableReason | null }[] {+ const index = steps.findIndex((step) => step.id === stepId);+ const step = steps[index];+ if (!step) return [];+ return steps+ .map((header, headerIndex) => ({ header, headerIndex }))+ .filter(({ header }) => isSubAssemblyHeader(header))+ .map(({ header, headerIndex }) => ({+ headerId: header.id,+ reason: isSubAssemblyHeader(step)+ ? "header"+ : step.parentStepId === header.id+ ? "own"+ : index < headerIndex+ ? "before"+ : null+ }));+}diff --git a/packages/viewer/src/types.ts b/packages/viewer/src/types.tsindex 0e8bebeafe..18f1103828 100644--- a/packages/viewer/src/types.ts+++ b/packages/viewer/src/types.ts@@ -115,11 +115,17 @@ export type AssemblyStep = {*/hiddenComponentNodeIds?: string[];/**- * Built off to the side: the id of the later JOIN step where the group this- * step builds is carried into the main assembly (DB `parentStepId`).- * `null`/absent = built in place. See `staging.ts`.+ * This row is a sub-assembly (a header): the steps whose `parentStepId` is+ * its id are built on their own, directly before it. See `subassembly.ts`.*/- joinStepId?: string | null;+ isSubAssembly?: boolean;+ /** The sub-assembly this step belongs to. `null`/absent = top level. */+ parentStepId?: string | null;+ /**+ * On a header: the later step that fits the finished sub-assembly.+ * `null`/absent = it joins the main build at the header itself.+ */+ usedInStepId?: string | null;};/** One node of the assembly tree in graph.json. */