@open-mercato/core 0.6.7-develop.6758.1.697eade236 → 0.6.7-develop.6766.1.40c9011995
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/modules/api_keys/backend/api-keys/page.js +2 -1
- package/dist/modules/api_keys/backend/api-keys/page.js.map +2 -2
- package/dist/modules/api_keys/extension-points.js +16 -0
- package/dist/modules/api_keys/extension-points.js.map +7 -0
- package/dist/modules/audit_logs/components/AccessLogsTable.js +2 -1
- package/dist/modules/audit_logs/components/AccessLogsTable.js.map +2 -2
- package/dist/modules/audit_logs/components/AuditLogsActions.js +2 -1
- package/dist/modules/audit_logs/components/AuditLogsActions.js.map +2 -2
- package/dist/modules/audit_logs/extension-points.js +14 -0
- package/dist/modules/audit_logs/extension-points.js.map +7 -0
- package/dist/modules/auth/backend/roles/page.js +2 -1
- package/dist/modules/auth/backend/roles/page.js.map +2 -2
- package/dist/modules/auth/backend/users/page.js +2 -1
- package/dist/modules/auth/backend/users/page.js.map +2 -2
- package/dist/modules/auth/extension-points.js +21 -0
- package/dist/modules/auth/extension-points.js.map +7 -0
- package/dist/modules/auth/frontend/login.js +2 -1
- package/dist/modules/auth/frontend/login.js.map +2 -2
- package/dist/modules/business_rules/backend/rules/page.js +2 -1
- package/dist/modules/business_rules/backend/rules/page.js.map +2 -2
- package/dist/modules/business_rules/events.js +13 -0
- package/dist/modules/business_rules/events.js.map +7 -0
- package/dist/modules/business_rules/extension-points.js +13 -0
- package/dist/modules/business_rules/extension-points.js.map +7 -0
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +2 -1
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/create/page.js +2 -1
- package/dist/modules/catalog/backend/catalog/products/create/page.js.map +2 -2
- package/dist/modules/catalog/components/categories/CategoriesDataTable.js +2 -1
- package/dist/modules/catalog/components/categories/CategoriesDataTable.js.map +2 -2
- package/dist/modules/catalog/components/products/ProductsDataTable.js +3 -2
- package/dist/modules/catalog/components/products/ProductsDataTable.js.map +2 -2
- package/dist/modules/catalog/events.js +1 -0
- package/dist/modules/catalog/events.js.map +2 -2
- package/dist/modules/catalog/extension-points.js +27 -0
- package/dist/modules/catalog/extension-points.js.map +7 -0
- package/dist/modules/communication_channels/backend/communication_channels/channels/page.js +2 -1
- package/dist/modules/communication_channels/backend/communication_channels/channels/page.js.map +2 -2
- package/dist/modules/communication_channels/backend/profile/communication-channels/page.js +3 -2
- package/dist/modules/communication_channels/backend/profile/communication-channels/page.js.map +2 -2
- package/dist/modules/communication_channels/extension-points.js +20 -0
- package/dist/modules/communication_channels/extension-points.js.map +7 -0
- package/dist/modules/configs/backend/config/system-status/page.js +2 -1
- package/dist/modules/configs/backend/config/system-status/page.js.map +2 -2
- package/dist/modules/configs/extension-points.js +18 -0
- package/dist/modules/configs/extension-points.js.map +7 -0
- package/dist/modules/currencies/backend/currencies/page.js +2 -1
- package/dist/modules/currencies/backend/currencies/page.js.map +2 -2
- package/dist/modules/currencies/backend/exchange-rates/page.js +2 -1
- package/dist/modules/currencies/backend/exchange-rates/page.js.map +2 -2
- package/dist/modules/currencies/extension-points.js +14 -0
- package/dist/modules/currencies/extension-points.js.map +7 -0
- package/dist/modules/customer_accounts/backend/customer_accounts/roles/page.js +2 -1
- package/dist/modules/customer_accounts/backend/customer_accounts/roles/page.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/users/page.js +2 -1
- package/dist/modules/customer_accounts/backend/customer_accounts/users/page.js.map +2 -2
- package/dist/modules/customer_accounts/extension-points.js +14 -0
- package/dist/modules/customer_accounts/extension-points.js.map +7 -0
- package/dist/modules/customers/backend/customers/companies/[id]/page.js +2 -1
- package/dist/modules/customers/backend/customers/companies/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies/page.js +2 -1
- package/dist/modules/customers/backend/customers/companies/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js +5 -4
- package/dist/modules/customers/backend/customers/companies-v2/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/[id]/page.js +5 -4
- package/dist/modules/customers/backend/customers/deals/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/page.js +2 -1
- package/dist/modules/customers/backend/customers/deals/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/[id]/page.js +2 -1
- package/dist/modules/customers/backend/customers/people/[id]/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people/page.js +2 -1
- package/dist/modules/customers/backend/customers/people/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/people-v2/[id]/page.js +5 -4
- package/dist/modules/customers/backend/customers/people-v2/[id]/page.js.map +2 -2
- package/dist/modules/customers/components/CustomerTodosTable.js +2 -1
- package/dist/modules/customers/components/CustomerTodosTable.js.map +2 -2
- package/dist/modules/customers/extension-points.js +42 -0
- package/dist/modules/customers/extension-points.js.map +7 -0
- package/dist/modules/customers/lib/calendar/format.js +8 -4
- package/dist/modules/customers/lib/calendar/format.js.map +2 -2
- package/dist/modules/data_sync/backend/data-sync/page.js +2 -1
- package/dist/modules/data_sync/backend/data-sync/page.js.map +2 -2
- package/dist/modules/data_sync/extension-points.js +13 -0
- package/dist/modules/data_sync/extension-points.js.map +7 -0
- package/dist/modules/directory/backend/directory/organizations/page.js +2 -1
- package/dist/modules/directory/backend/directory/organizations/page.js.map +2 -2
- package/dist/modules/directory/backend/directory/tenants/page.js +2 -1
- package/dist/modules/directory/backend/directory/tenants/page.js.map +2 -2
- package/dist/modules/directory/extension-points.js +14 -0
- package/dist/modules/directory/extension-points.js.map +7 -0
- package/dist/modules/entities/backend/entities/user/[entityId]/records/page.js +5 -1
- package/dist/modules/entities/backend/entities/user/[entityId]/records/page.js.map +2 -2
- package/dist/modules/entities/components/SystemEntitiesTable.js +2 -1
- package/dist/modules/entities/components/SystemEntitiesTable.js.map +2 -2
- package/dist/modules/entities/components/UserEntitiesTable.js +2 -1
- package/dist/modules/entities/components/UserEntitiesTable.js.map +2 -2
- package/dist/modules/entities/extension-points.js +21 -0
- package/dist/modules/entities/extension-points.js.map +7 -0
- package/dist/modules/integrations/backend/integrations/[id]/page.js +2 -4
- package/dist/modules/integrations/backend/integrations/[id]/page.js.map +2 -2
- package/dist/modules/integrations/extension-points.js +30 -0
- package/dist/modules/integrations/extension-points.js.map +7 -0
- package/dist/modules/messages/components/ComposeMessagePageClient.js +2 -1
- package/dist/modules/messages/components/ComposeMessagePageClient.js.map +2 -2
- package/dist/modules/messages/components/MessageDetailPageClient.js +3 -2
- package/dist/modules/messages/components/MessageDetailPageClient.js.map +2 -2
- package/dist/modules/messages/components/MessagesInboxPageClient.js +2 -1
- package/dist/modules/messages/components/MessagesInboxPageClient.js.map +2 -2
- package/dist/modules/messages/extension-points.js +16 -0
- package/dist/modules/messages/extension-points.js.map +7 -0
- package/dist/modules/payment_gateways/backend/payment-gateways/page.js +3 -2
- package/dist/modules/payment_gateways/backend/payment-gateways/page.js.map +2 -2
- package/dist/modules/payment_gateways/extension-points.js +19 -0
- package/dist/modules/payment_gateways/extension-points.js.map +7 -0
- package/dist/modules/portal/extension-points.js +32 -0
- package/dist/modules/portal/extension-points.js.map +7 -0
- package/dist/modules/portal/frontend/[orgSlug]/portal/dashboard/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/dashboard/page.js.map +2 -2
- package/dist/modules/portal/frontend/[orgSlug]/portal/login/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/login/page.js.map +2 -2
- package/dist/modules/portal/frontend/[orgSlug]/portal/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/page.js.map +2 -2
- package/dist/modules/portal/frontend/[orgSlug]/portal/profile/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/profile/page.js.map +2 -2
- package/dist/modules/portal/frontend/[orgSlug]/portal/reset-password/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/reset-password/page.js.map +2 -2
- package/dist/modules/portal/frontend/[orgSlug]/portal/signup/page.js +3 -3
- package/dist/modules/portal/frontend/[orgSlug]/portal/signup/page.js.map +2 -2
- package/dist/modules/query_index/components/QueryIndexesTable.js +2 -1
- package/dist/modules/query_index/components/QueryIndexesTable.js.map +2 -2
- package/dist/modules/query_index/events.js +20 -0
- package/dist/modules/query_index/events.js.map +7 -0
- package/dist/modules/query_index/extension-points.js +13 -0
- package/dist/modules/query_index/extension-points.js.map +7 -0
- package/dist/modules/resources/backend/resources/resource-types/page.js +2 -1
- package/dist/modules/resources/backend/resources/resource-types/page.js.map +2 -2
- package/dist/modules/resources/backend/resources/resources/page.js +2 -1
- package/dist/modules/resources/backend/resources/resources/page.js.map +2 -2
- package/dist/modules/resources/extension-points.js +14 -0
- package/dist/modules/resources/extension-points.js.map +7 -0
- package/dist/modules/sales/backend/sales/documents/[id]/page.js +11 -3
- package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
- package/dist/modules/sales/components/documents/ItemsSection.js +2 -1
- package/dist/modules/sales/components/documents/ItemsSection.js.map +2 -2
- package/dist/modules/sales/components/documents/SalesDocumentsTable.js +4 -1
- package/dist/modules/sales/components/documents/SalesDocumentsTable.js.map +2 -2
- package/dist/modules/sales/events.js +1 -0
- package/dist/modules/sales/events.js.map +2 -2
- package/dist/modules/sales/extension-points.js +36 -0
- package/dist/modules/sales/extension-points.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsConfigurationPage.js +5 -4
- package/dist/modules/wms/components/backend/WmsConfigurationPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsInventoryConsolePage.js +4 -3
- package/dist/modules/wms/components/backend/WmsInventoryConsolePage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js +3 -2
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js +3 -2
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLotsListPage.js +2 -1
- package/dist/modules/wms/components/backend/WmsLotsListPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js +3 -2
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js.map +2 -2
- package/dist/modules/wms/extension-points.js +26 -0
- package/dist/modules/wms/extension-points.js.map +7 -0
- package/dist/modules/workflows/backend/definitions/page.js +2 -1
- package/dist/modules/workflows/backend/definitions/page.js.map +2 -2
- package/dist/modules/workflows/backend/instances/page.js +2 -1
- package/dist/modules/workflows/backend/instances/page.js.map +2 -2
- package/dist/modules/workflows/backend/tasks/page.js +2 -1
- package/dist/modules/workflows/backend/tasks/page.js.map +2 -2
- package/dist/modules/workflows/events.js +1 -0
- package/dist/modules/workflows/events.js.map +2 -2
- package/dist/modules/workflows/extension-points.js +15 -0
- package/dist/modules/workflows/extension-points.js.map +7 -0
- package/package.json +7 -7
- package/src/modules/api_keys/backend/api-keys/page.tsx +2 -1
- package/src/modules/api_keys/extension-points.ts +13 -0
- package/src/modules/audit_logs/components/AccessLogsTable.tsx +2 -1
- package/src/modules/audit_logs/components/AuditLogsActions.tsx +2 -1
- package/src/modules/audit_logs/extension-points.ts +11 -0
- package/src/modules/auth/backend/roles/page.tsx +2 -1
- package/src/modules/auth/backend/users/page.tsx +2 -1
- package/src/modules/auth/extension-points.ts +18 -0
- package/src/modules/auth/frontend/login.tsx +2 -1
- package/src/modules/business_rules/backend/rules/page.tsx +2 -1
- package/src/modules/business_rules/events.ts +10 -0
- package/src/modules/business_rules/extension-points.ts +10 -0
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +2 -1
- package/src/modules/catalog/backend/catalog/products/create/page.tsx +2 -1
- package/src/modules/catalog/components/categories/CategoriesDataTable.tsx +2 -1
- package/src/modules/catalog/components/products/ProductsDataTable.tsx +3 -2
- package/src/modules/catalog/events.ts +1 -0
- package/src/modules/catalog/extension-points.ts +24 -0
- package/src/modules/communication_channels/backend/communication_channels/channels/page.tsx +2 -1
- package/src/modules/communication_channels/backend/profile/communication-channels/page.tsx +3 -2
- package/src/modules/communication_channels/extension-points.ts +17 -0
- package/src/modules/configs/backend/config/system-status/page.tsx +2 -1
- package/src/modules/configs/extension-points.ts +15 -0
- package/src/modules/currencies/backend/currencies/page.tsx +2 -1
- package/src/modules/currencies/backend/exchange-rates/page.tsx +2 -1
- package/src/modules/currencies/extension-points.ts +11 -0
- package/src/modules/customer_accounts/backend/customer_accounts/roles/page.tsx +2 -1
- package/src/modules/customer_accounts/backend/customer_accounts/users/page.tsx +2 -1
- package/src/modules/customer_accounts/extension-points.ts +11 -0
- package/src/modules/customers/backend/customers/companies/[id]/page.tsx +2 -1
- package/src/modules/customers/backend/customers/companies/page.tsx +2 -1
- package/src/modules/customers/backend/customers/companies-v2/[id]/page.tsx +5 -4
- package/src/modules/customers/backend/customers/deals/[id]/page.tsx +5 -4
- package/src/modules/customers/backend/customers/deals/page.tsx +2 -1
- package/src/modules/customers/backend/customers/people/[id]/page.tsx +2 -1
- package/src/modules/customers/backend/customers/people/page.tsx +2 -1
- package/src/modules/customers/backend/customers/people-v2/[id]/page.tsx +5 -4
- package/src/modules/customers/components/CustomerTodosTable.tsx +2 -1
- package/src/modules/customers/extension-points.ts +40 -0
- package/src/modules/customers/lib/calendar/format.ts +10 -4
- package/src/modules/data_sync/backend/data-sync/page.tsx +2 -1
- package/src/modules/data_sync/extension-points.ts +10 -0
- package/src/modules/directory/backend/directory/organizations/page.tsx +2 -1
- package/src/modules/directory/backend/directory/tenants/page.tsx +2 -1
- package/src/modules/directory/extension-points.ts +11 -0
- package/src/modules/entities/backend/entities/user/[entityId]/records/page.tsx +5 -1
- package/src/modules/entities/components/SystemEntitiesTable.tsx +2 -1
- package/src/modules/entities/components/UserEntitiesTable.tsx +2 -1
- package/src/modules/entities/extension-points.ts +18 -0
- package/src/modules/integrations/backend/integrations/[id]/page.tsx +2 -2
- package/src/modules/integrations/extension-points.ts +27 -0
- package/src/modules/messages/components/ComposeMessagePageClient.tsx +2 -1
- package/src/modules/messages/components/MessageDetailPageClient.tsx +3 -2
- package/src/modules/messages/components/MessagesInboxPageClient.tsx +2 -1
- package/src/modules/messages/extension-points.ts +13 -0
- package/src/modules/payment_gateways/backend/payment-gateways/page.tsx +3 -2
- package/src/modules/payment_gateways/extension-points.ts +16 -0
- package/src/modules/portal/extension-points.ts +30 -0
- package/src/modules/portal/frontend/[orgSlug]/portal/dashboard/page.tsx +3 -3
- package/src/modules/portal/frontend/[orgSlug]/portal/login/page.tsx +3 -3
- package/src/modules/portal/frontend/[orgSlug]/portal/page.tsx +3 -3
- package/src/modules/portal/frontend/[orgSlug]/portal/profile/page.tsx +3 -3
- package/src/modules/portal/frontend/[orgSlug]/portal/reset-password/page.tsx +4 -4
- package/src/modules/portal/frontend/[orgSlug]/portal/signup/page.tsx +3 -3
- package/src/modules/query_index/components/QueryIndexesTable.tsx +2 -1
- package/src/modules/query_index/events.ts +17 -0
- package/src/modules/query_index/extension-points.ts +10 -0
- package/src/modules/resources/backend/resources/resource-types/page.tsx +2 -1
- package/src/modules/resources/backend/resources/resources/page.tsx +2 -1
- package/src/modules/resources/extension-points.ts +11 -0
- package/src/modules/sales/backend/sales/documents/[id]/page.tsx +11 -3
- package/src/modules/sales/components/documents/ItemsSection.tsx +2 -1
- package/src/modules/sales/components/documents/SalesDocumentsTable.tsx +6 -1
- package/src/modules/sales/events.ts +1 -0
- package/src/modules/sales/extension-points.ts +33 -0
- package/src/modules/wms/components/backend/WmsConfigurationPage.tsx +5 -4
- package/src/modules/wms/components/backend/WmsInventoryConsolePage.tsx +4 -3
- package/src/modules/wms/components/backend/WmsLocationDetailPage.tsx +3 -2
- package/src/modules/wms/components/backend/WmsLotDetailPage.tsx +3 -2
- package/src/modules/wms/components/backend/WmsLotsListPage.tsx +2 -1
- package/src/modules/wms/components/backend/WmsSkuDetailPage.tsx +3 -2
- package/src/modules/wms/extension-points.ts +23 -0
- package/src/modules/workflows/backend/definitions/page.tsx +2 -1
- package/src/modules/workflows/backend/instances/page.tsx +2 -1
- package/src/modules/workflows/backend/tasks/page.tsx +2 -1
- package/src/modules/workflows/events.ts +1 -0
- package/src/modules/workflows/extension-points.ts +12 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { dataTableExtensionHost, defineModuleExtensionPoints, injectionExtensionHost } from '@open-mercato/shared/modules/widgets/extension-points'
|
|
2
|
+
|
|
3
|
+
export const extensionPoints = defineModuleExtensionPoints({
|
|
4
|
+
moduleId: 'sales',
|
|
5
|
+
hosts: {
|
|
6
|
+
ordersTable: dataTableExtensionHost({ tableId: 'sales.orders', source: 'components/documents/SalesDocumentsTable.tsx' }),
|
|
7
|
+
quotesTable: dataTableExtensionHost({ tableId: 'sales.quotes', source: 'components/documents/SalesDocumentsTable.tsx' }),
|
|
8
|
+
orderItemColumns: injectionExtensionHost({
|
|
9
|
+
family: 'detail',
|
|
10
|
+
spotId: 'data-table:sales.order.items:columns',
|
|
11
|
+
supported: ['column-widget'],
|
|
12
|
+
source: 'components/documents/ItemsSection.tsx',
|
|
13
|
+
}),
|
|
14
|
+
orderShipping: injectionExtensionHost({
|
|
15
|
+
family: 'detail',
|
|
16
|
+
spotId: 'detail:sales.order:shipping',
|
|
17
|
+
supported: ['render-widget'],
|
|
18
|
+
source: 'backend/sales/documents/[id]/page.tsx',
|
|
19
|
+
}),
|
|
20
|
+
documentDetail: injectionExtensionHost({
|
|
21
|
+
family: 'detail',
|
|
22
|
+
pattern: 'sales.document.detail.{kind}:{surface}',
|
|
23
|
+
parameters: {
|
|
24
|
+
kind: { source: 'SalesDocumentKind', pattern: '^(order|quote)$' },
|
|
25
|
+
surface: { source: 'host declaration', pattern: '^(tabs|details)$' },
|
|
26
|
+
},
|
|
27
|
+
supported: ['render-widget'],
|
|
28
|
+
source: 'backend/sales/documents/[id]/page.tsx',
|
|
29
|
+
}),
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
export default extensionPoints
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { z } from 'zod'
|
|
@@ -515,7 +516,7 @@ export function WarehouseSection({ viewAllHref }: ConfigSectionOptions = {}) {
|
|
|
515
516
|
totalPages: query.data?.totalPages ?? 1,
|
|
516
517
|
onPageChange: setPage,
|
|
517
518
|
}}
|
|
518
|
-
perspective={{ tableId:
|
|
519
|
+
perspective={{ tableId: extensionPoints.hosts.warehousesTable.tableId }}
|
|
519
520
|
emptyState={(
|
|
520
521
|
<EmptyState
|
|
521
522
|
title={t('wms.backend.config.warehouses.empty.title', 'No warehouses')}
|
|
@@ -775,7 +776,7 @@ export function ZoneSection({ viewAllHref }: ConfigSectionOptions = {}) {
|
|
|
775
776
|
totalPages: query.data?.totalPages ?? 1,
|
|
776
777
|
onPageChange: setPage,
|
|
777
778
|
}}
|
|
778
|
-
perspective={{ tableId:
|
|
779
|
+
perspective={{ tableId: extensionPoints.hosts.zonesTable.tableId }}
|
|
779
780
|
emptyState={(
|
|
780
781
|
<EmptyState
|
|
781
782
|
title={t('wms.backend.config.zones.empty.title', 'No zones')}
|
|
@@ -982,7 +983,7 @@ export function LocationSection({ viewAllHref }: ConfigSectionOptions = {}) {
|
|
|
982
983
|
totalPages: query.data?.totalPages ?? 1,
|
|
983
984
|
onPageChange: setPage,
|
|
984
985
|
}}
|
|
985
|
-
perspective={{ tableId:
|
|
986
|
+
perspective={{ tableId: extensionPoints.hosts.locationsTable.tableId }}
|
|
986
987
|
emptyState={(
|
|
987
988
|
<EmptyState
|
|
988
989
|
title={t('wms.backend.config.locations.empty.title', 'No locations')}
|
|
@@ -1276,7 +1277,7 @@ export function InventoryProfilesSection() {
|
|
|
1276
1277
|
totalPages: query.data?.totalPages ?? 1,
|
|
1277
1278
|
onPageChange: setPage,
|
|
1278
1279
|
}}
|
|
1279
|
-
perspective={{ tableId:
|
|
1280
|
+
perspective={{ tableId: extensionPoints.hosts.inventoryProfilesTable.tableId }}
|
|
1280
1281
|
emptyState={(
|
|
1281
1282
|
<EmptyState
|
|
1282
1283
|
title={t('wms.backend.config.profiles.empty.title', 'No inventory profiles')}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import type { ColumnDef, SortingState } from '@tanstack/react-table'
|
|
6
7
|
import { useQuery } from '@tanstack/react-query'
|
|
@@ -665,7 +666,7 @@ export function InventoryBalancesSection({
|
|
|
665
666
|
emptyTitleFallback="No balance buckets"
|
|
666
667
|
emptyDescriptionKey="wms.backend.inventory.balances.empty.description"
|
|
667
668
|
emptyDescriptionFallback="Balances appear after receipts, adjustments, or moves create inventory buckets."
|
|
668
|
-
tableId=
|
|
669
|
+
tableId={extensionPoints.hosts.balancesTable.tableId}
|
|
669
670
|
entityId={E.wms.inventory_balance}
|
|
670
671
|
icon={<Boxes className="size-5" />}
|
|
671
672
|
columns={columns}
|
|
@@ -896,7 +897,7 @@ export function InventoryReservationsSection({
|
|
|
896
897
|
emptyTitleFallback="No reservations"
|
|
897
898
|
emptyDescriptionKey="wms.backend.inventory.reservations.empty.description"
|
|
898
899
|
emptyDescriptionFallback="Reservations show stock committed to orders, transfers, or manual holds."
|
|
899
|
-
tableId=
|
|
900
|
+
tableId={extensionPoints.hosts.reservationsTable.tableId}
|
|
900
901
|
entityId={E.wms.inventory_reservation}
|
|
901
902
|
icon={<ShieldCheck className="size-5" />}
|
|
902
903
|
columns={columns}
|
|
@@ -1058,7 +1059,7 @@ export function InventoryMovementsSection({
|
|
|
1058
1059
|
emptyTitleFallback="No inventory movements"
|
|
1059
1060
|
emptyDescriptionKey="wms.backend.inventory.movements.empty.description"
|
|
1060
1061
|
emptyDescriptionFallback="Movement rows are created by receipts, reservations, moves, and reconciliation actions."
|
|
1061
|
-
tableId=
|
|
1062
|
+
tableId={extensionPoints.hosts.movementsTable.tableId}
|
|
1062
1063
|
entityId={E.wms.inventory_movement}
|
|
1063
1064
|
icon={<Route className="size-5" />}
|
|
1064
1065
|
columns={columns}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { z } from 'zod'
|
|
@@ -1158,7 +1159,7 @@ export default function WmsLocationDetailPage({ locationId }: WmsLocationDetailP
|
|
|
1158
1159
|
data={pagedBalances}
|
|
1159
1160
|
disableRowClick
|
|
1160
1161
|
entityId={E.wms.inventory_balance}
|
|
1161
|
-
perspective={{ tableId:
|
|
1162
|
+
perspective={{ tableId: extensionPoints.hosts.locationItemsTable.tableId }}
|
|
1162
1163
|
pagination={{
|
|
1163
1164
|
page: itemsPage,
|
|
1164
1165
|
pageSize: itemsPageSize,
|
|
@@ -1201,7 +1202,7 @@ export default function WmsLocationDetailPage({ locationId }: WmsLocationDetailP
|
|
|
1201
1202
|
data={movementsQuery.data ?? []}
|
|
1202
1203
|
disableRowClick
|
|
1203
1204
|
entityId={E.wms.inventory_movement}
|
|
1204
|
-
perspective={{ tableId:
|
|
1205
|
+
perspective={{ tableId: extensionPoints.hosts.locationActivityTable.tableId }}
|
|
1205
1206
|
emptyState={t('wms.backend.location.activity.empty', 'No recent movements for this location.')}
|
|
1206
1207
|
actions={(
|
|
1207
1208
|
<Button asChild type="button" variant="ghost" size="sm">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { z } from 'zod'
|
|
@@ -1209,7 +1210,7 @@ export default function WmsLotDetailPage({ lotId }: WmsLotDetailPageProps) {
|
|
|
1209
1210
|
data={pagedBalances}
|
|
1210
1211
|
disableRowClick
|
|
1211
1212
|
entityId={E.wms.inventory_balance}
|
|
1212
|
-
perspective={{ tableId:
|
|
1213
|
+
perspective={{ tableId: extensionPoints.hosts.lotDistributionTable.tableId }}
|
|
1213
1214
|
pagination={{
|
|
1214
1215
|
page: distributionPage,
|
|
1215
1216
|
pageSize: distributionPageSize,
|
|
@@ -1250,7 +1251,7 @@ export default function WmsLotDetailPage({ lotId }: WmsLotDetailPageProps) {
|
|
|
1250
1251
|
data={movementsQuery.data ?? []}
|
|
1251
1252
|
disableRowClick
|
|
1252
1253
|
entityId={E.wms.inventory_movement}
|
|
1253
|
-
perspective={{ tableId:
|
|
1254
|
+
perspective={{ tableId: extensionPoints.hosts.lotActivityTable.tableId }}
|
|
1254
1255
|
emptyState={t('wms.backend.lot.activity.empty', 'No recent movements for this lot.')}
|
|
1255
1256
|
actions={(
|
|
1256
1257
|
<Button asChild type="button" variant="ghost" size="sm">
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useSearchParams } from 'next/navigation'
|
|
6
7
|
import type { ColumnDef, SortingState } from '@tanstack/react-table'
|
|
@@ -280,7 +281,7 @@ export default function WmsLotsListPage() {
|
|
|
280
281
|
totalPages: lotsQuery.data.totalPages,
|
|
281
282
|
onPageChange: setPage,
|
|
282
283
|
}}
|
|
283
|
-
perspective={{ tableId:
|
|
284
|
+
perspective={{ tableId: extensionPoints.hosts.lotsTable.tableId }}
|
|
284
285
|
emptyState={
|
|
285
286
|
<EmptyState
|
|
286
287
|
title={t('wms.backend.lots.empty.title', 'No lots found')}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/wms/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { z } from 'zod'
|
|
@@ -1094,7 +1095,7 @@ export default function WmsSkuDetailPage({ variantId }: WmsSkuDetailPageProps) {
|
|
|
1094
1095
|
data={pagedBalances}
|
|
1095
1096
|
disableRowClick
|
|
1096
1097
|
entityId={E.wms.inventory_balance}
|
|
1097
|
-
perspective={{ tableId:
|
|
1098
|
+
perspective={{ tableId: extensionPoints.hosts.skuDistributionTable.tableId }}
|
|
1098
1099
|
pagination={{
|
|
1099
1100
|
page: distributionPage,
|
|
1100
1101
|
pageSize: distributionPageSize,
|
|
@@ -1137,7 +1138,7 @@ export default function WmsSkuDetailPage({ variantId }: WmsSkuDetailPageProps) {
|
|
|
1137
1138
|
data={movementsQuery.data ?? []}
|
|
1138
1139
|
disableRowClick
|
|
1139
1140
|
entityId={E.wms.inventory_movement}
|
|
1140
|
-
perspective={{ tableId:
|
|
1141
|
+
perspective={{ tableId: extensionPoints.hosts.skuActivityTable.tableId }}
|
|
1141
1142
|
emptyState={t('wms.backend.sku.activity.empty', 'No recent movements for this SKU.')}
|
|
1142
1143
|
actions={(
|
|
1143
1144
|
<Button asChild type="button" variant="ghost" size="sm">
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { dataTableExtensionHost, defineModuleExtensionPoints } from '@open-mercato/shared/modules/widgets/extension-points'
|
|
2
|
+
|
|
3
|
+
export const extensionPoints = defineModuleExtensionPoints({
|
|
4
|
+
moduleId: 'wms',
|
|
5
|
+
hosts: {
|
|
6
|
+
warehousesTable: dataTableExtensionHost({ tableId: 'wms.config.warehouses', source: 'components/backend/WmsConfigurationPage.tsx' }),
|
|
7
|
+
zonesTable: dataTableExtensionHost({ tableId: 'wms.config.zones', source: 'components/backend/WmsConfigurationPage.tsx' }),
|
|
8
|
+
locationsTable: dataTableExtensionHost({ tableId: 'wms.config.locations', source: 'components/backend/WmsConfigurationPage.tsx' }),
|
|
9
|
+
inventoryProfilesTable: dataTableExtensionHost({ tableId: 'wms.config.inventoryProfiles', source: 'components/backend/WmsConfigurationPage.tsx' }),
|
|
10
|
+
balancesTable: dataTableExtensionHost({ tableId: 'wms.inventory.balances', source: 'components/backend/WmsInventoryConsolePage.tsx' }),
|
|
11
|
+
reservationsTable: dataTableExtensionHost({ tableId: 'wms.inventory.reservations', source: 'components/backend/WmsInventoryConsolePage.tsx' }),
|
|
12
|
+
movementsTable: dataTableExtensionHost({ tableId: 'wms.inventory.movements', source: 'components/backend/WmsInventoryConsolePage.tsx' }),
|
|
13
|
+
locationItemsTable: dataTableExtensionHost({ tableId: 'wms.location.items', source: 'components/backend/WmsLocationDetailPage.tsx' }),
|
|
14
|
+
locationActivityTable: dataTableExtensionHost({ tableId: 'wms.location.activity', source: 'components/backend/WmsLocationDetailPage.tsx' }),
|
|
15
|
+
lotDistributionTable: dataTableExtensionHost({ tableId: 'wms.lot.distribution', source: 'components/backend/WmsLotDetailPage.tsx' }),
|
|
16
|
+
lotActivityTable: dataTableExtensionHost({ tableId: 'wms.lot.activity', source: 'components/backend/WmsLotDetailPage.tsx' }),
|
|
17
|
+
lotsTable: dataTableExtensionHost({ tableId: 'wms.lots.list', source: 'components/backend/WmsLotsListPage.tsx' }),
|
|
18
|
+
skuDistributionTable: dataTableExtensionHost({ tableId: 'wms.sku.distribution', source: 'components/backend/WmsSkuDetailPage.tsx' }),
|
|
19
|
+
skuActivityTable: dataTableExtensionHost({ tableId: 'wms.sku.activity', source: 'components/backend/WmsSkuDetailPage.tsx' }),
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export default extensionPoints
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/workflows/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
@@ -429,7 +430,7 @@ export default function WorkflowDefinitionsListPage() {
|
|
|
429
430
|
onFiltersClear={handleFiltersClear}
|
|
430
431
|
onRowClick={(row) => router.push(`/backend/definitions/visual-editor?id=${row.id}`)}
|
|
431
432
|
perspective={{
|
|
432
|
-
tableId:
|
|
433
|
+
tableId: extensionPoints.hosts.definitionsTable.tableId,
|
|
433
434
|
}}
|
|
434
435
|
emptyState={(
|
|
435
436
|
<ListEmptyState
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/workflows/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
@@ -332,7 +333,7 @@ export default function WorkflowInstancesListPage() {
|
|
|
332
333
|
onFiltersApply={handleFiltersApply}
|
|
333
334
|
onFiltersClear={handleFiltersClear}
|
|
334
335
|
perspective={{
|
|
335
|
-
tableId:
|
|
336
|
+
tableId: extensionPoints.hosts.instancesTable.tableId,
|
|
336
337
|
}}
|
|
337
338
|
pagination={{ page, pageSize, total, totalPages, onPageChange: setPage }}
|
|
338
339
|
/>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
+
import { extensionPoints } from '@open-mercato/core/modules/workflows/extension-points'
|
|
4
5
|
import Link from 'next/link'
|
|
5
6
|
import { useRouter } from 'next/navigation'
|
|
6
7
|
import { Page, PageBody } from '@open-mercato/ui/backend/Page'
|
|
@@ -341,7 +342,7 @@ export default function UserTasksListPage() {
|
|
|
341
342
|
onFiltersApply={handleFiltersApply}
|
|
342
343
|
onFiltersClear={handleFiltersClear}
|
|
343
344
|
perspective={{
|
|
344
|
-
tableId:
|
|
345
|
+
tableId: extensionPoints.hosts.tasksTable.tableId,
|
|
345
346
|
}}
|
|
346
347
|
pagination={{ page, pageSize, total, totalPages, onPageChange: setPage }}
|
|
347
348
|
/>
|
|
@@ -30,6 +30,7 @@ const events = [
|
|
|
30
30
|
{ id: 'workflows.activity.started', label: 'Activity Started', category: 'lifecycle' },
|
|
31
31
|
{ id: 'workflows.activity.completed', label: 'Activity Completed', category: 'lifecycle' },
|
|
32
32
|
{ id: 'workflows.activity.failed', label: 'Activity Failed', category: 'lifecycle' },
|
|
33
|
+
{ id: 'workflows.task.assigned', label: 'Task Assigned', entity: 'task', category: 'lifecycle' },
|
|
33
34
|
|
|
34
35
|
// Event Triggers
|
|
35
36
|
{ id: 'workflows.trigger.created', label: 'Trigger Created', entity: 'trigger', category: 'crud' },
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { dataTableExtensionHost, defineModuleExtensionPoints } from '@open-mercato/shared/modules/widgets/extension-points'
|
|
2
|
+
|
|
3
|
+
export const extensionPoints = defineModuleExtensionPoints({
|
|
4
|
+
moduleId: 'workflows',
|
|
5
|
+
hosts: {
|
|
6
|
+
definitionsTable: dataTableExtensionHost({ tableId: 'workflows.definitions.list', source: 'backend/definitions/page.tsx' }),
|
|
7
|
+
instancesTable: dataTableExtensionHost({ tableId: 'workflows.instances.list', source: 'backend/instances/page.tsx' }),
|
|
8
|
+
tasksTable: dataTableExtensionHost({ tableId: 'workflows.tasks.list', source: 'backend/tasks/page.tsx' }),
|
|
9
|
+
},
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export default extensionPoints
|