feat(dashboard,js-sdk,admin-shared): add customer addresses + layout change (#11871)
what: - changes customer layout from 1 layout to 2 - adds ability to create and delete customer addresses - adds 2 customer widget locations - adds is_giftcard=false by default to products list <img width="1663" alt="Screenshot 2025-03-08 at 21 34 02" src="https://github.com/user-attachments/assets/e66f05da-718c-4c25-81ce-67ba0a814ca3" />
This commit is contained in:
@@ -134,6 +134,9 @@
|
||||
"areYouSure": {
|
||||
"type": "string"
|
||||
},
|
||||
"areYouSureDescription": {
|
||||
"type": "string"
|
||||
},
|
||||
"noRecordsFound": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -1346,6 +1349,9 @@
|
||||
"addresses": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"shippingAddress": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3491,6 +3497,84 @@
|
||||
},
|
||||
"hasAccount": {
|
||||
"type": "string"
|
||||
},
|
||||
"addresses": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"fields": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"addressName": {
|
||||
"type": "string"
|
||||
},
|
||||
"address1": {
|
||||
"type": "string"
|
||||
},
|
||||
"address2": {
|
||||
"type": "string"
|
||||
},
|
||||
"city": {
|
||||
"type": "string"
|
||||
},
|
||||
"province": {
|
||||
"type": "string"
|
||||
},
|
||||
"postalCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"country": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string"
|
||||
},
|
||||
"company": {
|
||||
"type": "string"
|
||||
},
|
||||
"countryCode": {
|
||||
"type": "string"
|
||||
},
|
||||
"provinceCode": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"addressName",
|
||||
"address1",
|
||||
"address2",
|
||||
"city",
|
||||
"province",
|
||||
"postalCode",
|
||||
"country",
|
||||
"phone",
|
||||
"company",
|
||||
"countryCode",
|
||||
"provinceCode"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"create": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"hint": {
|
||||
"type": "string"
|
||||
},
|
||||
"successToast": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["header", "hint", "successToast"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["title", "create"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
@@ -56,6 +56,7 @@ describe("translation schema validation", () => {
|
||||
if (missingInTranslations.length > 0) {
|
||||
console.error("\nMissing keys in en.json:", missingInTranslations)
|
||||
}
|
||||
|
||||
if (extraInTranslations.length > 0) {
|
||||
console.error("\nExtra keys in en.json:", extraInTranslations)
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
"plusCount": "+ {{count}}",
|
||||
"plusCountMore": "+ {{count}} more",
|
||||
"areYouSure": "Are you sure?",
|
||||
"areYouSureDescription": "You are about to delete the {{entity}} {{title}}. This action cannot be undone.",
|
||||
"noRecordsFound": "No records found",
|
||||
"typeToConfirm": "Please type {val} to confirm:",
|
||||
"noResultsTitle": "No results",
|
||||
@@ -349,6 +350,7 @@
|
||||
"backToDashboard": "Back to dashboard"
|
||||
},
|
||||
"addresses": {
|
||||
"title": "Addresses",
|
||||
"shippingAddress": {
|
||||
"header": "Shipping Address",
|
||||
"editHeader": "Edit Shipping Address",
|
||||
@@ -931,7 +933,28 @@
|
||||
},
|
||||
"registered": "Registered",
|
||||
"guest": "Guest",
|
||||
"hasAccount": "Has account"
|
||||
"hasAccount": "Has account",
|
||||
"addresses": {
|
||||
"title": "Addresses",
|
||||
"fields": {
|
||||
"addressName": "Address name",
|
||||
"address1": "Address 1",
|
||||
"address2": "Address 2",
|
||||
"city": "City",
|
||||
"province": "Province",
|
||||
"postalCode": "Postal code",
|
||||
"country": "Country",
|
||||
"phone": "Phone",
|
||||
"company": "Company",
|
||||
"countryCode": "Country code",
|
||||
"provinceCode": "Province code"
|
||||
},
|
||||
"create": {
|
||||
"header": "Create Address",
|
||||
"hint": "Create a new address for the customer.",
|
||||
"successToast": "Address was successfully created."
|
||||
}
|
||||
}
|
||||
},
|
||||
"customerGroups": {
|
||||
"domain": "Customer Groups",
|
||||
|
||||
Reference in New Issue
Block a user