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:
Riqwan Thamir
2025-03-17 17:16:27 +01:00
committed by GitHub
parent cc4c5c86e2
commit 5ab15a2988
24 changed files with 912 additions and 59 deletions

View File

@@ -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": [