@akinon/projectzero 1.115.0-snapshot-ZERO-3895-20251210115756 → 1.116.0-rc.0
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/CHANGELOG.md +12 -1
- package/app-template/.env.example +1 -0
- package/app-template/CHANGELOG.md +90 -0
- package/app-template/README.md +25 -1
- package/app-template/package.json +27 -25
- package/app-template/public/locales/en/account.json +3 -1
- package/app-template/public/locales/en/common.json +42 -1
- package/app-template/public/locales/en/product.json +3 -3
- package/app-template/public/locales/tr/account.json +3 -1
- package/app-template/public/locales/tr/common.json +42 -1
- package/app-template/public/locales/tr/product.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/page.tsx +20 -1
- package/app-template/src/app/api/image-proxy/route.ts +1 -0
- package/app-template/src/app/api/product-categories/route.ts +1 -0
- package/app-template/src/app/api/similar-product-list/route.ts +1 -0
- package/app-template/src/app/api/similar-products/route.ts +1 -0
- package/app-template/src/components/modal.tsx +2 -0
- package/app-template/src/components/select.tsx +1 -1
- package/app-template/src/hooks/index.ts +2 -0
- package/app-template/src/plugins.js +4 -1
- package/app-template/src/routes/index.ts +2 -1
- package/app-template/src/views/account/orders/order-detail-header.tsx +1 -1
- package/app-template/src/views/checkout/steps/shipping/address-box.tsx +30 -17
- package/app-template/src/views/checkout/steps/shipping/addresses.tsx +1 -1
- package/app-template/src/views/header/search/index.tsx +23 -5
- package/app-template/src/views/product/slider.tsx +95 -37
- package/commands/plugins.ts +12 -0
- package/dist/commands/plugins.js +250 -172
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.116.0-rc.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
|
|
8
|
+
- d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
|
|
9
|
+
|
|
10
|
+
## 1.115.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- b59bed4d: ZERO-3878: Reintegrated similar products and removed localStorage checks and implemented props based showing of buttons
|
|
4
15
|
|
|
5
16
|
## 1.114.0
|
|
6
17
|
|
|
@@ -7,6 +7,7 @@ NEXT_PUBLIC_URL=http://localhost:3000
|
|
|
7
7
|
SERVICE_BACKEND_URL=https://02fde10fee4440269e695aa10707dfaf.lb.akinoncloud.com
|
|
8
8
|
SITEMAP_S3_BUCKET_NAME=0fb534
|
|
9
9
|
NEXT_PUBLIC_VIRTUAL_TRY_ON_API_URL=https://d2a26507c7094f359aba349b96a96881.lb.akinoncloud.com
|
|
10
|
+
NEXT_PUBLIC_ENABLE_IMAGE_SEARCH=true
|
|
10
11
|
|
|
11
12
|
# LOG_LEVEL_DEV=debug # For more details, please refer to the Logging documentation.
|
|
12
13
|
|
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.116.0-rc.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4449f3a3: ZERO-3681: Add order details localization and improve order handling in AccountOrderDetail
|
|
8
|
+
- 1a8622a9: ZERO-3392: Implemented AI Search functionality and update env
|
|
9
|
+
- b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
10
|
+
- 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
|
|
11
|
+
- 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
|
|
12
|
+
- d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
|
|
13
|
+
- b87517ff: ZERO-3680: Enhance select component styling to ensure focus state is consistent
|
|
14
|
+
- b05c3543: ZERO-2570: Category filters routes to absolute url
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [d2c0e759]
|
|
19
|
+
- Updated dependencies [b55acb76]
|
|
20
|
+
- Updated dependencies [143be2b9]
|
|
21
|
+
- Updated dependencies [9f8cd3bc]
|
|
22
|
+
- Updated dependencies [0d33d9ac]
|
|
23
|
+
- Updated dependencies [d99a6a7d]
|
|
24
|
+
- Updated dependencies [ee191e6f]
|
|
25
|
+
- Updated dependencies [4de5303c]
|
|
26
|
+
- Updated dependencies [95b139dc]
|
|
27
|
+
- Updated dependencies [6b73b050]
|
|
28
|
+
- Updated dependencies [5ae86358]
|
|
29
|
+
- @akinon/next@1.116.0-rc.0
|
|
30
|
+
- @akinon/pz-similar-products@1.116.0-rc.0
|
|
31
|
+
- @akinon/pz-masterpass-rest@1.116.0-rc.0
|
|
32
|
+
- @akinon/pz-virtual-try-on@1.116.0-rc.0
|
|
33
|
+
- @akinon/pz-akifast@1.116.0-rc.0
|
|
34
|
+
- @akinon/pz-apple-pay@1.116.0-rc.0
|
|
35
|
+
- @akinon/pz-b2b@1.116.0-rc.0
|
|
36
|
+
- @akinon/pz-basket-gift-pack@1.116.0-rc.0
|
|
37
|
+
- @akinon/pz-bkm@1.116.0-rc.0
|
|
38
|
+
- @akinon/pz-checkout-gift-pack@1.116.0-rc.0
|
|
39
|
+
- @akinon/pz-click-collect@1.116.0-rc.0
|
|
40
|
+
- @akinon/pz-credit-payment@1.116.0-rc.0
|
|
41
|
+
- @akinon/pz-cybersource-uc@1.116.0-rc.0
|
|
42
|
+
- @akinon/pz-flow-payment@1.116.0-rc.0
|
|
43
|
+
- @akinon/pz-gpay@1.116.0-rc.0
|
|
44
|
+
- @akinon/pz-haso@1.116.0-rc.0
|
|
45
|
+
- @akinon/pz-hepsipay@1.116.0-rc.0
|
|
46
|
+
- @akinon/pz-masterpass@1.116.0-rc.0
|
|
47
|
+
- @akinon/pz-multi-basket@1.116.0-rc.0
|
|
48
|
+
- @akinon/pz-one-click-checkout@1.116.0-rc.0
|
|
49
|
+
- @akinon/pz-otp@1.116.0-rc.0
|
|
50
|
+
- @akinon/pz-pay-on-delivery@1.116.0-rc.0
|
|
51
|
+
- @akinon/pz-saved-card@1.116.0-rc.0
|
|
52
|
+
- @akinon/pz-tabby-extension@1.116.0-rc.0
|
|
53
|
+
- @akinon/pz-tamara-extension@1.116.0-rc.0
|
|
54
|
+
|
|
55
|
+
## 1.115.0
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- b59bed4d: ZERO-3878: Reintegrated similar products and removed localStorage checks and implemented props based showing of buttons
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- Updated dependencies [b59bed4d]
|
|
64
|
+
- Updated dependencies [b5f9d75c]
|
|
65
|
+
- Updated dependencies [cbcfdf4d]
|
|
66
|
+
- Updated dependencies [1880978c]
|
|
67
|
+
- Updated dependencies [71882722]
|
|
68
|
+
- Updated dependencies [7056203a]
|
|
69
|
+
- @akinon/next@1.115.0
|
|
70
|
+
- @akinon/pz-virtual-try-on@1.115.0
|
|
71
|
+
- @akinon/pz-akifast@1.115.0
|
|
72
|
+
- @akinon/pz-apple-pay@1.115.0
|
|
73
|
+
- @akinon/pz-b2b@1.115.0
|
|
74
|
+
- @akinon/pz-basket-gift-pack@1.115.0
|
|
75
|
+
- @akinon/pz-bkm@1.115.0
|
|
76
|
+
- @akinon/pz-checkout-gift-pack@1.115.0
|
|
77
|
+
- @akinon/pz-click-collect@1.115.0
|
|
78
|
+
- @akinon/pz-credit-payment@1.115.0
|
|
79
|
+
- @akinon/pz-cybersource-uc@1.115.0
|
|
80
|
+
- @akinon/pz-flow-payment@1.115.0
|
|
81
|
+
- @akinon/pz-gpay@1.115.0
|
|
82
|
+
- @akinon/pz-hepsipay@1.115.0
|
|
83
|
+
- @akinon/pz-masterpass@1.115.0
|
|
84
|
+
- @akinon/pz-masterpass-rest@1.115.0
|
|
85
|
+
- @akinon/pz-multi-basket@1.115.0
|
|
86
|
+
- @akinon/pz-one-click-checkout@1.115.0
|
|
87
|
+
- @akinon/pz-otp@1.115.0
|
|
88
|
+
- @akinon/pz-pay-on-delivery@1.115.0
|
|
89
|
+
- @akinon/pz-saved-card@1.115.0
|
|
90
|
+
- @akinon/pz-tabby-extension@1.115.0
|
|
91
|
+
- @akinon/pz-tamara-extension@1.115.0
|
|
92
|
+
|
|
3
93
|
## 1.114.0
|
|
4
94
|
|
|
5
95
|
### Patch Changes
|
package/app-template/README.md
CHANGED
|
@@ -12,6 +12,30 @@ Run `cp .env.example .env && yarn` command at project root and all dependencies
|
|
|
12
12
|
|
|
13
13
|
- `SITEMAP_S3_BUCKET_NAME`: S3 bucket name for XML sitemaps (e.g., "0fb534"). This is required for the sitemap route to function correctly.
|
|
14
14
|
|
|
15
|
+
### Optional Environment Variables
|
|
16
|
+
|
|
17
|
+
- `NEXT_PUBLIC_ENABLE_IMAGE_SEARCH`: Set to `true` to enable image search feature for all users. If not set or `false`, the feature will only be visible to users who have enabled it via localStorage.
|
|
18
|
+
|
|
19
|
+
## Image Search Feature
|
|
20
|
+
|
|
21
|
+
The image search functionality allows users to search for similar products by uploading images or cropping existing product images.
|
|
22
|
+
|
|
23
|
+
### Feature Visibility Control
|
|
24
|
+
|
|
25
|
+
The image search feature can be controlled in two ways:
|
|
26
|
+
|
|
27
|
+
1. **Environment Variable (Global)**: Set `NEXT_PUBLIC_ENABLE_IMAGE_SEARCH=true` to enable for all users
|
|
28
|
+
2. **localStorage (Individual Users)**: Users can enable it locally using browser developer tools
|
|
29
|
+
|
|
30
|
+
````
|
|
31
|
+
|
|
32
|
+
### Feature Locations
|
|
33
|
+
|
|
34
|
+
When enabled, the image search feature appears in:
|
|
35
|
+
|
|
36
|
+
- **Header Search**: Camera icon next to the search input
|
|
37
|
+
- **Product Detail Page**: "View Similar Styles" button on product images
|
|
38
|
+
|
|
15
39
|
### Build
|
|
16
40
|
|
|
17
41
|
To build the app, run the following command:
|
|
@@ -19,7 +43,7 @@ To build the app, run the following command:
|
|
|
19
43
|
```bash
|
|
20
44
|
cd projectzeronext # Project root
|
|
21
45
|
yarn build
|
|
22
|
-
|
|
46
|
+
````
|
|
23
47
|
|
|
24
48
|
### Develop
|
|
25
49
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.116.0-rc.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -24,29 +24,31 @@
|
|
|
24
24
|
"test:middleware": "jest middleware-matcher.test.ts --bail"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@akinon/next": "1.
|
|
28
|
-
"@akinon/pz-akifast": "1.
|
|
29
|
-
"@akinon/pz-apple-pay": "1.
|
|
30
|
-
"@akinon/pz-b2b": "1.
|
|
31
|
-
"@akinon/pz-basket-gift-pack": "1.
|
|
32
|
-
"@akinon/pz-bkm": "1.
|
|
33
|
-
"@akinon/pz-checkout-gift-pack": "1.
|
|
34
|
-
"@akinon/pz-click-collect": "1.
|
|
35
|
-
"@akinon/pz-credit-payment": "1.
|
|
36
|
-
"@akinon/pz-cybersource-uc": "1.
|
|
37
|
-
"@akinon/pz-flow-payment": "1.
|
|
38
|
-
"@akinon/pz-gpay": "1.
|
|
39
|
-
"@akinon/pz-
|
|
40
|
-
"@akinon/pz-
|
|
41
|
-
"@akinon/pz-masterpass
|
|
42
|
-
"@akinon/pz-
|
|
43
|
-
"@akinon/pz-
|
|
44
|
-
"@akinon/pz-
|
|
45
|
-
"@akinon/pz-
|
|
46
|
-
"@akinon/pz-
|
|
47
|
-
"@akinon/pz-
|
|
48
|
-
"@akinon/pz-
|
|
49
|
-
"@akinon/pz-
|
|
27
|
+
"@akinon/next": "1.116.0-rc.0",
|
|
28
|
+
"@akinon/pz-akifast": "1.116.0-rc.0",
|
|
29
|
+
"@akinon/pz-apple-pay": "1.116.0-rc.0",
|
|
30
|
+
"@akinon/pz-b2b": "1.116.0-rc.0",
|
|
31
|
+
"@akinon/pz-basket-gift-pack": "1.116.0-rc.0",
|
|
32
|
+
"@akinon/pz-bkm": "1.116.0-rc.0",
|
|
33
|
+
"@akinon/pz-checkout-gift-pack": "1.116.0-rc.0",
|
|
34
|
+
"@akinon/pz-click-collect": "1.116.0-rc.0",
|
|
35
|
+
"@akinon/pz-credit-payment": "1.116.0-rc.0",
|
|
36
|
+
"@akinon/pz-cybersource-uc": "1.116.0-rc.0",
|
|
37
|
+
"@akinon/pz-flow-payment": "1.116.0-rc.0",
|
|
38
|
+
"@akinon/pz-gpay": "1.116.0-rc.0",
|
|
39
|
+
"@akinon/pz-haso": "1.116.0-rc.0",
|
|
40
|
+
"@akinon/pz-hepsipay": "1.116.0-rc.0",
|
|
41
|
+
"@akinon/pz-masterpass": "1.116.0-rc.0",
|
|
42
|
+
"@akinon/pz-masterpass-rest": "1.116.0-rc.0",
|
|
43
|
+
"@akinon/pz-multi-basket": "1.116.0-rc.0",
|
|
44
|
+
"@akinon/pz-one-click-checkout": "1.116.0-rc.0",
|
|
45
|
+
"@akinon/pz-otp": "1.116.0-rc.0",
|
|
46
|
+
"@akinon/pz-pay-on-delivery": "1.116.0-rc.0",
|
|
47
|
+
"@akinon/pz-saved-card": "1.116.0-rc.0",
|
|
48
|
+
"@akinon/pz-similar-products": "1.116.0-rc.0",
|
|
49
|
+
"@akinon/pz-tabby-extension": "1.116.0-rc.0",
|
|
50
|
+
"@akinon/pz-tamara-extension": "1.116.0-rc.0",
|
|
51
|
+
"@akinon/pz-virtual-try-on": "1.116.0-rc.0",
|
|
50
52
|
"@hookform/resolvers": "2.9.0",
|
|
51
53
|
"@next/third-parties": "14.1.0",
|
|
52
54
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -69,7 +71,7 @@
|
|
|
69
71
|
"yup": "0.32.11"
|
|
70
72
|
},
|
|
71
73
|
"devDependencies": {
|
|
72
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
74
|
+
"@akinon/eslint-plugin-projectzero": "1.116.0-rc.0",
|
|
73
75
|
"@semantic-release/changelog": "6.0.2",
|
|
74
76
|
"@semantic-release/exec": "6.0.3",
|
|
75
77
|
"@semantic-release/git": "10.0.1",
|
|
@@ -242,7 +242,9 @@
|
|
|
242
242
|
"total": "Total",
|
|
243
243
|
"items": "items",
|
|
244
244
|
"packages": "Packages",
|
|
245
|
-
"package_no": "Package no"
|
|
245
|
+
"package_no": "Package no",
|
|
246
|
+
"back_to_orders": "Back to Orders",
|
|
247
|
+
"no_orders_found": "No orders found"
|
|
246
248
|
},
|
|
247
249
|
"return": {
|
|
248
250
|
"title": "Return Items",
|
|
@@ -29,7 +29,25 @@
|
|
|
29
29
|
"clean": "clean",
|
|
30
30
|
"categories": "CATEGORIES",
|
|
31
31
|
"view_all": "VIEW ALL",
|
|
32
|
-
"not_found": "Search Results Not Found"
|
|
32
|
+
"not_found": "Search Results Not Found",
|
|
33
|
+
"image_search": {
|
|
34
|
+
"title": "Search by Image",
|
|
35
|
+
"upload_image": "Upload an image to find similar products",
|
|
36
|
+
"select_image": "Select Image",
|
|
37
|
+
"crop_image": "Crop Image",
|
|
38
|
+
"cancel_crop": "Cancel Crop",
|
|
39
|
+
"apply_crop": "Apply Crop",
|
|
40
|
+
"try_another": "Try Another Image",
|
|
41
|
+
"search_image": "Search Image",
|
|
42
|
+
"similar_products": "Similar Products",
|
|
43
|
+
"loading_cropper": "Loading cropper...",
|
|
44
|
+
"no_products": "No similar products found",
|
|
45
|
+
"best_results": "For best results:",
|
|
46
|
+
"tip_1": "Upload clear images of products",
|
|
47
|
+
"tip_2": "Use images with simple backgrounds",
|
|
48
|
+
"tip_3": "Focus on the main product",
|
|
49
|
+
"tip_4": "Use the crop tool to focus on specific details"
|
|
50
|
+
}
|
|
33
51
|
},
|
|
34
52
|
"page_404": {
|
|
35
53
|
"title": "Page not found.",
|
|
@@ -74,6 +92,29 @@
|
|
|
74
92
|
"select_file": "Select File",
|
|
75
93
|
"no_file": "No file selected"
|
|
76
94
|
},
|
|
95
|
+
"product": {
|
|
96
|
+
"no_products": "No products found",
|
|
97
|
+
"new_image": "New Image",
|
|
98
|
+
"view_similar_styles": "View Similar Styles",
|
|
99
|
+
"clear_all_filters": "Clear All Filters",
|
|
100
|
+
"reset_to_original": "Reset to Original",
|
|
101
|
+
"similar_styles": "Similar Styles",
|
|
102
|
+
"filters": "Filters",
|
|
103
|
+
"active_filters": "Active Filters"
|
|
104
|
+
},
|
|
105
|
+
"similar_products": {
|
|
106
|
+
"errors": {
|
|
107
|
+
"file_size_too_large": "Image size should be less than 5MB",
|
|
108
|
+
"invalid_image_file": "The selected file is not a valid image",
|
|
109
|
+
"invalid_image_format": "Invalid image format detected",
|
|
110
|
+
"search_failed": "Search failed. Please try again later",
|
|
111
|
+
"connection_failed": "Image search failed. Please check your connection and try again",
|
|
112
|
+
"invalid_image_properties": "Invalid image properties detected",
|
|
113
|
+
"file_read_error": "Error reading the file",
|
|
114
|
+
"processing_error": "Error processing image",
|
|
115
|
+
"crop_processing_error": "Error processing cropped image"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
77
118
|
"forms": {
|
|
78
119
|
"sending": "Sending...",
|
|
79
120
|
"success": "Form submitted successfully!",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"photo_preview": "Photo Preview",
|
|
78
78
|
"error_title": "An Error Occurred",
|
|
79
79
|
"legal": {
|
|
80
|
-
"title": "
|
|
81
|
-
"text": "
|
|
80
|
+
"title": "Consent Statement",
|
|
81
|
+
"text": "I hereby declare that I give my <strong>explicit consent</strong> for the image I will upload to be used for <strong>AI-powered processing, enhancement, analysis, and content creation</strong> purposes.",
|
|
82
82
|
"accept": "Accept",
|
|
83
|
-
"error": "Please accept the
|
|
83
|
+
"error": "Please accept the consent statement."
|
|
84
84
|
},
|
|
85
85
|
"multiple_results_title": "Virtual Try-On Results",
|
|
86
86
|
"multiple_results_subtitle": "Try-on completed for {{count}} products",
|
|
@@ -242,7 +242,9 @@
|
|
|
242
242
|
"total": "Toplam",
|
|
243
243
|
"items": "adet",
|
|
244
244
|
"packages": "paket",
|
|
245
|
-
"package_no": "Paket no"
|
|
245
|
+
"package_no": "Paket no",
|
|
246
|
+
"back_to_orders": "Siparişlere geri dön",
|
|
247
|
+
"no_orders_found": "Sipariş bulunamadı"
|
|
246
248
|
},
|
|
247
249
|
"return": {
|
|
248
250
|
"title": "İade Ürünleri",
|
|
@@ -29,7 +29,25 @@
|
|
|
29
29
|
"clean": "temizle",
|
|
30
30
|
"categories": "KATEGORİLER",
|
|
31
31
|
"view_all": "HEPSİNİ GÖSTER",
|
|
32
|
-
"not_found": "Arama Sonuçları Bulunamadı"
|
|
32
|
+
"not_found": "Arama Sonuçları Bulunamadı",
|
|
33
|
+
"image_search": {
|
|
34
|
+
"title": "Görsel ile Ara",
|
|
35
|
+
"upload_image": "Benzer ürünleri bulmak için bir görsel yükleyin",
|
|
36
|
+
"select_image": "Görsel Seç",
|
|
37
|
+
"crop_image": "Görsel Kırp",
|
|
38
|
+
"cancel_crop": "Kırpmayı İptal Et",
|
|
39
|
+
"apply_crop": "Kırpmayı Uygula",
|
|
40
|
+
"try_another": "Başka Görsel Dene",
|
|
41
|
+
"search_image": "Arama Görseli",
|
|
42
|
+
"similar_products": "Benzer Ürünler",
|
|
43
|
+
"loading_cropper": "Kırpıcı yükleniyor...",
|
|
44
|
+
"no_products": "Benzer ürün bulunamadı",
|
|
45
|
+
"best_results": "En iyi sonuçlar için:",
|
|
46
|
+
"tip_1": "Net ürün görselleri yükleyin",
|
|
47
|
+
"tip_2": "Basit arka planlı görseller kullanın",
|
|
48
|
+
"tip_3": "Ana ürüne odaklanın",
|
|
49
|
+
"tip_4": "Belirli detaylara odaklanmak için kırpma aracını kullanın"
|
|
50
|
+
}
|
|
33
51
|
},
|
|
34
52
|
"page_404": {
|
|
35
53
|
"title": "Sayfa bulunamadı.",
|
|
@@ -74,6 +92,29 @@
|
|
|
74
92
|
"select_file": "Dosya Seç",
|
|
75
93
|
"no_file": "Dosya seçilmedi"
|
|
76
94
|
},
|
|
95
|
+
"product": {
|
|
96
|
+
"no_products": "Ürün bulunamadı",
|
|
97
|
+
"new_image": "Yeni Görsel",
|
|
98
|
+
"view_similar_styles": "Benzer Stillere Göz At",
|
|
99
|
+
"clear_all_filters": "Tüm Filtreleri Temizle",
|
|
100
|
+
"reset_to_original": "Orjinale Dön",
|
|
101
|
+
"similar_styles": "Benzer Stillere Göz At",
|
|
102
|
+
"filters": "Filtreler",
|
|
103
|
+
"active_filters": "Aktif Filtreler"
|
|
104
|
+
},
|
|
105
|
+
"similar_products": {
|
|
106
|
+
"errors": {
|
|
107
|
+
"file_size_too_large": "Görsel boyutu 5MB'dan küçük olmalıdır",
|
|
108
|
+
"invalid_image_file": "Seçilen dosya geçerli bir görsel değil",
|
|
109
|
+
"invalid_image_format": "Geçersiz görsel formatı tespit edildi",
|
|
110
|
+
"search_failed": "Arama başarısız oldu. Lütfen daha sonra tekrar deneyin",
|
|
111
|
+
"connection_failed": "Görsel arama başarısız oldu. Lütfen bağlantınızı kontrol edip tekrar deneyin",
|
|
112
|
+
"invalid_image_properties": "Geçersiz görsel özellikleri tespit edildi",
|
|
113
|
+
"file_read_error": "Dosya okuma hatası",
|
|
114
|
+
"processing_error": "Görsel işleme hatası",
|
|
115
|
+
"crop_processing_error": "Kırpılan görsel işleme hatası"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
77
118
|
"forms": {
|
|
78
119
|
"sending": "Gönderiliyor...",
|
|
79
120
|
"success": "Form başarıyla gönderildi!",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"cabin": "Sanal Deneme Kabini",
|
|
81
81
|
"legal": {
|
|
82
82
|
"title": "Açık Rıza Metni",
|
|
83
|
-
"text": "
|
|
83
|
+
"text": "Yükleyeceğim görselin, <strong>yapay zekâ destekli işleme, iyileştirme, analiz ve içerik oluşturma</strong> amaçlarıyla kullanılmasına <strong>açık rıza verdiğimi</strong> beyan ederim.",
|
|
84
84
|
"accept": "Onayla",
|
|
85
85
|
"error": "Lütfen açık rıza metnini onaylayın."
|
|
86
86
|
},
|
|
@@ -61,7 +61,26 @@ const AccountOrderDetail = ({ params: { id } }) => {
|
|
|
61
61
|
}, [order, isSuccess, localeValue]);
|
|
62
62
|
|
|
63
63
|
if (isLoading && isFetching) {
|
|
64
|
-
return
|
|
64
|
+
return (
|
|
65
|
+
<div className="flex flex-col items-center justify-center h-96">
|
|
66
|
+
<LoaderSpinner />
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!order) {
|
|
72
|
+
return (
|
|
73
|
+
<div className="flex flex-col items-center justify-center h-96">
|
|
74
|
+
<p className="mt-5 text-start text-lg mb-4">
|
|
75
|
+
{t('account.my_orders.detail.no_orders_found')}
|
|
76
|
+
</p>
|
|
77
|
+
<Link href={`/account/orders/`}>
|
|
78
|
+
<Button className="px-4" appearance="filled">
|
|
79
|
+
{t('account.my_orders.detail.back_to_orders')}
|
|
80
|
+
</Button>
|
|
81
|
+
</Link>
|
|
82
|
+
</div>
|
|
83
|
+
);
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
return (
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@akinon/next/api/image-proxy';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@akinon/next/api/product-categories';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@akinon/next/api/similar-product-list';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@akinon/next/api/similar-products';
|
|
@@ -41,12 +41,14 @@ export const Modal = (props: ModalProps) => {
|
|
|
41
41
|
'fixed top-0 left-0 w-screen h-screen bg-primary bg-opacity-60 z-50',
|
|
42
42
|
overlayClassName
|
|
43
43
|
)}
|
|
44
|
+
onClick={(e) => e.stopPropagation()}
|
|
44
45
|
/>
|
|
45
46
|
<section
|
|
46
47
|
className={twMerge(
|
|
47
48
|
'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 bg-white',
|
|
48
49
|
className
|
|
49
50
|
)}
|
|
51
|
+
onClick={(e) => e.stopPropagation()}
|
|
50
52
|
>
|
|
51
53
|
{(showCloseButton || title) && (
|
|
52
54
|
<div
|
|
@@ -48,7 +48,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>((props, ref) => {
|
|
|
48
48
|
clsx(
|
|
49
49
|
'cursor-pointer truncate h-10 w-40 px-2.5 shrink-0 outline-none',
|
|
50
50
|
!borderless &&
|
|
51
|
-
'border border-gray-200 transition-all duration-150 hover:border-primary',
|
|
51
|
+
'border border-gray-200 transition-all duration-150 hover:border-primary focus:border-primary',
|
|
52
52
|
'appearance-none bg-transparent'
|
|
53
53
|
),
|
|
54
54
|
className
|
|
@@ -21,7 +21,7 @@ export const OrderDetailHeader = ({ title, order, children }: Props) => {
|
|
|
21
21
|
<div>
|
|
22
22
|
<span>{t('account.my_orders.detail.order_number')}</span>:{' '}
|
|
23
23
|
<span data-testid="account-orders-return-order-id">
|
|
24
|
-
{order
|
|
24
|
+
{order?.number}
|
|
25
25
|
</span>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
@@ -85,7 +85,7 @@ const AddressBox = ({
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const onSubmit = (data) => {
|
|
88
|
-
editAddress({ ...data, invalidateTag: '
|
|
88
|
+
editAddress({ ...data, invalidateTag: 'Checkout' })
|
|
89
89
|
.unwrap()
|
|
90
90
|
.then((editAddressResponse) => {
|
|
91
91
|
handleAddressClick(addressType, editAddressResponse);
|
|
@@ -96,7 +96,7 @@ const AddressBox = ({
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const handleRemoveAddress = async (addressPk: number) => {
|
|
99
|
-
await removeAddress({ id: addressPk, invalidateTag: '
|
|
99
|
+
await removeAddress({ id: addressPk, invalidateTag: 'Checkout' });
|
|
100
100
|
setRemoveAddressModalOpen(false);
|
|
101
101
|
dispatch(resetCheckoutState());
|
|
102
102
|
|
|
@@ -168,7 +168,10 @@ const AddressBox = ({
|
|
|
168
168
|
<Button
|
|
169
169
|
appearance="ghost"
|
|
170
170
|
className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
|
|
171
|
-
onClick={() =>
|
|
171
|
+
onClick={(e) => {
|
|
172
|
+
e.stopPropagation();
|
|
173
|
+
setIsEditAddressModalOpen(true);
|
|
174
|
+
}}
|
|
172
175
|
data-testid="checkout-address-edit"
|
|
173
176
|
>
|
|
174
177
|
{t('checkout.address.box.edit')}
|
|
@@ -180,21 +183,26 @@ const AddressBox = ({
|
|
|
180
183
|
setOpen={setIsEditAddressModalOpen}
|
|
181
184
|
className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
|
|
182
185
|
>
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
<div onClick={(e) => e.stopPropagation()}>
|
|
187
|
+
<AddressForm
|
|
188
|
+
data={{
|
|
189
|
+
...address,
|
|
190
|
+
country: address.country?.pk,
|
|
191
|
+
city: address.city?.pk,
|
|
192
|
+
township: address.township?.pk,
|
|
193
|
+
district: address.district?.pk
|
|
194
|
+
}}
|
|
195
|
+
onSubmit={onSubmit}
|
|
196
|
+
/>
|
|
197
|
+
</div>
|
|
193
198
|
</Modal>
|
|
194
199
|
<Button
|
|
195
200
|
appearance="ghost"
|
|
196
201
|
className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
|
|
197
|
-
onClick={() =>
|
|
202
|
+
onClick={(e) => {
|
|
203
|
+
e.stopPropagation();
|
|
204
|
+
setRemoveAddressModalOpen(true);
|
|
205
|
+
}}
|
|
198
206
|
data-testid="checkout-address-remove"
|
|
199
207
|
>
|
|
200
208
|
{t('checkout.address.box.remove')}
|
|
@@ -207,14 +215,18 @@ const AddressBox = ({
|
|
|
207
215
|
setOpen={setRemoveAddressModalOpen}
|
|
208
216
|
showCloseButton={false}
|
|
209
217
|
>
|
|
210
|
-
<div
|
|
218
|
+
<div
|
|
219
|
+
className="text-center px-6 py-10"
|
|
220
|
+
onClick={(e) => e.stopPropagation()}
|
|
221
|
+
>
|
|
211
222
|
<p className="mb-4">
|
|
212
223
|
{t('account.address_book.modal.delete_description')}
|
|
213
224
|
</p>
|
|
214
225
|
<div className="space-x-3 flex justify-center">
|
|
215
226
|
<Button
|
|
216
227
|
appearance="outlined"
|
|
217
|
-
onClick={() => {
|
|
228
|
+
onClick={(e) => {
|
|
229
|
+
e.stopPropagation();
|
|
218
230
|
setRemoveAddressModalOpen(false);
|
|
219
231
|
}}
|
|
220
232
|
data-testid="remove-address-modal-cancel"
|
|
@@ -224,7 +236,8 @@ const AddressBox = ({
|
|
|
224
236
|
<Button
|
|
225
237
|
appearance="filled"
|
|
226
238
|
disabled={removeAddressLoading}
|
|
227
|
-
onClick={() => {
|
|
239
|
+
onClick={(e) => {
|
|
240
|
+
e.stopPropagation();
|
|
228
241
|
handleRemoveAddress(address.pk);
|
|
229
242
|
}}
|
|
230
243
|
className={
|
|
@@ -77,7 +77,7 @@ const Addresses = () => {
|
|
|
77
77
|
}, [billing_and_shipping_same]);
|
|
78
78
|
|
|
79
79
|
const onSubmit = (data) => {
|
|
80
|
-
addAddress({ ...data, invalidateTag: '
|
|
80
|
+
addAddress({ ...data, invalidateTag: 'Checkout' })
|
|
81
81
|
.unwrap()
|
|
82
82
|
.then((addAddressResponse) => {
|
|
83
83
|
if (addressList.length === 0) {
|