@vendure/dashboard 3.5.1-master-202511080229 → 3.5.1-master-202511120232
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/package.json +4 -4
- package/src/app/routes/_authenticated/_orders/components/order-detail-shared.tsx +4 -1
- package/src/app/routes/_authenticated/_orders/components/order-history/order-history-utils.tsx +1 -1
- package/src/app/routes/_authenticated/_orders/components/order-table.tsx +4 -1
- package/src/lib/framework/document-introspection/add-custom-fields.spec.ts +907 -1
- package/src/lib/framework/document-introspection/add-custom-fields.ts +248 -119
- package/src/lib/framework/extension-api/types/layout.ts +1 -1
- package/src/lib/framework/history-entry/history-entry.tsx +1 -1
- package/src/lib/framework/layout-engine/page-layout.spec.tsx +138 -0
- package/src/lib/framework/layout-engine/page-layout.tsx +56 -27
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/dashboard",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.5.1-master-
|
|
4
|
+
"version": "3.5.1-master-202511120232",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
"@storybook/addon-vitest": "^10.0.0-beta.9",
|
|
156
156
|
"@storybook/react-vite": "^10.0.0-beta.9",
|
|
157
157
|
"@types/node": "^22.13.4",
|
|
158
|
-
"@vendure/common": "^3.5.1-master-
|
|
159
|
-
"@vendure/core": "^3.5.1-master-
|
|
158
|
+
"@vendure/common": "^3.5.1-master-202511120232",
|
|
159
|
+
"@vendure/core": "^3.5.1-master-202511120232",
|
|
160
160
|
"@vitest/browser": "^3.2.4",
|
|
161
161
|
"@vitest/coverage-v8": "^3.2.4",
|
|
162
162
|
"eslint": "^9.19.0",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"lightningcss-linux-arm64-musl": "^1.29.3",
|
|
174
174
|
"lightningcss-linux-x64-musl": "^1.29.1"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "9361156a66b865340501d3ad1257addd09fb10f5"
|
|
177
177
|
}
|
|
@@ -2,6 +2,7 @@ import { CustomFieldsForm } from '@/vdb/components/shared/custom-fields-form.js'
|
|
|
2
2
|
import { PermissionGuard } from '@/vdb/components/shared/permission-guard.js';
|
|
3
3
|
import { Button } from '@/vdb/components/ui/button.js';
|
|
4
4
|
import { DropdownMenuItem } from '@/vdb/components/ui/dropdown-menu.js';
|
|
5
|
+
import { addCustomFields } from '@/vdb/framework/document-introspection/add-custom-fields.js';
|
|
5
6
|
import {
|
|
6
7
|
Page,
|
|
7
8
|
PageActionBar,
|
|
@@ -72,7 +73,9 @@ export function OrderDetailShared({
|
|
|
72
73
|
|
|
73
74
|
const { form, submitHandler, entity, refreshEntity } = useDetailPage({
|
|
74
75
|
pageId,
|
|
75
|
-
queryDocument: orderDetailDocument,
|
|
76
|
+
queryDocument: addCustomFields(orderDetailDocument, {
|
|
77
|
+
includeNestedFragments: ['OrderLine'],
|
|
78
|
+
}),
|
|
76
79
|
updateDocument: setOrderCustomFieldsDocument,
|
|
77
80
|
setValuesForUpdate: (entity: any) => {
|
|
78
81
|
return {
|
package/src/app/routes/_authenticated/_orders/components/order-history/order-history-utils.tsx
CHANGED
|
@@ -105,7 +105,7 @@ export function orderHistoryUtils(order: OrderHistoryOrderDetail) {
|
|
|
105
105
|
|
|
106
106
|
const getIconColor = ({ type, data }: HistoryEntryItem) => {
|
|
107
107
|
const success = 'bg-success text-success-foreground';
|
|
108
|
-
const destructive = 'bg-
|
|
108
|
+
const destructive = 'bg-destructive text-destructive-foreground';
|
|
109
109
|
const regular = 'bg-muted text-muted-foreground';
|
|
110
110
|
|
|
111
111
|
if (type === 'ORDER_PAYMENT_TRANSITION' && data.to === 'Settled') {
|
|
@@ -147,7 +147,10 @@ export function OrderTable({ order, pageId }: Readonly<OrderTableProps>) {
|
|
|
147
147
|
];
|
|
148
148
|
const currencyCode = order.currencyCode;
|
|
149
149
|
|
|
150
|
-
const fields = getFieldsFromDocumentNode(
|
|
150
|
+
const fields = getFieldsFromDocumentNode(
|
|
151
|
+
addCustomFields(orderDetailDocument, { includeNestedFragments: ['OrderLine'] }),
|
|
152
|
+
['order', 'lines'],
|
|
153
|
+
);
|
|
151
154
|
|
|
152
155
|
const customizeColumns = useMemo(() => createCustomizeColumns(currencyCode), [currencyCode]);
|
|
153
156
|
|