Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: keyboard shortcuts on Edit, Rename, Pin, Copy, Download and View menu items across ERP and MES
aashue85a65639594
diff --git a/apps/erp/app/components/DefaultAttachmentsPanel.tsx b/apps/erp/app/components/DefaultAttachmentsPanel.tsxindex f78122627f..12bc27f5ba 100644--- a/apps/erp/app/components/DefaultAttachmentsPanel.tsx+++ b/apps/erp/app/components/DefaultAttachmentsPanel.tsx@@ -15,6 +15,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -227,6 +228,7 @@ export default function DefaultAttachmentsPanel({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => onDownload(f.name)}><DropdownMenuIcon icon={<LuDownload />} />diff --git a/apps/erp/app/components/Documents.tsx b/apps/erp/app/components/Documents.tsxindex 24a6fa20b1..9f43dbd121 100644--- a/apps/erp/app/components/Documents.tsx+++ b/apps/erp/app/components/Documents.tsx@@ -14,6 +14,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -306,11 +307,15 @@ const Documents = ({original (xbf rows included); only legacy rows404 → surfaced as a toast. */}<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => downloadModel(modelUpload)}><Trans>Download</Trans></DropdownMenuItem>- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ ><Linkto={modelUpload.modelId@@ -395,7 +400,10 @@ const Documents = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ ><Trans>Download</Trans></DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/components/RecordDocuments.tsx b/apps/erp/app/components/RecordDocuments.tsxindex 4e77bbc196..ee0ab16f5b 100644--- a/apps/erp/app/components/RecordDocuments.tsx+++ b/apps/erp/app/components/RecordDocuments.tsx@@ -14,6 +14,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -180,12 +181,18 @@ const RecordDocuments = ({</DropdownMenuTrigger><DropdownMenuContent>{isViewableInBrowser(file.name) && (- <DropdownMenuItem onClick={() => view(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ onClick={() => view(file)}+ ><LuExternalLink className="mr-2" /><Trans>View in new tab</Trans></DropdownMenuItem>)}- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ ><Trans>Download</Trans></DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsxindex a61f4a9cc2..9d8af0ee3f 100644--- a/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx+++ b/apps/erp/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTree.tsx@@ -4,6 +4,7 @@ import {DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,+ MENU_ITEM_SHORTCUTS,NumberField,NumberInput,ScrollArea@@ -346,6 +347,7 @@ const ChartOfAccountsTree = memo(<>{!account.isSystem && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>runMenuAction(() =>navigate(account.id as string)@@ -393,6 +395,7 @@ const ChartOfAccountsTree = memo() : (<><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>runMenuAction(() =>navigate(account.id as string)diff --git a/apps/erp/app/modules/accounting/ui/CostCenters/CostCenterNode.tsx b/apps/erp/app/modules/accounting/ui/CostCenters/CostCenterNode.tsxindex 6816ac3d21..8c019243d9 100644--- a/apps/erp/app/modules/accounting/ui/CostCenters/CostCenterNode.tsx+++ b/apps/erp/app/modules/accounting/ui/CostCenters/CostCenterNode.tsx@@ -2,7 +2,8 @@ import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,- DropdownMenuTrigger+ DropdownMenuTrigger,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { Handle, type NodeProps, Position } from "@xyflow/react";@@ -66,7 +67,10 @@ function CostCenterNodeComponent({</button></DropdownMenuTrigger><DropdownMenuContent align="end" className="w-44">- <DropdownMenuItem onClick={() => onEdit(costCenter.id!)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => onEdit(costCenter.id!)}+ ><LuPencil className="mr-2 size-4" /><Trans>Edit</Trans></DropdownMenuItem>diff --git a/apps/erp/app/modules/accounting/ui/CostCenters/CostCentersListView.tsx b/apps/erp/app/modules/accounting/ui/CostCenters/CostCentersListView.tsxindex 5062cb6d2b..8346d3083a 100644--- a/apps/erp/app/modules/accounting/ui/CostCenters/CostCentersListView.tsx+++ b/apps/erp/app/modules/accounting/ui/CostCenters/CostCentersListView.tsx@@ -3,7 +3,8 @@ import {DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import {@@ -81,7 +82,10 @@ function CostCentersRow({/></DropdownMenuTrigger><DropdownMenuContent align="end" className="w-44">- <DropdownMenuItem onClick={() => onEdit(costCenter.id!)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => onEdit(costCenter.id!)}+ ><LuPencil className="mr-2 size-4" /><Trans>Edit</Trans></DropdownMenuItem>diff --git a/apps/erp/app/modules/accounting/ui/Dimensions/DimensionsTable.tsx b/apps/erp/app/modules/accounting/ui/Dimensions/DimensionsTable.tsxindex f626ba7358..d638f0e324 100644--- a/apps/erp/app/modules/accounting/ui/Dimensions/DimensionsTable.tsx+++ b/apps/erp/app/modules/accounting/ui/Dimensions/DimensionsTable.tsx@@ -1,4 +1,4 @@-import { Badge, MenuIcon, MenuItem } from "@carbon/react";+import { Badge, MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -95,6 +95,7 @@ const DimensionsTable = memo(({ data, count }: DimensionsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => {navigate(`${path.to.dimension(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/accounting/ui/ExchangeRates/ExchangeRatesTable.tsx b/apps/erp/app/modules/accounting/ui/ExchangeRates/ExchangeRatesTable.tsxindex 3ed612bb7b..814ebfa18c 100644--- a/apps/erp/app/modules/accounting/ui/ExchangeRates/ExchangeRatesTable.tsx+++ b/apps/erp/app/modules/accounting/ui/ExchangeRates/ExchangeRatesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { formatDate, formatExchangeRate } from "@carbon/utils";import { Trans, useLingui } from "@lingui/react/macro";import { useLocale } from "@react-aria/i18n";@@ -110,6 +110,7 @@ const ExchangeRatesTable = memo(({ data, count }: ExchangeRatesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassesTable.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassesTable.tsxindex 9034ad3b2a..eeb5e34b00 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassesTable.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/AssetClassesTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import type { ReactNode } from "react";@@ -112,6 +117,7 @@ const AssetClassesTable = memo((row: FixedAssetClassListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => navigate(path.to.assetClass(row.id))}>diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/DepreciationRunTable.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/DepreciationRunTable.tsxindex 55feabe0b6..2fc72c4311 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/DepreciationRunTable.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/DepreciationRunTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import type { ReactNode } from "react";@@ -82,6 +87,7 @@ const DepreciationRunTable = memo((row: DepreciationRunListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}disabled={!permissions.can("view", "accounting")}onClick={() => navigate(path.to.depreciationRun(row.id))}>diff --git a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetsTable.tsx b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetsTable.tsxindex d7d3eb218b..adfb883d89 100644--- a/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetsTable.tsx+++ b/apps/erp/app/modules/accounting/ui/FixedAssets/FixedAssetsTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import type { ReactNode } from "react";@@ -170,6 +175,9 @@ const FixedAssetsTable = memo(return (<><MenuItem+ shortcut={+ isDraft ? MENU_ITEM_SHORTCUTS.edit : MENU_ITEM_SHORTCUTS.view+ }disabled={!permissions.can("view", "accounting")}onClick={() => navigate(path.to.fixedAsset(row.id))}>diff --git a/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntriesTable.tsx b/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntriesTable.tsxindex dcd5b628c2..cfdd0a1ada 100644--- a/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntriesTable.tsx+++ b/apps/erp/app/modules/accounting/ui/JournalEntries/JournalEntriesTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import type { ReactNode } from "react";@@ -228,6 +234,9 @@ const JournalEntriesTable = memo(return (<><MenuItem+ shortcut={+ isDraft ? MENU_ITEM_SHORTCUTS.edit : MENU_ITEM_SHORTCUTS.view+ }disabled={!permissions.can("view", "accounting")}onClick={() => {navigate(path.to.journalEntryDetails(row.id?.toString()!));diff --git a/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx b/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsxindex feda2f53ab..45f9c341db 100644--- a/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx+++ b/apps/erp/app/modules/accounting/ui/PaymentTerms/PaymentTermsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -93,6 +93,7 @@ const PaymentTermsTable = memo(({ data, count }: PaymentTermsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => {navigate(`${path.to.paymentTerm(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/accounting/ui/Periods/PeriodsTable.tsx b/apps/erp/app/modules/accounting/ui/Periods/PeriodsTable.tsxindex 51b7a7370f..dbd3a9bdd7 100644--- a/apps/erp/app/modules/accounting/ui/Periods/PeriodsTable.tsx+++ b/apps/erp/app/modules/accounting/ui/Periods/PeriodsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem, Status } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem, Status } from "@carbon/react";import {formatPeriodLabel,PERIOD_CLOSE_STATUS_COLOR_MAP@@ -143,6 +143,11 @@ const PeriodsTable = memo((row: AccountingPeriodListItem) => (<><MenuItem+ shortcut={+ row.closeStatus === "Closed"+ ? MENU_ITEM_SHORTCUTS.view+ : undefined+ }disabled={!permissions.can("view", "accounting")}onClick={() => navigate(path.to.accountingPeriodClose(row.id))}>diff --git a/apps/erp/app/modules/accounting/ui/Projects/ProjectsTable.tsx b/apps/erp/app/modules/accounting/ui/Projects/ProjectsTable.tsxindex 93741aad4f..dfd26971c5 100644--- a/apps/erp/app/modules/accounting/ui/Projects/ProjectsTable.tsx+++ b/apps/erp/app/modules/accounting/ui/Projects/ProjectsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -55,6 +55,7 @@ const ProjectsTable = memo(({ data, count }: ProjectsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => {navigate(`${path.to.project(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsxindex c298536f97..9e74f8c365 100644--- a/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx+++ b/apps/erp/app/modules/documents/ui/Documents/DocumentsTable.tsx@@ -9,6 +9,7 @@ import {CommandItem,cn,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Popover,@@ -432,11 +433,18 @@ const DocumentsTable = memo(const renderContextMenu = useMemo(() => {return (row: Document) => (<>- <MenuItem disabled={canUpdate(row)} onClick={() => edit(row)}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ disabled={canUpdate(row)}+ onClick={() => edit(row)}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit</Trans></MenuItem>- <MenuItem onClick={() => download(row)}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(row)}+ ><MenuIcon icon={<LuDownload />} /><Trans>Download</Trans></MenuItem>diff --git a/apps/erp/app/modules/inventory/ui/Batches/BatchPropertiesConfig.tsx b/apps/erp/app/modules/inventory/ui/Batches/BatchPropertiesConfig.tsxindex b51053e592..554343e550 100644--- a/apps/erp/app/modules/inventory/ui/Batches/BatchPropertiesConfig.tsx+++ b/apps/erp/app/modules/inventory/ui/Batches/BatchPropertiesConfig.tsx@@ -16,6 +16,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ModalCard,ModalCardBody,ModalCardContent,@@ -441,7 +442,10 @@ function BatchPropertyComponent({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ ><Trans>Edit</Trans></DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/inventory/ui/InventoryCount/InventoryCountsTable.tsx b/apps/erp/app/modules/inventory/ui/InventoryCount/InventoryCountsTable.tsxindex 159349acac..44b9644ac9 100644--- a/apps/erp/app/modules/inventory/ui/InventoryCount/InventoryCountsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/InventoryCount/InventoryCountsTable.tsx@@ -1,6 +1,11 @@import type { Database } from "@carbon/database";import { Constants } from "@carbon/database";-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -145,6 +150,11 @@ const InventoryCountsTable = memo(return (<><MenuItem+ shortcut={+ row.status === "Draft"+ ? MENU_ITEM_SHORTCUTS.edit+ : MENU_ITEM_SHORTCUTS.view+ }onClick={() => {navigate(`${path.to.inventoryCount(row.id!)}?${params.toString()}`diff --git a/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx b/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsxindex 942eb69086..a0b3ae51f7 100644--- a/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx+++ b/apps/erp/app/modules/inventory/ui/Kanbans/KanbansTable.tsx@@ -13,6 +13,7 @@ import {HoverCardContent,HoverCardTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuItem,PulsingDot,Tooltip,@@ -556,7 +557,7 @@ const KanbansTable = memo(return (<>{canUpdate && (- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={`${path.to.kanban(row.id!)}?${params}`}><LuPencil className="mr-2 size-4" /><Trans>Edit</Trans>@@ -576,7 +577,7 @@ const KanbansTable = memo()return null;return (- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Link to={getLinkToItemDetails(itemType, row.itemId)}><MethodItemTypeIcontype={itemType}diff --git a/apps/erp/app/modules/inventory/ui/PickingLists/PickingListsTable.tsx b/apps/erp/app/modules/inventory/ui/PickingLists/PickingListsTable.tsxindex 90fff0aace..384be6812f 100644--- a/apps/erp/app/modules/inventory/ui/PickingLists/PickingListsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/PickingLists/PickingListsTable.tsx@@ -1,4 +1,10 @@-import { Button, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Button,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -158,6 +164,11 @@ const PickingListsTable = memo(({ data, count }: PickingListsTableProps) => {return (<><MenuItem+ shortcut={+ row.status !== "Draft"+ ? MENU_ITEM_SHORTCUTS.view+ : MENU_ITEM_SHORTCUTS.edit+ }disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptsTable.tsxindex 93163ad7ec..d74da7f7df 100644--- a/apps/erp/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/Receipts/ReceiptsTable.tsx@@ -1,6 +1,7 @@import {Button,Checkbox,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -319,6 +320,11 @@ const ReceiptsTable = memo(({ data, count }: ReceiptsTableProps) => {return (<><MenuItem+ shortcut={+ row.postingDate+ ? MENU_ITEM_SHORTCUTS.view+ : MENU_ITEM_SHORTCUTS.edit+ }disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsxindex 86d981ad10..e2920df58c 100644--- a/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/Shipments/ShipmentsTable.tsx@@ -1,6 +1,7 @@import {Button,Checkbox,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -334,6 +335,11 @@ const ShipmentsTable = memo(({ data, count }: ShipmentsTableProps) => {return (<><MenuItem+ shortcut={+ row.postingDate+ ? MENU_ITEM_SHORTCUTS.view+ : MENU_ITEM_SHORTCUTS.edit+ }disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsxindex 32f8c2da45..d631c33364 100644--- a/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/ShippingMethods/ShippingMethodsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -102,6 +102,7 @@ const ShippingMethodsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsxindex dbbf0938fd..89c2479c82 100644--- a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx+++ b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransferLines.tsx@@ -15,6 +15,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,useDisclosure,VStack} from "@carbon/react";@@ -201,6 +202,7 @@ function StockTransferLineComponent({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!isEditable || !permissions.can("update", "inventory")}diff --git a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransfersTable.tsx b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransfersTable.tsxindex 37ff8d4217..18ac75acbc 100644--- a/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransfersTable.tsx+++ b/apps/erp/app/modules/inventory/ui/StockTransfers/StockTransfersTable.tsx@@ -1,6 +1,7 @@import {Button,Combobox,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -204,6 +205,11 @@ const StockTransfersTable = memo(return (<><MenuItem+ shortcut={+ row.completedAt+ ? MENU_ITEM_SHORTCUTS.view+ : MENU_ITEM_SHORTCUTS.edit+ }disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesGroups.tsx b/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesGroups.tsxindex 7a788c060a..bcc4d575f6 100644--- a/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesGroups.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesGroups.tsx@@ -18,6 +18,7 @@ import {Heading,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ScrollArea,Status,Subheading,@@ -247,6 +248,7 @@ const StorageRuleCard = memo(({ rule }: { rule: RuleListItem }) => {</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!canEdit}onClick={(e) => {e.stopPropagation();diff --git a/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesTable.tsx b/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesTable.tsxindex 79f251e9b6..d19a9709a0 100644--- a/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesTable.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageRules/StorageRulesTable.tsx@@ -1,5 +1,11 @@import type { Json } from "@carbon/database";-import { Badge, MenuIcon, MenuItem, Status } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ Status+} from "@carbon/react";import type { TransactionSurface } from "@carbon/utils";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -125,6 +131,7 @@ const StorageRulesTable = memo(({ data, count }: StorageRulesTableProps) => {(row: (typeof rows)[number]) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "settings")}onClick={() => {navigate(`${path.to.storageRule(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypesTable.tsx b/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypesTable.tsxindex 761678c4b9..263b2303ee 100644--- a/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypesTable.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageTypes/StorageTypesTable.tsx@@ -1,5 +1,5 @@import type { Json } from "@carbon/database";-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -55,6 +55,7 @@ const StorageTypesTable = memo(({ data, count }: StorageTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(`${path.to.storageType(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitsTable.tsx b/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitsTable.tsxindex a3ceb5d3a7..2a20f01633 100644--- a/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitsTable.tsx+++ b/apps/erp/app/modules/inventory/ui/StorageUnits/StorageUnitsTable.tsx@@ -4,6 +4,7 @@ import {Checkbox,Combobox,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Modal,@@ -532,6 +533,7 @@ const StorageUnitsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(`${path.to.storageUnit(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx b/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsxindex d0a8f93f8c..3420244c77 100644--- a/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx+++ b/apps/erp/app/modules/inventory/ui/Traceability/TrackedEntitiesTable.tsx@@ -1,4 +1,4 @@-import { Badge, MenuIcon, MenuItem } from "@carbon/react";+import { Badge, MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { getLocalTimeZone, parseDate, today } from "@internationalized/date";import { Trans, useLingui } from "@lingui/react/macro";import { useNumberFormatter } from "@react-aria/i18n";@@ -227,6 +227,7 @@ const TrackedEntitiesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(@@ -238,6 +239,7 @@ const TrackedEntitiesTable = memo(<Trans>View Traceability Graph</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "inventory") ||row.status === "Consumed"diff --git a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLines.tsx b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLines.tsxindex 8786691226..d674ff09b1 100644--- a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLines.tsx+++ b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransferLines.tsx@@ -14,6 +14,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -190,6 +191,7 @@ function WarehouseTransferLineListItem({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={isDisabled}onClick={() =>navigate(diff --git a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransfersTable.tsx b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransfersTable.tsxindex aad0c122d6..342e508e74 100644--- a/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransfersTable.tsx+++ b/apps/erp/app/modules/inventory/ui/WarehouseTransfers/WarehouseTransfersTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -193,6 +198,11 @@ const WarehouseTransfersTable = memo(return (<><MenuItem+ shortcut={+ row.status !== "Draft"+ ? MENU_ITEM_SHORTCUTS.view+ : MENU_ITEM_SHORTCUTS.edit+ }disabled={!permissions.can("update", "inventory")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx b/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsxindex b94bc67207..2e4e1324d9 100644--- a/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx+++ b/apps/erp/app/modules/invoicing/ui/Memo/MemosTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -70,7 +75,14 @@ const MemosTable = memo(({ data, count, party }: MemosTableProps) => {const renderContextMenu = useCallback((row: MemoRow) => (<>- <MenuItem onClick={() => navigate(path.to.memo(row.id))}>+ <MenuItem+ shortcut={+ row.status === "Draft"+ ? MENU_ITEM_SHORTCUTS.edit+ : MENU_ITEM_SHORTCUTS.view+ }+ onClick={() => navigate(path.to.memo(row.id))}+ ><MenuIcon icon={row.status === "Draft" ? <LuPencil /> : <LuEye />} />{row.status === "Draft" ? (<Trans>Edit Memo</Trans>diff --git a/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx b/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsxindex 9939a8058d..00abed4909 100644--- a/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx+++ b/apps/erp/app/modules/invoicing/ui/Payment/PaymentsTable.tsx@@ -1,5 +1,10 @@import type { Database } from "@carbon/database";-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -52,7 +57,14 @@ const PaymentsTable = memo(({ data, count }: PaymentsTableProps) => {const renderContextMenu = useCallback((row: PaymentRow) => (<>- <MenuItem onClick={() => navigate(path.to.payment(row.id))}>+ <MenuItem+ shortcut={+ row.status === "Draft"+ ? MENU_ITEM_SHORTCUTS.edit+ : MENU_ITEM_SHORTCUTS.view+ }+ onClick={() => navigate(path.to.payment(row.id))}+ ><MenuIcon icon={row.status === "Draft" ? <LuPencil /> : <LuEye />} />{row.status === "Draft" ? (<Trans>Edit Payment</Trans>diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsxindex bc44669022..7e3df6cdf9 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceExplorer.tsx@@ -11,6 +11,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tooltip,TooltipContent,@@ -383,6 +384,7 @@ function PurchaseInvoiceLineItem({{/* @ts-expect-error */}{itemType.includes(line.invoiceLineType ?? "") && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}asChildonClick={(e) => e.stopPropagation()}>diff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsxindex d3e163fdcd..94a0db3cf5 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoicesTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -294,6 +300,7 @@ const PurchaseInvoicesTable = memo(return (row: PurchaseInvoiceListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "invoicing")}onClick={() => navigate(path.to.purchaseInvoice(row.id!))}>diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsxindex bdacbf3e1f..4bff5928ae 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceExplorer.tsx@@ -8,6 +8,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tooltip,TooltipContent,@@ -332,6 +333,7 @@ function SalesInvoiceLineItem({{/* @ts-expect-error */}{itemType.includes(line.invoiceLineType ?? "") && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}asChildonClick={(e) => e.stopPropagation()}>diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsxindex a900a39613..794ad1c2c2 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoicesTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -287,6 +293,7 @@ const SalesInvoicesTable = memo(({ data, count }: SalesInvoicesTableProps) => {return (row: SalesInvoiceListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "invoicing")}onClick={() => navigate(path.to.salesInvoice(row.id!))}>diff --git a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeExplorer.tsx b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeExplorer.tsxindex 8ae740c8c2..8788dbf414 100644--- a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeExplorer.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticeExplorer.tsx@@ -8,6 +8,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,useDisclosure,VStack} from "@carbon/react";@@ -203,7 +204,7 @@ function AffectedItemRow({<DropdownMenuIcon icon={<LuTrash />} /><Trans>Delete</Trans></DropdownMenuItem>- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Link to={getLinkToItemDetails(type, item.itemId)}><DropdownMenuIconicon={<MethodItemTypeIcon type={type} />}diff --git a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticesTable.tsx b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticesTable.tsxindex c8ba4964ea..72ef9b5f6a 100644--- a/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticesTable.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNotice/ChangeNoticesTable.tsx@@ -1,4 +1,10 @@-import { Badge, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -272,6 +278,7 @@ const ChangeNoticesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(path.to.changeNotice(row.id!));diff --git a/apps/erp/app/modules/items/ui/ChangeNoticeActions/ChangeNoticeRequiredActionsTable.tsx b/apps/erp/app/modules/items/ui/ChangeNoticeActions/ChangeNoticeRequiredActionsTable.tsxindex 995e63657e..a63a6203bf 100644--- a/apps/erp/app/modules/items/ui/ChangeNoticeActions/ChangeNoticeRequiredActionsTable.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNoticeActions/ChangeNoticeRequiredActionsTable.tsx@@ -1,4 +1,9 @@-import { Checkbox, MenuIcon, MenuItem } from "@carbon/react";+import {+ Checkbox,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -49,6 +54,7 @@ const ChangeNoticeRequiredActionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypesTable.tsx b/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypesTable.tsxindex 47c81c8080..b1a0b52308 100644--- a/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypesTable.tsx+++ b/apps/erp/app/modules/items/ui/ChangeNoticeTypes/ChangeNoticeTypesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -44,6 +44,7 @@ const ChangeNoticeTypesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx b/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsxindex 654ab45cdc..c35e076e77 100644--- a/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx+++ b/apps/erp/app/modules/items/ui/Consumables/ConsumablesTable.tsx@@ -13,6 +13,7 @@ import {DropdownMenuSubContent,DropdownMenuSubTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,toast,@@ -550,7 +551,10 @@ const ConsumablesTable = memo(const renderContextMenu = useMemo(() => {return (row: ConsumableListItem) => (<>- <MenuItem onClick={() => navigate(path.to.consumable(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.consumable(row.id!))}+ ><MenuIcon icon={<LuPencil />} />Edit ConsumableListItem</MenuItem>diff --git a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsxindex f9cd3db34a..3b863a294a 100644--- a/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx+++ b/apps/erp/app/modules/items/ui/Item/BillOfProcess.tsx@@ -26,6 +26,7 @@ import {IconButton,Label,Loading,+ MENU_ITEM_SHORTCUTS,Subheading,ToggleGroup,ToggleGroupItem,@@ -2856,10 +2857,14 @@ function AttributesListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}onClick={() =>duplicateFetcher.submit(null, {method: "post",@@ -3461,7 +3466,10 @@ function ParametersListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem@@ -4016,7 +4024,10 @@ function ToolsListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx b/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsxindex 8a83497aa9..3d90626c3d 100644--- a/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx+++ b/apps/erp/app/modules/items/ui/Item/CustomerParts/CustomerParts.tsx@@ -10,7 +10,8 @@ import {DropdownMenuItem,DropdownMenuTrigger,HStack,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -56,6 +57,7 @@ const CustomerParts = ({ customerParts, itemId }: CustomerPartsProps) => {</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>navigate(path.to.customerPart(itemId, row.original.id!))}diff --git a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsxindex 2a4297a8e4..ec1aae866b 100644--- a/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemDocuments.tsx@@ -14,6 +14,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -172,12 +173,16 @@ const ItemDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ ><Link to={getModelPath(modelUpload)}><Trans>View</Trans></Link></DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => downloadModel(modelUpload)}>Download@@ -255,7 +260,10 @@ const ItemDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ >Download</DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx b/apps/erp/app/modules/items/ui/Item/ItemForm.tsxindex a91da76dd6..28844f3aab 100644--- a/apps/erp/app/modules/items/ui/Item/ItemForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/ItemForm.tsx@@ -12,7 +12,8 @@ import {DropdownMenuItem,DropdownMenuTrigger,HStack,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import { useState } from "react";@@ -116,7 +117,7 @@ const ItemForm = ({ initialValues, type }: ItemFormProps) => {/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild>{/* @ts-ignore */}<Link to={getLinkToItemDetails(type, initialValues.id)}><Trans>View Item Master</Trans>diff --git a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsxindex 439ad83c33..c45ed5de9d 100644--- a/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx+++ b/apps/erp/app/modules/items/ui/Item/MakeMethodTools.tsx@@ -21,6 +21,7 @@ import {DropdownMenuSubTrigger,DropdownMenuTrigger,HStack,+ MENU_ITEM_SHORTCUTS,Menubar,MenubarItem,Modal,@@ -309,6 +310,7 @@ const MakeMethodTools = ({isLocked={isChangeNoticeLocked}><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}disabled={isChangeNoticeLocked}onClick={() => {flushSync(() => {diff --git a/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx b/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsxindex 391307b7c4..c4310a32a3 100644--- a/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx+++ b/apps/erp/app/modules/items/ui/Item/PickMethodForm.tsx@@ -19,6 +19,7 @@ import {HStack,IconButton,Label,+ MENU_ITEM_SHORTCUTS,Switch,usePickOrderOptions,VStack@@ -171,7 +172,7 @@ const PickMethodForm = ({<DropdownMenuContent align="end">{shelfLifeHistoryTrigger}{inventoryHistoryTrigger}- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.open} asChild><Link to={path.to.auditLog}><DropdownMenuIcon icon={<LuSettings />} /><Trans>Open Audit Log</Trans>diff --git a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx b/apps/erp/app/modules/items/ui/Item/UsedIn.tsxindex d989fee81c..daf58de7d7 100644--- a/apps/erp/app/modules/items/ui/Item/UsedIn.tsx+++ b/apps/erp/app/modules/items/ui/Item/UsedIn.tsx@@ -13,6 +13,7 @@ import {Input,InputGroup,InputLeftElement,+ MENU_ITEM_SHORTCUTS,Skeleton,Tooltip,TooltipContent,@@ -403,6 +404,7 @@ export function RevisionsItem({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onSelect={() => {flushSync(() => {setSelectedRevision({diff --git a/apps/erp/app/modules/items/ui/ItemPostingGroups/ItemPostingGroupsTable.tsx b/apps/erp/app/modules/items/ui/ItemPostingGroups/ItemPostingGroupsTable.tsxindex 44eaa92943..8ff194c892 100644--- a/apps/erp/app/modules/items/ui/ItemPostingGroups/ItemPostingGroupsTable.tsx+++ b/apps/erp/app/modules/items/ui/ItemPostingGroups/ItemPostingGroupsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -58,6 +58,7 @@ const ItemGroupsTable = memo(({ data, count }: ItemGroupsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/items/ui/MaterialDimensions/MaterialDimensionsTable.tsx b/apps/erp/app/modules/items/ui/MaterialDimensions/MaterialDimensionsTable.tsxindex f51aafd85b..be8ab17a30 100644--- a/apps/erp/app/modules/items/ui/MaterialDimensions/MaterialDimensionsTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialDimensions/MaterialDimensionsTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -109,6 +115,7 @@ const MaterialDimensionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/MaterialFinishes/MaterialFinishesTable.tsx b/apps/erp/app/modules/items/ui/MaterialFinishes/MaterialFinishesTable.tsxindex ad2328007e..fbe2dd9878 100644--- a/apps/erp/app/modules/items/ui/MaterialFinishes/MaterialFinishesTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialFinishes/MaterialFinishesTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -110,6 +116,7 @@ const MaterialFinishesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/MaterialGrades/MaterialGradesTable.tsx b/apps/erp/app/modules/items/ui/MaterialGrades/MaterialGradesTable.tsxindex 92dc7b1f04..f1bec7b6eb 100644--- a/apps/erp/app/modules/items/ui/MaterialGrades/MaterialGradesTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialGrades/MaterialGradesTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -109,6 +115,7 @@ const MaterialGradesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsx b/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsxindex b6c0cd3746..d7a5f70e4e 100644--- a/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialShapes/MaterialShapesTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -102,6 +108,7 @@ const MaterialShapesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx b/apps/erp/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsxindex 05e96a0ef2..73f0d638c5 100644--- a/apps/erp/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialSubstances/MaterialSubstanceTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -102,6 +108,7 @@ const MaterialSubstancesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/MaterialTypes/MaterialTypesTable.tsx b/apps/erp/app/modules/items/ui/MaterialTypes/MaterialTypesTable.tsxindex f177a45e30..54b55afa6d 100644--- a/apps/erp/app/modules/items/ui/MaterialTypes/MaterialTypesTable.tsx+++ b/apps/erp/app/modules/items/ui/MaterialTypes/MaterialTypesTable.tsx@@ -1,4 +1,10 @@-import { Badge, Copy, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Copy,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -126,6 +132,7 @@ const MaterialTypesTable = memo(({ data, count }: MaterialTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts") || row.companyId === null}diff --git a/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx b/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsxindex 9d8921a5b3..a507cacebd 100644--- a/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx+++ b/apps/erp/app/modules/items/ui/Materials/MaterialsTable.tsx@@ -13,6 +13,7 @@ import {DropdownMenuSubContent,DropdownMenuSubTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,MenuSub,@@ -682,7 +683,10 @@ const MaterialsTable = memo(({ data, tags, count }: MaterialsTableProps) => {}[]) ?? [];return (<>- <MenuItem onClick={() => navigate(path.to.material(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.material(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit Material</Trans></MenuItem>diff --git a/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx b/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsxindex a7fe811c33..0882a7a159 100644--- a/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx+++ b/apps/erp/app/modules/items/ui/Parts/ConfigurationParameters.tsx@@ -21,6 +21,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -769,6 +770,7 @@ function ParameterGroup({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {flushSync(() => {setSelectedGroup(group);@@ -1000,7 +1002,10 @@ function ConfigurableParameter({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ ><Trans>Edit</Trans></DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx b/apps/erp/app/modules/items/ui/Parts/PartsTable.tsxindex e44fb12c14..026489781d 100644--- a/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx+++ b/apps/erp/app/modules/items/ui/Parts/PartsTable.tsx@@ -13,6 +13,7 @@ import {DropdownMenuSubContent,DropdownMenuSubTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,MenuSub,@@ -627,7 +628,10 @@ const PartsTable = memo(({ data, tags, count }: PartsTableProps) => {}[]) ?? [];return (<>- <MenuItem onClick={() => navigate(path.to.part(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.part(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit Part</Trans></MenuItem>diff --git a/apps/erp/app/modules/items/ui/Services/ServicesTable.tsx b/apps/erp/app/modules/items/ui/Services/ServicesTable.tsxindex fd9a7591c6..f819e6dbb2 100644--- a/apps/erp/app/modules/items/ui/Services/ServicesTable.tsx+++ b/apps/erp/app/modules/items/ui/Services/ServicesTable.tsx@@ -13,6 +13,7 @@ import {DropdownMenuSubContent,DropdownMenuSubTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,MenuSub,@@ -491,7 +492,10 @@ const ServicesTable = memo(({ data, tags, count }: ServicesTableProps) => {}[]) ?? [];return (<>- <MenuItem onClick={() => navigate(path.to.service(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.service(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit Service</Trans></MenuItem>diff --git a/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx b/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsxindex 0a29da84f0..7cad9ea779 100644--- a/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx+++ b/apps/erp/app/modules/items/ui/Tools/ToolsTable.tsx@@ -13,6 +13,7 @@ import {DropdownMenuSubContent,DropdownMenuSubTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,MenuSub,@@ -597,7 +598,10 @@ const ToolsTable = memo(({ data, tags, count }: ToolsTableProps) => {}[]) ?? [];return (<>- <MenuItem onClick={() => navigate(path.to.tool(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.tool(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit Tool</Trans></MenuItem>diff --git a/apps/erp/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx b/apps/erp/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsxindex 01beeacaf4..5eaf8ebd82 100644--- a/apps/erp/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx+++ b/apps/erp/app/modules/items/ui/UnitOfMeasure/UnitOfMeasuresTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -55,6 +55,7 @@ const UnitOfMeasuresTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "parts")}onClick={() => {navigate(`${path.to.uom(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsxindex eda6d4be48..9e034f6824 100644--- a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx+++ b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoriesTable.tsx@@ -2,6 +2,7 @@ import {Badge,Button,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -131,6 +132,7 @@ const AttributeCategoriesTable = memo(<Trans>New Attribute</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.attributeCategoryList(@@ -143,6 +145,7 @@ const AttributeCategoriesTable = memo(<Trans>View Attributes</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(path.to.attributeCategory(row.id));}}diff --git a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryDetail.tsx b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryDetail.tsxindex 345a55e8f0..668e15e796 100644--- a/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryDetail.tsx+++ b/apps/erp/app/modules/people/ui/Attributes/AttributeCategoryDetail.tsx@@ -11,6 +11,7 @@ import {DrawerTitle,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDebounce,@@ -120,7 +121,7 @@ const AttributeCategoryDetail = ({const renderContextMenu = (attributeId: string) => {return (<>- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={attributeId}><MenuIcon icon={<LuPencil />} /><Trans>Edit Attribute</Trans>diff --git a/apps/erp/app/modules/people/ui/Departments/DepartmentNode.tsx b/apps/erp/app/modules/people/ui/Departments/DepartmentNode.tsxindex be1c56297f..48a4dd16b5 100644--- a/apps/erp/app/modules/people/ui/Departments/DepartmentNode.tsx+++ b/apps/erp/app/modules/people/ui/Departments/DepartmentNode.tsx@@ -2,7 +2,8 @@ import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,- DropdownMenuTrigger+ DropdownMenuTrigger,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { Handle, type NodeProps, Position } from "@xyflow/react";import { memo } from "react";@@ -59,7 +60,10 @@ function DepartmentNodeComponent({</button></DropdownMenuTrigger><DropdownMenuContent align="end" className="w-44">- <DropdownMenuItem onClick={() => onEdit(department.id!)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => onEdit(department.id!)}+ ><LuPencil className="mr-2 size-4" />Edit</DropdownMenuItem>diff --git a/apps/erp/app/modules/people/ui/Departments/DepartmentsListView.tsx b/apps/erp/app/modules/people/ui/Departments/DepartmentsListView.tsxindex 2361a0f28e..eeb2da280c 100644--- a/apps/erp/app/modules/people/ui/Departments/DepartmentsListView.tsx+++ b/apps/erp/app/modules/people/ui/Departments/DepartmentsListView.tsx@@ -3,7 +3,8 @@ import {DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import {LuBuilding,@@ -74,7 +75,10 @@ function DepartmentsRow({/></DropdownMenuTrigger><DropdownMenuContent align="end" className="w-44">- <DropdownMenuItem onClick={() => onEdit(department.id!)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => onEdit(department.id!)}+ ><LuPencil className="mr-2 size-4" />Edit</DropdownMenuItem>diff --git a/apps/erp/app/modules/people/ui/Departments/DepartmentsTable.tsx b/apps/erp/app/modules/people/ui/Departments/DepartmentsTable.tsxindex 32f7d37e55..9723d974d5 100644--- a/apps/erp/app/modules/people/ui/Departments/DepartmentsTable.tsx+++ b/apps/erp/app/modules/people/ui/Departments/DepartmentsTable.tsx@@ -1,4 +1,4 @@-import { HStack, MenuIcon, MenuItem } from "@carbon/react";+import { HStack, MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -69,6 +69,7 @@ const DepartmentsTable = memo(({ data, count }: DepartmentsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.department(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/people/ui/Holidays/HolidaysTable.tsx b/apps/erp/app/modules/people/ui/Holidays/HolidaysTable.tsxindex ad2e4fd714..2b68e6bbba 100644--- a/apps/erp/app/modules/people/ui/Holidays/HolidaysTable.tsx+++ b/apps/erp/app/modules/people/ui/Holidays/HolidaysTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -76,6 +76,7 @@ const HolidaysTable = memo(({ data, count, years }: HolidaysTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.holiday(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/people/ui/People/PeopleTable.tsx b/apps/erp/app/modules/people/ui/People/PeopleTable.tsxindex 7222e076e1..03a0689dbf 100644--- a/apps/erp/app/modules/people/ui/People/PeopleTable.tsx+++ b/apps/erp/app/modules/people/ui/People/PeopleTable.tsx@@ -1,4 +1,11 @@-import { Badge, Checkbox, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Checkbox,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -273,6 +280,7 @@ const PeopleTable = memo(? (row: (typeof data)[number]) => {return (<MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>navigate(`${path.to.personDetails(row.id!)}?${params.toString()}`diff --git a/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx b/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsxindex 4266e83f20..a913ba5eb4 100644--- a/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx+++ b/apps/erp/app/modules/people/ui/Shifts/ShiftsTable.tsx@@ -1,4 +1,4 @@-import { Badge, MenuIcon, MenuItem } from "@carbon/react";+import { Badge, MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { formatTimeOfDay } from "@carbon/utils";import {parseTime,@@ -177,6 +177,7 @@ const ShiftsTable = memo(({ data, count, locations }: ShiftsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.shift(row.id!)}?${params.toString()}}`);}}diff --git a/apps/erp/app/modules/people/ui/Timecards/TimecardsTable.tsx b/apps/erp/app/modules/people/ui/Timecards/TimecardsTable.tsxindex d966711233..638e4da814 100644--- a/apps/erp/app/modules/people/ui/Timecards/TimecardsTable.tsx+++ b/apps/erp/app/modules/people/ui/Timecards/TimecardsTable.tsx@@ -2,6 +2,7 @@ import {Avatar,Badge,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useInterval@@ -206,6 +207,7 @@ const TimecardsTable = memo(({ data, count }: TimecardsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "people")}onClick={() =>navigate(`${path.to.timecard(row.id!)}?${params.toString()}`)diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionHeader.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionHeader.tsxindex 0f603c787d..822ad9098a 100644--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionHeader.tsx+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionHeader.tsx@@ -9,6 +9,7 @@ import {HStack,IconButton,Input,+ MENU_ITEM_SHORTCUTS,useDisclosure} from "@carbon/react";import { useState } from "react";@@ -127,7 +128,7 @@ const AssemblyInstructionHeader = () => {</DropdownMenuTrigger><DropdownMenuContent>{item && itemTypesWithDetails.includes(item.type) && (- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Linkto={getLinkToItemDetails(item.type as MethodItemType,diff --git a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionsTable.tsx b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionsTable.tsxindex c689747177..5cd40883a6 100644--- a/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionsTable.tsx+++ b/apps/erp/app/modules/production/ui/Assemblies/AssemblyInstructionsTable.tsx@@ -3,6 +3,7 @@ import {HoverCard,HoverCardContent,HoverCardTrigger,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Status,@@ -243,6 +244,7 @@ const AssemblyInstructionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "production")}onClick={() => {navigate(path.to.assemblyInstruction(row.id!));diff --git a/apps/erp/app/modules/production/ui/Batches/BatchDetailDrawer.tsx b/apps/erp/app/modules/production/ui/Batches/BatchDetailDrawer.tsxindex befb1fdcbf..67ddba8b2b 100644--- a/apps/erp/app/modules/production/ui/Batches/BatchDetailDrawer.tsx+++ b/apps/erp/app/modules/production/ui/Batches/BatchDetailDrawer.tsx@@ -18,6 +18,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -329,7 +330,7 @@ export function BatchDetailDrawer({</a></DropdownMenuItem>{isLive && (- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Link to={path.to.priorityOperation}><DropdownMenuIcon icon={<LuLayers />} />{t`View on schedule board`}diff --git a/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx b/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsxindex 0d33faa7bd..9dd346060e 100644--- a/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx+++ b/apps/erp/app/modules/production/ui/Batches/BatchesTable.tsx@@ -4,6 +4,7 @@ import {DropdownMenuItem,DropdownMenuLabel,DropdownMenuSeparator,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Status,@@ -128,7 +129,10 @@ const BatchesTable = memo(({ data, count }: BatchesTableProps) => {const renderContextMenu = useCallback((row: JobOperationBatch) => (<>- <MenuItem onClick={() => navigate(path.to.operationBatch(row.id))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ onClick={() => navigate(path.to.operationBatch(row.id))}+ ><MenuIcon icon={<LuEye />} />{t`View Batch`}</MenuItem>diff --git a/apps/erp/app/modules/production/ui/DemandProjection/DemandProjectionTable.tsx b/apps/erp/app/modules/production/ui/DemandProjection/DemandProjectionTable.tsxindex 6b5768833f..b01ad82bea 100644--- a/apps/erp/app/modules/production/ui/DemandProjection/DemandProjectionTable.tsx+++ b/apps/erp/app/modules/production/ui/DemandProjection/DemandProjectionTable.tsx@@ -7,6 +7,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,useUrlParams,VStack} from "@carbon/react";@@ -155,7 +156,10 @@ const DemandProjectionsTable = memo(/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ asChild+ ><Linkto={path.to.demandProjection(row.original.id!,diff --git a/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentEditor.tsx b/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentEditor.tsxindex b23a19a621..d33d428815 100644--- a/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentEditor.tsx+++ b/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentEditor.tsx@@ -9,6 +9,7 @@ import {HStack,IconButton,Input,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -2760,6 +2761,7 @@ export default function InspectionDocumentEditor({</DropdownMenuTrigger><DropdownMenuContent align="start" className="min-w-56"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}disabled={!itemMasterLink}onClick={() => {if (itemMasterLink) navigate(itemMasterLink);@@ -2779,6 +2781,7 @@ export default function InspectionDocumentEditor({{uploading ? t`Uploading…` : t`Replace PDF`}</DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}disabled={pdfExporting}onClick={handleDownloadPdfWithBalloons}>diff --git a/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentTable.tsx b/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentTable.tsxindex bfe13d5b92..7553ab7922 100644--- a/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentTable.tsx+++ b/apps/erp/app/modules/production/ui/InspectionDocument/InspectionDocumentTable.tsx@@ -1,4 +1,10 @@-import { MenuIcon, MenuItem, useDisclosure, VStack } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure,+ VStack+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -125,6 +131,7 @@ const InspectionDocumentTable = memo((row: InspectionDocument) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsxindex 78f2400cfc..2bf7a30fd5 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobBillOfProcess.tsx@@ -31,6 +31,7 @@ import {Input as InputField,Label,Loading,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -2375,10 +2376,14 @@ function StepsListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}onClick={() =>duplicateStepFetcher.submit(null, {method: "post",@@ -2744,7 +2749,10 @@ function ParametersListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem@@ -4040,7 +4048,10 @@ function ToolsListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsxindex a53fd997e8..cef9974104 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobDocuments.tsx@@ -19,6 +19,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -420,12 +421,16 @@ const JobDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ ><Link to={getModelPath(modelUpload)}><Trans>View</Trans></Link></DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => downloadModel(modelUpload)}>Download@@ -526,7 +531,10 @@ const JobDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ >Download</DropdownMenuItem>{itemId &&diff --git a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsxindex dcd4fa0d3d..71fdc2d5db 100644--- a/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/JobsTable.tsx@@ -8,6 +8,7 @@ import {DropdownMenuLabel,DropdownMenuSeparator,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,toast,@@ -717,6 +718,7 @@ const JobsTable = memo((props: JobsTableProps) => {(row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(path.to.job(row.id!));}}diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsxindex 6dc9b5fc79..83183ac472 100644--- a/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionEventsTable.tsx@@ -1,4 +1,10 @@-import { Badge, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { formatDurationMilliseconds } from "@carbon/utils";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -201,6 +207,7 @@ const ProductionEventsTable = memo((row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "production")}onClick={() => navigate(row.id)}>diff --git a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsxindex 320d5e58fc..67a0ba7b27 100644--- a/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx+++ b/apps/erp/app/modules/production/ui/Jobs/ProductionQuantitiesTable.tsx@@ -1,4 +1,10 @@-import { Badge, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -182,6 +188,7 @@ const ProductionQuantitiesTable = memo((row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "production")}onClick={() => navigate(row.id)}>diff --git a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsxindex fd966fef7d..8bd2030dd9 100644--- a/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx+++ b/apps/erp/app/modules/production/ui/Procedures/ProcedureExplorer.tsx@@ -26,6 +26,7 @@ import {HStack,IconButton,Label,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tabs,TabsContent,@@ -575,6 +576,7 @@ function ProcedureStepItem({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={(e) => {e.stopPropagation();onEdit(attribute);@@ -665,6 +667,7 @@ function ProcedureParameterItem({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={(e) => {e.stopPropagation();onEdit(parameter);diff --git a/apps/erp/app/modules/production/ui/Procedures/ProceduresTable.tsx b/apps/erp/app/modules/production/ui/Procedures/ProceduresTable.tsxindex fbd33f212b..719b37610f 100644--- a/apps/erp/app/modules/production/ui/Procedures/ProceduresTable.tsx+++ b/apps/erp/app/modules/production/ui/Procedures/ProceduresTable.tsx@@ -4,6 +4,7 @@ import {HoverCardContent,HoverCardTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -186,6 +187,7 @@ const ProceduresTable = memo(({ data, tags, count }: ProceduresTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "production")}onClick={() => {navigate(`${path.to.procedure(row.id!)}`);diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/BatchItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/BatchItemCard.tsxindex 96e03cfe89..89a3f4d64a 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/BatchItemCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/BatchItemCard.tsx@@ -11,7 +11,8 @@ import {DropdownMenuItem,DropdownMenuTrigger,HStack,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { useSortable } from "@dnd-kit/sortable";import { CSS } from "@dnd-kit/utilities";@@ -203,7 +204,7 @@ export function BatchItemCard({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.open} asChild><a href={path.to.external.mesBatch(item.batchId)}><DropdownMenuIcon icon={<LuPlay />} />{t`Open in MES`}diff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsxindex 0b20de859d..be6b3f67c1 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/ItemCard.tsx@@ -14,6 +14,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Tooltip,TooltipContent,TooltipTrigger@@ -225,7 +226,7 @@ function OperationCard({</DropdownMenuTrigger><DropdownMenuContent>{item.link && (- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={`${item.link}?selectedOperation=${item.id}`}><DropdownMenuIcon icon={<LuPencil />} />Edit Operation@@ -247,7 +248,7 @@ function OperationCard({/>{isHighlighted ? "Remove Highlight" : "Highlight Job"}</DropdownMenuItem>- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.open} asChild><a href={path.to.external.mesJobOperation(item.id)}><DropdownMenuIcon icon={<LuPlay />} />Open in MESdiff --git a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsxindex 61f61b84b8..06449539a2 100644--- a/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx+++ b/apps/erp/app/modules/production/ui/Schedule/Kanban/components/JobCard.tsx@@ -13,6 +13,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Tooltip,TooltipContent,TooltipTrigger@@ -282,7 +283,7 @@ export function JobCard({</DropdownMenuTrigger><DropdownMenuContent>{item.link && (- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={item.link}><DropdownMenuIcon icon={<LuPencil />} />Edit Jobdiff --git a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsxindex ad6316acf5..c12470dec2 100644--- a/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx+++ b/apps/erp/app/modules/production/ui/ScrapReasons/ScrapReasonsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -46,6 +46,7 @@ const ScrapReasonsTable = memo(({ data, count }: ScrapReasonsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.scrapReason(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsxindex 4673009287..b8671d260f 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderExplorer.tsx@@ -8,6 +8,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tooltip,TooltipContent,@@ -413,7 +414,7 @@ function PurchaseOrderLineItem({{(itemType as readonly string[]).includes(line?.purchaseOrderLineType ?? "") && (- <DropdownMenuItem asChild>+ <DropdownMenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Linkto={getLinkToItemDetails(line.purchaseOrderLineType as ItemType,diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsxindex 108b6a7397..71a1094b89 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrdersTable.tsx@@ -7,6 +7,7 @@ import {DropdownMenuLabel,DropdownMenuSeparator,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,toast,@@ -446,6 +447,7 @@ const PurchaseOrdersTable = memo((row: PurchaseOrderListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "purchasing")}onClick={() => edit(row)}>@@ -454,6 +456,7 @@ const PurchaseOrdersTable = memo(</MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}disabled={!permissions.can("create", "purchasing") || !row.id}onClick={() => {if (!row.id) return;diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseReturnOrders/PurchaseReturnOrdersTable.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseReturnOrders/PurchaseReturnOrdersTable.tsxindex e724636779..d7ab8bbb8f 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseReturnOrders/PurchaseReturnOrdersTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseReturnOrders/PurchaseReturnOrdersTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -186,6 +191,7 @@ const PurchaseReturnOrdersTable = memo(return (row: PurchaseReturnOrderListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "purchasing")}onClick={() => {navigate(path.to.purchaseReturnOrderDetails(row.id!));diff --git a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsxindex 0e4b6f1f8f..0b6e95b24c 100644--- a/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchasingRfq/PurchasingRFQsTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -233,6 +239,7 @@ const PurchasingRFQsTable = memo(return (row: PurchasingRFQ) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => navigate(path.to.purchasingRfqDetails(row.id!))}><MenuIcon icon={<LuPencil />} />diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsxindex a4367d3ef1..278afc8f3c 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierBankAccounts.tsx@@ -10,6 +10,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,useDisclosure} from "@carbon/react";import type { BankCodeLabelKey } from "@carbon/utils";@@ -198,6 +199,7 @@ const SupplierBankAccounts = ({ bankAccounts }: SupplierBankAccountsProps) => {</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => navigate(account.id)}>diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsxindex 972d26e85f..05fd90c0a8 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SupplierProcesses.tsx@@ -11,7 +11,8 @@ import {DropdownMenuItem,DropdownMenuTrigger,HStack,- IconButton+ IconButton,+ MENU_ITEM_SHORTCUTS} from "@carbon/react";import { INPUT_FORMAT } from "@carbon/utils";import { Trans, useLingui } from "@lingui/react/macro";@@ -93,6 +94,7 @@ const SupplierProccesses = ({ processes }: SupplierProccessesProps) => {</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>navigate(path.to.supplierProcess(supplierId, row.original.id!)diff --git a/apps/erp/app/modules/purchasing/ui/Supplier/SuppliersTable.tsx b/apps/erp/app/modules/purchasing/ui/Supplier/SuppliersTable.tsxindex 87018c7bc9..155990bf90 100644--- a/apps/erp/app/modules/purchasing/ui/Supplier/SuppliersTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/Supplier/SuppliersTable.tsx@@ -2,6 +2,7 @@ import {Badge,Button,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -412,7 +413,10 @@ const SuppliersTable = memo(function SuppliersTable({const renderContextMenu = useMemo(() => (row: Supplier) => (<>- <MenuItem onClick={() => navigate(path.to.supplier(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.supplier(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit Supplier</Trans></MenuItem>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsxindex a719c56e17..9bfc4e6618 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionDocuments.tsx@@ -14,6 +14,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -152,6 +153,7 @@ const SupplierInteractionDocuments = ({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => download(attachment)}><Trans>Download</Trans>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsxindex 4c7f39bf31..7f6bcfc32d 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierInteraction/SupplierInteractionLineDocuments.tsx@@ -14,6 +14,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -307,7 +308,10 @@ const SupplierInteractionLineDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ ><Trans>Download</Trans></DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsxindex dcb8c81431..c3ef4f0f94 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuoteExplorer.tsx@@ -8,6 +8,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tooltip,TooltipContent,@@ -340,6 +341,7 @@ function SupplierQuoteLineItem({{lineItemType &&itemType.includes(lineItemType as ItemType) && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}asChildonClick={(e) => e.stopPropagation()}>diff --git a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsxindex 2eb267736f..b492dfe871 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierQuote/SupplierQuotesTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -225,6 +231,7 @@ const SupplierQuotesTable = memo(return (row: SupplierQuote) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => navigate(path.to.supplierQuoteDetails(row.id!))}><MenuIcon icon={<LuPencil />} />diff --git a/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx b/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsxindex 0f6370acba..83e016c9f5 100644--- a/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx+++ b/apps/erp/app/modules/purchasing/ui/SupplierTypes/SupplierTypesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -49,6 +49,7 @@ const SupplierTypesTable = memo(({ data, count }: SupplierTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.suppliers}?filter=type:eq:${row.name}`);}}@@ -57,6 +58,7 @@ const SupplierTypesTable = memo(({ data, count }: SupplierTypesTableProps) => {<Trans>View Suppliers</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={row.protected || !permissions.can("update", "purchasing")}onClick={() => {navigate(`${path.to.supplierType(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/quality/ui/Actions/ActionsTable.tsx b/apps/erp/app/modules/quality/ui/Actions/ActionsTable.tsxindex 2b261529f9..4f577fa9d8 100644--- a/apps/erp/app/modules/quality/ui/Actions/ActionsTable.tsx+++ b/apps/erp/app/modules/quality/ui/Actions/ActionsTable.tsx@@ -1,4 +1,10 @@-import { Badge, MenuIcon, MenuItem, Status } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ Status+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -218,6 +224,7 @@ const ActionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(`${path.to.issue(row.nonConformanceId!)}`);diff --git a/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordsTable.tsx b/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordsTable.tsxindex 14a6f78670..5b80f906c1 100644--- a/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordsTable.tsx+++ b/apps/erp/app/modules/quality/ui/Calibrations/GaugeCalibrationRecordsTable.tsx@@ -1,5 +1,11 @@import type { Database } from "@carbon/database";-import { Checkbox, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Checkbox,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import { useNumberFormatter } from "@react-aria/i18n";import type { ColumnDef } from "@tanstack/react-table";@@ -344,6 +350,7 @@ const GaugeCalibrationRecordsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentsTable.tsx b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentsTable.tsxindex 8baded2ff5..9dc50ca404 100644--- a/apps/erp/app/modules/quality/ui/Documents/QualityDocumentsTable.tsx+++ b/apps/erp/app/modules/quality/ui/Documents/QualityDocumentsTable.tsx@@ -5,6 +5,7 @@ import {HoverCardContent,HoverCardTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,toast,@@ -186,6 +187,7 @@ const QualityDocumentsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(`${path.to.qualityDocument(row.id!)}`);diff --git a/apps/erp/app/modules/quality/ui/Gauge/GaugeForm.tsx b/apps/erp/app/modules/quality/ui/Gauge/GaugeForm.tsxindex 1067b300f8..e5b34423ee 100644--- a/apps/erp/app/modules/quality/ui/Gauge/GaugeForm.tsx+++ b/apps/erp/app/modules/quality/ui/Gauge/GaugeForm.tsx@@ -8,6 +8,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ModalDrawer,ModalDrawerBody,ModalDrawerContent,@@ -272,7 +273,12 @@ const GaugeForm = ({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={+ MENU_ITEM_SHORTCUTS.view+ }+ asChild+ ><Linkto={path.to.gaugeCalibrationRecord(record.id!diff --git a/apps/erp/app/modules/quality/ui/Gauge/GaugesTable.tsx b/apps/erp/app/modules/quality/ui/Gauge/GaugesTable.tsxindex 369ac3b262..a8fbafab30 100644--- a/apps/erp/app/modules/quality/ui/Gauge/GaugesTable.tsx+++ b/apps/erp/app/modules/quality/ui/Gauge/GaugesTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -308,6 +313,7 @@ const GaugesTable = memo(({ data, types, count }: GaugesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(`${path.to.gauge(row.id!)}?${params?.toString()}`);diff --git a/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypesTable.tsx b/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypesTable.tsxindex 8d1b4aaf72..28e8599941 100644--- a/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypesTable.tsx+++ b/apps/erp/app/modules/quality/ui/GaugeTypes/GaugeTypesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -47,6 +47,7 @@ const GaugeTypesTable = memo(({ data, count }: GaugeTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.gaugeType(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/quality/ui/Issue/IssuesTable.tsx b/apps/erp/app/modules/quality/ui/Issue/IssuesTable.tsxindex 58fc07b004..d7cbc57edd 100644--- a/apps/erp/app/modules/quality/ui/Issue/IssuesTable.tsx+++ b/apps/erp/app/modules/quality/ui/Issue/IssuesTable.tsx@@ -1,4 +1,10 @@-import { Badge, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -305,6 +311,7 @@ const IssuesTable = memo(({ data, types, count }: IssuesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(`${path.to.issue(row.id!)}`);diff --git a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypesTable.tsx b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypesTable.tsxindex a8db94b034..de2e5a94a5 100644--- a/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypesTable.tsx+++ b/apps/erp/app/modules/quality/ui/IssueTypes/IssueTypesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -47,6 +47,7 @@ const IssueTypesTable = memo(({ data, count }: IssueTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.issueType(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/quality/ui/IssueWorkflows/IssueWorkflowsTable.tsx b/apps/erp/app/modules/quality/ui/IssueWorkflows/IssueWorkflowsTable.tsxindex 52bc5ea6c6..fba712f2aa 100644--- a/apps/erp/app/modules/quality/ui/IssueWorkflows/IssueWorkflowsTable.tsx+++ b/apps/erp/app/modules/quality/ui/IssueWorkflows/IssueWorkflowsTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -83,6 +88,7 @@ const IssueWorkflowsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "quality")}onClick={() => {navigate(`${path.to.issueWorkflow(row.id!)}`);diff --git a/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionsTable.tsx b/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionsTable.tsxindex 772172e0b1..9718a44c79 100644--- a/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionsTable.tsx+++ b/apps/erp/app/modules/quality/ui/RequiredActions/RequiredActionsTable.tsx@@ -1,4 +1,10 @@-import { Checkbox, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ Checkbox,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo, useState } from "react";@@ -55,6 +61,7 @@ const RequiredActionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.requiredAction(row.id)}?${params.toString()}`diff --git a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsxindex 1e523ac1ef..d0bec243a9 100644--- a/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx+++ b/apps/erp/app/modules/quality/ui/RiskRegister/RiskRegistersTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { getItemById, getItemReadableId } from "@carbon/utils";import { useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -239,6 +244,7 @@ const RiskRegistersTable = memo(({ data, count }: RiskRegistersTableProps) => {(row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.risk(row.id!)}?${params?.toString()}`);}}diff --git a/apps/erp/app/modules/resources/ui/Abilities/AbilitiesTable.tsx b/apps/erp/app/modules/resources/ui/Abilities/AbilitiesTable.tsxindex daf7a03e8d..f1097d6c38 100644--- a/apps/erp/app/modules/resources/ui/Abilities/AbilitiesTable.tsx+++ b/apps/erp/app/modules/resources/ui/Abilities/AbilitiesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -94,6 +94,7 @@ const AbilitiesTable = memo(({ data, count }: AbilitiesTableProps) => {(row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.ability(row.id!)}?${params?.toString()}`);}}diff --git a/apps/erp/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx b/apps/erp/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsxindex dc73158232..eb9186c334 100644--- a/apps/erp/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx+++ b/apps/erp/app/modules/resources/ui/Abilities/AbilityEmployeesTable.tsx@@ -1,4 +1,10 @@-import { Button, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Button,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -118,6 +124,7 @@ const AbilityEmployeesTable = memo((row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "resources")}onClick={() => {navigate(path.to.employeeAbility(ability.id, row.id));diff --git a/apps/erp/app/modules/resources/ui/Contractors/ContractorsTable.tsx b/apps/erp/app/modules/resources/ui/Contractors/ContractorsTable.tsxindex 6e24f52056..2c7dde822f 100644--- a/apps/erp/app/modules/resources/ui/Contractors/ContractorsTable.tsx+++ b/apps/erp/app/modules/resources/ui/Contractors/ContractorsTable.tsx@@ -1,4 +1,10 @@-import { Avatar, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Avatar,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -111,6 +117,7 @@ const ContractorsTable = memo(({ data, count }: ContractorsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.contractor(diff --git a/apps/erp/app/modules/resources/ui/FailureModes/FailureModesTable.tsx b/apps/erp/app/modules/resources/ui/FailureModes/FailureModesTable.tsxindex 4d2f60c3ba..c5b3af737f 100644--- a/apps/erp/app/modules/resources/ui/FailureModes/FailureModesTable.tsx+++ b/apps/erp/app/modules/resources/ui/FailureModes/FailureModesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -60,6 +60,7 @@ const FailureModesTable = memo(({ data, count }: FailureModesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.failureMode(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx b/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsxindex b2610d0f18..3a6b318dc8 100644--- a/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx+++ b/apps/erp/app/modules/resources/ui/Locations/LocationsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -133,6 +133,7 @@ const LocationsTable = memo(({ data, count }: LocationsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.location(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsxindex 9efeee74c4..f8f9577ddd 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchExplorer.tsx@@ -13,6 +13,7 @@ import {Input,InputGroup,InputLeftElement,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -382,6 +383,7 @@ function MaintenanceExplorerChildItem({<DropdownMenuContent>{child.type === "event" && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onSelect={() => {onEdit(child);}}diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsxindex fab5a9335f..dc9704b0d4 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchNotes.tsx@@ -20,6 +20,7 @@ import {generateHTML,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Skeleton,Table,Tbody,@@ -333,7 +334,10 @@ function MaintenanceFilesContent({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ ><Trans>Download</Trans></DropdownMenuItem>{!isReadOnly && (diff --git a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsxindex 9f6a361ef2..f29a1aacaf 100644--- a/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx+++ b/apps/erp/app/modules/resources/ui/Maintenance/MaintenanceDispatchesTable.tsx@@ -1,4 +1,10 @@-import { Combobox, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Combobox,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -334,6 +340,7 @@ const MaintenanceDispatchesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(path.to.maintenanceDispatch(row.id));}}diff --git a/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceSchedulesTable.tsx b/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceSchedulesTable.tsxindex 7c74a63cda..4155e90591 100644--- a/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceSchedulesTable.tsx+++ b/apps/erp/app/modules/resources/ui/MaintenanceSchedule/MaintenanceSchedulesTable.tsx@@ -2,6 +2,7 @@ import {Badge,Combobox,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Status@@ -237,6 +238,7 @@ const MaintenanceSchedulesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.maintenanceSchedule(row.id!)}?${params.toString()}`diff --git a/apps/erp/app/modules/resources/ui/Partners/PartnersTable.tsx b/apps/erp/app/modules/resources/ui/Partners/PartnersTable.tsxindex f0ead7dc53..9059d6619b 100644--- a/apps/erp/app/modules/resources/ui/Partners/PartnersTable.tsx+++ b/apps/erp/app/modules/resources/ui/Partners/PartnersTable.tsx@@ -1,4 +1,10 @@-import { Avatar, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Avatar,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -87,6 +93,7 @@ const PartnersTable = memo(({ data, count }: PartnersTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.partner(diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsxindex cf1f86e22c..acafc36b37 100644--- a/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessForm.tsx@@ -9,6 +9,7 @@ import {HStack,IconButton,LabelWithHelp,+ MENU_ITEM_SHORTCUTS,ModalDrawer,ModalDrawerBody,ModalDrawerContent,@@ -358,6 +359,7 @@ function SupplierProcesses({ processId }: { processId?: string }) {</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>navigate(path.to.supplierProcess(sp.supplierId!, sp.id!)diff --git a/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx b/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsxindex 69169fc816..025ef3557e 100644--- a/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx+++ b/apps/erp/app/modules/resources/ui/Processes/ProcessesTable.tsx@@ -6,6 +6,7 @@ import {Badge,Checkbox,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem} from "@carbon/react";@@ -328,6 +329,7 @@ const ProcessesTable = memo(({ data, count }: ProcessesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.process(row.id!)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/resources/ui/Suggestions/SuggestionsTable.tsx b/apps/erp/app/modules/resources/ui/Suggestions/SuggestionsTable.tsxindex 21c69927de..a32864fb21 100644--- a/apps/erp/app/modules/resources/ui/Suggestions/SuggestionsTable.tsx+++ b/apps/erp/app/modules/resources/ui/Suggestions/SuggestionsTable.tsx@@ -1,4 +1,11 @@-import { Avatar, Badge, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Avatar,+ Badge,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -124,6 +131,7 @@ const SuggestionsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(path.to.suggestion(row.id!));}}diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsxindex 51f1c75cea..43031772ec 100644--- a/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx+++ b/apps/erp/app/modules/resources/ui/Training/TrainingExplorer.tsx@@ -26,6 +26,7 @@ import {HStack,IconButton,Label,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Switch,Tooltip,@@ -426,6 +427,7 @@ function TrainingQuestionItem({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={(e) => {e.stopPropagation();onEdit(question);diff --git a/apps/erp/app/modules/resources/ui/Training/TrainingsTable.tsx b/apps/erp/app/modules/resources/ui/Training/TrainingsTable.tsxindex 79a375870c..b503669544 100644--- a/apps/erp/app/modules/resources/ui/Training/TrainingsTable.tsx+++ b/apps/erp/app/modules/resources/ui/Training/TrainingsTable.tsx@@ -1,6 +1,7 @@import {Badge,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -199,6 +200,7 @@ const TrainingsTable = memo(({ data, count, tags }: TrainingsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "resources")}onClick={() => {navigate(`${path.to.training(row.id!)}`);diff --git a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsxindex 035dc34a8e..5772f86e21 100644--- a/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx+++ b/apps/erp/app/modules/resources/ui/WorkCenters/WorkCentersTable.tsx@@ -8,6 +8,7 @@ import {Button,Checkbox,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Modal,@@ -304,6 +305,7 @@ const WorkCentersTable = memo((row) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.workCenter(row.id!)}?${params?.toString()}`);}}diff --git a/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsxindex 4f43dc7e47..a6bd689ee7 100644--- a/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx+++ b/apps/erp/app/modules/sales/ui/Customer/CustomerBankAccounts.tsx@@ -10,6 +10,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,useDisclosure} from "@carbon/react";import type { BankCodeLabelKey } from "@carbon/utils";@@ -198,6 +199,7 @@ const CustomerBankAccounts = ({ bankAccounts }: CustomerBankAccountsProps) => {</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "accounting")}onClick={() => navigate(account.id)}>diff --git a/apps/erp/app/modules/sales/ui/CustomerPortals/CustomerPortalsTable.ee.tsx b/apps/erp/app/modules/sales/ui/CustomerPortals/CustomerPortalsTable.ee.tsxindex 980b5b6e97..54c31563b3 100644--- a/apps/erp/app/modules/sales/ui/CustomerPortals/CustomerPortalsTable.ee.tsx+++ b/apps/erp/app/modules/sales/ui/CustomerPortals/CustomerPortalsTable.ee.tsx@@ -1,5 +1,5 @@import type { Database } from "@carbon/database";-import { Copy, MenuIcon, MenuItem } from "@carbon/react";+import { Copy, MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -83,6 +83,7 @@ const CustomerPortalsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.customerPortal(row.id)}?${params.toString()}`diff --git a/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx b/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsxindex 5d23f14ca5..3b90d20532 100644--- a/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx+++ b/apps/erp/app/modules/sales/ui/CustomerStatuses/CustomerStatusesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -48,6 +48,7 @@ const CustomerStatusesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.customers}?filter=status:eq:${row.name}`);}}@@ -56,6 +57,7 @@ const CustomerStatusesTable = memo(<Trans>View Customers</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.customerStatus(row.id)}?${params.toString()}`diff --git a/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx b/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsxindex 42f0d09817..3d883c3faa 100644--- a/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx+++ b/apps/erp/app/modules/sales/ui/CustomerTypes/CustomerTypesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -49,6 +49,7 @@ const CustomerTypesTable = memo(({ data, count }: CustomerTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.customers}?filter=type:eq:${row.name}`);}}@@ -57,6 +58,7 @@ const CustomerTypesTable = memo(({ data, count }: CustomerTypesTableProps) => {<Trans>View Customers</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={row.protected || !permissions.can("update", "sales")}onClick={() => {navigate(`${path.to.customerType(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx b/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsxindex 281e2fe4f1..51e507c008 100644--- a/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx+++ b/apps/erp/app/modules/sales/ui/Customers/CustomersTable.tsx@@ -2,6 +2,7 @@ import {Badge,Button,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -275,7 +276,10 @@ const CustomersTable = memo(const renderContextMenu = useMemo(() => (row: Customer) => (<>- <MenuItem onClick={() => navigate(path.to.customer(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.customer(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit</Trans></MenuItem>diff --git a/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonsTable.tsx b/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonsTable.tsxindex dd1c3283c6..14c0464d58 100644--- a/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonsTable.tsx+++ b/apps/erp/app/modules/sales/ui/NoQuoteReasons/NoQuoteReasonsTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -47,6 +47,7 @@ const NoQuoteReasonsTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.noQuoteReason(row.id)}?${params.toString()}`diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsxindex c49cee15ee..5076bdff84 100644--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityDocuments.tsx@@ -15,6 +15,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -165,6 +166,7 @@ const OpportunityDocuments = ({</DropdownMenuTrigger><DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => download(attachment)}><Trans>Download</Trans>diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsxindex c80eabcc7c..687c639b9c 100644--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx@@ -19,6 +19,7 @@ import {File,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Table,Tbody,Td,@@ -498,12 +499,16 @@ const OpportunityLineDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ ><Link to={getModelPath(modelUpload)}><Trans>View</Trans></Link></DropdownMenuItem><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}onClick={() => downloadModel(modelUpload)}><Trans>Download</Trans>@@ -602,7 +607,10 @@ const OpportunityLineDocuments = ({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem onClick={() => download(file)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.download}+ onClick={() => download(file)}+ ><Trans>Download</Trans></DropdownMenuItem>{itemId && (diff --git a/apps/erp/app/modules/sales/ui/Pricing/PriceOverrideForm.tsx b/apps/erp/app/modules/sales/ui/Pricing/PriceOverrideForm.tsxindex 97e273c1dd..b6e0902dc7 100644--- a/apps/erp/app/modules/sales/ui/Pricing/PriceOverrideForm.tsx+++ b/apps/erp/app/modules/sales/ui/Pricing/PriceOverrideForm.tsx@@ -16,6 +16,7 @@ import {HStack,IconButton,LabelWithHelp,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -389,6 +390,7 @@ function PriceBreaks({<DropdownMenuContent>{canShowHistory && row.original.id ? (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() =>setHistoryBreakId(row.original.id ?? null)}diff --git a/apps/erp/app/modules/sales/ui/Pricing/PriceOverridesTable.tsx b/apps/erp/app/modules/sales/ui/Pricing/PriceOverridesTable.tsxindex 9fb7ac86d5..dae9e28ad3 100644--- a/apps/erp/app/modules/sales/ui/Pricing/PriceOverridesTable.tsx+++ b/apps/erp/app/modules/sales/ui/Pricing/PriceOverridesTable.tsx@@ -3,6 +3,7 @@ import {Button,HStack,Label,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,NumberDecrementStepper,@@ -289,6 +290,7 @@ const PriceListTable = memo(return (<><MenuItem+ shortcut={row.overrideId ? MENU_ITEM_SHORTCUTS.edit : undefined}disabled={!(row.overrideId ? canUpdate : canCreate) || !hasScope}onClick={() => {navigate(buildOverrideHref(row));@@ -299,6 +301,7 @@ const PriceListTable = memo(</MenuItem>{row.overrideId && (<MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}disabled={!canCreate}onClick={() => {setDuplicateState({ overrideIds: [row.overrideId!] });diff --git a/apps/erp/app/modules/sales/ui/Pricing/PricingRulesTable.tsx b/apps/erp/app/modules/sales/ui/Pricing/PricingRulesTable.tsxindex 86f8f35171..7d06e8f0d1 100644--- a/apps/erp/app/modules/sales/ui/Pricing/PricingRulesTable.tsx+++ b/apps/erp/app/modules/sales/ui/Pricing/PricingRulesTable.tsx@@ -4,6 +4,7 @@ import {HoverCardContent,HoverCardTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem} from "@carbon/react";@@ -414,6 +415,7 @@ const PricingRulesTable = memo(({ data, count }: PricingRulesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!canUpdate}onClick={() => {navigate(`${path.to.pricingRule(row.id)}?${params.toString()}`);@@ -423,6 +425,7 @@ const PricingRulesTable = memo(({ data, count }: PricingRulesTableProps) => {{t`Edit Pricing Rule`}</MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.duplicate}disabled={!canCreate}onClick={() => {fetcher.submit(diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsxindex 52bec95efc..8ab0450a44 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteBillOfProcess.tsx@@ -24,6 +24,7 @@ import {IconButton,Label,Loading,+ MENU_ITEM_SHORTCUTS,ToggleGroup,ToggleGroupItem,Tooltip,@@ -1393,7 +1394,10 @@ function AttributesListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem@@ -1614,7 +1618,10 @@ function ParametersListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItem@@ -2637,7 +2644,10 @@ function ToolsListItem({/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={disclosure.onOpen}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={disclosure.onOpen}+ >Edit</DropdownMenuItem><DropdownMenuItemdiff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsxindex 02f1669c4e..951b81bef6 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteExplorer.tsx@@ -13,6 +13,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Spinner,Tooltip,@@ -537,7 +538,11 @@ function QuoteLineItem({/></DropdownMenuTrigger><DropdownMenuContent>- <DropdownMenuItem asChild onClick={(e) => e.stopPropagation()}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ onClick={(e) => e.stopPropagation()}+ ><Linkto={getLinkToItemDetails(line.itemType as MethodItemType,diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsxindex 16240bd2cd..ad07e85959 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteHeader.tsx@@ -14,6 +14,7 @@ import {Input,InputGroup,InputRightElement,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -135,6 +136,7 @@ const QuoteHeader = () => {{auditLogTrigger}<DropdownMenuSeparator /><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.copy}onClick={() => {setAsRevision(false);createRevisionModal.onOpen();diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsxindex a09736fe59..9e764f43bf 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuoteLineForm.tsx@@ -12,6 +12,7 @@ import {DropdownMenuTrigger,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ModalCard,ModalCardBody,ModalCardContent,@@ -384,7 +385,10 @@ const QuoteLineForm = ({<Trans>Delete Line</Trans></DropdownMenuItem>)}- <DropdownMenuItem asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}+ asChild+ ><Linkto={getLinkToItemDetails(lineType,diff --git a/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx b/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsxindex 41426af7d8..d309055802 100644--- a/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx+++ b/apps/erp/app/modules/sales/ui/Quotes/QuotesTable.tsx@@ -2,6 +2,7 @@ import { getQuoteDisplayId } from "@carbon/documents/utils";import {BarProgress,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDisclosure@@ -284,7 +285,10 @@ const QuotesTable = memo(({ data, count }: QuotesTableProps) => {const renderContextMenu = useMemo(() => {return (row: QuotationListItem) => (<>- <MenuItem onClick={() => navigate(path.to.quoteDetails(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.quoteDetails(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit</Trans></MenuItem>diff --git a/apps/erp/app/modules/sales/ui/ReturnReasons/ReturnReasonsTable.tsx b/apps/erp/app/modules/sales/ui/ReturnReasons/ReturnReasonsTable.tsxindex 670823a0f0..6125ee8420 100644--- a/apps/erp/app/modules/sales/ui/ReturnReasons/ReturnReasonsTable.tsx+++ b/apps/erp/app/modules/sales/ui/ReturnReasons/ReturnReasonsTable.tsx@@ -1,5 +1,10 @@import type { Database } from "@carbon/database";-import { Checkbox, MenuIcon, MenuItem } from "@carbon/react";+import {+ Checkbox,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -69,6 +74,7 @@ const ReturnReasonsTable = memo(({ data, count }: ReturnReasonsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.returnReason(row.id)}?${params.toString()}`);}}diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsxindex 7ccad18e21..3195dc0fa2 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderExplorer.tsx@@ -12,6 +12,7 @@ import {Input,InputGroup,InputLeftElement,+ MENU_ITEM_SHORTCUTS,ShortcutKey,Tooltip,TooltipContent,@@ -441,6 +442,7 @@ function SalesOrderLineItem({{/* @ts-expect-error */}{itemType.includes(line?.salesOrderLineType ?? "") && (<DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}asChildonClick={(e) => e.stopPropagation()}>diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsxindex 8d627b1bcc..d388750caf 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrdersTable.tsx@@ -6,6 +6,7 @@ import {HoverCardContent,HoverCardTrigger,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Tooltip,@@ -525,6 +526,7 @@ const SalesOrdersTable = memo(({ data, count }: SalesOrdersTableProps) => {return (row: SalesOrderListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "sales")}onClick={() => edit(row)}>diff --git a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsxindex b2adccea1d..18f85be5b2 100644--- a/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx+++ b/apps/erp/app/modules/sales/ui/SalesRFQ/SalesRFQsTable.tsx@@ -1,4 +1,10 @@-import { HStack, MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -229,7 +235,10 @@ const SalesRFQsTable = memo(({ data, count }: SalesRFQsTableProps) => {const renderContextMenu = useMemo(() => {return (row: SalesRFQ) => (<>- <MenuItem onClick={() => navigate(path.to.salesRfqDetails(row.id!))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => navigate(path.to.salesRfqDetails(row.id!))}+ ><MenuIcon icon={<LuPencil />} /><Trans>Edit</Trans></MenuItem>diff --git a/apps/erp/app/modules/sales/ui/SalesReturnOrders/SalesReturnOrdersTable.tsx b/apps/erp/app/modules/sales/ui/SalesReturnOrders/SalesReturnOrdersTable.tsxindex 902332b170..83146807ab 100644--- a/apps/erp/app/modules/sales/ui/SalesReturnOrders/SalesReturnOrdersTable.tsx+++ b/apps/erp/app/modules/sales/ui/SalesReturnOrders/SalesReturnOrdersTable.tsx@@ -1,4 +1,9 @@-import { MenuIcon, MenuItem, useDisclosure } from "@carbon/react";+import {+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ useDisclosure+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useMemo, useState } from "react";@@ -184,6 +189,7 @@ const SalesReturnOrdersTable = memo(return (row: SalesReturnOrderListItem) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("view", "sales")}onClick={() => {navigate(path.to.salesReturnOrderDetails(row.id!));diff --git a/apps/erp/app/modules/sales/ui/SalesRules/SalesRulesTable.tsx b/apps/erp/app/modules/sales/ui/SalesRules/SalesRulesTable.tsxindex e83479a9d9..2b62d0dc32 100644--- a/apps/erp/app/modules/sales/ui/SalesRules/SalesRulesTable.tsx+++ b/apps/erp/app/modules/sales/ui/SalesRules/SalesRulesTable.tsx@@ -3,7 +3,13 @@// permission checks use `sales`.import type { Json } from "@carbon/database";-import { Badge, MenuIcon, MenuItem, Status } from "@carbon/react";+import {+ Badge,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem,+ Status+} from "@carbon/react";import { SALES_RULE_SURFACES, type SalesRuleSurface } from "@carbon/utils";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";@@ -127,6 +133,7 @@ const SalesRulesTable = memo(({ data, count }: SalesRulesTableProps) => {(row: (typeof rows)[number]) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "sales")}onClick={() => {navigate(`${path.to.salesRule(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsxindex 083cfacbde..aaa06d1b18 100644--- a/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx+++ b/apps/erp/app/modules/settings/ui/ApiKeys/ApiKeysTable.tsx@@ -1,4 +1,11 @@-import { Badge, Button, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Badge,+ Button,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -181,6 +188,7 @@ const ApiKeysTable = memo(({ data, count }: ApiKeysTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.apiKey(row.id!)}?${params?.toString()}`);}}diff --git a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.ee.tsx b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.ee.tsxindex 08b7eac910..dee4f4d354 100644--- a/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.ee.tsx+++ b/apps/erp/app/modules/settings/ui/Approvals/ApprovalRuleCard.ee.tsx@@ -18,6 +18,7 @@ import {Heading,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,Status,useDisclosure} from "@carbon/react";@@ -104,6 +105,7 @@ const ApprovalRuleCard = memo(</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!canEdit}onClick={(e) => {e.stopPropagation();diff --git a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsxindex 8a4f3a83e6..13d448c72c 100644--- a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx+++ b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTable.tsx@@ -1,4 +1,10 @@-import { Button, HStack, MenuIcon, MenuItem } from "@carbon/react";+import {+ Button,+ HStack,+ MENU_ITEM_SHORTCUTS,+ MenuIcon,+ MenuItem+} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -103,6 +109,7 @@ const CustomFieldsTable = memo(({ data, count }: CustomFieldsTableProps) => {<Trans>New Field</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.customFieldList(row.table!)}?${params?.toString()}`diff --git a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsxindex 03237de33b..48bc5de2aa 100644--- a/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx+++ b/apps/erp/app/modules/settings/ui/CustomFields/CustomFieldsTableDetail.tsx@@ -10,6 +10,7 @@ import {DrawerTitle,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,useDebounce,@@ -148,7 +149,7 @@ const CustomFieldCategoryDetail = ({const renderContextMenu = (fieldId: string) => {return (<>- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={`${fieldId}?${params.toString()}`}><MenuIcon icon={<LuPencil />} /><Trans>Edit Custom Field</Trans>diff --git a/apps/erp/app/modules/settings/ui/Printing/PrintJobsTable.tsx b/apps/erp/app/modules/settings/ui/Printing/PrintJobsTable.tsxindex 8a55071cb2..c29c5b839e 100644--- a/apps/erp/app/modules/settings/ui/Printing/PrintJobsTable.tsx+++ b/apps/erp/app/modules/settings/ui/Printing/PrintJobsTable.tsx@@ -3,6 +3,7 @@ import {Badge,Button,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Modal,@@ -380,6 +381,7 @@ const PrintJobsTable = memo(({ jobs, count }: PrintJobsTableProps) => {(job: PrintJob) => (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}disabled={job.status === "generating"}onClick={() => {fetcher.submit(diff --git a/apps/erp/app/modules/settings/ui/Sequences/SequencesTable.tsx b/apps/erp/app/modules/settings/ui/Sequences/SequencesTable.tsxindex e372c622db..c6f37e45b2 100644--- a/apps/erp/app/modules/settings/ui/Sequences/SequencesTable.tsx+++ b/apps/erp/app/modules/settings/ui/Sequences/SequencesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -88,6 +88,7 @@ const SequencesTable = memo(({ data, count }: SequencesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "settings")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/settings/ui/SerialNumbers/ItemSerialSequencesTable.tsx b/apps/erp/app/modules/settings/ui/SerialNumbers/ItemSerialSequencesTable.tsxindex 50a9ecf27f..870ef606f9 100644--- a/apps/erp/app/modules/settings/ui/SerialNumbers/ItemSerialSequencesTable.tsx+++ b/apps/erp/app/modules/settings/ui/SerialNumbers/ItemSerialSequencesTable.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -110,6 +110,7 @@ const ItemSerialSequencesTable = memo(return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "settings")}onClick={() => {navigate(diff --git a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsxindex 5f8f138426..3caedd2027 100644--- a/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx+++ b/apps/erp/app/modules/settings/ui/Webhooks/WebhooksTable.tsx@@ -9,6 +9,7 @@ import {DrawerTitle,HStack,Kbd,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Select,@@ -167,6 +168,7 @@ const WebhooksTable = memo(({ data, count }: WebhooksTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {navigate(`${path.to.webhook(row.id!)}?${params?.toString()}`);}}diff --git a/apps/erp/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.ee.tsx b/apps/erp/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.ee.tsxindex 7e863a1c33..69009ab39b 100644--- a/apps/erp/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.ee.tsx+++ b/apps/erp/app/modules/users/ui/EmployeeTypes/EmployeeTypesTable.ee.tsx@@ -1,4 +1,4 @@-import { MenuIcon, MenuItem } from "@carbon/react";+import { MENU_ITEM_SHORTCUTS, MenuIcon, MenuItem } from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -45,6 +45,7 @@ const EmployeeTypesTable = memo(({ data, count }: EmployeeTypesTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.view}onClick={() => {navigate(`${path.to.employeeAccounts}?filter=employeeTypeId:eq:${row.id}`@@ -55,6 +56,7 @@ const EmployeeTypesTable = memo(({ data, count }: EmployeeTypesTableProps) => {<Trans>View Employees</Trans></MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={!permissions.can("update", "users")}onClick={() => {navigate(`${path.to.employeeType(row.id)}?${params.toString()}`);diff --git a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsxindex a9449d75c4..1faeb58538 100644--- a/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx+++ b/apps/erp/app/modules/users/ui/Employees/EmployeesTable.tsx@@ -3,6 +3,7 @@ import {Checkbox,DropdownMenuContent,DropdownMenuItem,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Tooltip,@@ -272,6 +273,7 @@ const EmployeesTable = memo(return (<DropdownMenuContent><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => {setSelectedUserIds(selectedRows@@ -365,6 +367,7 @@ const EmployeesTable = memo({row.active === true ? (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() =>navigate(`${path.to.employeeAccount(row.id!)}?${params.toString()}`diff --git a/apps/erp/app/modules/users/ui/Groups/GroupsTable.tsx b/apps/erp/app/modules/users/ui/Groups/GroupsTable.tsxindex 1edc4c6269..d9b32e086c 100644--- a/apps/erp/app/modules/users/ui/Groups/GroupsTable.tsx+++ b/apps/erp/app/modules/users/ui/Groups/GroupsTable.tsx@@ -3,6 +3,7 @@ import {AvatarGroupList,AvatarOverflowIndicator,DropdownMenuIcon,+ MENU_ITEM_SHORTCUTS,MenuItem} from "@carbon/react";import { Trans, useLingui } from "@lingui/react/macro";@@ -96,6 +97,7 @@ const GroupsTable = memo(({ data, count }: GroupsTableProps) => {return (<><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}disabled={row.isEmployeeTypeGroup ||row.isCustomerTypeGroup ||diff --git a/apps/erp/app/modules/workflows/ui/WorkflowsTable.tsx b/apps/erp/app/modules/workflows/ui/WorkflowsTable.tsxindex 790983aeed..ec8fd55601 100644--- a/apps/erp/app/modules/workflows/ui/WorkflowsTable.tsx+++ b/apps/erp/app/modules/workflows/ui/WorkflowsTable.tsx@@ -1,6 +1,7 @@import {Badge,Button,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,Tooltip,@@ -191,11 +192,15 @@ const WorkflowsTable = memo(const renderContextMenu = useCallback((row: Workflow) => (<>- <MenuItem onClick={() => navigate(path.to.workflow(row.id))}>+ <MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.open}+ onClick={() => navigate(path.to.workflow(row.id))}+ ><MenuIcon icon={<LuWorkflow />} />{t`Open Workflow`}</MenuItem><MenuItem+ shortcut={MENU_ITEM_SHORTCUTS.rename}disabled={!permissions.can("update", "workflows")}onClick={() => {flushSync(() => setSelectedWorkflow(row));diff --git a/apps/erp/app/routes/x+/fixed-asset+/$fixedAssetId.tsx b/apps/erp/app/routes/x+/fixed-asset+/$fixedAssetId.tsxindex 96334ab8f7..d3d3084072 100644--- a/apps/erp/app/routes/x+/fixed-asset+/$fixedAssetId.tsx+++ b/apps/erp/app/routes/x+/fixed-asset+/$fixedAssetId.tsx@@ -16,6 +16,7 @@ import {DropdownMenuItem,DropdownMenuSeparator,DropdownMenuTrigger,+ MENU_ITEM_SHORTCUTS,useDisclosure} from "@carbon/react";import { msg } from "@lingui/core/macro";@@ -174,7 +175,11 @@ export default function FixedAssetDetailRoute() {</Button></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem disabled={!canUpdate} asChild>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ disabled={!canUpdate}+ asChild+ ><Link to={path.to.fixedAssetDetails(fixedAssetId)}><DropdownMenuIcon icon={<LuPencil />} />Editdiff --git a/apps/erp/app/routes/x+/person+/$personId.timecard.tsx b/apps/erp/app/routes/x+/person+/$personId.timecard.tsxindex 445fe32ce2..cf69ff5370 100644--- a/apps/erp/app/routes/x+/person+/$personId.timecard.tsx+++ b/apps/erp/app/routes/x+/person+/$personId.timecard.tsx@@ -17,6 +17,7 @@ import {HStack,IconButton,Input,+ MENU_ITEM_SHORTCUTS,Select,SelectContent,SelectItem,@@ -726,7 +727,10 @@ export default function PersonTimecardRoute() {/></DropdownMenuTrigger><DropdownMenuContent align="end">- <DropdownMenuItem onClick={() => startEdit(entry)}>+ <DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}+ onClick={() => startEdit(entry)}+ ><DropdownMenuIcon icon={<LuPencil />} /><Trans>Edit</Trans></DropdownMenuItem>diff --git a/apps/erp/app/routes/x+/resources+/assignments.tsx b/apps/erp/app/routes/x+/resources+/assignments.tsxindex f3c4fbeb54..eb01bbcc97 100644--- a/apps/erp/app/routes/x+/resources+/assignments.tsx+++ b/apps/erp/app/routes/x+/resources+/assignments.tsx@@ -5,6 +5,7 @@ import {Badge,BarProgress,HStack,+ MENU_ITEM_SHORTCUTS,MenuIcon,MenuItem,VStack@@ -220,14 +221,14 @@ const TrainingAssignmentsTable = memo(return (<>- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.view} asChild><Link to={path.to.trainingAssignmentDetail(row.trainingId)}><MenuIcon icon={<LuEye />} /><Trans>View Status</Trans></Link></MenuItem>{permissions.can("update", "resources") && (- <MenuItem asChild>+ <MenuItem shortcut={MENU_ITEM_SHORTCUTS.edit} asChild><Link to={path.to.trainingAssignment(assignmentId)}><MenuIcon icon={<LuPencil />} /><Trans>Edit Assignment</Trans>diff --git a/apps/mes/app/components/JobOperation/JobOperation.tsx b/apps/mes/app/components/JobOperation/JobOperation.tsxindex d177afeb3b..43a0a5cb19 100644--- a/apps/mes/app/components/JobOperation/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation/JobOperation.tsx@@ -31,6 +31,7 @@ import {Heading,HStack,IconButton,+ MENU_ITEM_SHORTCUTS,ScrollArea,Separator,SidebarTrigger,@@ -2266,6 +2267,9 @@ export const JobOperation = ({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={+ MENU_ITEM_SHORTCUTS.download+ }onClick={() =>downloadModel(modelUpload)}@@ -2353,6 +2357,9 @@ export const JobOperation = ({</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={+ MENU_ITEM_SHORTCUTS.download+ }onClick={() =>downloadFile(file)}diff --git a/apps/mes/app/routes/x+/timecard.tsx b/apps/mes/app/routes/x+/timecard.tsxindex 9b17879cc8..d60ab7c75a 100644--- a/apps/mes/app/routes/x+/timecard.tsx+++ b/apps/mes/app/routes/x+/timecard.tsx@@ -15,6 +15,7 @@ import {HStack,IconButton,Input,+ MENU_ITEM_SHORTCUTS,Modal,ModalBody,ModalContent,@@ -436,6 +437,7 @@ export default function MESTimecardPage() {</DropdownMenuTrigger><DropdownMenuContent align="end"><DropdownMenuItem+ shortcut={MENU_ITEM_SHORTCUTS.edit}onClick={() => startEdit(entry)}><DropdownMenuIcon icon={<LuPencil />} />