@nyris/nyris-webapp 0.3.53 → 0.3.55

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.
Files changed (110) hide show
  1. package/build/asset-manifest.json +8 -7
  2. package/build/images/fav2/android-chrome-192x192.png +0 -0
  3. package/build/images/fav2/android-chrome-512x512.png +0 -0
  4. package/build/images/fav2/apple-touch-icon.png +0 -0
  5. package/build/images/fav2/browserconfig.xml +9 -0
  6. package/build/images/fav2/favicon-16x16.png +0 -0
  7. package/build/images/fav2/favicon-32x32.png +0 -0
  8. package/build/images/fav2/favicon.ico +0 -0
  9. package/build/images/fav2/mstile-144x144.png +0 -0
  10. package/build/images/fav2/mstile-150x150.png +0 -0
  11. package/build/images/fav2/mstile-310x150.png +0 -0
  12. package/build/images/fav2/mstile-310x310.png +0 -0
  13. package/build/images/fav2/mstile-70x70.png +0 -0
  14. package/build/images/fav2/safari-pinned-tab.svg +67 -0
  15. package/build/images/fav2/site.webmanifest +19 -0
  16. package/build/index.html +1 -1
  17. package/build/js/settings.example.js +1 -2
  18. package/build/manifest.json +13 -18
  19. package/build/static/css/main.d7425370.css +2 -0
  20. package/build/static/css/main.d7425370.css.map +1 -0
  21. package/build/static/js/main.7b9e6c68.js +3 -0
  22. package/build/static/js/{main.ebb92e93.js.LICENSE.txt → main.7b9e6c68.js.LICENSE.txt} +1 -1
  23. package/build/static/js/main.7b9e6c68.js.map +1 -0
  24. package/build/static/media/path.b99a15de38340a04f80828bceeab9884.svg +3 -0
  25. package/package.json +3 -3
  26. package/public/images/fav2/android-chrome-192x192.png +0 -0
  27. package/public/images/fav2/android-chrome-512x512.png +0 -0
  28. package/public/images/fav2/apple-touch-icon.png +0 -0
  29. package/public/images/fav2/browserconfig.xml +9 -0
  30. package/public/images/fav2/favicon-16x16.png +0 -0
  31. package/public/images/fav2/favicon-32x32.png +0 -0
  32. package/public/images/fav2/favicon.ico +0 -0
  33. package/public/images/fav2/mstile-144x144.png +0 -0
  34. package/public/images/fav2/mstile-150x150.png +0 -0
  35. package/public/images/fav2/mstile-310x150.png +0 -0
  36. package/public/images/fav2/mstile-310x310.png +0 -0
  37. package/public/images/fav2/mstile-70x70.png +0 -0
  38. package/public/images/fav2/safari-pinned-tab.svg +67 -0
  39. package/public/images/fav2/site.webmanifest +19 -0
  40. package/public/index.html +8 -90
  41. package/public/js/settings.example.js +1 -2
  42. package/public/manifest.json +13 -18
  43. package/src/Store/Store.ts +0 -1
  44. package/src/Store/search/Search.ts +33 -74
  45. package/src/Store/search/search.initialState.ts +5 -4
  46. package/src/Store/search/types.ts +5 -4
  47. package/src/common/assets/icons/path.svg +3 -0
  48. package/src/components/AppMobile.tsx +0 -1
  49. package/src/components/DragDropFile.tsx +36 -28
  50. package/src/components/Experience-visual-search/ExperienceVisualSearch.scss +3 -4
  51. package/src/components/Experience-visual-search/ExperienceVisualSearch.tsx +14 -7
  52. package/src/components/Feedback.tsx +5 -5
  53. package/src/components/FooterMobile.tsx +4 -5
  54. package/src/components/GoBackButton.tsx +54 -0
  55. package/src/components/Header.tsx +27 -3
  56. package/src/components/HeaderMobile.tsx +29 -12
  57. package/src/components/ImagePreviewMobile.tsx +6 -3
  58. package/src/components/Inquiry/InquiryBanner.tsx +1 -1
  59. package/src/components/Layout.tsx +5 -14
  60. package/src/components/PanelResult/PostFilterAlgolia.tsx +3 -2
  61. package/src/components/ProductDetailView.tsx +338 -330
  62. package/src/components/ProductList/index.tsx +1 -1
  63. package/src/components/appMobile.scss +7 -0
  64. package/src/components/clear-refinements/clear-refinements.tsx +1 -1
  65. package/src/components/common.scss +18 -7
  66. package/src/components/current-refinements/current-refinements.tsx +10 -22
  67. package/src/components/drawer/cameraCustom.tsx +12 -1
  68. package/src/components/input/inputSearch.tsx +79 -21
  69. package/src/components/pre-filter/index.tsx +23 -7
  70. package/src/components/results/ItemResult.tsx +296 -281
  71. package/src/index.tsx +12 -14
  72. package/src/page/landingPage/AppMobile.tsx +3 -9
  73. package/src/page/landingPage/common.scss +164 -48
  74. package/src/page/result/index.tsx +116 -87
  75. package/src/translations.ts +3 -0
  76. package/src/types.ts +1 -0
  77. package/build/images/fav/android-icon-192x192.png +0 -0
  78. package/build/images/fav/apple-icon-114x114.png +0 -0
  79. package/build/images/fav/apple-icon-120x120.png +0 -0
  80. package/build/images/fav/apple-icon-144x144.png +0 -0
  81. package/build/images/fav/apple-icon-152x152.png +0 -0
  82. package/build/images/fav/apple-icon-180x180.png +0 -0
  83. package/build/images/fav/apple-icon-57x57.png +0 -0
  84. package/build/images/fav/apple-icon-60x60.png +0 -0
  85. package/build/images/fav/apple-icon-72x72.png +0 -0
  86. package/build/images/fav/apple-icon-76x76.png +0 -0
  87. package/build/images/fav/browserconfig.xml +0 -2
  88. package/build/images/fav/favicon-16x16.png +0 -0
  89. package/build/images/fav/favicon-32x32.png +0 -0
  90. package/build/images/fav/favicon-96x96.png +0 -0
  91. package/build/images/fav/manifest.json +0 -35
  92. package/build/static/css/main.8c0eb6c0.css +0 -2
  93. package/build/static/css/main.8c0eb6c0.css.map +0 -1
  94. package/build/static/js/main.ebb92e93.js +0 -3
  95. package/build/static/js/main.ebb92e93.js.map +0 -1
  96. package/public/images/fav/android-icon-192x192.png +0 -0
  97. package/public/images/fav/apple-icon-114x114.png +0 -0
  98. package/public/images/fav/apple-icon-120x120.png +0 -0
  99. package/public/images/fav/apple-icon-144x144.png +0 -0
  100. package/public/images/fav/apple-icon-152x152.png +0 -0
  101. package/public/images/fav/apple-icon-180x180.png +0 -0
  102. package/public/images/fav/apple-icon-57x57.png +0 -0
  103. package/public/images/fav/apple-icon-60x60.png +0 -0
  104. package/public/images/fav/apple-icon-72x72.png +0 -0
  105. package/public/images/fav/apple-icon-76x76.png +0 -0
  106. package/public/images/fav/browserconfig.xml +0 -2
  107. package/public/images/fav/favicon-16x16.png +0 -0
  108. package/public/images/fav/favicon-32x32.png +0 -0
  109. package/public/images/fav/favicon-96x96.png +0 -0
  110. package/public/images/fav/manifest.json +0 -35
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.74786 12.2785C5.99572 12.5263 6.39757 12.5263 6.64543 12.2785C6.89317 12.0307 6.8933 11.6291 6.64572 11.3812L3.12248 7.85332C2.80781 7.53824 3.03097 7 3.47626 7L13.1966 7C13.5481 7 13.833 6.71509 13.833 6.36364C13.833 6.01218 13.5481 5.72727 13.1966 5.72727L3.47626 5.72727C3.03097 5.72727 2.80781 5.18903 3.12248 4.87395L6.64572 1.34606C6.8933 1.09815 6.89317 0.696526 6.64543 0.448784C6.39757 0.200928 5.99572 0.200928 5.74786 0.448784L0.540115 5.65653C0.14959 6.04705 0.14959 6.68022 0.540115 7.07074L5.74786 12.2785Z" fill="#2B2C46"/>
3
+ </svg>
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@nyris/nyris-webapp",
3
- "version": "0.3.53",
3
+ "version": "0.3.55",
4
4
  "dependencies": {
5
5
  "@auth0/auth0-react": "^2.2.4",
6
6
  "@emailjs/browser": "^4.3.3",
7
7
  "@material-ui/core": "^4.12.4",
8
8
  "@material-ui/icons": "^4.11.3",
9
9
  "@material-ui/lab": "^4.0.0-alpha.61",
10
- "@nyris/nyris-api": "^0.3.53",
11
- "@nyris/nyris-react-components": "^0.3.53",
10
+ "@nyris/nyris-api": "^0.3.55",
11
+ "@nyris/nyris-react-components": "^0.3.55",
12
12
  "@reduxjs/toolkit": "^2.2.1",
13
13
  "@splidejs/react-splide": "^0.7.12",
14
14
  "@testing-library/jest-dom": "^5.17.0",
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <browserconfig>
3
+ <msapplication>
4
+ <tile>
5
+ <square150x150logo src="/mstile-150x150.png?v=2"/>
6
+ <TileColor>#da532c</TileColor>
7
+ </tile>
8
+ </msapplication>
9
+ </browserconfig>
Binary file
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="700.000000pt" height="700.000000pt" viewBox="0 0 700.000000 700.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+ <metadata>
8
+ Created by potrace 1.14, written by Peter Selinger 2001-2017
9
+ </metadata>
10
+ <g transform="translate(0.000000,700.000000) scale(0.100000,-0.100000)"
11
+ fill="#000000" stroke="none">
12
+ <path d="M1618 6995 c-2 -2 -37 -6 -77 -9 -41 -4 -77 -9 -80 -11 -4 -2 -24 -6
13
+ -46 -9 -78 -13 -202 -50 -318 -97 -456 -183 -824 -564 -990 -1024 -37 -104
14
+ -62 -192 -73 -260 -3 -22 -7 -42 -9 -45 -9 -14 -19 -157 -19 -260 0 -105 2
15
+ -120 27 -172 101 -207 386 -242 530 -65 47 56 66 106 72 186 3 36 8 91 10 121
16
+ 33 378 265 718 611 893 54 27 208 81 259 91 17 3 44 8 60 11 17 3 73 8 125 10
17
+ 160 9 244 46 310 137 121 167 40 428 -153 490 -27 9 -231 20 -239 13z"/>
18
+ <path d="M5153 6986 c-130 -42 -212 -148 -220 -286 -6 -99 21 -175 86 -240 77
19
+ -77 125 -93 311 -104 150 -10 264 -42 415 -116 347 -170 581 -516 610 -900 12
20
+ -150 17 -185 36 -225 30 -63 80 -117 140 -150 49 -27 62 -30 144 -30 70 1 100
21
+ 6 137 23 61 27 127 93 158 157 23 46 25 61 24 185 -3 314 -101 631 -282 907
22
+ -275 418 -702 692 -1202 773 -110 18 -310 21 -357 6z"/>
23
+ <path d="M3338 6335 c-2 -1 -41 -5 -88 -9 -72 -5 -145 -14 -235 -30 -11 -2
24
+ -38 -7 -60 -11 -134 -24 -401 -103 -535 -160 -353 -149 -656 -351 -925 -620
25
+ -359 -359 -611 -795 -740 -1280 -25 -95 -51 -218 -60 -282 -3 -21 -7 -51 -10
26
+ -68 -27 -183 -28 -594 -1 -745 3 -14 7 -46 11 -72 3 -26 7 -53 10 -60 2 -7 6
27
+ -29 9 -48 8 -52 62 -260 92 -348 248 -747 812 -1369 1536 -1694 271 -123 598
28
+ -210 878 -235 170 -16 550 -9 675 12 17 3 46 7 65 10 256 39 554 137 814 268
29
+ 555 279 1000 730 1275 1288 152 311 243 629 278 979 10 96 10 442 0 540 -17
30
+ 175 -52 358 -97 511 -62 211 -80 250 -150 312 -132 118 -331 106 -449 -29 -82
31
+ -93 -98 -203 -50 -349 48 -148 68 -231 94 -385 18 -107 23 -184 20 -360 -3
32
+ -215 -6 -241 -41 -415 -113 -562 -446 -1055 -937 -1389 -54 -36 -99 -66 -102
33
+ -66 -2 0 -45 -22 -95 -49 -216 -118 -510 -210 -755 -237 -33 -4 -73 -8 -90
34
+ -10 -52 -6 -308 -6 -360 0 -27 4 -72 9 -100 12 -43 5 -79 11 -225 40 -156 31
35
+ -436 143 -589 235 -34 22 -65 39 -67 39 -12 0 -192 135 -274 205 -337 289
36
+ -598 714 -696 1130 -47 200 -59 313 -59 555 1 275 24 419 112 684 203 612 689
37
+ 1116 1304 1351 142 55 332 105 449 119 25 3 74 9 110 13 78 9 350 10 440 0
38
+ 160 -16 294 -44 450 -93 61 -19 130 -37 153 -39 122 -10 251 66 308 182 34 68
39
+ 34 206 0 275 -28 59 -82 112 -141 142 -82 42 -355 120 -490 140 -19 3 -44 7
40
+ -55 10 -11 2 -49 7 -85 11 -36 4 -74 9 -85 12 -21 4 -432 12 -437 8z"/>
41
+ <path d="M5272 5745 c-138 -38 -253 -159 -286 -299 -14 -57 -7 -152 14 -217
42
+ 82 -242 376 -348 590 -211 271 173 245 567 -47 704 -76 36 -190 46 -271 23z"/>
43
+ <path d="M3440 4835 c-14 -8 -31 -17 -39 -21 -8 -4 -64 -36 -125 -72 -61 -36
44
+ -131 -76 -156 -90 -25 -14 -227 -131 -449 -259 -222 -128 -415 -240 -430 -247
45
+ -42 -23 -78 -59 -88 -91 -5 -18 -9 -299 -8 -685 l0 -655 23 -32 c30 -42 606
46
+ -333 659 -333 44 0 85 24 109 64 18 29 19 62 21 601 2 673 0 615 14 615 6 0
47
+ 48 22 93 48 44 27 161 95 259 151 l177 103 58 -33 c31 -18 75 -42 97 -55 22
48
+ -12 86 -49 143 -83 57 -34 106 -61 108 -61 2 0 23 -12 47 -27 23 -15 53 -32
49
+ 67 -40 l25 -13 1 -589 c0 -654 -3 -618 67 -661 59 -36 81 -29 392 126 161 80
50
+ 303 155 315 166 11 11 25 31 31 45 5 14 9 295 9 679 0 722 3 686 -64 737 -19
51
+ 15 -37 27 -39 27 -3 0 -67 36 -143 81 -77 44 -157 91 -179 104 -22 12 -114 65
52
+ -205 117 -91 53 -181 105 -200 116 -19 10 -123 70 -230 133 -107 62 -212 121
53
+ -232 131 -44 22 -94 23 -128 3z"/>
54
+ <path d="M240 2063 c-96 -33 -170 -97 -211 -181 -21 -42 -24 -61 -24 -167 1
55
+ -112 8 -206 20 -265 3 -14 10 -50 16 -80 18 -93 77 -260 134 -377 212 -442
56
+ 600 -774 1070 -918 178 -54 282 -69 470 -70 147 0 187 13 259 82 160 156 115
57
+ 426 -87 518 -41 19 -78 27 -144 31 -187 11 -336 46 -472 111 -356 172 -603
58
+ 534 -626 918 -9 144 -14 173 -36 221 -29 61 -99 131 -159 158 -44 19 -174 31
59
+ -210 19z"/>
60
+ <path d="M6566 2050 c-110 -43 -189 -148 -200 -266 -3 -32 -8 -88 -11 -124
61
+ -27 -358 -236 -690 -550 -871 -87 -51 -269 -121 -310 -120 -2 0 -19 -4 -37
62
+ -10 -18 -5 -69 -11 -113 -14 -161 -11 -181 -15 -243 -46 -116 -57 -179 -168
63
+ -170 -303 8 -117 71 -211 176 -263 51 -25 68 -28 167 -29 231 -3 490 56 715
64
+ 162 409 193 723 528 890 950 34 86 84 264 95 337 3 27 9 59 11 70 3 12 7 83 9
65
+ 157 4 117 1 142 -16 186 -27 70 -88 137 -155 170 -74 36 -186 42 -258 14z"/>
66
+ </g>
67
+ </svg>
@@ -0,0 +1,19 @@
1
+ {
2
+ "short_name": "Search Suite",
3
+ "name": "Search Suite",
4
+ "icons": [
5
+ {
6
+ "src": "/android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/android-chrome-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#ffffff",
17
+ "background_color": "#ffffff",
18
+ "display": "standalone"
19
+ }
package/public/index.html CHANGED
@@ -7,86 +7,18 @@
7
7
  content="width=device-width,initial-scale=1,maximum-scale=1,viewport-fit=auto, user-scalable=no"
8
8
  />
9
9
  <meta name="theme-color" content="#000000" />
10
- <link
11
- rel="apple-touch-icon"
12
- sizes="57x57"
13
- href="images/fav/apple-icon-57x57.png"
14
- />
15
- <link
16
- rel="apple-touch-icon"
17
- sizes="60x60"
18
- href="images/fav/apple-icon-60x60.png"
19
- />
20
- <link
21
- rel="apple-touch-icon"
22
- sizes="72x72"
23
- href="images/fav/apple-icon-72x72.png"
24
- />
25
- <link
26
- rel="apple-touch-icon"
27
- sizes="76x76"
28
- href="images/fav/apple-icon-76x76.png"
29
- />
30
- <link
31
- rel="apple-touch-icon"
32
- sizes="114x114"
33
- href="images/fav/apple-icon-114x114.png"
34
- />
35
- <link
36
- rel="apple-touch-icon"
37
- sizes="120x120"
38
- href="images/fav/apple-icon-120x120.png"
39
- />
40
- <link
41
- rel="apple-touch-icon"
42
- sizes="144x144"
43
- href="images/fav/apple-icon-144x144.png"
44
- />
45
- <link
46
- rel="apple-touch-icon"
47
- sizes="152x152"
48
- href="images/fav/apple-icon-152x152.png"
49
- />
50
- <link
51
- rel="apple-touch-icon"
52
- sizes="180x180"
53
- href="images/fav/apple-icon-180x180.png"
54
- />
55
- <link
56
- rel="icon"
57
- type="image/png"
58
- sizes="192x192"
59
- href="images/fav/android-icon-192x192.png"
60
- />
61
- <link
62
- rel="icon"
63
- type="image/png"
64
- sizes="32x32"
65
- href="images/fav/favicon-32x32.png"
66
- />
67
- <link
68
- rel="icon"
69
- type="image/png"
70
- sizes="96x96"
71
- href="images/fav/favicon-96x96.png"
72
- />
73
- <link
74
- rel="icon"
75
- type="image/png"
76
- sizes="16x16"
77
- href="images/fav/favicon-16x16.png"
78
- />
79
- <link
80
- rel="manifest"
81
- href="images/fav/manifest.json"
82
- crossorigin="use-credentials"
83
- />
10
+ <link rel="apple-touch-icon" sizes="180x180" href="images/fav2/apple-touch-icon.png"/>
11
+ <link rel="icon" type="image/png" sizes="32x32" href="images/fav2/favicon-32x32.png"/>
12
+ <link rel="icon" type="image/png" sizes="16x16" href="images/fav2/favicon-16x16.png"/>
13
+ <link rel="manifest" href="images/fav2/site.webmanifest"/>
14
+ <link rel="mask-icon" href="images/fav2/safari-pinned-tab.svg" color="#5bbad5"/>
15
+ <link rel="shortcut icon" href="images/fav2/favicon.ico"/>
16
+ <meta name="msapplication-TileColor" content="#da532c"/>
17
+ <meta name="theme-color" content="#ffffff"/>
84
18
  <link
85
19
  href="https://fonts.googleapis.com/icon?family=Material+Icons"
86
20
  rel="stylesheet"
87
21
  />
88
- <meta name="msapplication-TileColor" content="#ffffff" />
89
- <meta name="theme-color" content="#ffffff" />
90
22
 
91
23
  <script src="js/settings.js?CI_COMMIT_SHA"></script>
92
24
  <link
@@ -108,10 +40,6 @@
108
40
  </script>
109
41
  <!-- End Piwik Analytics -->
110
42
 
111
- <script
112
- src="https://863a167094994e54bc22149eafac1699.js.ubembed.com"
113
- async
114
- ></script>
115
43
  <script>
116
44
  let vh = window.innerHeight * 0.01;
117
45
  document.documentElement.style.setProperty("--vh", `${vh}px`);
@@ -129,15 +57,5 @@
129
57
  <body>
130
58
  <noscript>You need to enable JavaScript to run this app.</noscript>
131
59
  <div id="root"></div>
132
- <!--
133
- This HTML file is a template.
134
- If you open it directly in the browser, you will see an empty page.
135
-
136
- You can add webfonts, meta tags, or analytics to this file.
137
- The build step will place the bundled scripts into the <body> tag.
138
-
139
- To begin the development, run `npm start` or `yarn start`.
140
- To create a production bundle, use `npm run build` or `yarn build`.
141
- -->
142
60
  </body>
143
61
  </html>
@@ -48,8 +48,6 @@ var settings = {
48
48
  },
49
49
  language: 'en',
50
50
  // features
51
- shareOption: '',
52
- showFeedbackAndShare: '',
53
51
  showPoweredByNyris: '',
54
52
  warehouseVariant: false,
55
53
  postFilterOption: '',
@@ -79,6 +77,7 @@ var settings = {
79
77
  itemIdLabel: 'SKU',
80
78
  preFilterTitle: '',
81
79
  CTAButtonText: 'View More',
80
+ simpleCardView: false,
82
81
  secondaryCTAButtonText: 'Configure Now',
83
82
 
84
83
  //field mappins
@@ -1,26 +1,21 @@
1
1
  {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
2
+ "short_name": "Search Suite",
3
+ "name": "Search Suite",
4
+ "start_url": ".",
5
+ "web_accessible_resources": ["background.js"],
4
6
  "icons": [
5
7
  {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
8
+ "src": "/android-chrome-192x192.png",
9
+ "sizes": "192x192",
10
+ "type": "image/png"
14
11
  },
15
12
  {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
13
+ "src": "/android-chrome-512x512.png",
14
+ "sizes": "512x512",
15
+ "type": "image/png"
16
+ }
20
17
  ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
18
+ "theme_color": "#ffffff",
24
19
  "background_color": "#ffffff",
25
- "web_accessible_resources": ["background.js"]
20
+ "display": "standalone"
26
21
  }
@@ -10,7 +10,6 @@ declare var settings: AppSettings;
10
10
 
11
11
  settings.algolia.enabled = true;
12
12
  settings.preview = true;
13
- settings.showFeedback = false;
14
13
  settings.showFeedbackAndShare = false;
15
14
 
16
15
  if (settings.rfq?.enabled && settings.support?.enabled) {
@@ -12,7 +12,7 @@ export const searchSlice = createSlice({
12
12
  const { payload } = data;
13
13
  const {
14
14
  results,
15
- requestId,
15
+ session,
16
16
  categoryPredictions,
17
17
  codes,
18
18
  duration,
@@ -23,11 +23,11 @@ export const searchSlice = createSlice({
23
23
  ...state,
24
24
  filters,
25
25
  results,
26
- requestId,
26
+ requestId: session,
27
27
  categoryPredictions,
28
28
  codes,
29
29
  duration,
30
- sessionId: state.sessionId || requestId,
30
+ sessionId: session,
31
31
  fetchingResults: false,
32
32
  };
33
33
  },
@@ -61,23 +61,6 @@ export const searchSlice = createSlice({
61
61
  };
62
62
  },
63
63
 
64
- loadFileSelectRegion: (state, data: PayloadAction<any>) => {
65
- const { payload } = data;
66
-
67
- const { results, requestId, categoryPredictions, codes, duration } =
68
- payload;
69
- return {
70
- ...state,
71
- results,
72
- requestId,
73
- categoryPredictions,
74
- codes,
75
- duration,
76
- sessionId: state.sessionId || requestId,
77
- fetchingRegions: false,
78
- };
79
- },
80
-
81
64
  loadingActionResults: state => {
82
65
  return {
83
66
  ...state,
@@ -85,28 +68,6 @@ export const searchSlice = createSlice({
85
68
  };
86
69
  },
87
70
 
88
- loadingActionRegions: state => {
89
- return {
90
- ...state,
91
- fetchingRegions: true,
92
- };
93
- },
94
-
95
- searchFileImageNonRegion: (state, data: PayloadAction<any>) => {
96
- const { payload } = data;
97
- const { results, requestId, duration, categoryPredictions, codes } =
98
- payload;
99
- return {
100
- ...state,
101
- results,
102
- requestId,
103
- duration,
104
- categoryPredictions,
105
- codes,
106
- fetchingResults: false,
107
- };
108
- },
109
-
110
71
  changeValueTextSearch: (state, data: PayloadAction<any>) => {
111
72
  const { payload } = data;
112
73
  return {
@@ -115,14 +76,6 @@ export const searchSlice = createSlice({
115
76
  };
116
77
  },
117
78
 
118
- resultSearchText: (state, data: PayloadAction<any>) => {
119
- const { payload } = data;
120
- return {
121
- ...state,
122
- resultSearchText: payload,
123
- };
124
- },
125
-
126
79
  updateResults: (state, data: PayloadAction<any>) => {
127
80
  const { payload } = data;
128
81
  return {
@@ -144,7 +97,6 @@ export const searchSlice = createSlice({
144
97
  selectedRegion: DEFAULT_REGION,
145
98
  requestImage: undefined,
146
99
  fetchingResults: false,
147
- fetchingRegions: false,
148
100
  filterOptions: [],
149
101
  categoryPredictions: [],
150
102
  codes: [],
@@ -160,6 +112,11 @@ export const searchSlice = createSlice({
160
112
  postFilter: {},
161
113
  preFilterDropdown: false,
162
114
  imageCaptureHelpModal: false,
115
+ showFeedback: false,
116
+ firstSearchImage: null,
117
+ firstSearchResults: null,
118
+ firstSearchPrefilters: null,
119
+ firstSearchThumbSearchInput: null,
163
120
  };
164
121
  },
165
122
 
@@ -173,14 +130,6 @@ export const searchSlice = createSlice({
173
130
  };
174
131
  },
175
132
 
176
- configureFilter: (state, data: PayloadAction<any>) => {
177
- const { payload } = data;
178
- return {
179
- ...state,
180
- configureFilter: payload,
181
- };
182
- },
183
-
184
133
  setUpdateSession: (state, data: PayloadAction<string>) => {
185
134
  const { payload } = data;
186
135
  return {
@@ -199,15 +148,6 @@ export const searchSlice = createSlice({
199
148
  };
200
149
  },
201
150
 
202
- setError: (state, data: PayloadAction<string>) => {
203
- return {
204
- ...state,
205
- fetchingRegions: false,
206
- fetchingResults: false,
207
- errorMessage: data.payload,
208
- };
209
- },
210
-
211
151
  setImageSearchInput: (state, data: PayloadAction<string>) => {
212
152
  const { payload } = data;
213
153
  return {
@@ -294,23 +234,37 @@ export const searchSlice = createSlice({
294
234
  postFilter: {},
295
235
  };
296
236
  },
237
+ setShowFeedback: (state, data: PayloadAction<boolean>) => ({
238
+ ...state,
239
+ showFeedback: data.payload,
240
+ }),
241
+ setFirstSearchResults: (state, data: PayloadAction<any>) => ({
242
+ ...state,
243
+ firstSearchResults: data.payload,
244
+ }),
245
+ setFirstSearchImage: (state, data: PayloadAction<any>) => ({
246
+ ...state,
247
+ firstSearchImage: data.payload,
248
+ }),
249
+ setFirstSearchPrefilters: (state, data: PayloadAction<any>) => ({
250
+ ...state,
251
+ firstSearchPrefilters: data.payload,
252
+ }),
253
+ setFirstSearchThumbSearchInput: (state, data: PayloadAction<any>) => ({
254
+ ...state,
255
+ firstSearchThumbSearchInput: data.payload,
256
+ }),
297
257
  },
298
258
  });
299
259
 
300
260
  export const {
301
261
  changeValueTextSearch,
302
262
  clearPostFilter,
303
- configureFilter,
304
- loadFileSelectRegion,
305
- loadingActionRegions,
306
263
  loadingActionResults,
307
264
  onResetRequestImage,
308
265
  onToggleModalItemDetail,
309
266
  reset,
310
- resultSearchText,
311
- searchFileImageNonRegion,
312
267
  selectionChanged,
313
- setError,
314
268
  setFilter,
315
269
  setImageCaptureHelpModal,
316
270
  setImageSearchInput,
@@ -327,5 +281,10 @@ export const {
327
281
  updateResults,
328
282
  updateStatusLoading,
329
283
  updateValueTextSearchMobile,
284
+ setShowFeedback,
285
+ setFirstSearchImage,
286
+ setFirstSearchResults,
287
+ setFirstSearchPrefilters,
288
+ setFirstSearchThumbSearchInput,
330
289
  } = searchSlice.actions;
331
290
  export default searchSlice.reducer;
@@ -3,9 +3,6 @@ import { SearchState } from './types';
3
3
  export const initialState: SearchState = {
4
4
  categoryPredictions: [],
5
5
  codes: [],
6
- configureFilter: {},
7
- errorMessage: '',
8
- fetchingRegions: false,
9
6
  fetchingResults: false,
10
7
  filterOptions: [],
11
8
  filters: [],
@@ -18,7 +15,6 @@ export const initialState: SearchState = {
18
15
  regions: [],
19
16
  requestImage: undefined,
20
17
  results: [],
21
- resultSearchText: [],
22
18
  selectedRegion: undefined,
23
19
  textSearchInputMobile: '',
24
20
  valueTextSearch: {
@@ -27,4 +23,9 @@ export const initialState: SearchState = {
27
23
  refinementList: '',
28
24
  },
29
25
  postFilter: {},
26
+ showFeedback: false,
27
+ firstSearchImage: '',
28
+ firstSearchResults: null,
29
+ firstSearchPrefilters: null,
30
+ firstSearchThumbSearchInput: null,
30
31
  };
@@ -9,10 +9,7 @@ export interface CategoryPrediction {
9
9
  export interface SearchState {
10
10
  categoryPredictions: CategoryPrediction[];
11
11
  codes: Code[];
12
- configureFilter?: any;
13
12
  duration?: number;
14
- errorMessage: string;
15
- fetchingRegions: boolean;
16
13
  fetchingResults: boolean;
17
14
  filterOptions: string[];
18
15
  filters: any[];
@@ -26,7 +23,6 @@ export interface SearchState {
26
23
  requestId?: string;
27
24
  requestImage?: CanvasWithId | undefined;
28
25
  results: any[];
29
- resultSearchText: any[];
30
26
  selectedRegion?: RectCoords;
31
27
  sessionId?: string;
32
28
  queryText?: string;
@@ -34,4 +30,9 @@ export interface SearchState {
34
30
  textSearchInputMobile?: string;
35
31
  valueTextSearch: any;
36
32
  postFilter: Record<string, Record<string, boolean>>;
33
+ showFeedback?: boolean;
34
+ firstSearchImage: any;
35
+ firstSearchResults: any;
36
+ firstSearchPrefilters: any;
37
+ firstSearchThumbSearchInput: any;
37
38
  }
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5.74786 12.2785C5.99572 12.5263 6.39757 12.5263 6.64543 12.2785C6.89317 12.0307 6.8933 11.6291 6.64572 11.3812L3.12248 7.85332C2.80781 7.53824 3.03097 7 3.47626 7L13.1966 7C13.5481 7 13.833 6.71509 13.833 6.36364C13.833 6.01218 13.5481 5.72727 13.1966 5.72727L3.47626 5.72727C3.03097 5.72727 2.80781 5.18903 3.12248 4.87395L6.64572 1.34606C6.8933 1.09815 6.89317 0.696526 6.64543 0.448784C6.39757 0.200928 5.99572 0.200928 5.74786 0.448784L0.540115 5.65653C0.14959 6.04705 0.14959 6.68022 0.540115 7.07074L5.74786 12.2785Z" fill="#2B2C46"/>
3
+ </svg>
@@ -1,6 +1,5 @@
1
1
  import React, { ReactNode, useState } from 'react';
2
2
  import HeaderMobile from './HeaderMobile';
3
-
4
3
  import {
5
4
  setPreFilterDropdown,
6
5
  setImageCaptureHelpModal,