Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
style: checkbox buttons for action/investigation modals
Brad Barbin6e99e39b48ba
diff --git a/apps/erp/app/components/Layout/Topbar/Search.tsx b/apps/erp/app/components/Layout/Topbar/Search.tsxindex e7a92e4646..91a41c7688 100644--- a/apps/erp/app/components/Layout/Topbar/Search.tsx+++ b/apps/erp/app/components/Layout/Topbar/Search.tsx@@ -303,7 +303,7 @@ const SearchButton = () => {<ButtonleftIcon={<LuSearch />}variant="secondary"- className="w-[200px] px-2"+ className="w-[200px] px-2 hover:scale-100"onClick={openSearchModal}><HStack className="w-full">diff --git a/apps/erp/app/modules/quality/ui/Issue/ActionTasksList.tsx b/apps/erp/app/modules/quality/ui/Issue/ActionTasksList.tsxindex 78bbf49a4c..8d2cd2e357 100644--- a/apps/erp/app/modules/quality/ui/Issue/ActionTasksList.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/ActionTasksList.tsx@@ -125,17 +125,22 @@ function NewAction({ isDisabled }: { isDisabled: boolean }) {<ModalTitle>Add Required Actions</ModalTitle></ModalHeader><ModalBody>- <VStack spacing={3}>+ <VStack spacing={2}>{routeData?.requiredActions.map((action) => (- <HStack key={action.id}>+ <label+ key={action.id}+ htmlFor={action.id}+ className="flex items-center gap-2 w-full px-4 py-3 rounded-lg hover:bg-accent hover:text-accent-foreground border border-border cursor-pointer"+ ><Checkbox+ id={action.id}isChecked={selectedActionIds.includes(action.id)}onCheckedChange={(checked) =>handleCheckboxChange(action.id, !!checked)}/>- <span>{action.name}</span>- </HStack>+ <span className="text-sm font-medium">{action.name}</span>+ </label>))}</VStack></ModalBody>diff --git a/apps/erp/app/modules/quality/ui/Issue/InvestigationTasksList.tsx b/apps/erp/app/modules/quality/ui/Issue/InvestigationTasksList.tsxindex 6aa4838738..bc89c73e96 100644--- a/apps/erp/app/modules/quality/ui/Issue/InvestigationTasksList.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/InvestigationTasksList.tsx@@ -127,17 +127,22 @@ function NewInvestigation({ isDisabled }: { isDisabled: boolean }) {<ModalTitle>Add Investigation Types</ModalTitle></ModalHeader><ModalBody>- <VStack spacing={3}>+ <VStack spacing={2}>{routeData?.investigationTypes.map((type) => (- <HStack key={type.id}>+ <label+ key={type.id}+ htmlFor={type.id}+ className="flex items-center gap-2 w-full px-4 py-3 rounded-lg hover:bg-accent hover:text-accent-foreground border border-border cursor-pointer"+ ><Checkbox+ id={type.id}isChecked={selectedTypeIds.includes(type.id)}onCheckedChange={(checked) =>handleCheckboxChange(type.id, !!checked)}/>- <span>{type.name}</span>- </HStack>+ <span className="text-sm font-medium">{type.name}</span>+ </label>))}</VStack></ModalBody>diff --git a/apps/erp/app/modules/quality/ui/Issue/IssueTask.tsx b/apps/erp/app/modules/quality/ui/Issue/IssueTask.tsxindex 978d1a69e2..961f8d7434 100644--- a/apps/erp/app/modules/quality/ui/Issue/IssueTask.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/IssueTask.tsx@@ -38,6 +38,7 @@ import {LuCircleCheck,LuCirclePlay,LuCog,+ LuContainer,LuLoaderCircle,} from "react-icons/lu";import { RxCheck } from "react-icons/rx";@@ -233,13 +234,14 @@ export function TaskItem({/></>)}- <Assignee- table={getTable(type)}- id={task.id}+ <Button+ variant="secondary"size="sm"- value={task.assignee ?? undefined}- disabled={isDisabled}- />+ leftIcon={<LuContainer />}+ isDisabled+ >+ Supplier+ </Button></HStack><HStack><Buttondiff --git a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsxindex 8ad306fce3..44c9078bf5 100644--- a/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/ReviewersList.tsx@@ -191,14 +191,18 @@ function NewApprovalRequirement({ isDisabled }: { isDisabled: boolean }) {<ModalTitle>Add Approval Requirement</ModalTitle></ModalHeader><ModalBody>- <VStack spacing={3}>- <HStack>+ <VStack spacing={2}>+ <label+ htmlFor="mrb-checkbox"+ className="flex items-center gap-2 w-full px-4 py-3 rounded-lg hover:bg-accent hover:text-accent-foreground border border-border cursor-pointer"+ ><Checkbox+ id="mrb-checkbox"isChecked={isMRBChecked}onCheckedChange={(checked) => setIsMRBChecked(!!checked)}/>- <span>MRB</span>- </HStack>+ <span className="text-sm font-medium">MRB</span>+ </label></VStack></ModalBody><ModalFooter>