Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Rework (#837)

Brad Barbin79b8b3521561
diff --git a/apps/mes/app/components/JobOperation/JobOperation.tsx b/apps/mes/app/components/JobOperation/JobOperation.tsx
index f7193078ff..283813b4ac 100644
--- a/apps/mes/app/components/JobOperation/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation/JobOperation.tsx
@@ -5,6 +5,9 @@ import type { JSONContent } from "@carbon/react";
import {
Badge,
BarProgress,
+ BottomSheet,
+ BottomSheetBody,
+ BottomSheetContent,
Button,
Card,
CardContent,
@@ -116,8 +119,6 @@ import ItemThumbnail from "../ItemThumbnail";
import { OperationChat } from "./components/Chat";
import {
Controls,
- type FABItem,
- FloatingActionMenu,
IconButtonWithTooltip,
StartStopButton,
Times,
@@ -128,6 +129,7 @@ import { MaintenanceDispatch } from "./components/MaintenanceDispatch";
import { ParametersListItem } from "./components/Parameter";
import { QualityIssueModal } from "./components/QualityIssueModal";
import { QuantityModal } from "./components/QuantityModal";
+import { ReworkModal } from "./components/ReworkModal";
import { SerialSelectorModal } from "./components/SerialSelectorModal";
import {
DeleteStepRecordModal,
@@ -233,6 +235,7 @@ export const JobOperation = ({
attributeRecordModal.isOpen || attributeRecordDeleteModal.isOpen;
const {
+ actionsSheet,
availableEntities,
active,
activeTab,
@@ -965,6 +968,7 @@ export const JobOperation = ({
aria-label="Issue Material"
leftIcon={<LuGitBranchPlus />}
variant="secondary"
+ size="lg"
onClick={() => {
flushSync(() => {
setSelectedMaterial(null);
@@ -1583,6 +1587,7 @@ export const JobOperation = ({
<HStack>
<SplitButton
leftIcon={<LuQrCode />}
+ size="lg"
dropdownItems={labelSizes.map((size) => ({
label: size.name,
onClick: () =>
@@ -1595,7 +1600,11 @@ export const JobOperation = ({
>
<Trans>Tracking Labels</Trans>
</SplitButton>
- <Button variant="secondary" leftIcon={<LuBarcode />}>
+ <Button
+ variant="secondary"
+ size="lg"
+ leftIcon={<LuBarcode />}
+ >
<Trans>Scan</Trans>
</Button>
</HStack>
@@ -2087,63 +2096,13 @@ export const JobOperation = ({
tooltip={t`Log Completed`}
onClick={completeModal.onOpen}
/>
- <Suspense key={`fab-${operationId}`}>
- <Await resolve={workCenter}>
- {(resolvedWorkCenter) => {
- const isEntityCompleted =
- parentIsSerial &&
- trackedEntities.some(
- (entity) =>
- entity.id === trackedEntityId &&
- `Operation ${operationId}` in
- (entity.attributes as TrackedEntityAttributes)
- );
-
- const fabItems: FABItem[] = [
- {
- icon: (
- <FaTrash className="text-accent-foreground group-hover:text-accent-foreground/80" />
- ),
- label: t`Log Scrap`,
- onClick: scrapModal.onOpen,
- disabled: isEntityCompleted
- },
- {
- icon: <FaCheck />,
- label: t`Close Out`,
- onClick: finishModal.onOpen,
- variant:
- operation.quantityComplete ===
- operation.operationQuantity
- ? "success"
- : "default"
- },
- {
- icon: (
- <LuTriangleAlert className="text-accent-foreground group-hover:text-accent-foreground/80" />
- ),
- label: t`Quality Issue`,
- onClick: qualityIssueModal.onOpen
- }
- ];
-
- if (
- resolvedWorkCenter.data &&
- !resolvedWorkCenter.data.isBlocked
- ) {
- fabItems.push({
- icon: (
- <LuWrench className="text-accent-foreground group-hover:text-accent-foreground/80" />
- ),
- label: t`Maintenance`,
- onClick: maintenanceModal.onOpen
- });
- }
-
- return <FloatingActionMenu items={fabItems} />;
- }}
- </Await>
- </Suspense>
+ <IconButtonWithTooltip
+ icon={
+ <LuEllipsisVertical className="text-accent-foreground group-hover:text-accent-foreground/80" />
+ }
+ tooltip={t`More Actions`}
+ onClick={actionsSheet.onOpen}
+ />
</div>
</div>
</Controls>
@@ -2281,16 +2240,98 @@ export const JobOperation = ({
</Times>
)}
</Tabs>
+ <BottomSheet
+ open={actionsSheet.isOpen}
+ onOpenChange={(open) => {
+ if (!open) actionsSheet.onClose();
+ }}
+ >
+ <BottomSheetContent className="max-w-md mx-auto">
+ <BottomSheetBody>
+ <div className="flex flex-col gap-2 pb-2">
+ <button
+ type="button"
+ className="flex items-center gap-3 rounded-lg bg-accent px-4 py-4 text-accent-foreground ring-1 ring-black/5 active:scale-[0.98] transition-transform"
+ onClick={() => {
+ actionsSheet.onClose();
+ scrapModal.onOpen();
+ }}
+ >
+ <FaTrash className="size-4 shrink-0 fill-muted-foreground" />
+ <span className="text-base/6 font-medium">
+ <Trans>Scrap</Trans>
+ </span>
+ </button>
+ <button
+ type="button"
+ className="flex items-center gap-3 rounded-lg bg-accent px-4 py-4 text-accent-foreground ring-1 ring-black/5 active:scale-[0.98] transition-transform"
+ onClick={() => {
+ actionsSheet.onClose();
+ reworkModal.onOpen();
+ }}
+ >
+ <LuGitPullRequest className="size-4 shrink-0 stroke-muted-foreground" />
+ <span className="text-base/6 font-medium">
+ <Trans>Rework</Trans>
+ </span>
+ </button>
+ <button
+ type="button"
+ className="flex items-center gap-3 rounded-lg bg-accent px-4 py-4 text-accent-foreground ring-1 ring-black/5 active:scale-[0.98] transition-transform"
+ onClick={() => {
+ actionsSheet.onClose();
+ finishModal.onOpen();
+ }}
+ >
+ <LuCheck className="size-4 shrink-0 stroke-muted-foreground" />
+ <span className="text-base/6 font-medium">
+ <Trans>Finish</Trans>
+ </span>
+ </button>
+ <Suspense>
+ <Await resolve={workCenter}>
+ {(resolvedWorkCenter) =>
+ resolvedWorkCenter.data &&
+ !resolvedWorkCenter.data.isBlocked ? (
+ <button
+ type="button"
+ className="flex items-center gap-3 rounded-lg bg-accent px-4 py-4 text-accent-foreground ring-1 ring-black/5 active:scale-[0.98] transition-transform"
+ onClick={() => {
+ actionsSheet.onClose();
+ maintenanceModal.onOpen();
+ }}
+ >
+ <LuWrench className="size-4 shrink-0 stroke-muted-foreground" />
+ <span className="text-base/6 font-medium">
+ <Trans>Maintenance</Trans>
+ </span>
+ </button>
+ ) : null
+ }
+ </Await>
+ </Suspense>
+ <button
+ type="button"
+ className="flex items-center gap-3 rounded-lg bg-accent px-4 py-4 text-accent-foreground ring-1 ring-black/5 active:scale-[0.98] transition-transform"
+ onClick={() => {
+ actionsSheet.onClose();
+ qualityIssueModal.onOpen();
+ }}
+ >
+ <LuTriangleAlert className="size-4 shrink-0 stroke-muted-foreground" />
+ <span className="text-base/6 font-medium">
+ <Trans>Quality Issue</Trans>
+ </span>
+ </button>
+ </div>
+ </BottomSheetBody>
+ </BottomSheetContent>
+ </BottomSheet>
{reworkModal.isOpen && (
- <QuantityModal
- type="rework"
- laborProductionEvent={laborProductionEvent}
- machineProductionEvent={machineProductionEvent}
+ <ReworkModal
operation={operation}
- parentIsSerial={parentIsSerial}
- parentIsBatch={parentIsBatch}
- setupProductionEvent={setupProductionEvent}
- trackedEntityId={trackedEntityId}
+ jobId={job.id!}
+ isOpen={reworkModal.isOpen}
onClose={reworkModal.onClose}
/>
)}
diff --git a/apps/mes/app/components/JobOperation/components/Controls.tsx b/apps/mes/app/components/JobOperation/components/Controls.tsx
index 00ee6f26f4..91f89ad538 100644
--- a/apps/mes/app/components/JobOperation/components/Controls.tsx
+++ b/apps/mes/app/components/JobOperation/components/Controls.tsx
@@ -41,7 +41,7 @@ export function Controls({
return (
<div
className={cn(
- "flex flex-col relative z-[60] md:absolute p-2 md:top-[calc(var(--header-height)*2-2px)] md:right-0 w-full md:w-[var(--controls-width)] md:min-h-[180px] bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 md:border-l border-y md:rounded-bl-lg",
+ "flex flex-col relative z-[40] md:absolute p-2 md:top-[calc(var(--header-height)*2-2px)] md:right-0 w-full md:w-[var(--controls-width)] md:min-h-[180px] bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 md:border-l border-y md:rounded-bl-lg",
className
)}
>
diff --git a/apps/mes/app/components/JobOperation/components/IssueMaterialModal.tsx b/apps/mes/app/components/JobOperation/components/IssueMaterialModal.tsx
index 920721baf1..bc97474d37 100644
--- a/apps/mes/app/components/JobOperation/components/IssueMaterialModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/IssueMaterialModal.tsx
@@ -1023,12 +1023,13 @@ export function IssueMaterialModal({
</div>
</ModalBody>
<ModalFooter>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
Cancel
</Button>
<Button
type="submit"
variant="primary"
+ size="lg"
isLoading={inventoryFetcher.state !== "idle"}
isDisabled={
inventoryFetcher.state !== "idle" ||
@@ -1590,17 +1591,18 @@ export function IssueMaterialModal({
</ModalBody>
<ModalFooter>
{splitEntitiesResult.length > 0 ? (
- <Button variant="primary" onClick={onClose}>
+ <Button variant="primary" size="lg" onClick={onClose}>
Close
</Button>
) : (
<>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
Cancel
</Button>
{activeTab === "unconsume" ? (
<Button
variant="destructive"
+ size="lg"
onClick={
trackingType === "Serial"
? handleUnconsumeSerial
@@ -1619,6 +1621,7 @@ export function IssueMaterialModal({
) : (
<Button
variant="primary"
+ size="lg"
onClick={
trackingType === "Serial"
? handleSubmitSerial
@@ -1643,7 +1646,7 @@ export function IssueMaterialModal({
{/* Footer for split entities result */}
{splitEntitiesResult.length > 0 && (
<ModalFooter>
- <Button variant="primary" onClick={onClose}>
+ <Button variant="primary" size="lg" onClick={onClose}>
Close
</Button>
</ModalFooter>
@@ -1772,13 +1775,14 @@ function ConvertSplitModal({
</div>
</ModalBody>
<ModalFooter>
- <Button variant="secondary" onClick={onCancel}>
+ <Button variant="secondary" size="lg" onClick={onCancel}>
Cancel
</Button>
<Button
isLoading={fetcher.state !== "idle"}
isDisabled={fetcher.state !== "idle"}
type="submit"
+ size="lg"
variant="primary"
>
Convert
@@ -1825,7 +1829,7 @@ function ScrapSplitModal({
</ModalDescription>
</ModalHeader>
<ModalFooter>
- <Button variant="secondary" onClick={onCancel}>
+ <Button variant="secondary" size="lg" onClick={onCancel}>
Cancel
</Button>
<fetcher.Form
@@ -1840,6 +1844,7 @@ function ScrapSplitModal({
isLoading={fetcher.state !== "idle"}
isDisabled={fetcher.state !== "idle"}
type="submit"
+ size="lg"
variant="destructive"
>
Scrap
diff --git a/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx b/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
index ef7e0e4452..62efe6bb8b 100644
--- a/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
+++ b/apps/mes/app/components/JobOperation/components/MaintenanceDispatch.tsx
@@ -188,6 +188,7 @@ export function MaintenanceDispatch({
<Select
name="priority"
label="Priority"
+ size="lg"
options={maintenanceDispatchPriority.map((priority) => ({
value: priority,
label: (
@@ -201,6 +202,7 @@ export function MaintenanceDispatch({
<Select
name="severity"
label="Severity"
+ size="lg"
options={maintenanceSeverity.map((s) => ({
value: s,
label: getSeverityLabel(s)
@@ -215,13 +217,22 @@ export function MaintenanceDispatch({
/>
{severity === "Operator Performed" && (
<>
- <DateTimePicker name="actualStartTime" label="Start Time" />
- <DateTimePicker name="actualEndTime" label="End Time" />
+ <DateTimePicker
+ name="actualStartTime"
+ label="Start Time"
+ size="lg"
+ />
+ <DateTimePicker
+ name="actualEndTime"
+ label="End Time"
+ size="lg"
+ />
</>
)}
<Select
name="oeeImpact"
label="OEE Impact"
+ size="lg"
options={oeeImpact.map((impact) => ({
value: impact,
label: impact
@@ -240,6 +251,7 @@ export function MaintenanceDispatch({
<Select
name="actualFailureModeId"
label="Actual Failure Mode"
+ size="lg"
options={failureModes.map((mode) => ({
value: mode.id,
label: mode.name
@@ -250,6 +262,7 @@ export function MaintenanceDispatch({
<Select
name="suspectedFailureModeId"
label="Suspected Failure Mode"
+ size="lg"
options={failureModes.map((mode) => ({
value: mode.id,
label: mode.name
@@ -262,10 +275,10 @@ export function MaintenanceDispatch({
</ModalBody>
<ModalFooter>
<HStack>
- <Button variant="secondary" onClick={handleClose}>
+ <Button variant="secondary" size="lg" onClick={handleClose}>
Cancel
</Button>
- <Submit>Create Dispatch</Submit>
+ <Submit size="lg">Create Dispatch</Submit>
</HStack>
</ModalFooter>
</ValidatedForm>
diff --git a/apps/mes/app/components/JobOperation/components/QualityIssueModal.tsx b/apps/mes/app/components/JobOperation/components/QualityIssueModal.tsx
index d7c272b51a..04d81fedb2 100644
--- a/apps/mes/app/components/JobOperation/components/QualityIssueModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/QualityIssueModal.tsx
@@ -89,6 +89,7 @@ export function QualityIssueModal({
<Select
name="nonConformanceTypeId"
label={t`Issue Type`}
+ size="lg"
options={issueTypes.map((type) => ({
value: type.id,
label: type.name
@@ -97,6 +98,7 @@ export function QualityIssueModal({
<Select
name="priority"
label={t`Priority`}
+ size="lg"
options={qualityIssuePriority.map((p) => ({
value: p,
label: p
@@ -106,15 +108,16 @@ export function QualityIssueModal({
name="description"
label={t`Description`}
placeholder={t`Describe the problem...`}
+ size="lg"
/>
</VStack>
</ModalBody>
<ModalFooter>
<HStack>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
<Trans>Cancel</Trans>
</Button>
- <Submit isLoading={fetcher.state !== "idle"}>
+ <Submit size="lg" isLoading={fetcher.state !== "idle"}>
<Trans>Create Issue</Trans>
</Submit>
</HStack>
diff --git a/apps/mes/app/components/JobOperation/components/QuantityModal.tsx b/apps/mes/app/components/JobOperation/components/QuantityModal.tsx
index dfd3491d42..13a5c1b3e0 100644
--- a/apps/mes/app/components/JobOperation/components/QuantityModal.tsx
+++ b/apps/mes/app/components/JobOperation/components/QuantityModal.tsx
@@ -71,7 +71,7 @@ export function QuantityModal({
scrap: t`Log scrap for ${operation.itemReadableId}`,
rework: t`Log rework for ${operation.itemReadableId}`,
complete: t`Log completed for ${operation.itemReadableId}`,
- finish: t`Close out ${operation.itemReadableId}`
+ finish: t`Finish ${operation.itemReadableId}`
};
const isOperationComplete =
@@ -81,7 +81,7 @@ export function QuantityModal({
scrap: t`Select a scrap quantity and reason`,
rework: t`Select a rework quantity`,
complete: t`Select a completion quantity`,
- finish: t`Are you sure you want to close out this operation? This will end all active production events for this operation.`
+ finish: t`Are you sure you want to finish this operation? This will end all active production events for this operation.`
};
const actionMap = {
@@ -95,7 +95,7 @@ export function QuantityModal({
scrap: t`Log Scrap`,
rework: t`Log Rework`,
complete: t`Log Completed`,
- finish: isOperationComplete ? t`Close` : t`Close Anyways`
+ finish: isOperationComplete ? t`Finish` : t`Finish Anyways`
};
const validatorMap = {
@@ -239,13 +239,14 @@ export function QuantityModal({
onChange={setQuantity}
isReadOnly={parentIsSerial}
minValue={0}
+ size="lg"
/>
</div>
{type === "complete" && !parentIsSerial && (
<Button
variant="secondary"
- size="md"
- className="h-10"
+ size="lg"
+ className="h-12"
onClick={() =>
setQuantity(
operation.operationQuantity -
@@ -260,14 +261,19 @@ export function QuantityModal({
)}
{type === "scrap" ? (
<>
- <ScrapReason name="scrapReasonId" label={t`Scrap Reason`} />
- <TextArea label={t`Notes`} name="notes" />
+ <ScrapReason
+ name="scrapReasonId"
+ label={t`Scrap Reason`}
+ size="lg"
+ />
+ <TextArea label={t`Notes`} name="notes" size="lg" />
</>
) : (
<>
<NumberControlled
name="totalQuantity"
label={t`Total Quantity`}
+ size="lg"
value={
quantity +
(type === "rework"
@@ -281,11 +287,12 @@ export function QuantityModal({
</VStack>
</ModalBody>
<ModalFooter>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
<Trans>Cancel</Trans>
</Button>
<Button
+ size="lg"
variant={
type === "scrap" || (!isOperationComplete && type === "finish")
? "destructive"
diff --git a/apps/mes/app/components/JobOperation/components/ReworkModal.tsx b/apps/mes/app/components/JobOperation/components/ReworkModal.tsx
new file mode 100644
index 0000000000..a73f1510e8
--- /dev/null
+++ b/apps/mes/app/components/JobOperation/components/ReworkModal.tsx
@@ -0,0 +1,153 @@
+import type { Result } from "@carbon/auth";
+import {
+ Hidden,
+ NumberControlled,
+ Select,
+ TextArea,
+ ValidatedForm
+} from "@carbon/form";
+import {
+ Button,
+ HStack,
+ Modal,
+ ModalBody,
+ ModalContent,
+ ModalDescription,
+ ModalFooter,
+ ModalHeader,
+ ModalTitle,
+ toast,
+ VStack
+} from "@carbon/react";
+import { Trans, useLingui } from "@lingui/react/macro";
+import { useEffect, useState } from "react";
+import { useFetcher } from "react-router";
+import { triggerReworkValidator } from "~/services/models";
+import type { OperationWithDetails } from "~/services/types";
+import { path } from "~/utils/path";
+
+type UpstreamOperation = {
+ id: string;
+ processId: string;
+ description: string | null;
+ order: number;
+ status: string;
+};
+
+export function ReworkModal({
+ operation,
+ jobId,
+ isOpen,
+ onClose
+}: {
+ operation: OperationWithDetails;
+ jobId: string;
+ isOpen: boolean;
+ onClose: () => void;
+}) {
+ const { t } = useLingui();
+ const fetcher = useFetcher<Result>();
+ const targetsFetcher = useFetcher<{
+ operations: UpstreamOperation[];
+ }>();
+ const [quantity, setQuantity] = useState(1);
+
+ const targets = targetsFetcher.data?.operations ?? [];
+
+ useEffect(() => {
+ if (isOpen) {
+ targetsFetcher.load(path.to.reworkTargets(operation.id));
+ }
+ // biome-ignore lint/correctness/useExhaustiveDependencies: ignore
+ }, [isOpen]);
+
+ useEffect(() => {
+ if (fetcher.state === "idle" && fetcher.data?.success) {
+ toast.success(t`Rework created successfully`);
+ onClose();
+ }
+ // biome-ignore lint/correctness/useExhaustiveDependencies: ignore
+ }, [fetcher.state, fetcher.data]);
+
+ if (!isOpen) return null;
+
+ return (
+ <Modal
+ open={isOpen}
+ onOpenChange={(open) => {
+ if (!open) onClose();
+ }}
+ >
+ <ModalContent>
+ <ValidatedForm
+ method="post"
+ action={path.to.triggerRework}
+ validator={triggerReworkValidator}
+ defaultValues={{
+ jobId,
+ triggeredAtJobOperationId: operation.id,
+ targetJobOperationId: "",
+ reason: "",
+ quantity: 1
+ }}
+ fetcher={fetcher}
+ >
+ <ModalHeader>
+ <ModalTitle>
+ <Trans>Create Rework</Trans>
+ </ModalTitle>
+ <ModalDescription>
+ <Trans>
+ Select the operation to go back to. All operations from that
+ point to the current operation will be redone.
+ </Trans>
+ </ModalDescription>
+ </ModalHeader>
+ <ModalBody>
+ <Hidden name="jobId" value={jobId} />
+ <Hidden name="triggeredAtJobOperationId" value={operation.id} />
+ <VStack spacing={4}>
+ <Select
+ name="targetJobOperationId"
+ label={t`Go back to operation`}
+ size="lg"
+ options={targets.map((op) => ({
+ value: op.id,
+ label: op.description || op.processId
+ }))}
+ />
+ <NumberControlled
+ name="quantity"
+ label={t`Quantity`}
+ value={quantity}
+ onChange={setQuantity}
+ minValue={1}
+ size="lg"
+ />
+ <TextArea
+ name="reason"
+ label={t`Reason for rework`}
+ placeholder={t`Describe what needs to be reworked...`}
+ size="lg"
+ />
+ </VStack>
+ </ModalBody>
+ <ModalFooter>
+ <HStack>
+ <Button variant="secondary" size="lg" onClick={onClose}>
+ <Trans>Cancel</Trans>
+ </Button>
+ <Button
+ type="submit"
+ size="lg"
+ isDisabled={fetcher.state !== "idle"}
+ >
+ <Trans>Create Rework</Trans>
+ </Button>
+ </HStack>
+ </ModalFooter>
+ </ValidatedForm>
+ </ModalContent>
+ </Modal>
+ );
+}
diff --git a/apps/mes/app/components/JobOperation/components/Step.tsx b/apps/mes/app/components/JobOperation/components/Step.tsx
index c2fef0e9d8..c8e9040991 100644
--- a/apps/mes/app/components/JobOperation/components/Step.tsx
+++ b/apps/mes/app/components/JobOperation/components/Step.tsx
@@ -131,6 +131,7 @@ export function StepsListItem({
<IconButton
aria-label="Update step"
variant="secondary"
+ size="lg"
icon={<LuCircleCheck />}
isDisabled={record?.createdBy !== user?.id}
onClick={() => onRecord(step)}
@@ -149,6 +150,7 @@ export function StepsListItem({
) : (
<Button
variant="secondary"
+ size="lg"
rightIcon={<LuCircleCheck />}
onClick={() => onRecord(step)}
>
@@ -158,6 +160,7 @@ export function StepsListItem({
<IconButton
aria-label="Delete step"
variant="secondary"
+ size="lg"
icon={<LuTrash />}
isDisabled={record?.createdBy !== user?.id}
onClick={() => onDelete(step)}
@@ -173,6 +176,7 @@ export function StepsListItem({
<IconButton
aria-label="Record step"
variant="secondary"
+ size="lg"
icon={<LuCircleCheck />}
type="submit"
isLoading={fetcher.state !== "idle"}
@@ -182,6 +186,7 @@ export function StepsListItem({
<Button
type="submit"
variant="secondary"
+ size="lg"
rightIcon={<LuCircleCheck />}
isLoading={fetcher.state !== "idle"}
isDisabled={fetcher.state !== "idle"}
@@ -194,12 +199,14 @@ export function StepsListItem({
<IconButton
aria-label="Record step"
variant="secondary"
+ size="lg"
icon={<LuCircleCheck />}
onClick={() => onRecord(step)}
/>
) : (
<Button
variant="secondary"
+ size="lg"
rightIcon={<LuCircleCheck />}
onClick={() => onRecord(step)}
>
@@ -212,6 +219,7 @@ export function StepsListItem({
disclosure.isOpen ? "Hide description" : "Show description"
}
variant="ghost"
+ size="lg"
isDisabled={!hasDescription}
icon={disclosure.isOpen ? <LuChevronDown /> : <LuChevronRight />}
onClick={disclosure.onToggle}
@@ -468,13 +476,13 @@ export function RecordModal({
/>
)}
{attribute.type === "Value" && (
- <InputField name="value" label="" />
+ <InputField name="value" label="" size="lg" />
)}
{attribute.type === "Measurement" && (
- <Number name="numericValue" label="" />
+ <Number name="numericValue" label="" size="lg" />
)}
{attribute.type === "Timestamp" && (
- <DateTimePicker name="value" label="" />
+ <DateTimePicker name="value" label="" size="lg" />
)}
{attribute.type === "Checkbox" && (
<Switch
@@ -483,12 +491,18 @@ export function RecordModal({
/>
)}
{attribute.type === "Person" && (
- <Combobox name="userValue" label="" options={employeeOptions} />
+ <Combobox
+ name="userValue"
+ label=""
+ options={employeeOptions}
+ size="lg"
+ />
)}
{attribute.type === "List" && (
<Select
name="value"
label=""
+ size="lg"
options={(attribute.listValues ?? []).map((value) => ({
label: value,
value
@@ -552,10 +566,11 @@ export function RecordModal({
</VStack>
</ModalBody>
<ModalFooter>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
<Trans>Cancel</Trans>
</Button>
<Submit
+ size="lg"
isLoading={fetcher.state !== "idle"}
isDisabled={
fetcher.state !== "idle" ||
@@ -600,11 +615,12 @@ export function DeleteStepRecordModal({
<ModalDescription>{description}</ModalDescription>
</ModalHeader>
<ModalFooter>
- <Button variant="secondary" onClick={onClose}>
+ <Button variant="secondary" size="lg" onClick={onClose}>
<Trans>Cancel</Trans>
</Button>
<fetcher.Form method="post" action={path.to.recordDelete(id)}>
<Button
+ size="lg"
isLoading={fetcher.state !== "idle"}
isDisabled={fetcher.state !== "idle"}
type="submit"
diff --git a/apps/mes/app/components/JobOperation/hooks/useOperation.tsx b/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
index b902841268..9e538a48d6 100644
--- a/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
+++ b/apps/mes/app/components/JobOperation/hooks/useOperation.tsx
@@ -52,6 +52,7 @@ export function useOperation({
// biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration
const channelRef = useRef<RealtimeChannel | null>(null);
+ const actionsSheet = useDisclosure();
const scrapModal = useDisclosure();
const reworkModal = useDisclosure();
const completeModal = useDisclosure();
@@ -62,6 +63,7 @@ export function useOperation({
// we do this to avoid re-rendering when the modal is open
const isAnyModalOpen =
pauseInterval ||
+ actionsSheet.isOpen ||
scrapModal.isOpen ||
reworkModal.isOpen ||
completeModal.isOpen ||
@@ -279,6 +281,7 @@ export function useOperation({
progress,
operation: operationState,
+ actionsSheet,
activeTab,
eventType,
scrapModal,
diff --git a/apps/mes/app/routes/x+/rework-targets.$operationId.tsx b/apps/mes/app/routes/x+/rework-targets.$operationId.tsx
new file mode 100644
index 0000000000..fe08140587
--- /dev/null
+++ b/apps/mes/app/routes/x+/rework-targets.$operationId.tsx
@@ -0,0 +1,13 @@
+import { requirePermissions } from "@carbon/auth/auth.server";
+import type { LoaderFunctionArgs } from "react-router";
+import { getUpstreamOperations } from "~/services/operations.service";
+
+export async function loader({ request, params }: LoaderFunctionArgs) {
+ const { client } = await requirePermissions(request, {});
+ const { operationId } = params;
+
+ if (!operationId) throw new Error("operationId is required");
+
+ const result = await getUpstreamOperations(client, operationId);
+ return { operations: result.data ?? [] };
+}
diff --git a/apps/mes/app/routes/x+/trigger-rework.tsx b/apps/mes/app/routes/x+/trigger-rework.tsx
new file mode 100644
index 0000000000..e6357ebc54
--- /dev/null
+++ b/apps/mes/app/routes/x+/trigger-rework.tsx
@@ -0,0 +1,52 @@
+import { assertIsPost, error, success } from "@carbon/auth";
+import { requirePermissions } from "@carbon/auth/auth.server";
+import { getCarbonServiceRole } from "@carbon/auth/client.server";
+import { flash } from "@carbon/auth/session.server";
+import { validationError, validator } from "@carbon/form";
+import type { ActionFunctionArgs } from "react-router";
+import { data } from "react-router";
+import { triggerReworkValidator } from "~/services/models";
+
+export async function action({ request }: ActionFunctionArgs) {
+ assertIsPost(request);
+ const { companyId, userId } = await requirePermissions(request, {});
+
+ const formData = await request.formData();
+ const validation = await validator(triggerReworkValidator).validate(formData);
+
+ if (validation.error) {
+ return validationError(validation.error);
+ }
+
+ const serviceRole = getCarbonServiceRole();
+
+ const result = await serviceRole.functions.invoke("trigger-rework", {
+ body: {
+ ...validation.data,
+ companyId,
+ userId
+ }
+ });
+
+ if (result.error) {
+ return data(
+ {},
+ await flash(request, error(result.error, "Failed to trigger rework"))
+ );
+ }
+
+ // Trigger quantity recalculation
+ await serviceRole.functions.invoke("recalculate", {
+ body: {
+ type: "jobRequirements",
+ id: validation.data.jobId,
+ companyId,
+ userId
+ }
+ });
+
+ return data(
+ result.data,
+ await flash(request, success("Rework triggered successfully"))
+ );
+}
diff --git a/apps/mes/app/services/models.ts b/apps/mes/app/services/models.ts
index 1b32593f9a..b2086ff00a 100644
--- a/apps/mes/app/services/models.ts
+++ b/apps/mes/app/services/models.ts
@@ -163,6 +163,19 @@ export const scrapQuantityValidator = baseQuantityValidator.extend({
notes: zfd.text(z.string().optional())
});
+export const triggerReworkValidator = z.object({
+ jobId: z.string().min(1),
+ triggeredAtJobOperationId: z.string().min(1),
+ targetJobOperationId: z
+ .string()
+ .min(1, { message: "Target operation is required" }),
+ reason: z.string().min(1, { message: "Reason is required" }),
+ quantity: zfd.numeric(
+ z.number().positive({ message: "Quantity must be greater than 0" })
+ ),
+ trackedEntityId: zfd.text(z.string().optional())
+});
+
export const maintenanceDispatchValidator = z.object({
workCenterId: z.string().min(1, { message: "Work Center is required" }),
priority: z.enum(maintenanceDispatchPriority, {
diff --git a/apps/mes/app/services/operations.service.ts b/apps/mes/app/services/operations.service.ts
index dfb4ce21fe..69dc770914 100644
--- a/apps/mes/app/services/operations.service.ts
+++ b/apps/mes/app/services/operations.service.ts
@@ -82,6 +82,55 @@ export async function getJobOperationDependencies(
.eq("jobId", jobId);
}
+export async function getUpstreamOperations(
+ client: SupabaseClient<Database>,
+ operationId: string
+) {
+ const operation = await client
+ .from("jobOperation")
+ .select("jobId")
+ .eq("id", operationId)
+ .single();
+
+ if (operation.error) return { data: [], error: operation.error };
+
+ const deps = await client
+ .from("jobOperationDependency")
+ .select("operationId, dependsOnId")
+ .eq("jobId", operation.data.jobId);
+
+ if (deps.error) return { data: [], error: deps.error };
+
+ // Build adjacency list: operationId → [operations it depends on]
+ const dependsOn = new Map<string, string[]>();
+ for (const dep of deps.data) {
+ const existing = dependsOn.get(dep.operationId) ?? [];
+ existing.push(dep.dependsOnId);
+ dependsOn.set(dep.operationId, existing);
+ }
+
+ // BFS backwards from operationId to find all ancestors
+ const ancestors = new Set<string>();
+ const queue: string[] = [...(dependsOn.get(operationId) ?? [])];
+ while (queue.length > 0) {
+ const current = queue.shift()!;
+ if (ancestors.has(current)) continue;
+ ancestors.add(current);
+ for (const predecessor of dependsOn.get(current) ?? []) {
+ queue.push(predecessor);
+ }
+ }
+
+ if (ancestors.size === 0) return { data: [], error: null };
+
+ return client
+ .from("jobOperation")
+ .select("id, processId, description, order, status, reworkId")
+ .in("id", Array.from(ancestors))
+ .is("reworkId", null)
+ .order("order", { ascending: true });
+}
+
export async function deleteAttributeRecord(
client: SupabaseClient<Database>,
args: { id: string; companyId: string; userId: string }
diff --git a/apps/mes/app/utils/path.ts b/apps/mes/app/utils/path.ts
index ede3f55374..ce2102e8c1 100644
--- a/apps/mes/app/utils/path.ts
+++ b/apps/mes/app/utils/path.ts
@@ -136,6 +136,9 @@ export const path = {
refreshSession: "/refresh-session",
requestAccess: "/request-access",
rework: `${x}/rework`,
+ reworkTargets: (operationId: string) =>
+ generatePath(`${x}/rework-targets/${operationId}`),
+ triggerRework: `${x}/trigger-rework`,
root: "/",
scrap: `${x}/scrap`,
scrapReasons: `${api}/scrap-reasons`,
diff --git a/llm/tasks/todo.md b/llm/tasks/todo.md
index f8d2457e18..16f8dbfd8b 100644
--- a/llm/tasks/todo.md
+++ b/llm/tasks/todo.md
@@ -1,219 +1,14 @@
-# MTO Shipment COGS Recognition
+# Rework Feature Implementation
-> **For agentic workers:** Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
+Plan: `llm/tasks/rework-plan.md`
+Design: `llm/tasks/rework-design.md`
-**Goal:** Make MTO (Make-to-Order) shipment posting recognize COGS from the job by routing MTO jobs through `complete_job_to_inventory()` and removing the `continue` statements that skip GL/inventory posting in `post-shipment`.
+## Tasks
-**Architecture:** Unify MTO and MTS job completion paths so both call `complete_job_to_inventory()`. This creates cost layers in `costLedger` and itemLedger entries for the finished good. Then remove the `continue` statements in `post-shipment/index.ts` so MTO shipment lines go through the same COGS/inventory posting as regular lines.
-
-**Tech Stack:** PostgreSQL (PL/pgSQL migrations), TypeScript (Deno edge functions)
-
----
-
-### Task 1: New migration — unify `sync_finish_job_operation` for MTO and MTS
-
-**Files:**
-- Create: `packages/database/supabase/migrations/20260512120000_mto-shipment-cogs.sql`
-
-The current `sync_finish_job_operation` trigger (defined in `20260511120000_backflush-job-materials.sql:860-935`) branches on `v_sales_order_id IS NOT NULL`. MTO jobs only call `backflush_job_materials()`, while MTS jobs call `complete_job_to_inventory()` (which internally calls `backflush_job_materials()`). We need MTO to also call `complete_job_to_inventory()`.
-
-- [ ] **Step 1: Write the migration**
-
-```sql
--- Unify MTO and MTS job completion: both now call complete_job_to_inventory
--- Previously, MTO jobs only called backflush_job_materials(), skipping
--- cost layer creation. This meant shipment posting had no cost layers
--- to consume for COGS.
-
-CREATE OR REPLACE FUNCTION sync_finish_job_operation(
- p_new JSONB,
- p_old JSONB,
- p_operation TEXT
-)
-RETURNS VOID
-LANGUAGE plpgsql
-SECURITY DEFINER
-SET search_path = public
-AS $$
-DECLARE
- v_job_location_id TEXT;
- v_job_storage_unit_id TEXT;
- v_job_quantity NUMERIC;
- v_sales_order_id TEXT;
- v_quantity_complete NUMERIC;
- v_job_status TEXT;
-BEGIN
- IF p_operation != 'UPDATE' THEN RETURN; END IF;
- IF (p_new->>'status') != 'Done' OR (p_old->>'status') = 'Done' THEN RETURN; END IF;
-
- -- Close all open production events for this operation
- UPDATE "productionEvent"
- SET "endTime" = NOW()
- WHERE "jobOperationId" = p_new->>'id'
- AND "endTime" IS NULL;
-
- -- Unlock dependent operations whose dependencies are now all done
- UPDATE "jobOperation" op
- SET status = 'Ready'
- WHERE EXISTS (
- SELECT 1
- FROM "jobOperationDependency" dep
- WHERE dep."operationId" = op.id
- AND dep."dependsOnId" = p_new->>'id'
- AND op.status = 'Waiting'
- )
- AND NOT EXISTS (
- SELECT 1
- FROM "jobOperationDependency" dep2
- JOIN "jobOperation" jo2 ON jo2.id = dep2."dependsOnId"
- WHERE dep2."operationId" = op.id
- AND jo2.status != 'Done'
- AND jo2.id != p_new->>'id'
- );
-
- -- Only complete the job if it is in an active state (has been released/started)
- SELECT status INTO v_job_status FROM "job" WHERE id = p_new->>'jobId';
- IF v_job_status NOT IN ('Ready', 'In Progress', 'Paused') THEN
- RETURN;
- END IF;
-
- -- If this is the last operation, mark the job as Completed
- IF is_last_job_operation(p_new->>'id') THEN
- SELECT "locationId", "storageUnitId", quantity, "salesOrderId"
- INTO v_job_location_id, v_job_storage_unit_id, v_job_quantity, v_sales_order_id
- FROM "job"
- WHERE id = p_new->>'jobId';
-
- v_quantity_complete := CASE
- WHEN COALESCE((p_new->>'quantityComplete')::NUMERIC, 0) = 0 THEN v_job_quantity
- ELSE (p_new->>'quantityComplete')::NUMERIC
- END;
-
- PERFORM complete_job_to_inventory(
- p_job_id := p_new->>'jobId',
- p_quantity_complete := v_quantity_complete,
- p_storage_unit_id := v_job_storage_unit_id,
- p_location_id := v_job_location_id,
- p_company_id := p_new->>'companyId',
- p_user_id := p_new->>'updatedBy'
- );
- END IF;
-END;
-$$;
-```
-
-- [ ] **Step 2: Verify migration syntax**
-
-Run: `cd /Users/barbinbrad/Code/carbon && grep -c "CREATE OR REPLACE FUNCTION sync_finish_job_operation" packages/database/supabase/migrations/20260512120000_mto-shipment-cogs.sql`
-Expected: `1`
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/migrations/20260512120000_mto-shipment-cogs.sql
-git commit -m "feat: unify MTO/MTS job completion to both call complete_job_to_inventory
-
-Previously MTO jobs only called backflush_job_materials(), skipping cost
-layer creation in costLedger. This meant shipment posting had no cost
-layers to consume for COGS recognition.
-
-Co-Authored-By: Claude Opus 4.6 <[email protected]>"
-```
-
----
-
-### Task 2: Remove `continue` in post-shipment posting flow
-
-**Files:**
-- Modify: `packages/database/supabase/functions/post-shipment/index.ts:322`
-
-The `continue` on line 322 causes MTO shipment lines (fulfillment type "Job") to skip all downstream processing: itemLedger creation, COGS journal entries, cost layer consumption. After Task 1, MTO finished goods will have proper cost layers, so we can let them flow through the normal COGS path.
-
-- [ ] **Step 1: Remove the `continue` statement**
-
-In `packages/database/supabase/functions/post-shipment/index.ts`, delete line 322 (`continue;`). The job update block (lines 215-321) should still run, but then fall through to the itemLedger/COGS code below instead of skipping it.
-
-The change is deleting this single line:
-```typescript
- // BEFORE (line 322):
- continue;
-```
-
-After the closing brace of the job update block on line 321 (`}`), the code should fall through to line 325 (`const itemTrackingType = ...`).
-
-- [ ] **Step 2: Verify the change**
-
-Run: `grep -n "continue;" packages/database/supabase/functions/post-shipment/index.ts | head -5`
-
-The `continue` that was on line 322 should no longer appear in the posting section (lines 210-460). There may still be a `continue` in the void section — that's Task 3.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-shipment/index.ts
-git commit -m "feat: enable COGS posting for MTO shipment lines
-
-Remove continue statement that skipped itemLedger, COGS journal entries,
-and cost layer consumption for job-fulfilled shipment lines.
-
-Co-Authored-By: Claude Opus 4.6 <[email protected]>"
-```
-
----
-
-### Task 3: Remove `continue` in post-shipment void flow
-
-**Files:**
-- Modify: `packages/database/supabase/functions/post-shipment/index.ts:1753`
-
-The void flow has the same issue: MTO shipment lines skip inventory restoration and COGS reversal journal entries.
-
-- [ ] **Step 1: Remove the `continue` statement in the void section**
-
-In `packages/database/supabase/functions/post-shipment/index.ts`, delete the `continue;` on line 1753 (this line number may have shifted by -1 after Task 2). It's inside the void flow's job update block, after `jobUpdates[jobId] = { ... }` on line 1747-1751.
-
-The change is deleting this single line:
-```typescript
- // BEFORE (line 1753, or 1752 after Task 2):
- continue;
-```
-
-After removing it, the void flow will fall through to create positive adjustment itemLedger entries (restoring inventory), batch/serial tracking restoration, and COGS reversal journal entries for MTO lines.
-
-- [ ] **Step 2: Verify the change**
-
-Run: `grep -n "continue;" packages/database/supabase/functions/post-shipment/index.ts`
-
-There should be no `continue` statements remaining inside either the post or void shipment line loops related to job fulfillment.
-
-- [ ] **Step 3: Commit**
-
-```bash
-git add packages/database/supabase/functions/post-shipment/index.ts
-git commit -m "feat: enable COGS reversal for voided MTO shipments
-
-Remove continue statement that skipped inventory restoration and COGS
-reversal journal entries for job-fulfilled shipment lines during void.
-
-Co-Authored-By: Claude Opus 4.6 <[email protected]>"
-```
-
----
-
-## Review
-
-After all three tasks, verify:
-
-- [ ] `sync_finish_job_operation` no longer branches on `salesOrderId` — both MTO and MTS call `complete_job_to_inventory()`
-- [ ] `complete_job_to_inventory()` calls `backflush_job_materials()` internally (line 513 of 20260511 migration), so no double-backflush
-- [ ] Post-shipment posting flow: MTO lines create itemLedger entries, COGS journal entries, and consume cost layers
-- [ ] Post-shipment void flow: MTO lines create reversal itemLedger entries and COGS reversal journal entries
-- [ ] Job quantity tracking (quantityShipped, quantityComplete, status) still works — that code runs before the removed `continue`
-
-## Notes
-
-- Migration file: `packages/database/supabase/migrations/20260512120000_mto-shipment-cogs.sql`
-- Edge function: `packages/database/supabase/functions/post-shipment/index.ts`
-- `complete_job_to_inventory` is defined in `20260511120000_backflush-job-materials.sql:342-837`
-- `backflush_job_materials` is defined in `20260511120000_backflush-job-materials.sql:1-340`
-- `calculateCOGS` is at `packages/database/supabase/functions/shared/calculate-cogs.ts`
+- [x] Task 1: Database Migration — rework table, reworkId on jobOperation, views, RLS, completion trigger
+- [x] Task 2: Trigger Rework Edge Function — path resolution, clone ops, wire DAG, trigger reschedule
+- [x] Task 3: Upstream Operations Service + API Route — getUpstreamOperations(), rework-targets loader
+- [x] Task 4: MES Trigger Rework Action Route — validator + action calling edge function
+- [ ] Task 5: ReworkModal Component — modal with target picker, reason, quantity
+- [x] Task 6: Wire ReworkModal into JobOperation — replace QuantityModal for rework
+- [ ] Task 7: Manual Testing — verify full rework flow end-to-end
diff --git a/packages/database/supabase/functions/trigger-rework/index.ts b/packages/database/supabase/functions/trigger-rework/index.ts
new file mode 100644
index 0000000000..7d7d1e620e
--- /dev/null
+++ b/packages/database/supabase/functions/trigger-rework/index.ts
@@ -0,0 +1,399 @@
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+import type { Transaction } from "kysely";
+import { getConnectionPool, getDatabaseClient } from "../lib/database.ts";
+import { corsHeaders } from "../lib/headers.ts";
+import type { DB } from "../lib/types.ts";
+
+const pool = getConnectionPool(1);
+const db = getDatabaseClient<DB>(pool);
+
+interface TriggerReworkRequest {
+ jobId: string;
+ triggeredAtJobOperationId: string;
+ targetJobOperationId: string;
+ reason: string;
+ quantity: number;
+ trackedEntityId?: string;
+ companyId: string;
+ userId: string;
+}
+
+/**
+ * Finds the shortest path from targetOperationId to triggeredAtOperationId
+ * by walking backwards through the DAG from triggeredAt.
+ * Returns operations in forward order (target → ... → triggeredAt).
+ */
+async function findReworkPath(
+ trx: Transaction<DB>,
+ jobId: string,
+ targetOperationId: string,
+ triggeredAtOperationId: string
+): Promise<string[]> {
+ const dependencies = await trx
+ .selectFrom("jobOperationDependency")
+ .select(["operationId", "dependsOnId"])
+ .where("jobId", "=", jobId)
+ .execute();
+
+ // Build adjacency list: operationId → [operations it depends on]
+ const dependsOn = new Map<string, string[]>();
+ for (const dep of dependencies) {
+ const existing = dependsOn.get(dep.operationId) ?? [];
+ existing.push(dep.dependsOnId);
+ dependsOn.set(dep.operationId, existing);
+ }
+
+ // BFS backwards from triggeredAt to find target
+ const visited = new Set<string>();
+ const parent = new Map<string, string>();
+ const queue: string[] = [triggeredAtOperationId];
+ visited.add(triggeredAtOperationId);
+
+ while (queue.length > 0) {
+ const current = queue.shift()!;
+ if (current === targetOperationId) break;
+
+ for (const predecessor of dependsOn.get(current) ?? []) {
+ if (!visited.has(predecessor)) {
+ visited.add(predecessor);
+ parent.set(predecessor, current);
+ queue.push(predecessor);
+ }
+ }
+ }
+
+ if (!visited.has(targetOperationId)) {
+ throw new Error(
+ `No path found from target operation ${targetOperationId} to triggered operation ${triggeredAtOperationId}`
+ );
+ }
+
+ // Trace path from target back to triggeredAt (forward order)
+ const path: string[] = [];
+ let current = targetOperationId;
+ while (current !== triggeredAtOperationId) {
+ path.push(current);
+ current = parent.get(current)!;
+ }
+ path.push(triggeredAtOperationId);
+
+ return path;
+}
+
+async function triggerRework(
+ trx: Transaction<DB>,
+ body: TriggerReworkRequest
+) {
+ const {
+ jobId,
+ triggeredAtJobOperationId,
+ targetJobOperationId,
+ reason,
+ quantity,
+ trackedEntityId,
+ companyId,
+ userId,
+ } = body;
+
+ // 1. Find the path of operations to clone
+ const operationPath = await findReworkPath(
+ trx,
+ jobId,
+ targetJobOperationId,
+ triggeredAtJobOperationId
+ );
+
+ console.info(
+ `📋 Rework path: ${operationPath.length} operations to clone`
+ );
+
+ // 2. Create the rework record
+ // @ts-expect-error - rework table not in generated types until migration is applied
+ const [rework] = await trx
+ .insertInto("rework")
+ .values({
+ jobId,
+ triggeredAtJobOperationId,
+ targetJobOperationId,
+ reason,
+ quantity,
+ trackedEntityId: trackedEntityId ?? null,
+ requestedById: userId,
+ companyId,
+ })
+ .returning(["id"])
+ .execute();
+
+ // 3. Fetch the source operations to clone
+ const sourceOperations = await trx
+ .selectFrom("jobOperation")
+ .selectAll()
+ .where("id", "in", operationPath)
+ .execute();
+
+ // Sort by path order
+ const pathIndex = new Map(operationPath.map((id, i) => [id, i]));
+ sourceOperations.sort(
+ (a, b) => (pathIndex.get(a.id) ?? 0) - (pathIndex.get(b.id) ?? 0)
+ );
+
+ // 4. Clone operations
+ const clonedOperationIds: string[] = [];
+ const sourceToCloneMap = new Map<string, string>();
+
+ for (const sourceOp of sourceOperations) {
+ const [clonedOp] = await trx
+ .insertInto("jobOperation")
+ .values({
+ jobId: sourceOp.jobId,
+ jobMakeMethodId: sourceOp.jobMakeMethodId,
+ order: sourceOp.order,
+ processId: sourceOp.processId,
+ workCenterId: sourceOp.workCenterId,
+ description: sourceOp.description,
+ setupTime: sourceOp.setupTime,
+ setupUnit: sourceOp.setupUnit,
+ laborTime: sourceOp.laborTime,
+ laborUnit: sourceOp.laborUnit,
+ machineTime: sourceOp.machineTime,
+ machineUnit: sourceOp.machineUnit,
+ operationOrder: sourceOp.operationOrder,
+ laborRate: sourceOp.laborRate,
+ overheadRate: sourceOp.overheadRate,
+ machineRate: sourceOp.machineRate,
+ operationType: sourceOp.operationType,
+ operationMinimumCost: sourceOp.operationMinimumCost,
+ operationLeadTime: sourceOp.operationLeadTime,
+ operationUnitCost: sourceOp.operationUnitCost,
+ operationSupplierProcessId: sourceOp.operationSupplierProcessId,
+ workInstruction: sourceOp.workInstruction,
+ procedureId: sourceOp.procedureId,
+ operationQuantity: quantity,
+ tags: sourceOp.tags,
+ companyId,
+ createdBy: userId,
+ // @ts-expect-error - reworkId not in generated types until migration is applied
+ reworkId: rework.id,
+ status: "Waiting",
+ customFields: sourceOp.customFields,
+ })
+ .returning(["id"])
+ .execute();
+
+ clonedOperationIds.push(clonedOp.id);
+ sourceToCloneMap.set(sourceOp.id, clonedOp.id);
+ }
+
+ console.info(`🔧 Cloned ${clonedOperationIds.length} operations`);
+
+ // 5. Clone steps, tools, and parameters for each operation
+ for (const sourceOp of sourceOperations) {
+ const cloneId = sourceToCloneMap.get(sourceOp.id)!;
+
+ // Clone steps
+ const steps = await trx
+ .selectFrom("jobOperationStep")
+ .selectAll()
+ .where("operationId", "=", sourceOp.id)
+ .execute();
+
+ if (steps.length > 0) {
+ await trx
+ .insertInto("jobOperationStep")
+ .values(
+ steps.map(
+ ({
+ id: _id,
+ operationId: _opId,
+ createdAt: _ca,
+ updatedAt: _ua,
+ updatedBy: _ub,
+ ...step
+ }) => ({
+ ...step,
+ operationId: cloneId,
+ createdBy: userId,
+ })
+ )
+ )
+ .execute();
+ }
+
+ // Clone tools
+ const tools = await trx
+ .selectFrom("jobOperationTool")
+ .selectAll()
+ .where("operationId", "=", sourceOp.id)
+ .execute();
+
+ if (tools.length > 0) {
+ await trx
+ .insertInto("jobOperationTool")
+ .values(
+ tools.map((tool) => ({
+ toolId: tool.toolId,
+ quantity: tool.quantity,
+ operationId: cloneId,
+ companyId,
+ createdBy: userId,
+ }))
+ )
+ .execute();
+ }
+
+ // Clone parameters
+ const params = await trx
+ .selectFrom("jobOperationParameter")
+ .selectAll()
+ .where("operationId", "=", sourceOp.id)
+ .execute();
+
+ if (params.length > 0) {
+ await trx
+ .insertInto("jobOperationParameter")
+ .values(
+ params.map((param) => ({
+ key: param.key,
+ value: param.value,
+ operationId: cloneId,
+ companyId,
+ createdBy: userId,
+ }))
+ )
+ .execute();
+ }
+ }
+
+ // 6. Wire the rework operations into the DAG
+
+ // 6a. First rework op depends on the trigger operation
+ await trx
+ .insertInto("jobOperationDependency")
+ .values({
+ operationId: clonedOperationIds[0],
+ dependsOnId: triggeredAtJobOperationId,
+ jobId,
+ companyId,
+ })
+ .execute();
+
+ // 6b. Each subsequent rework op depends on the previous
+ for (let i = 1; i < clonedOperationIds.length; i++) {
+ await trx
+ .insertInto("jobOperationDependency")
+ .values({
+ operationId: clonedOperationIds[i],
+ dependsOnId: clonedOperationIds[i - 1],
+ jobId,
+ companyId,
+ })
+ .execute();
+ }
+
+ // 6c. Rewire downstream operations
+ const downstreamDeps = await trx
+ .selectFrom("jobOperationDependency")
+ .select(["operationId", "dependsOnId"])
+ .where("dependsOnId", "=", triggeredAtJobOperationId)
+ .where("operationId", "not in", clonedOperationIds)
+ .execute();
+
+ const lastReworkOpId = clonedOperationIds[clonedOperationIds.length - 1];
+
+ for (const dep of downstreamDeps) {
+ await trx
+ .deleteFrom("jobOperationDependency")
+ .where("operationId", "=", dep.operationId)
+ .where("dependsOnId", "=", triggeredAtJobOperationId)
+ .execute();
+
+ await trx
+ .insertInto("jobOperationDependency")
+ .values({
+ operationId: dep.operationId,
+ dependsOnId: lastReworkOpId,
+ jobId,
+ companyId,
+ })
+ .execute();
+ }
+
+ console.info(`🔗 DAG wired with ${downstreamDeps.length} downstream deps rewired`);
+
+ // 7. Record a productionQuantity entry for the rework
+ await trx
+ .insertInto("productionQuantity")
+ .values({
+ jobOperationId: triggeredAtJobOperationId,
+ type: "Rework",
+ quantity,
+ companyId,
+ createdBy: userId,
+ })
+ .execute();
+
+ return {
+ reworkId: rework.id,
+ clonedOperationIds,
+ operationsCloned: clonedOperationIds.length,
+ };
+}
+
+// Main handler
+serve(async (req) => {
+ if (req.method === "OPTIONS") {
+ return new Response("ok", { headers: corsHeaders });
+ }
+
+ try {
+ const body: TriggerReworkRequest = await req.json();
+
+ console.info(
+ `🔰 Starting rework for job ${body.jobId}: go back to ${body.targetJobOperationId} from ${body.triggeredAtJobOperationId}`
+ );
+
+ const result = await db.transaction().execute(async (trx) => {
+ return await triggerRework(trx, body);
+ });
+
+ // Trigger reschedule for date/priority recalculation (after transaction)
+ try {
+ const supabaseUrl = Deno.env.get("SUPABASE_URL");
+ const serviceRoleKey = Deno.env.get("SUPABASE_SERVICE_ROLE_KEY");
+ await fetch(`${supabaseUrl}/functions/v1/reschedule`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ Authorization: `Bearer ${serviceRoleKey}`,
+ },
+ body: JSON.stringify({
+ jobId: body.jobId,
+ companyId: body.companyId,
+ userId: body.userId,
+ }),
+ });
+ } catch (err) {
+ console.error("Failed to trigger reschedule after rework:", err);
+ }
+
+ return new Response(JSON.stringify({ success: true, ...result }), {
+ headers: { ...corsHeaders, "Content-Type": "application/json" },
+ });
+ } catch (error) {
+ console.error(
+ `❌ Rework failed: ${
+ error instanceof Error ? error.message : String(error)
+ }`
+ );
+ return new Response(
+ JSON.stringify({
+ success: false,
+ message: error instanceof Error ? error.message : String(error),
+ }),
+ {
+ status: 500,
+ headers: { ...corsHeaders, "Content-Type": "application/json" },
+ }
+ );
+ }
+});
diff --git a/packages/database/supabase/migrations/20260527142837_rework.sql b/packages/database/supabase/migrations/20260527142837_rework.sql
new file mode 100644
index 0000000000..73711d4971
--- /dev/null
+++ b/packages/database/supabase/migrations/20260527142837_rework.sql
@@ -0,0 +1,119 @@
+-- 1. Create the rework table
+CREATE TABLE "rework" (
+ "id" TEXT NOT NULL DEFAULT xid(),
+ "jobId" TEXT NOT NULL,
+ "triggeredAtJobOperationId" TEXT NOT NULL,
+ "targetJobOperationId" TEXT NOT NULL,
+ "reason" TEXT NOT NULL,
+ "quantity" NUMERIC(10,4) NOT NULL,
+ "trackedEntityId" TEXT,
+ "requestedById" TEXT NOT NULL,
+ "completedAt" TIMESTAMP WITH TIME ZONE,
+ "companyId" TEXT NOT NULL,
+ "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
+ "updatedAt" TIMESTAMP WITH TIME ZONE,
+
+ CONSTRAINT "rework_pkey" PRIMARY KEY ("id"),
+ CONSTRAINT "rework_jobId_fkey" FOREIGN KEY ("jobId") REFERENCES "job"("id") ON DELETE CASCADE ON UPDATE CASCADE,
+ CONSTRAINT "rework_triggeredAtJobOperationId_fkey" FOREIGN KEY ("triggeredAtJobOperationId") REFERENCES "jobOperation"("id") ON DELETE CASCADE,
+ CONSTRAINT "rework_targetJobOperationId_fkey" FOREIGN KEY ("targetJobOperationId") REFERENCES "jobOperation"("id") ON DELETE CASCADE,
+ CONSTRAINT "rework_trackedEntityId_fkey" FOREIGN KEY ("trackedEntityId") REFERENCES "trackedEntity"("id") ON DELETE SET NULL,
+ CONSTRAINT "rework_requestedById_fkey" FOREIGN KEY ("requestedById") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE,
+ CONSTRAINT "rework_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE ON UPDATE CASCADE
+);
+
+CREATE INDEX "rework_jobId_idx" ON "rework"("jobId");
+CREATE INDEX "rework_companyId_idx" ON "rework"("companyId");
+
+-- 2. RLS policies for rework
+ALTER TABLE "rework" ENABLE ROW LEVEL SECURITY;
+
+CREATE POLICY "SELECT" ON "rework"
+ FOR SELECT
+ USING (
+ has_role('employee', "companyId")
+ AND "companyId" = ANY(
+ SELECT "companyId" FROM "userToCompany" WHERE "userId" = auth.uid()::text
+ )
+ );
+
+CREATE POLICY "INSERT" ON "rework"
+ FOR INSERT
+ WITH CHECK (
+ has_role('employee', "companyId")
+ AND "companyId" = ANY(
+ SELECT "companyId" FROM "userToCompany" WHERE "userId" = auth.uid()::text
+ )
+ );
+
+CREATE POLICY "UPDATE" ON "rework"
+ FOR UPDATE
+ USING (
+ has_role('employee', "companyId")
+ AND has_company_permission('production_update', "companyId")
+ );
+
+-- 3. Drop views that use jo.* before altering jobOperation
+DROP VIEW IF EXISTS "jobOperationsWithDependencies";
+DROP VIEW IF EXISTS "jobOperationsWithMakeMethods";
+
+-- 4. Add reworkId column to jobOperation
+ALTER TABLE "jobOperation" ADD COLUMN "reworkId" TEXT;
+ALTER TABLE "jobOperation" ADD CONSTRAINT "jobOperation_reworkId_fkey"
+ FOREIGN KEY ("reworkId") REFERENCES "rework"("id") ON DELETE SET NULL;
+
+CREATE INDEX "jobOperation_reworkId_idx" ON "jobOperation"("reworkId");
+
+-- 5. Recreate views with the new column included
+CREATE OR REPLACE VIEW "jobOperationsWithMakeMethods" WITH(SECURITY_INVOKER=true) AS
+ SELECT
+ mm.id AS "makeMethodId",
+ jo.*
+ FROM "jobOperation" jo
+ INNER JOIN "jobMakeMethod" jmm
+ ON jo."jobMakeMethodId" = jmm.id
+ LEFT JOIN "makeMethod" mm
+ ON jmm."itemId" = mm."itemId" AND jmm."version" = mm."version";
+
+CREATE VIEW "jobOperationsWithDependencies"
+WITH (security_invoker = true)
+AS
+SELECT
+ jo.*,
+ COALESCE(
+ (
+ SELECT array_agg(jod."dependsOnId")
+ FROM "jobOperationDependency" jod
+ WHERE jod."operationId" = jo.id
+ ),
+ '{}'::text[]
+ ) AS "dependencies"
+FROM "jobOperation" jo;
+
+-- 6. Trigger to mark rework as complete when all its operations are done
+CREATE OR REPLACE FUNCTION complete_rework_on_operation_done()
+RETURNS TRIGGER AS $$
+BEGIN
+ IF NEW.status = 'Done' AND NEW."reworkId" IS NOT NULL THEN
+ IF NOT EXISTS (
+ SELECT 1
+ FROM "jobOperation"
+ WHERE "reworkId" = NEW."reworkId"
+ AND "id" != NEW."id"
+ AND "status" != 'Done'
+ ) THEN
+ UPDATE "rework"
+ SET "completedAt" = NOW(), "updatedAt" = NOW()
+ WHERE "id" = NEW."reworkId"
+ AND "completedAt" IS NULL;
+ END IF;
+ END IF;
+ RETURN NEW;
+END;
+$$ LANGUAGE plpgsql SECURITY DEFINER;
+
+CREATE TRIGGER complete_rework_trigger
+AFTER UPDATE OF "status" ON "jobOperation"
+FOR EACH ROW
+WHEN (NEW.status = 'Done')
+EXECUTE FUNCTION complete_rework_on_operation_done();
diff --git a/packages/form/src/components/DateTimePicker.tsx b/packages/form/src/components/DateTimePicker.tsx
index 99307bc789..dab0bb3431 100644
--- a/packages/form/src/components/DateTimePicker.tsx
+++ b/packages/form/src/components/DateTimePicker.tsx
@@ -22,6 +22,7 @@ import { useFormStateContext } from "../internal/formStateContext";
type DateTimePickerProps = {
name: string;
label?: string;
+ size?: "sm" | "md" | "lg";
isDisabled?: boolean;
minValue?: CalendarDateTime;
maxValue?: CalendarDateTime;
@@ -33,6 +34,7 @@ type DateTimePickerProps = {
const DateTimePicker = ({
name,
label,
+ size,
isDisabled: isDisabledProp = false,
minValue,
maxValue,
@@ -97,6 +99,7 @@ const DateTimePicker = ({
value={date}
onChange={handleChange as any}
isDisabled={isDisabled}
+ size={size}
minValue={minValue}
maxValue={maxValue}
inline={inline ? DateTimePickerPreview : undefined}
diff --git a/packages/form/src/components/NumberControlled.tsx b/packages/form/src/components/NumberControlled.tsx
index 9e22613888..ee243e880e 100644
--- a/packages/form/src/components/NumberControlled.tsx
+++ b/packages/form/src/components/NumberControlled.tsx
@@ -29,6 +29,7 @@ import { useFormStateContext } from "../internal/formStateContext";
type FormNumberProps = NumberFieldProps & {
name: string;
label?: ReactNode;
+ size?: "sm" | "md" | "lg";
isOptional?: boolean;
isRequired?: boolean;
helperText?: string;
@@ -44,6 +45,7 @@ const Number = forwardRef<HTMLInputElement, FormNumberProps>(
{
name,
label,
+ size,
isConfigured,
isOptional,
isRequired,
@@ -154,7 +156,11 @@ const Number = forwardRef<HTMLInputElement, FormNumberProps>(
}}
>
<NumberInputGroup className="relative">
- <NumberInput isReadOnly={isReadOnly} isDisabled={isDisabled} />
+ <NumberInput
+ isReadOnly={isReadOnly}
+ isDisabled={isDisabled}
+ size={size}
+ />
{!isReadOnly && (
<NumberInputStepper>
<NumberIncrementStepper>
diff --git a/packages/form/src/components/Textarea.tsx b/packages/form/src/components/Textarea.tsx
index 3996897479..72691a9fd0 100644
--- a/packages/form/src/components/Textarea.tsx
+++ b/packages/form/src/components/Textarea.tsx
@@ -13,6 +13,7 @@ import { useFormStateContext } from "../internal/formStateContext";
type FormTextArea = TextareaProps & {
name: string;
label?: string;
+ size?: "sm" | "md" | "lg";
characterLimit?: number;
isRequired?: boolean;
isDisabled?: boolean;
@@ -23,6 +24,7 @@ const TextArea = forwardRef<HTMLTextAreaElement, FormTextArea>(
{
name,
label,
+ size,
characterLimit,
isRequired,
isDisabled: isDisabledProp,
@@ -61,6 +63,7 @@ const TextArea = forwardRef<HTMLTextAreaElement, FormTextArea>(
id: name,
...rest
})}
+ size={size}
maxLength={characterLimit}
onChange={onChange}
disabled={disabled}
diff --git a/packages/locale/locales/de/mes.po b/packages/locale/locales/de/mes.po
index ca60537aa7..21b116a566 100644
--- a/packages/locale/locales/de/mes.po
+++ b/packages/locale/locales/de/mes.po
@@ -73,9 +73,6 @@ msgstr "Ersatzteil hinzufügen"
msgid "All"
msgstr "Alle"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Möchten Sie diesen Arbeitsgang wirklich abschließen? Dadurch werden alle aktiven Produktionsereignisse für diesen Arbeitsgang beendet."
-
msgid "Are you sure you want to delete this step?"
msgstr "Möchten Sie diesen Schritt wirklich löschen?"
@@ -85,6 +82,9 @@ msgstr "Möchten Sie diese Zeitkarte wirklich löschen? Dies kann nicht rückgä
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Möchten Sie wirklich alle Produktionsereignisse beenden? Dadurch werden alle aktiven Arbeitsgänge beendet, ohne sie abzuschließen."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Möchten Sie diese Seite wirklich verlassen?"
@@ -165,19 +165,6 @@ msgstr "Ausstempeln"
msgid "Clocked in since {0}"
msgstr "Eingestempelt seit {0}"
-msgid "Close"
-msgstr "Schließen"
-
-msgid "Close Anyways"
-msgstr "Trotzdem schließen"
-
-msgid "Close Out"
-msgstr "Abschließen"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "{0} abschließen"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Problem erstellen"
msgid "Create Quality Issue"
msgstr "Qualitätsproblem erstellen"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Kunde"
@@ -258,6 +248,9 @@ msgstr "Zeitkarte löschen ({0})"
msgid "Describe the problem..."
msgstr "Beschreiben Sie das Problem..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Beschreibung"
@@ -357,9 +350,22 @@ msgstr "Dateien zum Auftrag und zur Anfragenposition."
msgid "Filter"
msgstr "Filter"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Vergessen auszustempeln?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Haben Sie ein technisches Problem? Kontaktieren Sie den <0>Carbon Support.</0>"
@@ -495,6 +501,9 @@ msgstr "Maximale Anzahl an Datensätzen erreicht"
msgid "Model"
msgstr "Modell"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Weitere Optionen"
@@ -698,6 +707,9 @@ msgstr "Menge"
msgid "Quantity must be greater than 0"
msgstr "Menge muss größer als 0 sein"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Zuletzt"
@@ -720,6 +732,12 @@ msgstr "Bestand entfernen"
msgid "Remove part"
msgstr "Teil entfernen"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Kundenauftrag"
@@ -735,6 +753,9 @@ msgstr "Seriennummer scannen oder eingeben"
msgid "Schedule"
msgstr "Zeitplan"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Ausschussgrund"
@@ -785,6 +806,9 @@ msgstr "Seriennummer {0} auswählen"
msgid "Select Serial Number"
msgstr "Seriennummer auswählen"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Senden"
diff --git a/packages/locale/locales/en/mes.po b/packages/locale/locales/en/mes.po
index 831da7d0b2..1fa4d8893e 100644
--- a/packages/locale/locales/en/mes.po
+++ b/packages/locale/locales/en/mes.po
@@ -73,9 +73,6 @@ msgstr "Add Spare Part"
msgid "All"
msgstr "All"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Are you sure you want to close out this operation? This will end all active production events for this operation."
-
msgid "Are you sure you want to delete this step?"
msgstr "Are you sure you want to delete this step?"
@@ -85,6 +82,9 @@ msgstr "Are you sure you want to delete this timecard? This cannot be undone."
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr "Are you sure you want to finish this operation? This will end all active production events for this operation."
+
msgid "Are you sure you want to leave this page?"
msgstr "Are you sure you want to leave this page?"
@@ -165,19 +165,6 @@ msgstr "Clock Out"
msgid "Clocked in since {0}"
msgstr "Clocked in since {0}"
-msgid "Close"
-msgstr "Close"
-
-msgid "Close Anyways"
-msgstr "Close Anyways"
-
-msgid "Close Out"
-msgstr "Close Out"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Close out {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Create Issue"
msgid "Create Quality Issue"
msgstr "Create Quality Issue"
+msgid "Create Rework"
+msgstr "Create Rework"
+
msgid "Customer"
msgstr "Customer"
@@ -258,6 +248,9 @@ msgstr "Delete Timecard ({0})"
msgid "Describe the problem..."
msgstr "Describe the problem..."
+msgid "Describe what needs to be reworked..."
+msgstr "Describe what needs to be reworked..."
+
msgid "Description"
msgstr "Description"
@@ -357,9 +350,22 @@ msgstr "Files related to the job and the opportunity line."
msgid "Filter"
msgstr "Filter"
+msgid "Finish"
+msgstr "Finish"
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr "Finish {0}"
+
+msgid "Finish Anyways"
+msgstr "Finish Anyways"
+
msgid "Forgot to Clock Out?"
msgstr "Forgot to Clock Out?"
+msgid "Go back to operation"
+msgstr "Go back to operation"
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Have a technical issue? Contact <0>Carbon Support.</0>"
@@ -495,6 +501,9 @@ msgstr "Maximum number of records reached"
msgid "Model"
msgstr "Model"
+msgid "More Actions"
+msgstr "More Actions"
+
msgid "More options"
msgstr "More options"
@@ -698,6 +707,9 @@ msgstr "Quantity"
msgid "Quantity must be greater than 0"
msgstr "Quantity must be greater than 0"
+msgid "Reason for rework"
+msgstr "Reason for rework"
+
msgid "Recent"
msgstr "Recent"
@@ -720,6 +732,12 @@ msgstr "Remove Inventory"
msgid "Remove part"
msgstr "Remove part"
+msgid "Rework"
+msgstr "Rework"
+
+msgid "Rework created successfully"
+msgstr "Rework created successfully"
+
msgid "Sales Order"
msgstr "Sales Order"
@@ -735,6 +753,9 @@ msgstr "Scan or enter serial number"
msgid "Schedule"
msgstr "Schedule"
+msgid "Scrap"
+msgstr "Scrap"
+
msgid "Scrap Reason"
msgstr "Scrap Reason"
@@ -785,6 +806,9 @@ msgstr "Select Serial {0}"
msgid "Select Serial Number"
msgstr "Select Serial Number"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr "Select the operation to go back to. All operations from that point to the current operation will be redone."
+
msgid "Send"
msgstr "Send"
diff --git a/packages/locale/locales/es/mes.po b/packages/locale/locales/es/mes.po
index 96ad6e6299..88f514c79a 100644
--- a/packages/locale/locales/es/mes.po
+++ b/packages/locale/locales/es/mes.po
@@ -73,9 +73,6 @@ msgstr "Agregar repuesto"
msgid "All"
msgstr "Todos"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "¿Está seguro de que desea cerrar esta operación? Esto finalizará todos los eventos de producción activos para esta operación."
-
msgid "Are you sure you want to delete this step?"
msgstr "¿Está seguro de que desea eliminar este paso?"
@@ -85,6 +82,9 @@ msgstr "¿Está seguro de que desea eliminar esta tarjeta de tiempo? Esta acció
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "¿Está seguro de que desea finalizar todos los eventos de producción? Esto terminará todas las operaciones activas sin completarlas ni finalizarlas."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "¿Estás seguro de que quieres salir de esta página?"
@@ -165,19 +165,6 @@ msgstr "Registrar salida"
msgid "Clocked in since {0}"
msgstr "Registrado desde {0}"
-msgid "Close"
-msgstr "Cerrar"
-
-msgid "Close Anyways"
-msgstr "Cerrar de todos modos"
-
-msgid "Close Out"
-msgstr "Cerrar"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Cerrar {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Crear Problema"
msgid "Create Quality Issue"
msgstr "Crear Problema de Calidad"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Cliente"
@@ -258,6 +248,9 @@ msgstr "Eliminar tarjeta de tiempo ({0})"
msgid "Describe the problem..."
msgstr "Describe el problema..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Descripción"
@@ -357,9 +350,22 @@ msgstr "Archivos relacionados con el trabajo y la línea de oportunidad."
msgid "Filter"
msgstr "Filtrar"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "¿Olvidó registrar la salida?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "¿Tiene un problema técnico? Contacte al <0>Soporte de Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Se alcanzó el número máximo de registros"
msgid "Model"
msgstr "Modelo"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Más opciones"
@@ -698,6 +707,9 @@ msgstr "Cantidad"
msgid "Quantity must be greater than 0"
msgstr "La cantidad debe ser mayor que 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Recientes"
@@ -720,6 +732,12 @@ msgstr "Eliminar inventario"
msgid "Remove part"
msgstr "Eliminar pieza"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Orden de venta"
@@ -735,6 +753,9 @@ msgstr "Escanee o ingrese el número de serie"
msgid "Schedule"
msgstr "Programación"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Motivo de desperdicio"
@@ -785,6 +806,9 @@ msgstr "Seleccionar serie {0}"
msgid "Select Serial Number"
msgstr "Seleccionar número de serie"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Enviar"
diff --git a/packages/locale/locales/fr/mes.po b/packages/locale/locales/fr/mes.po
index cdd5b7521c..6cbf54d203 100644
--- a/packages/locale/locales/fr/mes.po
+++ b/packages/locale/locales/fr/mes.po
@@ -73,9 +73,6 @@ msgstr "Ajouter une pièce de rechange"
msgid "All"
msgstr "Tout"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Êtes-vous sûr de vouloir clôturer cette opération ? Cela mettra fin à tous les événements de production actifs pour cette opération."
-
msgid "Are you sure you want to delete this step?"
msgstr "Êtes-vous sûr de vouloir supprimer cette étape ?"
@@ -85,6 +82,9 @@ msgstr "Êtes-vous sûr de vouloir supprimer cette fiche de temps ? Cette action
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Êtes-vous sûr de vouloir mettre fin à tous les événements de production ? Cela arrêtera toutes les opérations actives sans les terminer ni les achever."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Êtes-vous sûr de vouloir quitter cette page ?"
@@ -165,19 +165,6 @@ msgstr "Pointer la sortie"
msgid "Clocked in since {0}"
msgstr "Pointé depuis {0}"
-msgid "Close"
-msgstr "Fermer"
-
-msgid "Close Anyways"
-msgstr "Fermer quand même"
-
-msgid "Close Out"
-msgstr "Clôturer"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Clôturer {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Créer un problème"
msgid "Create Quality Issue"
msgstr "Créer un problème de qualité"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Client"
@@ -258,6 +248,9 @@ msgstr "Supprimer la fiche de temps ({0})"
msgid "Describe the problem..."
msgstr "Décrivez le problème..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Description"
@@ -357,9 +350,22 @@ msgstr "Fichiers liés à l'ordre de fabrication et à la ligne d'opportunité."
msgid "Filter"
msgstr "Filtre"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Oubli de pointer la sortie ?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Vous avez un problème technique ? Contactez le <0>Support Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Nombre maximum d'enregistrements atteint"
msgid "Model"
msgstr "Modèle"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Plus d'options"
@@ -698,6 +707,9 @@ msgstr "Quantité"
msgid "Quantity must be greater than 0"
msgstr "La quantité doit être supérieure à 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Récent"
@@ -720,6 +732,12 @@ msgstr "Retirer du stock"
msgid "Remove part"
msgstr "Retirer la pièce"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Commande client"
@@ -735,6 +753,9 @@ msgstr "Scanner ou saisir le numéro de série"
msgid "Schedule"
msgstr "Planification"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Motif de rebut"
@@ -785,6 +806,9 @@ msgstr "Sélectionner le numéro de série {0}"
msgid "Select Serial Number"
msgstr "Sélectionner le numéro de série"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Envoyer"
diff --git a/packages/locale/locales/hi/mes.po b/packages/locale/locales/hi/mes.po
index 23208e72d9..15939de6b6 100644
--- a/packages/locale/locales/hi/mes.po
+++ b/packages/locale/locales/hi/mes.po
@@ -73,9 +73,6 @@ msgstr "स्पेयर पार्ट जोड़ें"
msgid "All"
msgstr "सभी"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "क्या आप सुनिश्चित हैं कि आप इस ऑपरेशन को बंद करना चाहते हैं? यह इस ऑपरेशन के लिए सभी सक्रिय उत्पादन इवेंट को समाप्त कर देगा।"
-
msgid "Are you sure you want to delete this step?"
msgstr "क्या आप सुनिश्चित हैं कि आप इस चरण को हटाना चाहते हैं?"
@@ -85,6 +82,9 @@ msgstr "क्या आप सुनिश्चित हैं कि आप
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "क्या आप सुनिश्चित हैं कि आप सभी उत्पादन घटनाओं को समाप्त करना चाहते हैं? यह सभी सक्रिय संचालन को पूरा किए बिना या समाप्त किए बिना समाप्त कर देगा।"
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "क्या आप वाकई इस पृष्ठ को छोड़ना चाहते हैं?"
@@ -165,19 +165,6 @@ msgstr "घड़ी बंद करें"
msgid "Clocked in since {0}"
msgstr "Clocked in since {0}"
-msgid "Close"
-msgstr "बंद करें"
-
-msgid "Close Anyways"
-msgstr "वैसे भी बंद करें"
-
-msgid "Close Out"
-msgstr "बंद करें"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "{0} को बंद करें"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "समस्या बनाएं"
msgid "Create Quality Issue"
msgstr "गुणवत्ता समस्या बनाएं"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "ग्राहक"
@@ -258,6 +248,9 @@ msgstr "टाइमकार्ड हटाएं ({0})"
msgid "Describe the problem..."
msgstr "समस्या का वर्णन करें..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "विवरण"
@@ -357,9 +350,22 @@ msgstr "नौकरी और अवसर लाइन से संबंध
msgid "Filter"
msgstr "फ़िल्टर"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "घड़ी से बाहर निकलना भूल गए?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "क्या आपको कोई तकनीकी समस्या है? <0>Carbon Support</0> से संपर्क करें।"
@@ -495,6 +501,9 @@ msgstr "रिकॉर्ड की अधिकतम संख्या त
msgid "Model"
msgstr "मॉडल"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "अधिक विकल्प"
@@ -698,6 +707,9 @@ msgstr "मात्रा"
msgid "Quantity must be greater than 0"
msgstr "मात्रा 0 से अधिक होनी चाहिए"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "हाल ही में"
@@ -720,6 +732,12 @@ msgstr "इन्वेंटरी हटाएं"
msgid "Remove part"
msgstr "भाग हटाएं"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "बिक्रय आदेश"
@@ -735,6 +753,9 @@ msgstr "स्कैन करें या सीरियल नंबर द
msgid "Schedule"
msgstr "शेड्यूल"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "स्क्रैप कारण"
@@ -785,6 +806,9 @@ msgstr "सीरियल {0} चुनें"
msgid "Select Serial Number"
msgstr "सीरियल नंबर चुनें"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "भेजें"
diff --git a/packages/locale/locales/it/mes.po b/packages/locale/locales/it/mes.po
index f55972a4ad..46e101f1e5 100644
--- a/packages/locale/locales/it/mes.po
+++ b/packages/locale/locales/it/mes.po
@@ -73,9 +73,6 @@ msgstr "Aggiungi Ricambio"
msgid "All"
msgstr "Tutti"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Sei sicuro di voler chiudere questa operazione? Questo terminerà tutti gli eventi di produzione attivi per questa operazione."
-
msgid "Are you sure you want to delete this step?"
msgstr "Sei sicuro di voler eliminare questa fase?"
@@ -85,6 +82,9 @@ msgstr "Sei sicuro di voler eliminare questo cartellino? Questa azione non può
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Sei sicuro di voler terminare tutti gli eventi di produzione? Questo terminerà tutte le operazioni attive senza completarle o finalizzarle."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Sei sicuro di voler lasciare questa pagina?"
@@ -165,19 +165,6 @@ msgstr "Timbratura Uscita"
msgid "Clocked in since {0}"
msgstr "Timbrato in ingresso dalle {0}"
-msgid "Close"
-msgstr "Chiudi"
-
-msgid "Close Anyways"
-msgstr "Chiudi Comunque"
-
-msgid "Close Out"
-msgstr "Chiudi"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Chiudi {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Crea Problema"
msgid "Create Quality Issue"
msgstr "Crea Problema di Qualità"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Cliente"
@@ -258,6 +248,9 @@ msgstr "Elimina Cartellino ({0})"
msgid "Describe the problem..."
msgstr "Descrivi il problema..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Descrizione"
@@ -357,9 +350,22 @@ msgstr "File relativi al lavoro e alla riga dell'opportunità."
msgid "Filter"
msgstr "Filtro"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Hai dimenticato di timbrare l'uscita?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Hai un problema tecnico? Contatta il <0>Supporto Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Numero massimo di registrazioni raggiunto"
msgid "Model"
msgstr "Modello"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Altre opzioni"
@@ -698,6 +707,9 @@ msgstr "Quantità"
msgid "Quantity must be greater than 0"
msgstr "La quantità deve essere maggiore di 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Recenti"
@@ -720,6 +732,12 @@ msgstr "Rimuovi Inventario"
msgid "Remove part"
msgstr "Rimuovi componente"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Ordine di Vendita"
@@ -735,6 +753,9 @@ msgstr "Scansiona o inserisci il numero di serie"
msgid "Schedule"
msgstr "Pianificazione"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Motivo Scarto"
@@ -785,6 +806,9 @@ msgstr "Seleziona Seriale {0}"
msgid "Select Serial Number"
msgstr "Seleziona Numero di Serie"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Invia"
diff --git a/packages/locale/locales/ja/mes.po b/packages/locale/locales/ja/mes.po
index ff36698dbd..921d18dfb9 100644
--- a/packages/locale/locales/ja/mes.po
+++ b/packages/locale/locales/ja/mes.po
@@ -73,9 +73,6 @@ msgstr "スペアパーツを追加"
msgid "All"
msgstr "すべて"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "この工程をクローズしてもよろしいですか?この工程のすべてのアクティブな生産イベントが終了します。"
-
msgid "Are you sure you want to delete this step?"
msgstr "このステップを削除してもよろしいですか?"
@@ -85,6 +82,9 @@ msgstr "このタイムカードを削除してもよろしいですか?この
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "すべての生産イベントを終了してもよろしいですか?すべてのアクティブな工程が完了せずに終了します。"
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "このページを離れてもよろしいですか?"
@@ -165,19 +165,6 @@ msgstr "退勤打刻"
msgid "Clocked in since {0}"
msgstr "{0} から出勤中"
-msgid "Close"
-msgstr "閉じる"
-
-msgid "Close Anyways"
-msgstr "強制的に閉じる"
-
-msgid "Close Out"
-msgstr "クローズ"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "{0} をクローズ"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "問題を作成"
msgid "Create Quality Issue"
msgstr "品質問題を作成"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "顧客"
@@ -258,6 +248,9 @@ msgstr "タイムカードを削除({0})"
msgid "Describe the problem..."
msgstr "問題を説明してください..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "説明"
@@ -357,9 +350,22 @@ msgstr "ジョブおよび案件明細に関連するファイル。"
msgid "Filter"
msgstr "フィルター"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "退勤打刻を忘れましたか?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "技術的な問題がありますか?<0>Carbonサポート</0>にお問い合わせください。"
@@ -495,6 +501,9 @@ msgstr "レコードの最大数に達しました"
msgid "Model"
msgstr "モデル"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "その他のオプション"
@@ -698,6 +707,9 @@ msgstr "数量"
msgid "Quantity must be greater than 0"
msgstr "数量は0より大きい値を入力してください"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "最近"
@@ -720,6 +732,12 @@ msgstr "在庫削除"
msgid "Remove part"
msgstr "パーツを削除"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "受注"
@@ -735,6 +753,9 @@ msgstr "シリアル番号をスキャンまたは入力"
msgid "Schedule"
msgstr "スケジュール"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "スクラップ理由"
@@ -785,6 +806,9 @@ msgstr "シリアル {0} を選択"
msgid "Select Serial Number"
msgstr "シリアル番号を選択"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "送信"
diff --git a/packages/locale/locales/pl/mes.po b/packages/locale/locales/pl/mes.po
index f2208b9cc5..d55fff9997 100644
--- a/packages/locale/locales/pl/mes.po
+++ b/packages/locale/locales/pl/mes.po
@@ -73,9 +73,6 @@ msgstr "Dodaj część zamienną"
msgid "All"
msgstr "Wszystkie"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Czy na pewno chcesz zamknąć tę operację? Spowoduje to zakończenie wszystkich aktywnych zdarzeń produkcyjnych dla tej operacji."
-
msgid "Are you sure you want to delete this step?"
msgstr "Czy na pewno chcesz usunąć ten krok?"
@@ -85,6 +82,9 @@ msgstr "Czy na pewno chcesz usunąć tę kartę czasu pracy? Tej operacji nie mo
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Czy na pewno chcesz zakończyć wszystkie zdarzenia produkcyjne? Spowoduje to zakończenie wszystkich aktywnych operacji bez ich ukończenia."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Czy na pewno chcesz opuścić tę stronę?"
@@ -165,19 +165,6 @@ msgstr "Zakończ zmianę"
msgid "Clocked in since {0}"
msgstr "Zalogowany od {0}"
-msgid "Close"
-msgstr "Zamknij"
-
-msgid "Close Anyways"
-msgstr "Zamknij mimo to"
-
-msgid "Close Out"
-msgstr "Zamknij"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Zamknij {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Utwórz Problem"
msgid "Create Quality Issue"
msgstr "Utwórz Problem Jakości"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Klient"
@@ -258,6 +248,9 @@ msgstr "Usuń kartę czasu pracy ({0})"
msgid "Describe the problem..."
msgstr "Opisz problem..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Opis"
@@ -357,9 +350,22 @@ msgstr "Pliki powiązane ze zleceniem i pozycją zapytania."
msgid "Filter"
msgstr "Filtr"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Zapomniałeś zakończyć zmianę?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Masz problem techniczny? Skontaktuj się z <0>Wsparciem Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Osiągnięto maksymalną liczbę rekordów"
msgid "Model"
msgstr "Model"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Więcej opcji"
@@ -698,6 +707,9 @@ msgstr "Ilość"
msgid "Quantity must be greater than 0"
msgstr "Ilość musi być większa od 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Ostatnie"
@@ -720,6 +732,12 @@ msgstr "Usuń zapasy"
msgid "Remove part"
msgstr "Usuń część"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Zamówienie sprzedaży"
@@ -735,6 +753,9 @@ msgstr "Skanuj lub wprowadź numer seryjny"
msgid "Schedule"
msgstr "Harmonogram"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Przyczyna odrzutu"
@@ -785,6 +806,9 @@ msgstr "Wybierz numer seryjny {0}"
msgid "Select Serial Number"
msgstr "Wybierz numer seryjny"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Wyślij"
diff --git a/packages/locale/locales/pt/mes.po b/packages/locale/locales/pt/mes.po
index 7982da9d06..7dcec73cbc 100644
--- a/packages/locale/locales/pt/mes.po
+++ b/packages/locale/locales/pt/mes.po
@@ -73,9 +73,6 @@ msgstr "Adicionar Peça Sobressalente"
msgid "All"
msgstr "Todos"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Tem certeza de que deseja encerrar esta operação? Isso encerrará todos os eventos de produção ativos desta operação."
-
msgid "Are you sure you want to delete this step?"
msgstr "Tem certeza de que deseja excluir esta etapa?"
@@ -85,6 +82,9 @@ msgstr "Tem certeza de que deseja excluir este cartão de ponto? Esta ação nã
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Tem certeza de que deseja encerrar todos os eventos de produção? Isso encerrará todas as operações ativas sem concluí-las ou finalizá-las."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Tem certeza que deseja sair desta página?"
@@ -165,19 +165,6 @@ msgstr "Registrar Saída"
msgid "Clocked in since {0}"
msgstr "Registrado desde {0}"
-msgid "Close"
-msgstr "Fechar"
-
-msgid "Close Anyways"
-msgstr "Fechar Mesmo Assim"
-
-msgid "Close Out"
-msgstr "Encerrar"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Encerrar {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Criar Problema"
msgid "Create Quality Issue"
msgstr "Criar Problema de Qualidade"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Cliente"
@@ -258,6 +248,9 @@ msgstr "Excluir Cartão de Ponto ({0})"
msgid "Describe the problem..."
msgstr "Descreva o problema..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Descrição"
@@ -357,9 +350,22 @@ msgstr "Arquivos relacionados ao trabalho e à linha de oportunidade."
msgid "Filter"
msgstr "Filtro"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Esqueceu de Registrar Saída?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Tem um problema técnico? Entre em contato com o <0>Suporte Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Número máximo de registros atingido"
msgid "Model"
msgstr "Modelo"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Mais opções"
@@ -698,6 +707,9 @@ msgstr "Quantidade"
msgid "Quantity must be greater than 0"
msgstr "Quantidade deve ser maior que 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Recente"
@@ -720,6 +732,12 @@ msgstr "Remover Estoque"
msgid "Remove part"
msgstr "Remover peça"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Pedido de Venda"
@@ -735,6 +753,9 @@ msgstr "Escanear ou inserir número de série"
msgid "Schedule"
msgstr "Cronograma"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Motivo do Refugo"
@@ -785,6 +806,9 @@ msgstr "Selecionar Série {0}"
msgid "Select Serial Number"
msgstr "Selecionar Número de Série"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Enviar"
diff --git a/packages/locale/locales/ru/mes.po b/packages/locale/locales/ru/mes.po
index 56f218fa73..a275d3892b 100644
--- a/packages/locale/locales/ru/mes.po
+++ b/packages/locale/locales/ru/mes.po
@@ -73,9 +73,6 @@ msgstr "Добавить запасную часть"
msgid "All"
msgstr "Все"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "Вы уверены, что хотите завершить эту операцию? Это прекратит все активные производственные события для данной операции."
-
msgid "Are you sure you want to delete this step?"
msgstr "Вы уверены, что хотите удалить этот шаг?"
@@ -85,6 +82,9 @@ msgstr "Вы уверены, что хотите удалить этот таб
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "Вы уверены, что хотите завершить все производственные события? Это прекратит все активные операции без их завершения."
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "Вы уверены, что хотите покинуть эту страницу?"
@@ -165,19 +165,6 @@ msgstr "Отметить уход"
msgid "Clocked in since {0}"
msgstr "На смене с {0}"
-msgid "Close"
-msgstr "Закрыть"
-
-msgid "Close Anyways"
-msgstr "Всё равно закрыть"
-
-msgid "Close Out"
-msgstr "Завершить"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "Завершить {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "Создать проблему"
msgid "Create Quality Issue"
msgstr "Создать проблему качества"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "Заказчик"
@@ -258,6 +248,9 @@ msgstr "Удалить табель ({0})"
msgid "Describe the problem..."
msgstr "Опишите проблему..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "Описание"
@@ -357,9 +350,22 @@ msgstr "Файлы, связанные с заданием и позицией
msgid "Filter"
msgstr "Фильтр"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "Забыли отметить уход?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "Возникла техническая проблема? Обратитесь в <0>службу поддержки Carbon.</0>"
@@ -495,6 +501,9 @@ msgstr "Достигнуто максимальное количество за
msgid "Model"
msgstr "Модель"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "Дополнительные действия"
@@ -698,6 +707,9 @@ msgstr "Количество"
msgid "Quantity must be greater than 0"
msgstr "Количество должно быть больше 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "Недавние"
@@ -720,6 +732,12 @@ msgstr "Списать запас"
msgid "Remove part"
msgstr "Удалить деталь"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "Заказ на продажу"
@@ -735,6 +753,9 @@ msgstr "Сканируйте или введите серийный номер"
msgid "Schedule"
msgstr "Расписание"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "Причина брака"
@@ -785,6 +806,9 @@ msgstr "Выберите серийный номер {0}"
msgid "Select Serial Number"
msgstr "Выберите серийный номер"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "Отправить"
diff --git a/packages/locale/locales/zh/mes.po b/packages/locale/locales/zh/mes.po
index f06c6f5d03..6e3c703d67 100644
--- a/packages/locale/locales/zh/mes.po
+++ b/packages/locale/locales/zh/mes.po
@@ -73,9 +73,6 @@ msgstr "添加备件"
msgid "All"
msgstr "全部"
-msgid "Are you sure you want to close out this operation? This will end all active production events for this operation."
-msgstr "确定要结束此工序吗?这将终止此工序的所有活跃生产事件。"
-
msgid "Are you sure you want to delete this step?"
msgstr "确定要删除此步骤吗?"
@@ -85,6 +82,9 @@ msgstr "确定要删除此考勤记录吗?此操作无法撤销。"
msgid "Are you sure you want to end all production events? This will end all active operations without completing or finishing them."
msgstr "确定要结束所有生产事件吗?这将终止所有活跃工序,而不会完成它们。"
+msgid "Are you sure you want to finish this operation? This will end all active production events for this operation."
+msgstr ""
+
msgid "Are you sure you want to leave this page?"
msgstr "您确定要离开此页面吗?"
@@ -165,19 +165,6 @@ msgstr "下班打卡"
msgid "Clocked in since {0}"
msgstr "自 {0} 起已打卡上班"
-msgid "Close"
-msgstr "关闭"
-
-msgid "Close Anyways"
-msgstr "仍然关闭"
-
-msgid "Close Out"
-msgstr "结束"
-
-#. placeholder {0}: operation.itemReadableId
-msgid "Close out {0}"
-msgstr "结束 {0}"
-
#. placeholder {0}: active.data.current.column.title
#. placeholder {1}: overColumnPosition + 1
#. placeholder {2}: columnOrder.length
@@ -230,6 +217,9 @@ msgstr "创建问题"
msgid "Create Quality Issue"
msgstr "创建质量问题"
+msgid "Create Rework"
+msgstr ""
+
msgid "Customer"
msgstr "客户"
@@ -258,6 +248,9 @@ msgstr "删除考勤记录 ({0})"
msgid "Describe the problem..."
msgstr "描述问题..."
+msgid "Describe what needs to be reworked..."
+msgstr ""
+
msgid "Description"
msgstr "描述"
@@ -357,9 +350,22 @@ msgstr "与工单和商机行相关的文件。"
msgid "Filter"
msgstr "筛选"
+msgid "Finish"
+msgstr ""
+
+#. placeholder {0}: operation.itemReadableId
+msgid "Finish {0}"
+msgstr ""
+
+msgid "Finish Anyways"
+msgstr ""
+
msgid "Forgot to Clock Out?"
msgstr "忘记打卡下班了?"
+msgid "Go back to operation"
+msgstr ""
+
msgid "Have a technical issue? Contact <0>Carbon Support.</0>"
msgstr "遇到技术问题?联系<0>Carbon 支持。</0>"
@@ -495,6 +501,9 @@ msgstr "已达到最大记录数"
msgid "Model"
msgstr "模型"
+msgid "More Actions"
+msgstr ""
+
msgid "More options"
msgstr "更多选项"
@@ -698,6 +707,9 @@ msgstr "数量"
msgid "Quantity must be greater than 0"
msgstr "数量必须大于 0"
+msgid "Reason for rework"
+msgstr ""
+
msgid "Recent"
msgstr "最近"
@@ -720,6 +732,12 @@ msgstr "移除库存"
msgid "Remove part"
msgstr "移除零件"
+msgid "Rework"
+msgstr ""
+
+msgid "Rework created successfully"
+msgstr ""
+
msgid "Sales Order"
msgstr "销售订单"
@@ -735,6 +753,9 @@ msgstr "扫描或输入序列号"
msgid "Schedule"
msgstr "排程"
+msgid "Scrap"
+msgstr ""
+
msgid "Scrap Reason"
msgstr "报废原因"
@@ -785,6 +806,9 @@ msgstr "选择序列号 {0}"
msgid "Select Serial Number"
msgstr "选择序列号"
+msgid "Select the operation to go back to. All operations from that point to the current operation will be redone."
+msgstr ""
+
msgid "Send"
msgstr "发送"
diff --git a/packages/react/src/BottomSheet.tsx b/packages/react/src/BottomSheet.tsx
new file mode 100644
index 0000000000..78f7715d1d
--- /dev/null
+++ b/packages/react/src/BottomSheet.tsx
@@ -0,0 +1,110 @@
+"use client";
+
+import * as DialogPrimitive from "@radix-ui/react-dialog";
+import type {
+ ComponentPropsWithoutRef,
+ ElementRef,
+ HTMLAttributes
+} from "react";
+import { forwardRef } from "react";
+
+import { ClientOnly } from "./ClientOnly";
+import { cn } from "./utils/cn";
+
+const BottomSheet = DialogPrimitive.Root;
+
+const BottomSheetTrigger = DialogPrimitive.Trigger;
+
+const BottomSheetClose = DialogPrimitive.Close;
+
+const BottomSheetOverlay = forwardRef<
+ ElementRef<typeof DialogPrimitive.Overlay>,
+ ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Overlay
+ ref={ref}
+ className={cn(
+ "fixed inset-0 z-[70] bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className
+ )}
+ {...props}
+ />
+));
+BottomSheetOverlay.displayName = "BottomSheetOverlay";
+
+const BottomSheetContent = forwardRef<
+ ElementRef<typeof DialogPrimitive.Content>,
+ ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <ClientOnly fallback={null}>
+ {() => (
+ <DialogPrimitive.Portal>
+ <BottomSheetOverlay />
+ <DialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed inset-x-0 bottom-0 z-[70] flex flex-col rounded-t-2xl bg-background shadow-lg duration-300",
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
+ className
+ )}
+ {...props}
+ >
+ <div className="mx-auto mt-3 mb-2 h-1.5 w-12 shrink-0 rounded-full bg-muted-foreground/20" />
+ {children}
+ </DialogPrimitive.Content>
+ </DialogPrimitive.Portal>
+ )}
+ </ClientOnly>
+));
+BottomSheetContent.displayName = "BottomSheetContent";
+
+const BottomSheetHeader = ({
+ className,
+ ...props
+}: HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("px-6 pb-2 text-center", className)} {...props} />
+);
+BottomSheetHeader.displayName = "BottomSheetHeader";
+
+const BottomSheetBody = ({
+ className,
+ ...props
+}: HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("px-6 pb-6", className)} {...props} />
+);
+BottomSheetBody.displayName = "BottomSheetBody";
+
+const BottomSheetTitle = forwardRef<
+ ElementRef<typeof DialogPrimitive.Title>,
+ ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Title
+ ref={ref}
+ className={cn("text-sm font-medium text-muted-foreground", className)}
+ {...props}
+ />
+));
+BottomSheetTitle.displayName = "BottomSheetTitle";
+
+const BottomSheetDescription = forwardRef<
+ ElementRef<typeof DialogPrimitive.Description>,
+ ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Description
+ ref={ref}
+ className={cn("text-xs text-muted-foreground", className)}
+ {...props}
+ />
+));
+BottomSheetDescription.displayName = "BottomSheetDescription";
+
+export {
+ BottomSheet,
+ BottomSheetBody,
+ BottomSheetClose,
+ BottomSheetContent,
+ BottomSheetDescription,
+ BottomSheetHeader,
+ BottomSheetTitle,
+ BottomSheetTrigger
+};
diff --git a/packages/react/src/Date/DateTimePicker.tsx b/packages/react/src/Date/DateTimePicker.tsx
index b44ae5d116..8b8fa2203e 100644
--- a/packages/react/src/Date/DateTimePicker.tsx
+++ b/packages/react/src/Date/DateTimePicker.tsx
@@ -2,6 +2,7 @@ import type { DateValue } from "@internationalized/date";
import { useDatePicker } from "@react-aria/datepicker";
import { useDatePickerState } from "@react-stately/datepicker";
import type { DatePickerProps } from "@react-types/datepicker";
+import { cva } from "class-variance-authority";
import type { ReactNode } from "react";
import { useRef } from "react";
import { LuBan, LuCalendarClock, LuInfo } from "react-icons/lu";
@@ -22,9 +23,23 @@ import { Calendar } from "./components/Calendar";
import DateField from "./components/DateField";
import TimeField from "./TimePicker";
+const dateTimePickerFieldVariants = cva("flex w-full px-4", {
+ variants: {
+ size: {
+ sm: "py-1",
+ md: "py-2",
+ lg: "py-3"
+ }
+ },
+ defaultVariants: {
+ size: "md"
+ }
+});
+
const DateTimePicker = (
props: DatePickerProps<DateValue> & {
className?: string;
+ size?: "sm" | "md" | "lg";
withButton?: boolean;
inline?: ReactNode;
helperText?: string;
@@ -77,9 +92,12 @@ const DateTimePicker = (
{...groupProps}
ref={ref}
className={cn("w-full inline-flex", props.className)}
+ size={props.size}
>
- <div className="flex w-full px-4 py-2">
- <DateField {...fieldProps} />
+ <div
+ className={dateTimePickerFieldVariants({ size: props.size })}
+ >
+ <DateField {...fieldProps} size={props.size} />
{state.isInvalid && (
<LuBan className="!text-destructive-foreground absolute right-[12px] top-[12px]" />
)}
@@ -87,7 +105,11 @@ const DateTimePicker = (
{props.withButton !== false && (
<div className="flex-shrink-0 -mt-px">
<PopoverTrigger tabIndex={-1}>
- <FieldButton {...buttonProps} isPressed={state.isOpen} />
+ <FieldButton
+ {...buttonProps}
+ isPressed={state.isOpen}
+ size={props.size}
+ />
</PopoverTrigger>
</div>
)}
diff --git a/packages/react/src/Textarea.tsx b/packages/react/src/Textarea.tsx
index 00db198486..e1f300257a 100644
--- a/packages/react/src/Textarea.tsx
+++ b/packages/react/src/Textarea.tsx
@@ -1,18 +1,34 @@
+import type { VariantProps } from "class-variance-authority";
+import { cva } from "class-variance-authority";
import type { TextareaHTMLAttributes } from "react";
import { forwardRef } from "react";
import { cn } from "./utils/cn";
+const textareaVariants = cva(
+ "flex min-h-[2lh] max-h-[10lh] w-full border border-input bg-transparent shadow-xs transition-[color,box-shadow] placeholder:text-muted-foreground outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 read-only:bg-muted read-only:cursor-not-allowed dark:aria-invalid:ring-destructive/40",
+ {
+ variants: {
+ size: {
+ sm: "rounded-md px-3 py-1 text-sm",
+ md: "rounded-md px-3 py-2 text-sm",
+ lg: "rounded-lg px-4 py-3 text-base"
+ }
+ },
+ defaultVariants: {
+ size: "md"
+ }
+ }
+);
+
export interface TextareaProps
- extends TextareaHTMLAttributes<HTMLTextAreaElement> {}
+ extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size">,
+ VariantProps<typeof textareaVariants> {}
const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
- ({ className, ...props }, ref) => {
+ ({ className, size, ...props }, ref) => {
return (
<textarea
- className={cn(
- "flex min-h-[2lh] max-h-[10lh] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] placeholder:text-muted-foreground outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 read-only:bg-muted read-only:cursor-not-allowed dark:aria-invalid:ring-destructive/40",
- className
- )}
+ className={cn(textareaVariants({ size }), className)}
ref={ref}
{...props}
/>
diff --git a/packages/react/src/index.tsx b/packages/react/src/index.tsx
index 6ebe194b7d..69c6181829 100644
--- a/packages/react/src/index.tsx
+++ b/packages/react/src/index.tsx
@@ -27,6 +27,16 @@ import {
import type { BadgeProps } from "./Badge";
import { Badge, BadgeCloseButton } from "./Badge";
import { BarProgress } from "./BarProgress";
+import {
+ BottomSheet,
+ BottomSheetBody,
+ BottomSheetClose,
+ BottomSheetContent,
+ BottomSheetDescription,
+ BottomSheetHeader,
+ BottomSheetTitle,
+ BottomSheetTrigger
+} from "./BottomSheet";
import type { ButtonProps } from "./Button";
import { Button, buttonVariants } from "./Button";
import {
@@ -328,6 +338,14 @@ export {
AccordionItem,
AccordionTrigger,
BarProgress,
+ BottomSheet,
+ BottomSheetBody,
+ BottomSheetClose,
+ BottomSheetContent,
+ BottomSheetDescription,
+ BottomSheetHeader,
+ BottomSheetTitle,
+ BottomSheetTrigger,
ActionBar,
ActionBarButton,
ActionMenu,
diff --git a/scripts/pr-complexity/pnpm-lock.yaml b/scripts/pr-complexity/pnpm-lock.yaml
new file mode 100644
index 0000000000..b733d933c5
--- /dev/null
+++ b/scripts/pr-complexity/pnpm-lock.yaml
@@ -0,0 +1,648 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ octokit:
+ specifier: ^5.0.5
+ version: 5.0.5
+ devDependencies:
+ '@types/node':
+ specifier: ^22.0.0
+ version: 22.19.19
+ tsx:
+ specifier: ^4.21.0
+ version: 4.22.3
+ typescript:
+ specifier: ^5.9.0
+ version: 5.9.3
+
+packages:
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-8j7sEpUYVj18dxvh0KWj6W/l6uAiVRBl1JBDVRqH1VHKAO/G5eRVl4yEoYACjakWers1DjUkcCHyJNQK47JqyQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-vVjdtQQwomrZ4V46B9LaCsxsySxGoHsyw6IYBov/TqJVROrlYdyNgw5q6tQbB7KZt53v1l1W53RiqTvpzL907g==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-+yoFQquaF8OxJSxTb7rnytBIC2ZLbLqA/yb71I4ZXT9+Slw4TziV9j/kyGhUFRRTF2+7WlnIWsePZCWHs+OGjg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-zh2W0mKKMh/VWZhSqlaCzY7qFyrgd9oTWmTmHaXnHNeQRCZr/CXy2jCgHo4e4dJVTiuxP5dLa0YM5p5QVhJHbw==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-qLoPPc6E6GJoz3XeDG/pnDhJpTkODTGG4kY0/Py154i/I003O9NazkrwJwRuzgCalhzyIeWQ+6MDvkUmKXjg/A==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-8Jb1mtUdmBHL7lGmop9mU9ArMRUTRhg8vp0T1VtZ4yd9vEm3zcLwmjQkhNEduKawOOORie61xhtYIhTDN+ZQ3g==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-FWFlNxghg4HrXkD3ifYbS/IdL/mDHjh9QcsNyhQjN8dplUoZbejsdpmuqdA76nxj2xoWPs7p8uX2SNr9rYu0Ag==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-jnAjvTsPepyUaMu9e69hYBuozEPgYqP4Z3UnpmvoIzHDpf8EXDGvTY1l1jK0RsZ194oRd+k6Hm13oRU8EoDFwg==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-7QoLPRh/ssEA/HuHBHdVdSgF8xNLz/Bc5m9fZkArJE5bb6NmVkDm3anKxXPmN1zh6b5WKZPRr3697xKT/yM3qQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-HiNOO3MqLxlt5Da5bZbLV8Zarnphi4y9XehrbaFMkcoJ+FL7sMxH/UlUsCVxpddVu4qvNDrBdaTVE2o4ITK8ng==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-WiuzhOsiOvb7W3Pvmhf8d2C6qaLHXrWiLBP4nJ/4kydu+wpagV5Fkz9RfQwV2afYzv3PB+3xYgp4mAdNGjDprA==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-crfpnIoFiBtRkvPqOyLOsw12XsveYuY2ieP6uYDosoUegBJpSVxGwut9sxUgFFcll3VTOTqpUf8yGd8x1OmAkQ==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=6'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-O1FZgXeiGb2sowEr/hYTr6YunGdSAFWnr2fyW39Ah85H8O33ELASQxcvOFF5LE6Tjekcyu2ms4qAzJVhSaJxTw==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': '>=7'
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-34eE0RkFCKycLl2D2kq7W+LovheM/ex3AwZCYN8udpi6bxsyjZidb2McXs69hZhLmJlDqTSP8cH+jSRpiaijBg==}
+ engines: {node: '>= 20'}
+ peerDependencies:
+ '@octokit/core': ^7.0.0
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-KxNC2pTqqhszMNrf12ZRd4PonRgyJdsM4F/jySiddQK+DsRcfBtUvqn8t7UsyZhnRJHvX46OohDt5N3VqIWC2w==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-MFlzzoDJVw/GcbfzVC1RLR36QqkTLUf79vLVO3D+xn7r0QgxnFoLZgtrzxiQErAjFUOdH6fas2KeQJ1yr/qaXQ==}
+ engines: {node: '>= 20'}
+
+ '@octokit/[email protected]':
+ resolution: {integrity: sha512-da6KbdNCV5sr1/txD896V+6W0iamFWrvVl8cHkBSPT+YlvmT3DwXa4jxZnQc+gnuTEqSWbBeoSZYTayXH9wXcw==}
+ engines: {node: '>= 20'}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-rUYdp+MQwSFocxIOcSsYSF3YYYC/uUpMbCY/mbO21vGqfrEYvNSoPyKYDj6RhXXpPfS0KstW9RwG3qXh9sL7FQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==}
+
+ resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}
+
+ resolution: {integrity: sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==}
+
+ resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
+ resolution: {integrity: sha512-eq/4KP6K34kwa7TcFdtvnftvHCD9KvHOGGICWwMFc4dOOKF5t4iYqnfLK8otCRCRv06FXOzGGyqE8h8ElMvvdw==}
+
+ resolution: {integrity: sha512-4+/OFSqOjoyULo7eN7EA97DE0Xydj/PW5aIckxqQIoFjFwqXKuFCvXUJObyJfBF9Khu4RL/jlDRI9FPaMGfPnw==}
+ engines: {node: '>= 20'}
+
+ resolution: {integrity: sha512-5DXWzE4Vz7xNHsv+xQ+MGfJYyC78Aok3tEr0MNwHoRf7vZnga1mQXZ4/Nsodld4VR6Wd+VhfmqnNrsRJyYPfrQ==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-mdoNxBC/cSQObGGVQ5Bpn5i+yv7j68gk3Nfm3wFjcJg3Z0Mix9jzAFfP12prmm5eVGmDKtp0yyArrs0Q+8gZHg==}
+ engines: {node: '>=18.0.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+
+ resolution: {integrity: sha512-dcmbeSrOdTnsjGjUfAlqNDJrhxXizjAz94ija9Qw8YkZ1uu0d+GoZzyH+Jb9tIIqvGsadUfwg+22k5aDqqwzbw==}
+
+ resolution: {integrity: sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==}
+
+snapshots:
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@esbuild/[email protected]':
+ optional: true
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-app': 8.2.0
+ '@octokit/auth-unauthenticated': 7.0.3
+ '@octokit/core': 7.0.6
+ '@octokit/oauth-app': 8.0.3
+ '@octokit/plugin-paginate-rest': 14.0.0(@octokit/[email protected])
+ '@octokit/types': 16.0.0
+ '@octokit/webhooks': 14.2.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-app': 9.0.3
+ '@octokit/auth-oauth-user': 6.0.2
+ '@octokit/request': 10.0.10
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+ toad-cache: 3.7.1
+ universal-github-app-jwt: 2.2.2
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-device': 8.0.3
+ '@octokit/auth-oauth-user': 6.0.2
+ '@octokit/request': 10.0.10
+ '@octokit/types': 16.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/oauth-methods': 6.0.2
+ '@octokit/request': 10.0.10
+ '@octokit/types': 16.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-device': 8.0.3
+ '@octokit/oauth-methods': 6.0.2
+ '@octokit/request': 10.0.10
+ '@octokit/types': 16.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-token': 6.0.0
+ '@octokit/graphql': 9.0.3
+ '@octokit/request': 10.0.10
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+ before-after-hook: 4.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 16.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/request': 10.0.10
+ '@octokit/types': 16.0.0
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/auth-oauth-app': 9.0.3
+ '@octokit/auth-oauth-user': 6.0.2
+ '@octokit/auth-unauthenticated': 7.0.3
+ '@octokit/core': 7.0.6
+ '@octokit/oauth-authorization-url': 8.0.0
+ '@octokit/oauth-methods': 6.0.2
+ '@types/aws-lambda': 8.10.161
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/oauth-authorization-url': 8.0.0
+ '@octokit/request': 10.0.10
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.6
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.6
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.6
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.6
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+ bottleneck: 2.19.5
+
+ '@octokit/[email protected](@octokit/[email protected])':
+ dependencies:
+ '@octokit/core': 7.0.6
+ '@octokit/types': 16.0.0
+ bottleneck: 2.19.5
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/types': 16.0.0
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/endpoint': 11.0.3
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+ content-type: 2.0.0
+ json-with-bigint: 3.5.8
+ universal-user-agent: 7.0.3
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-types': 27.0.0
+
+ '@octokit/[email protected]': {}
+
+ '@octokit/[email protected]':
+ dependencies:
+ '@octokit/openapi-webhooks-types': 12.1.0
+ '@octokit/request-error': 7.1.0
+ '@octokit/webhooks-methods': 6.0.0
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
+
+
+
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.28.0
+ '@esbuild/android-arm': 0.28.0
+ '@esbuild/android-arm64': 0.28.0
+ '@esbuild/android-x64': 0.28.0
+ '@esbuild/darwin-arm64': 0.28.0
+ '@esbuild/darwin-x64': 0.28.0
+ '@esbuild/freebsd-arm64': 0.28.0
+ '@esbuild/freebsd-x64': 0.28.0
+ '@esbuild/linux-arm': 0.28.0
+ '@esbuild/linux-arm64': 0.28.0
+ '@esbuild/linux-ia32': 0.28.0
+ '@esbuild/linux-loong64': 0.28.0
+ '@esbuild/linux-mips64el': 0.28.0
+ '@esbuild/linux-ppc64': 0.28.0
+ '@esbuild/linux-riscv64': 0.28.0
+ '@esbuild/linux-s390x': 0.28.0
+ '@esbuild/linux-x64': 0.28.0
+ '@esbuild/netbsd-arm64': 0.28.0
+ '@esbuild/netbsd-x64': 0.28.0
+ '@esbuild/openbsd-arm64': 0.28.0
+ '@esbuild/openbsd-x64': 0.28.0
+ '@esbuild/openharmony-arm64': 0.28.0
+ '@esbuild/sunos-x64': 0.28.0
+ '@esbuild/win32-arm64': 0.28.0
+ '@esbuild/win32-ia32': 0.28.0
+ '@esbuild/win32-x64': 0.28.0
+
+ optional: true
+
+
+ dependencies:
+ '@octokit/app': 16.1.2
+ '@octokit/core': 7.0.6
+ '@octokit/oauth-app': 8.0.3
+ '@octokit/plugin-paginate-graphql': 6.0.0(@octokit/[email protected])
+ '@octokit/plugin-paginate-rest': 14.0.0(@octokit/[email protected])
+ '@octokit/plugin-rest-endpoint-methods': 17.0.0(@octokit/[email protected])
+ '@octokit/plugin-retry': 8.1.0(@octokit/[email protected])
+ '@octokit/plugin-throttling': 11.0.3(@octokit/[email protected])
+ '@octokit/request-error': 7.1.0
+ '@octokit/types': 16.0.0
+ '@octokit/webhooks': 14.2.0
+
+
+ dependencies:
+ esbuild: 0.28.0
+ optionalDependencies:
+ fsevents: 2.3.3
+
+
+
+