From 878b0d406a25b23fc8b8199e9fd0047c8bf92e96 Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Mon, 6 Nov 2023 11:03:43 -0800 Subject: [PATCH 1/7] Add option to expand document source Signed-off-by: Nicholas Ung --- .../result_component.test.tsx.snap | 6564 +++++++++++++---- .../__snapshots__/result_grid.test.tsx.snap | 3274 ++++++-- .../result_components/result_grid.scss | 2 +- .../result_components/result_grid.tsx | 68 +- 4 files changed, 7454 insertions(+), 2454 deletions(-) diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap index 13b3f52..1a6ec1c 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap @@ -1460,98 +1460,267 @@ exports[`Result component Renders result component 1`] = ` className="truncate-by-height" > -
-
- arr: -
-
- - ["el1","el2","el3"] - - -
-
- id: -
-
- - 3920564 - - -
-
- name: -
-
- - 006R90321 - - -
-
- title: -
-
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- short_description: -
-
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- date_released: -
-
- - 2009-12-10T00:00:00Z - - -
-
- supplier: -
-
- - Xerox - - -
-
- price: -
-
- - 4995 - - -
-
+
+ +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ +
+ id +
+
+ +
+ + 3920564 + + +
+
+ +
+ name +
+
+ +
+ + 006R90321 + + +
+
+ +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+ +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Xerox + + +
+
+ +
+ price +
+
+ +
+ + 4995 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- nestObj: -
-
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- id: -
-
- - 2101957 - - -
-
- name: -
-
- - dv7-1211ea - - -
-
- title: -
-
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- short_description: -
-
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- date_released: -
-
- - 2008-12-19T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 10995 - - -
-
- attr_t_product_colour: -
-
- - Silver - - -
-
+
+ +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ +
+ id +
+
+ +
+ + 2101957 + + +
+
+ +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+ +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+ +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 10995 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1128895 - - -
-
- name: -
-
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- title: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- short_description: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - StarTech.com - - -
-
- price: -
-
- - 595 - - -
-
- attr_t_product_colour: -
-
- - Grey - - -
-
+
+ +
+ id +
+
+ +
+ + 1128895 + + +
+
+ +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+ +
+ price +
+
+ +
+ + 595 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1449722 - - -
-
- name: -
-
- - ProCurve 420 Wireless Access Point - - -
-
- title: -
-
- - HP ProCurve 420 Wireless Access Point - - -
-
- short_description: -
-
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- date_released: -
-
- - 2008-03-07T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 9495 - - -
-
+
+ +
+ id +
+
+ +
+ + 1449722 + + +
+
+ +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+ +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+ +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 9495 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1625640 - - -
-
- name: -
-
- - 2GB SD Card - - -
-
- title: -
-
- - Integral 2GB SD Card memory card - - -
-
- short_description: -
-
- - 2GB SD Card - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- date_released: -
-
- - 2008-06-23T00:00:00Z - - -
-
- supplier: -
-
- - Integral - - -
-
- price: -
-
- - 1195 - - -
-
+
+ +
+ id +
+
+ +
+ + 1625640 + + +
+
+ +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+ +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Integral + + +
+
+ +
+ price +
+
+ +
+ + 1195 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 2067378 - - -
-
- name: -
-
- - LC51C - - -
-
- title: -
-
- - Brother LC51C Original Cyan - - -
-
- short_description: -
-
- - LC51C - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- date_released: -
-
- - 2009-04-08T00:00:00Z - - -
-
- supplier: -
-
- - Brother - - -
-
- price: -
-
- - 1795 - - -
-
+
+ +
+ id +
+
+ +
+ + 2067378 + + +
+
+ +
+ name +
+
+ +
+ + LC51C + + +
+
+ +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+ +
+ short_description +
+
+ +
+ + LC51C + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Brother + + +
+
+ +
+ price +
+
+ +
+ + 1795 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 636678 - - -
-
- name: -
-
- - Emergency Power Off (EPO) - - -
-
- title: -
-
- - APC Emergency Power Off (EPO) - - -
-
- short_description: -
-
- - Emergency Power Off (EPO) - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- date_released: -
-
- - 2006-11-15T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 69195 - - -
-
- attr_t_product_colour: -
-
- - Black - - -
-
+
+ +
+ id +
+
+ +
+ + 636678 + + +
+
+ +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+ +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 69195 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1570809 - - -
-
- name: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- title: -
-
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- short_description: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- date_released: -
-
- - 2008-04-11T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 53895 - - -
-
+
+ +
+ id +
+
+ +
+ + 1570809 + + +
+
+ +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+ +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 53895 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 148843 - - -
-
- name: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- title: -
-
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- short_description: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- date_released: -
-
- - 2005-07-15T00:00:00Z - - -
-
- supplier: -
-
- - HERMA - - -
-
- price: -
-
- - 3795 - - -
-
- attr_t_product_colour: -
-
- - White - - -
-
+
+ +
+ id +
+
+ +
+ + 148843 + + +
+
+ +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HERMA + + +
+
+ +
+ price +
+
+ +
+ + 3795 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 968447 - - -
-
- name: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- title: -
-
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- short_description: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - OKI - - -
-
- price: -
-
- - 20395 - - -
-
+
+ +
+ id +
+
+ +
+ + 968447 + + +
+
+ +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+ +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + OKI + + +
+
+ +
+ price +
+
+ +
+ + 20395 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+ @@ -4275,7 +5925,7 @@ exports[`Result component Renders result component 1`] = `
-
-
- arr: -
-
- - ["el1","el2","el3"] - - -
-
- id: -
-
- - 3920564 - - -
-
- name: -
-
- - 006R90321 - - -
-
- title: -
-
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- short_description: -
-
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- date_released: -
-
- - 2009-12-10T00:00:00Z - - -
-
- supplier: -
-
- - Xerox - - -
-
- price: -
-
- - 4995 - - -
-
+
+ +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ +
+ id +
+
+ +
+ + 3920564 + + +
+
+ +
+ name +
+
+ +
+ + 006R90321 + + +
+
+ +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+ +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Xerox + + +
+
+ +
+ price +
+
+ +
+ + 4995 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- nestObj: -
-
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- id: -
-
- - 2101957 - - -
-
- name: -
-
- - dv7-1211ea - - -
-
- title: -
-
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- short_description: -
-
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- date_released: -
-
- - 2008-12-19T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 10995 - - -
-
- attr_t_product_colour: -
-
- - Silver - - -
-
+
+ +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ +
+ id +
+
+ +
+ + 2101957 + + +
+
+ +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+ +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+ +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 10995 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1128895 - - -
-
- name: -
-
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- title: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- short_description: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - StarTech.com - - -
-
- price: -
-
- - 595 - - -
-
- attr_t_product_colour: -
-
- - Grey - - -
-
+
+ +
+ id +
+
+ +
+ + 1128895 + + +
+
+ +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+ +
+ price +
+
+ +
+ + 595 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1449722 - - -
-
- name: -
-
- - ProCurve 420 Wireless Access Point - - -
-
- title: -
-
- - HP ProCurve 420 Wireless Access Point - - -
-
- short_description: -
-
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- date_released: -
-
- - 2008-03-07T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 9495 - - -
-
+
+ +
+ id +
+
+ +
+ + 1449722 + + +
+
+ +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+ +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+ +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 9495 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+ +
+ + +
+ +
+ id +
+
+ +
+ + 1625640 + + +
+
+ +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+ +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Integral + + +
+
+ +
+ price +
+
+ +
+ + 1195 + + +
+
+
+
+
+
+ + -
+ } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" > - -
+
-
- id: -
-
- - 1625640 - - -
-
- name: -
-
- - 2GB SD Card - - -
-
- title: -
-
- - Integral 2GB SD Card memory card - - -
-
- short_description: -
-
- - 2GB SD Card - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- date_released: -
-
- - 2008-06-23T00:00:00Z - - -
-
- supplier: -
-
- - Integral - - -
-
- price: -
-
- - 1195 - - -
-
-
-
+ + + + + +
-
-
- id: -
-
- - 2067378 - - -
-
- name: -
-
- - LC51C - - -
-
- title: -
-
- - Brother LC51C Original Cyan - - -
-
- short_description: -
-
- - LC51C - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- date_released: -
-
- - 2009-04-08T00:00:00Z - - -
-
- supplier: -
-
- - Brother - - -
-
- price: -
-
- - 1795 - - -
-
+
+ +
+ id +
+
+ +
+ + 2067378 + + +
+
+ +
+ name +
+
+ +
+ + LC51C + + +
+
+ +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+ +
+ short_description +
+
+ +
+ + LC51C + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Brother + + +
+
+ +
+ price +
+
+ +
+ + 1795 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 636678 - - -
-
- name: -
-
- - Emergency Power Off (EPO) - - -
-
- title: -
-
- - APC Emergency Power Off (EPO) - - -
-
- short_description: -
-
- - Emergency Power Off (EPO) - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- date_released: -
-
- - 2006-11-15T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 69195 - - -
-
- attr_t_product_colour: -
-
- - Black - - -
-
+
+ +
+ id +
+
+ +
+ + 636678 + + +
+
+ +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+ +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 69195 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1570809 - - -
-
- name: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- title: -
-
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- short_description: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- date_released: -
-
- - 2008-04-11T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 53895 - - -
-
+
+ +
+ id +
+
+ +
+ + 1570809 + + +
+
+ +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+ +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 53895 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 148843 - - -
-
- name: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- title: -
-
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- short_description: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- date_released: -
-
- - 2005-07-15T00:00:00Z - - -
-
- supplier: -
-
- - HERMA - - -
-
- price: -
-
- - 3795 - - -
-
- attr_t_product_colour: -
-
- - White - - -
-
+
+ +
+ id +
+
+ +
+ + 148843 + + +
+
+ +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HERMA + + +
+
+ +
+ price +
+
+ +
+ + 3795 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 968447 - - -
-
- name: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- title: -
-
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- short_description: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - OKI - - -
-
- price: -
-
- - 20395 - - -
-
+
+ +
+ id +
+
+ +
+ + 968447 + + +
+
+ +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+ +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + OKI + + +
+
+ +
+ price +
+
+ +
+ + 20395 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+ diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap index b8e073d..9880e06 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap @@ -314,98 +314,267 @@ exports[`Result grid component Renders result grid component 1`] = ` className="truncate-by-height" > -
-
- arr: -
-
- - ["el1","el2","el3"] - - -
-
- id: -
-
- - 3920564 - - -
-
- name: -
-
- - 006R90321 - - -
-
- title: -
-
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- short_description: -
-
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- date_released: -
-
- - 2009-12-10T00:00:00Z - - -
-
- supplier: -
-
- - Xerox - - -
-
- price: -
-
- - 4995 - - -
-
+
+ +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ +
+ id +
+
+ +
+ + 3920564 + + +
+
+ +
+ name +
+
+ +
+ + 006R90321 + + +
+
+ +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+ +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Xerox + + +
+
+ +
+ price +
+
+ +
+ + 4995 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- nestObj: -
-
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- id: -
-
- - 2101957 - - -
-
- name: -
-
- - dv7-1211ea - - -
-
- title: -
-
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- short_description: -
-
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- date_released: -
-
- - 2008-12-19T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 10995 - - -
-
- attr_t_product_colour: -
-
- - Silver - - -
-
+
+ +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ +
+ id +
+
+ +
+ + 2101957 + + +
+
+ +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+ +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+ +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 10995 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1128895 - - -
-
- name: -
-
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- title: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- short_description: -
-
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - StarTech.com - - -
-
- price: -
-
- - 595 - - -
-
- attr_t_product_colour: -
-
- - Grey - - -
-
+
+ +
+ id +
+
+ +
+ + 1128895 + + +
+
+ +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+ +
+ price +
+
+ +
+ + 595 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1449722 - - -
-
- name: -
-
- - ProCurve 420 Wireless Access Point - - -
-
- title: -
-
- - HP ProCurve 420 Wireless Access Point - - -
-
- short_description: -
-
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- date_released: -
-
- - 2008-03-07T00:00:00Z - - -
-
- supplier: -
-
- - HP - - -
-
- price: -
-
- - 9495 - - -
-
+
+ +
+ id +
+
+ +
+ + 1449722 + + +
+
+ +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+ +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+ +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HP + + +
+
+ +
+ price +
+
+ +
+ + 9495 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1625640 - - -
-
- name: -
-
- - 2GB SD Card - - -
-
- title: -
-
- - Integral 2GB SD Card memory card - - -
-
- short_description: -
-
- - 2GB SD Card - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- date_released: -
-
- - 2008-06-23T00:00:00Z - - -
-
- supplier: -
-
- - Integral - - -
-
- price: -
-
- - 1195 - - -
-
+
+ +
+ id +
+
+ +
+ + 1625640 + + +
+
+ +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+ +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Integral + + +
+
+ +
+ price +
+
+ +
+ + 1195 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 2067378 - - -
-
- name: -
-
- - LC51C - - -
-
- title: -
-
- - Brother LC51C Original Cyan - - -
-
- short_description: -
-
- - LC51C - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- date_released: -
-
- - 2009-04-08T00:00:00Z - - -
-
- supplier: -
-
- - Brother - - -
-
- price: -
-
- - 1795 - - -
-
+
+ +
+ id +
+
+ +
+ + 2067378 + + +
+
+ +
+ name +
+
+ +
+ + LC51C + + +
+
+ +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+ +
+ short_description +
+
+ +
+ + LC51C + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + Brother + + +
+
+ +
+ price +
+
+ +
+ + 1795 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 636678 - - -
-
- name: -
-
- - Emergency Power Off (EPO) - - -
-
- title: -
-
- - APC Emergency Power Off (EPO) - - -
-
- short_description: -
-
- - Emergency Power Off (EPO) - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- date_released: -
-
- - 2006-11-15T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 69195 - - -
-
- attr_t_product_colour: -
-
- - Black - - -
-
+
+ +
+ id +
+
+ +
+ + 636678 + + +
+
+ +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+ +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 69195 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 1570809 - - -
-
- name: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- title: -
-
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- short_description: -
-
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- date_released: -
-
- - 2008-04-11T00:00:00Z - - -
-
- supplier: -
-
- - APC - - -
-
- price: -
-
- - 53895 - - -
-
+
+ +
+ id +
+
+ +
+ + 1570809 + + +
+
+ +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+ +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + APC + + +
+
+ +
+ price +
+
+ +
+ + 53895 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 148843 - - -
-
- name: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- title: -
-
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- short_description: -
-
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- date_released: -
-
- - 2005-07-15T00:00:00Z - - -
-
- supplier: -
-
- - HERMA - - -
-
- price: -
-
- - 3795 - - -
-
- attr_t_product_colour: -
-
- - White - - -
-
+
+ +
+ id +
+
+ +
+ + 148843 + + +
+
+ +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + HERMA + + +
+
+ +
+ price +
+
+ +
+ + 3795 + + +
+
+ +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+
-
-
- id: -
-
- - 968447 - - -
-
- name: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- title: -
-
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- short_description: -
-
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- img_500x500: -
-
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- date_released: -
-
- - 2007-08-09T00:00:00Z - - -
-
- supplier: -
-
- - OKI - - -
-
- price: -
-
- - 20395 - - -
-
+
+ +
+ id +
+
+ +
+ + 968447 + + +
+
+ +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+ +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+ +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+ +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+ +
+ supplier +
+
+ +
+ + OKI + + +
+
+ +
+ price +
+
+ +
+ + 20395 + + +
+
+
+
+ + + } + closePopover={[Function]} + display="inlineBlock" + hasArrow={true} + isOpen={false} + ownFocus={true} + panelPaddingSize="m" + > +
+
+ + + +
+
+
+ diff --git a/public/components/query_compare/search_result/result_components/result_grid.scss b/public/components/query_compare/search_result/result_components/result_grid.scss index dd6235c..1855152 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.scss +++ b/public/components/query_compare/search_result/result_components/result_grid.scss @@ -58,7 +58,7 @@ doc-table { } dt { - background-color: transparentize(shade($euiColorPrimary, 20%), 0.9); + background-color: tintOrShade($euiColorPrimary, 90%, 70%); color: $euiTextColor; padding: ($euiSizeXS / 2) $euiSizeXS; margin-right: $euiSizeXS; diff --git a/public/components/query_compare/search_result/result_components/result_grid.tsx b/public/components/query_compare/search_result/result_components/result_grid.tsx index 5aef24d..4318496 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.tsx +++ b/public/components/query_compare/search_result/result_components/result_grid.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import React from 'react'; +import React, { useState } from 'react'; import { EuiButtonIcon, EuiLink, @@ -14,6 +14,11 @@ import { EuiTitle, EuiIcon, EuiIconTip, + EuiDescriptionList, + EuiDescriptionListTitle, + EuiDescriptionListDescription, + EuiMark, + EuiPopover, } from '@elastic/eui'; import _, { uniqueId } from 'lodash'; @@ -22,6 +27,7 @@ import { DocumentRank } from '../../../../contexts/utils'; import { useSearchRelevanceContext } from '../../../../contexts'; import './result_grid.scss'; +// import { unique } from 'vega-lite/src'; interface ResultGridComponentProps { comparedDocumentsRank: DocumentRank; @@ -36,10 +42,50 @@ export const ResultGridComponent = ({ }: ResultGridComponentProps) => { const { selectedIndex1, selectedIndex2 } = useSearchRelevanceContext(); - const getExpColapTd = () => { + const GetExpColapTd = (docSource: IDocType) => { + const [isResultDetailOpen, setIsResultDetailOpen] = useState(false); + const closeResultDetail = () => setIsResultDetailOpen(false); return ( - + { + setIsResultDetailOpen(!isResultDetailOpen); + }} + /> + } + isOpen={isResultDetailOpen} + closePopover={closeResultDetail} + anchorPosition="leftUp" + > + {/* + {JSON.stringify(docSource)} + */} + + {_.toPairs(docSource).map((entry: string[]) => { + return ( + <> + {`${entry[0]}: `} + {_.isObject(entry[1]) ? JSON.stringify(entry[1]) : entry[1]}
+ + ); + })} +
+
); }; @@ -48,18 +94,22 @@ export const ResultGridComponent = ({ return (
-
+ {_.toPairs(doc).map((entry: string[]) => { return ( <> -
{`${entry[0]}:`}
-
+ {`${entry[0]}`} + {_.isObject(entry[1]) ? JSON.stringify(entry[1]) : entry[1]} -
+ ); })} -
+
); @@ -175,7 +225,7 @@ export const ResultGridComponent = ({ // // Add detail toggling column // // cols.unshift(getExpColapTd()); - // cols.push(getExpColapTd()); + cols.push(GetExpColapTd(document._source)); return cols; }; From b196f188f65bcb3e7e8d8bb0d190d7b664e7620c Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Wed, 8 Nov 2023 23:56:43 -0800 Subject: [PATCH 2/7] Remove redundant code Signed-off-by: Nicholas Ung --- .../search_result/result_components/result_grid.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/public/components/query_compare/search_result/result_components/result_grid.tsx b/public/components/query_compare/search_result/result_components/result_grid.tsx index 4318496..b2c235b 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.tsx +++ b/public/components/query_compare/search_result/result_components/result_grid.tsx @@ -6,8 +6,6 @@ import React, { useState } from 'react'; import { EuiButtonIcon, - EuiLink, - EuiPanel, EuiText, EuiFlexGroup, EuiFlexItem, @@ -27,7 +25,6 @@ import { DocumentRank } from '../../../../contexts/utils'; import { useSearchRelevanceContext } from '../../../../contexts'; import './result_grid.scss'; -// import { unique } from 'vega-lite/src'; interface ResultGridComponentProps { comparedDocumentsRank: DocumentRank; @@ -62,9 +59,6 @@ export const ResultGridComponent = ({ closePopover={closeResultDetail} anchorPosition="leftUp" > - {/* - {JSON.stringify(docSource)} - */} Date: Fri, 10 Nov 2023 23:37:49 -0800 Subject: [PATCH 3/7] Update test coverage Signed-off-by: Nicholas Ung --- .../result_component.test.tsx.snap | 6958 +++++++++-------- .../__snapshots__/result_grid.test.tsx.snap | 3328 ++++---- .../__test__/result_grid.test.tsx | 6 + .../result_components/result_grid.tsx | 27 +- .../result_components/result_panel.tsx | 10 +- 5 files changed, 5435 insertions(+), 4894 deletions(-) diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap index 1a6ec1c..80d7952 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap @@ -1454,7 +1454,7 @@ exports[`Result component Renders result component 1`] = `
- -
- arr -
-
- -
- - ["el1","el2","el3"] - - -
-
- -
- id -
-
- -
- - 3920564 - - -
-
- -
- name -
-
- -
- - 006R90321 - - -
-
- -
- title -
-
- -
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- -
- short_description -
-
- -
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- -
- date_released -
-
- -
- - 2009-12-10T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Xerox - - -
-
- -
- price -
-
- -
- - 4995 - - -
-
+ +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ + + +
+ id +
+
+ +
+ + 3920564 + + +
+
+
+ + +
+ name +
+
+ +
+ + 006R90321 + + +
+
+
+ + +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Xerox + + +
+
+
+ + +
+ price +
+
+ +
+ + 4995 + + +
+
+
@@ -1646,7 +1664,7 @@ exports[`Result component Renders result component 1`] = `
- -
- nestObj -
-
- -
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- -
- id -
-
- -
- - 2101957 - - -
-
- -
- name -
-
- -
- - dv7-1211ea - - -
-
- -
- title -
-
- -
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- -
- short_description -
-
- -
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-12-19T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HP - - -
-
- -
- price -
-
- -
- - 10995 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Silver - - -
-
+ +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ + + +
+ id +
+
+ +
+ + 2101957 + + +
+
+
+ + +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+
+ + +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ + +
+ price +
+
+ +
+ + 10995 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
@@ -2087,7 +2125,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1128895 - - -
-
- -
- name -
-
- -
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- title -
-
- -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- short_description -
-
- -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- -
- date_released -
-
- -
- - 2007-08-09T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - StarTech.com - - -
-
- -
- price -
-
- -
- - 595 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Grey - - -
-
+ +
+ id +
+
+ +
+ + 1128895 + + +
+
+ + + +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+
+ + +
+ price +
+
+ +
+ + 595 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
@@ -2509,7 +2565,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1449722 - - -
-
- -
- name -
-
- -
- - ProCurve 420 Wireless Access Point - - -
-
- -
- title -
-
- -
- - HP ProCurve 420 Wireless Access Point - - -
-
- -
- short_description -
-
- -
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-03-07T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HP - - -
-
- -
- price -
-
- -
- - 9495 - - -
-
+ +
+ id +
+
+ +
+ + 1449722 + + +
+
+ + + +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+
+ + +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ + +
+ price +
+
+ +
+ + 9495 + + +
+
+
@@ -2912,7 +2984,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1625640 - - -
-
- -
- name -
-
- -
- - 2GB SD Card - - -
-
- -
- title -
-
- -
- - Integral 2GB SD Card memory card - - -
-
- -
- short_description -
-
- -
- - 2GB SD Card - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-06-23T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Integral - - -
-
- -
- price -
-
- -
- - 1195 - - -
-
+ +
+ id +
+
+ +
+ + 1625640 + + +
+
+ + + +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+
+ + +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+
+ + +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Integral + + +
+
+
+ + +
+ price +
+
+ +
+ + 1195 + + +
+
+
@@ -3315,7 +3403,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 2067378 - - -
-
- -
- name -
-
- -
- - LC51C - - -
-
- -
- title -
-
- -
- - Brother LC51C Original Cyan - - -
-
- -
- short_description -
-
- -
- - LC51C - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- -
- date_released -
-
- -
- - 2009-04-08T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Brother - - -
-
- -
- price -
-
- -
- - 1795 - - -
-
+ +
+ id +
+
+ +
+ + 2067378 + + +
+
+ + + +
+ name +
+
+ +
+ + LC51C + + +
+
+
+ + +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+
+ + +
+ short_description +
+
+ +
+ + LC51C + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Brother + + +
+
+
+ + +
+ price +
+
+ +
+ + 1795 + + +
+
+
@@ -3718,7 +3822,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 636678 - - -
-
- -
- name -
-
- -
- - Emergency Power Off (EPO) - - -
-
- -
- title -
-
- -
- - APC Emergency Power Off (EPO) - - -
-
- -
- short_description -
-
- -
- - Emergency Power Off (EPO) - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- -
- date_released -
-
- -
- - 2006-11-15T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - APC - - -
-
- -
- price -
-
- -
- - 69195 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Black - - -
-
+ +
+ id +
+
+ +
+ + 636678 + + +
+
+ + + +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ + +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ + +
+ price +
+
+ +
+ + 69195 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
@@ -4140,7 +4262,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1570809 - - -
-
- -
- name -
-
- -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- -
- title -
-
- -
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- -
- short_description -
-
- -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-04-11T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - APC - - -
-
- -
- price -
-
- -
- - 53895 - - -
-
+ +
+ id +
+
+ +
+ + 1570809 + + +
+
+ + + +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ + +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ + +
+ price +
+
+ +
+ + 53895 + + +
+
+
@@ -4543,7 +4681,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 148843 - - -
-
- -
- name -
-
- -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- title -
-
- -
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- short_description -
-
- -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- -
- date_released -
-
- -
- - 2005-07-15T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HERMA - - -
-
- -
- price -
-
- -
- - 3795 - - -
-
- -
- attr_t_product_colour -
-
- -
- - White - - -
-
+ +
+ id +
+
+ +
+ + 148843 + + +
+
+ + + +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HERMA + + +
+
+
+ + +
+ price +
+
+ +
+ + 3795 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
@@ -4965,7 +5121,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 968447 - - -
-
- -
- name -
-
- -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- -
- title -
-
- -
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- -
- short_description -
-
- -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- -
- date_released -
-
- -
- - 2007-08-09T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - OKI - - -
-
- -
- price -
-
- -
- - 20395 - - -
-
+ +
+ id +
+
+ +
+ + 968447 + + +
+
+ + + +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ + +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + OKI + + +
+
+
+ + +
+ price +
+
+ +
+ + 20395 + + +
+
+
@@ -5368,7 +5540,7 @@ exports[`Result component Renders result component 1`] = `
- -
- arr -
-
- -
- - ["el1","el2","el3"] - - -
-
- -
- id -
-
- -
- - 3920564 - - -
-
- -
- name -
-
- -
- - 006R90321 - - -
-
- -
- title -
-
- -
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- -
- short_description -
-
- -
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- -
- date_released -
-
- -
- - 2009-12-10T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Xerox - - -
-
- -
- price -
-
- -
- - 4995 - - -
-
+ +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ + + +
+ id +
+
+ +
+ + 3920564 + + +
+
+
+ + +
+ name +
+
+ +
+ + 006R90321 + + +
+
+
+ + +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Xerox + + +
+
+
+ + +
+ price +
+
+ +
+ + 4995 + + +
+
+
@@ -6273,7 +6463,7 @@ exports[`Result component Renders result component 1`] = `
- -
- nestObj -
-
- -
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- -
- id -
-
- -
- - 2101957 - - -
-
- -
- name -
-
- -
- - dv7-1211ea - - -
-
- -
- title -
-
- -
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- -
- short_description -
-
- -
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-12-19T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HP - - -
-
- -
- price -
-
- -
- - 10995 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Silver - - -
-
+ +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ + + +
+ id +
+
+ +
+ + 2101957 + + +
+
+
+ + +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+
+ + +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ + +
+ price +
+
+ +
+ + 10995 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
@@ -6714,7 +6924,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1128895 - - -
-
- -
- name -
-
- -
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- title -
-
- -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- short_description -
-
- -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- -
- date_released -
-
- -
- - 2007-08-09T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - StarTech.com - - -
-
- -
- price -
-
- -
- - 595 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Grey - - -
-
+ +
+ id +
+
+ +
+ + 1128895 + + +
+
+ + + +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+
+ + +
+ price +
+
+ +
+ + 595 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
@@ -7136,7 +7364,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1449722 - - -
-
- -
- name -
-
- -
- - ProCurve 420 Wireless Access Point - - -
-
- -
- title -
-
- -
- - HP ProCurve 420 Wireless Access Point - - -
-
- -
- short_description -
-
- -
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-03-07T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HP - - -
-
- -
- price -
-
- -
- - 9495 - - -
-
+ +
+ id +
+
+ +
+ + 1449722 + + +
+
+ + + +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+
+ + +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ + +
+ price +
+
+ +
+ + 9495 + + +
+
+
@@ -7539,7 +7783,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1625640 - - -
-
- -
- name -
-
- -
- - 2GB SD Card - - -
-
- -
- title -
-
- -
- - Integral 2GB SD Card memory card - - -
-
- -
- short_description -
-
- -
- - 2GB SD Card - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-06-23T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Integral - - -
-
- -
- price -
-
- -
- - 1195 - - -
-
+ +
+ id +
+
+ +
+ + 1625640 + + +
+
+ + + +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+
+ + +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+
+ + +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Integral + + +
+
+
+ + +
+ price +
+
+ +
+ + 1195 + + +
+
+
@@ -7942,7 +8202,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 2067378 - - -
-
- -
- name -
-
- -
- - LC51C - - -
-
- -
- title -
-
- -
- - Brother LC51C Original Cyan - - -
-
- -
- short_description -
-
- -
- - LC51C - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- -
- date_released -
-
- -
- - 2009-04-08T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - Brother - - -
-
- -
- price -
-
- -
- - 1795 - - -
-
+ +
+ id +
+
+ +
+ + 2067378 + + +
+
+ + + +
+ name +
+
+ +
+ + LC51C + + +
+
+
+ + +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+
+ + +
+ short_description +
+
+ +
+ + LC51C + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + Brother + + +
+
+
+ + +
+ price +
+
+ +
+ + 1795 + + +
+
+
@@ -8345,7 +8621,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 636678 - - -
-
- -
- name -
-
- -
- - Emergency Power Off (EPO) - - -
-
- -
- title -
-
- -
- - APC Emergency Power Off (EPO) - - -
-
- -
- short_description -
-
- -
- - Emergency Power Off (EPO) - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- -
- date_released -
-
- -
- - 2006-11-15T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - APC - - -
-
- -
- price -
-
- -
- - 69195 - - -
-
- -
- attr_t_product_colour -
-
- -
- - Black - - -
-
+ +
+ id +
+
+ +
+ + 636678 + + +
+
+ + + +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ + +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ + +
+ price +
+
+ +
+ + 69195 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
@@ -8767,7 +9061,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 1570809 - - -
-
- -
- name -
-
- -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- -
- title -
-
- -
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- -
- short_description -
-
- -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- -
- date_released -
-
- -
- - 2008-04-11T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - APC - - -
-
- -
- price -
-
- -
- - 53895 - - -
-
+ +
+ id +
+
+ +
+ + 1570809 + + +
+
+ + + +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ + +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+
+ + +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ + +
+ price +
+
+ +
+ + 53895 + + +
+
+
@@ -9170,7 +9480,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 148843 - - -
-
- -
- name -
-
- -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- title -
-
- -
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- short_description -
-
- -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- -
- date_released -
-
- -
- - 2005-07-15T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - HERMA - - -
-
- -
- price -
-
- -
- - 3795 - - -
-
- -
- attr_t_product_colour -
-
- -
- - White - - -
-
+ +
+ id +
+
+ +
+ + 148843 + + +
+
+ + + +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + HERMA + + +
+
+
+ + +
+ price +
+
+ +
+ + 3795 + + +
+
+
+ + +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
@@ -9592,7 +9920,7 @@ exports[`Result component Renders result component 1`] = `
- -
- id -
-
- -
- - 968447 - - -
-
- -
- name -
-
- -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- -
- title -
-
- -
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- -
- short_description -
-
- -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- -
- img_500x500 -
-
- -
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- -
- date_released -
-
- -
- - 2007-08-09T00:00:00Z - - -
-
- -
- supplier -
-
- -
- - OKI - - -
-
- -
- price -
-
- -
- - 20395 - - -
-
+ +
+ id +
+
+ +
+ + 968447 + + +
+
+ + + +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ + +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+
+ + +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ + +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+
+ + +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ + +
+ supplier +
+
+ +
+ + OKI + + +
+
+
+ + +
+ price +
+
+ +
+ + 20395 + + +
+
+
@@ -9995,7 +10339,7 @@ exports[`Result component Renders result component 1`] = `
- -
- arr -
-
- -
- - ["el1","el2","el3"] - - -
-
- +
+ arr +
+
+ +
+ + ["el1","el2","el3"] + + +
+
+ + -
- id -
- - -
- - 3920564 - - -
-
- +
+ id +
+
+ +
+ + 3920564 + + +
+
+
+ -
- name -
- - -
- - 006R90321 - - -
-
- +
+ name +
+
+ +
+ + 006R90321 + + +
+
+
+ -
- title -
- - -
- - Xerox 006R90321 toner cartridge Original Black 6 pc(s) - - -
-
- +
+ title +
+
+ +
+ + Xerox 006R90321 toner cartridge Original Black 6 pc(s) + + +
+
+
+ -
- short_description -
- - -
- - Toner (6 Per Box) for CopyCentre C65 Digital Copier - - -
-
- +
+ short_description +
+
+ +
+ + Toner (6 Per Box) for CopyCentre C65 Digital Copier + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_3920564_medium_1472618727_1445_7091.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2009-12-10T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2009-12-10T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - Xerox - - -
-
- +
+ supplier +
+
+ +
+ + Xerox + + +
+
+
+ -
- price -
- - -
- - 4995 - - -
-
+ +
+ price +
+
+ +
+ + 4995 + + +
+
+
@@ -500,7 +519,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- nestObj -
-
- -
- - {"key1":[1,true,null],"key2":{"key21":"element"}} - - -
-
- +
+ nestObj +
+
+ +
+ + {"key1":[1,true,null],"key2":{"key21":"element"}} + + +
+
+ + -
- id -
- - -
- - 2101957 - - -
-
- +
+ id +
+
+ +
+ + 2101957 + + +
+
+
+ -
- name -
- - -
- - dv7-1211ea - - -
-
- +
+ name +
+
+ +
+ + dv7-1211ea + + +
+
+
+ -
- title -
- - -
- - HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium - - -
-
- +
+ title +
+
+ +
+ + HP Pavilion dv7-1211ea Notebook Silver 43.2 cm (17") 1440 x 900 pixels Intel® Core™2 Duo 4 GB DDR2-SDRAM 250 GB HDD NVIDIA® GeForce® 9200M GS Windows Vista Home Premium + + +
+
+
+ -
- short_description -
- - -
- - Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit - - -
-
- +
+ short_description +
+
+ +
+ + Intel Core 2 Duo Processor P7450 (3M Cache, 2.13 GHz, 1066 MHz FSB), 4GB DDR2, 250GB SATA HDD, 17" WXGA+ HD BrightView 1440 x 900, nVidia GeForce 9200M GS, DVD Super Multi DL, Gigabit Ethernet, WLAN 802.11 b/g, WebCam, Windows Vista Home Premium 32-bit + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/2101957_8011415648.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2008-12-19T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2008-12-19T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - HP - - -
-
- +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ -
- price -
- - -
- - 10995 - - -
-
- +
+ price +
+
+ +
+ + 10995 + + +
+
+
+ -
- attr_t_product_colour -
- - -
- - Silver - - -
-
+ +
+ attr_t_product_colour +
+
+ +
+ + Silver + + +
+
+
@@ -880,7 +919,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 1128895 - - -
-
- +
+ id +
+
+ +
+ + 1128895 + + +
+
+ + -
- name -
- - -
- - DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- +
+ name +
+
+ +
+ + DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ -
- title -
- - -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- +
+ title +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ -
- short_description -
- - -
- - StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F - - -
-
- +
+ short_description +
+
+ +
+ + StarTech.com DB9 RS232 Serial Null Modem Adapter - M/F + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/1128895_4034494654.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2007-08-09T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - StarTech.com - - -
-
- +
+ supplier +
+
+ +
+ + StarTech.com + + +
+
+
+ -
- price -
- - -
- - 595 - - -
-
- +
+ price +
+
+ +
+ + 595 + + +
+
+
+ -
- attr_t_product_colour -
- - -
- - Grey - - -
-
+ +
+ attr_t_product_colour +
+
+ +
+ + Grey + + +
+
+
@@ -1241,7 +1298,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 1449722 - - -
-
- +
+ id +
+
+ +
+ + 1449722 + + +
+
+ + -
- name -
- - -
- - ProCurve 420 Wireless Access Point - - -
-
- +
+ name +
+
+ +
+ + ProCurve 420 Wireless Access Point + + +
+
+
+ -
- title -
- - -
- - HP ProCurve 420 Wireless Access Point - - -
-
- +
+ title +
+
+ +
+ + HP ProCurve 420 Wireless Access Point + + +
+
+
+ -
- short_description -
- - -
- - Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY - - -
-
- +
+ short_description +
+
+ +
+ + Refurbished A FULL-FEATURED IEEE 802.11G SINGLE-RADIO ACCESS POINT IDEALLY + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1449722_medium_1480997766_6498_5955.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2008-03-07T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2008-03-07T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - HP - - -
-
- +
+ supplier +
+
+ +
+ + HP + + +
+
+
+ -
- price -
- - -
- - 9495 - - -
-
+ +
+ price +
+
+ +
+ + 9495 + + +
+
+
@@ -1583,7 +1656,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 1625640 - - -
-
- +
+ id +
+
+ +
+ + 1625640 + + +
+
+ + -
- name -
- - -
- - 2GB SD Card - - -
-
- +
+ name +
+
+ +
+ + 2GB SD Card + + +
+
+
+ -
- title -
- - -
- - Integral 2GB SD Card memory card - - -
-
- +
+ title +
+
+ +
+ + Integral 2GB SD Card memory card + + +
+
+
+ -
- short_description -
- - -
- - 2GB SD Card - - -
-
- +
+ short_description +
+
+ +
+ + 2GB SD Card + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1625640_medium_1480990774_7102_6217.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2008-06-23T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2008-06-23T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - Integral - - -
-
- +
+ supplier +
+
+ +
+ + Integral + + +
+
+
+ -
- price -
- - -
- - 1195 - - -
-
+ +
+ price +
+
+ +
+ + 1195 + + +
+
+
@@ -1986,7 +2075,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 2067378 - - -
-
- +
+ id +
+
+ +
+ + 2067378 + + +
+
+ + -
- name -
- - -
- - LC51C - - -
-
- +
+ name +
+
+ +
+ + LC51C + + +
+
+
+ -
- title -
- - -
- - Brother LC51C Original Cyan - - -
-
- +
+ title +
+
+ +
+ + Brother LC51C Original Cyan + + +
+
+
+ -
- short_description -
- - -
- - LC51C - - -
-
- +
+ short_description +
+
+ +
+ + LC51C + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_2067378_medium_1481020819_0464_12184.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2009-04-08T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2009-04-08T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - Brother - - -
-
- +
+ supplier +
+
+ +
+ + Brother + + +
+
+
+ -
- price -
- - -
- - 1795 - - -
-
+ +
+ price +
+
+ +
+ + 1795 + + +
+
+
@@ -2389,7 +2494,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 636678 - - -
-
- +
+ id +
+
+ +
+ + 636678 + + +
+
+ + -
- name -
- - -
- - Emergency Power Off (EPO) - - -
-
- +
+ name +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ -
- title -
- - -
- - APC Emergency Power Off (EPO) - - -
-
- +
+ title +
+
+ +
+ + APC Emergency Power Off (EPO) + + +
+
+
+ -
- short_description -
- - -
- - Emergency Power Off (EPO) - - -
-
- +
+ short_description +
+
+ +
+ + Emergency Power Off (EPO) + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_636678_medium_1480944064_4778_26509.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2006-11-15T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2006-11-15T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - APC - - -
-
- +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ -
- price -
- - -
- - 69195 - - -
-
- +
+ price +
+
+ +
+ + 69195 + + +
+
+
+ -
- attr_t_product_colour -
- - -
- - Black - - -
-
+ +
+ attr_t_product_colour +
+
+ +
+ + Black + + +
+
+
@@ -2811,7 +2934,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 1570809 - - -
-
- +
+ id +
+
+ +
+ + 1570809 + + +
+
+ + -
- name -
- - -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- +
+ name +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ -
- title -
- - -
- - APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) - - -
-
- +
+ title +
+
+ +
+ + APC IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm power distribution unit (PDU) + + +
+
+
+ -
- short_description -
- - -
- - IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm - - -
-
- +
+ short_description +
+
+ +
+ + IT Power Distribution Module 3 Pole 5 Wire 32A IEC309 620cm + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_1570809_medium_1480983343_7059_6217.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2008-04-11T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2008-04-11T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - APC - - -
-
- +
+ supplier +
+
+ +
+ + APC + + +
+
+
+ -
- price -
- - -
- - 53895 - - -
-
+ +
+ price +
+
+ +
+ + 53895 + + +
+
+
@@ -3214,7 +3353,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 148843 - - -
-
- +
+ id +
+
+ +
+ + 148843 + + +
+
+ + -
- name -
- - -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- +
+ name +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ -
- title -
- - -
- - HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- +
+ title +
+
+ +
+ + HERMA Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ -
- short_description -
- - -
- - Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. - - -
-
- +
+ short_description +
+
+ +
+ + Labels Premium A4 64.6x33.8 mm white paper matt 2400 pcs. + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/148843_2449.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2005-07-15T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2005-07-15T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - HERMA - - -
-
- +
+ supplier +
+
+ +
+ + HERMA + + +
+
+
+ -
- price -
- - -
- - 3795 - - -
-
- +
+ price +
+
+ +
+ + 3795 + + +
+
+
+ -
- attr_t_product_colour -
- - -
- - White - - -
-
+ +
+ attr_t_product_colour +
+
+ +
+ + White + + +
+
+
@@ -3636,7 +3793,7 @@ exports[`Result grid component Renders result grid component 1`] = `
- -
- id -
-
- -
- - 968447 - - -
-
- +
+ id +
+
+ +
+ + 968447 + + +
+
+ + -
- name -
- - -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- +
+ name +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ -
- title -
- - -
- - OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original - - -
-
- +
+ title +
+
+ +
+ + OKI Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' Original + + +
+
+
+ -
- short_description -
- - -
- - Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' - - -
-
- +
+ short_description +
+
+ +
+ + Cyan Toner Cartridge for C7100/C7300/C7500 Series 'Type C4' + + +
+
+
+ -
- img_500x500 -
- - -
- - http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg - - -
-
- +
+ img_500x500 +
+
+ +
+ + http://images.icecat.biz/img/gallery_mediums/img_968447_medium_1480985748_8727_5647.jpg + + +
+
+
+ -
- date_released -
- - -
- - 2007-08-09T00:00:00Z - - -
-
- +
+ date_released +
+
+ +
+ + 2007-08-09T00:00:00Z + + +
+
+
+ -
- supplier -
- - -
- - OKI - - -
-
- +
+ supplier +
+
+ +
+ + OKI + + +
+
+
+ -
- price -
- - -
- - 20395 - - -
-
+ +
+ price +
+
+ +
+ + 20395 + + +
+
+
@@ -4039,7 +4212,7 @@ exports[`Result grid component Renders result grid component 1`] = ` <_EuiSplitPanelInner className="search-relevance-result-panel" diff --git a/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx b/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx index 86008af..2c21b7b 100644 --- a/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx +++ b/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx @@ -19,12 +19,14 @@ import { ResultPanel } from '../result_panel'; describe('Result grid component', () => { configure({ adapter: new Adapter() }); it('Renders result grid component', async () => { + const setQueryError = jest.fn(); const wrapper = mount( ); @@ -33,19 +35,23 @@ describe('Result grid component', () => { await waitFor(() => { expect(wrapper).toMatchSnapshot(); + wrapper.find('EuiButtonIcon').first().prop('onClick')?.({ target: {} }); }); + expect(setQueryError).toHaveBeenCalledTimes(1); }); }); describe('Result panel query error', () => { configure({ adapter: new Adapter() }); it('Displays error message on query error', async () => { + const setQueryError = jest.fn(); const wrapper = mount( ); diff --git a/public/components/query_compare/search_result/result_components/result_grid.tsx b/public/components/query_compare/search_result/result_components/result_grid.tsx index b2c235b..9f6a894 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.tsx +++ b/public/components/query_compare/search_result/result_components/result_grid.tsx @@ -20,7 +20,7 @@ import { } from '@elastic/eui'; import _, { uniqueId } from 'lodash'; -import { IDocType, SearchResults, Document } from '../../../../types/index'; +import { IDocType, SearchResults, Document, QueryError } from '../../../../types/index'; import { DocumentRank } from '../../../../contexts/utils'; import { useSearchRelevanceContext } from '../../../../contexts'; @@ -30,18 +30,29 @@ interface ResultGridComponentProps { comparedDocumentsRank: DocumentRank; queryResult: SearchResults; resultNumber: number; + setQueryError: React.Dispatch>; } export const ResultGridComponent = ({ comparedDocumentsRank, queryResult, resultNumber, + setQueryError, }: ResultGridComponentProps) => { const { selectedIndex1, selectedIndex2 } = useSearchRelevanceContext(); const GetExpColapTd = (docSource: IDocType) => { const [isResultDetailOpen, setIsResultDetailOpen] = useState(false); const closeResultDetail = () => setIsResultDetailOpen(false); + + // Click on expand/collapse button + const toggleDetails = () => { + setIsResultDetailOpen(!isResultDetailOpen); + setQueryError((error: QueryError) => ({ + ...error, + })); + }; + return ( { - setIsResultDetailOpen(!isResultDetailOpen); - }} + onClick={toggleDetails} /> } isOpen={isResultDetailOpen} @@ -72,10 +81,10 @@ export const ResultGridComponent = ({ > {_.toPairs(docSource).map((entry: string[]) => { return ( - <> + {`${entry[0]}: `} {_.isObject(entry[1]) ? JSON.stringify(entry[1]) : entry[1]}
- +
); })} @@ -95,12 +104,12 @@ export const ResultGridComponent = ({ > {_.toPairs(doc).map((entry: string[]) => { return ( - <> - {`${entry[0]}`} + + {`${entry[0]}`} {_.isObject(entry[1]) ? JSON.stringify(entry[1]) : entry[1]} - + ); })} diff --git a/public/components/query_compare/search_result/result_components/result_panel.tsx b/public/components/query_compare/search_result/result_components/result_panel.tsx index f942f41..d0a76c0 100644 --- a/public/components/query_compare/search_result/result_components/result_panel.tsx +++ b/public/components/query_compare/search_result/result_components/result_panel.tsx @@ -19,14 +19,21 @@ import { QueryError, SearchResults } from '../../../../types/index'; import { useSearchRelevanceContext } from '../../../../contexts'; import './result_components.scss'; +// import { set } from 'lodash'; interface ResultPanelProps { resultNumber: number; queryResult: SearchResults; queryError: QueryError; + setQueryError: React.Dispatch>; } -export const ResultPanel = ({ resultNumber, queryResult, queryError }: ResultPanelProps) => { +export const ResultPanel = ({ + resultNumber, + queryResult, + queryError, + setQueryError, +}: ResultPanelProps) => { const { comparedResult1, comparedResult2 } = useSearchRelevanceContext(); const ErrorMessage = () => ( @@ -67,6 +74,7 @@ export const ResultPanel = ({ resultNumber, queryResult, queryError }: ResultPan queryResult={queryResult} comparedDocumentsRank={getComparedDocumentsRank()} resultNumber={resultNumber} + setQueryError={setQueryError} /> ) : ( <> From b3311717871adc6d533434591107670db75f79a8 Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Mon, 27 Nov 2023 14:39:20 -0800 Subject: [PATCH 4/7] Remove unused queryerror Signed-off-by: Nicholas Ung --- .babelrc | 2 +- .../result_component.test.tsx.snap | 1092 +++++++++++------ .../result_components/result_grid.scss | 4 + .../result_components/result_grid.tsx | 24 +- .../result_components/result_panel.tsx | 2 - 5 files changed, 736 insertions(+), 388 deletions(-) diff --git a/.babelrc b/.babelrc index e26ee76..3691b33 100644 --- a/.babelrc +++ b/.babelrc @@ -13,6 +13,6 @@ "@babel/plugin-transform-modules-commonjs", ["@babel/plugin-transform-runtime", { "regenerator": true }], "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread" + "@babel/plugin-transform-object-rest-spread" ] } diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap index 80d7952..2f20475 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap @@ -1464,16 +1464,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
arr
@@ -1492,9 +1495,11 @@ exports[`Result component Renders result component 1`] = ` - +
id
@@ -1513,9 +1518,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -1534,9 +1541,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -1555,9 +1564,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -1576,9 +1587,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -1597,9 +1610,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -1618,9 +1633,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -1639,9 +1656,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -1904,16 +1923,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
nestObj
@@ -1932,9 +1954,11 @@ exports[`Result component Renders result component 1`] = ` - +
id
@@ -1953,9 +1977,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -1974,9 +2000,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -1995,9 +2023,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -2016,9 +2046,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -2037,9 +2069,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -2058,9 +2092,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -2079,9 +2115,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -2100,9 +2138,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -2365,16 +2405,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -2393,9 +2436,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -2414,9 +2459,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -2435,9 +2482,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -2456,9 +2505,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -2477,9 +2528,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -2498,9 +2551,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -2519,9 +2574,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -2540,9 +2597,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -2805,16 +2864,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -2833,9 +2895,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -2854,9 +2918,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -2875,9 +2941,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -2896,9 +2964,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -2917,9 +2987,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -2938,9 +3010,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -2959,9 +3033,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -3224,16 +3300,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -3252,9 +3331,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -3273,9 +3354,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -3294,9 +3377,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -3315,9 +3400,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -3336,9 +3423,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -3357,9 +3446,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -3378,9 +3469,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -3643,16 +3736,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -3671,9 +3767,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -3692,9 +3790,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -3713,9 +3813,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -3734,9 +3836,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -3755,9 +3859,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -3776,9 +3882,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -3797,9 +3905,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -4062,16 +4172,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -4090,9 +4203,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -4111,9 +4226,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -4132,9 +4249,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -4153,9 +4272,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -4174,9 +4295,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -4195,9 +4318,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -4216,9 +4341,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -4237,9 +4364,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -4502,16 +4631,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -4530,9 +4662,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -4551,9 +4685,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -4572,9 +4708,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -4593,9 +4731,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -4614,9 +4754,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -4635,9 +4777,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -4656,9 +4800,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -4921,16 +5067,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -4949,9 +5098,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -4970,9 +5121,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -4991,9 +5144,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -5012,9 +5167,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -5033,9 +5190,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -5054,9 +5213,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -5075,9 +5236,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -5096,9 +5259,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -5361,16 +5526,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -5389,9 +5557,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -5410,9 +5580,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -5431,9 +5603,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -5452,9 +5626,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -5473,9 +5649,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -5494,9 +5672,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -5515,9 +5695,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -6263,16 +6445,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
arr
@@ -6291,9 +6476,11 @@ exports[`Result component Renders result component 1`] = ` - +
id
@@ -6312,9 +6499,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -6333,9 +6522,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -6354,9 +6545,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -6375,9 +6568,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -6396,9 +6591,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -6417,9 +6614,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -6438,9 +6637,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -6703,16 +6904,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
nestObj
@@ -6731,9 +6935,11 @@ exports[`Result component Renders result component 1`] = ` - +
id
@@ -6752,9 +6958,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -6773,9 +6981,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -6794,9 +7004,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -6815,9 +7027,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -6836,9 +7050,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -6857,9 +7073,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -6878,9 +7096,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -6899,9 +7119,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -7164,16 +7386,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -7192,9 +7417,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -7213,9 +7440,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -7234,9 +7463,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -7255,9 +7486,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -7276,9 +7509,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -7297,9 +7532,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -7318,9 +7555,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -7339,9 +7578,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -7604,16 +7845,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -7632,9 +7876,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -7653,9 +7899,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -7674,9 +7922,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -7695,9 +7945,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -7716,9 +7968,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -7737,9 +7991,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -7758,9 +8014,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -8023,16 +8281,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -8051,9 +8312,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -8072,9 +8335,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -8093,9 +8358,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -8114,9 +8381,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -8135,9 +8404,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -8156,9 +8427,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -8177,9 +8450,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -8442,16 +8717,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -8470,9 +8748,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -8491,9 +8771,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -8512,9 +8794,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -8533,9 +8817,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -8554,9 +8840,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -8575,9 +8863,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -8596,9 +8886,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -8861,16 +9153,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -8889,9 +9184,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -8910,9 +9207,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -8931,9 +9230,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -8952,9 +9253,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -8973,9 +9276,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -8994,9 +9299,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -9015,9 +9322,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -9036,9 +9345,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -9301,16 +9612,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -9329,9 +9643,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -9350,9 +9666,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -9371,9 +9689,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -9392,9 +9712,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -9413,9 +9735,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -9434,9 +9758,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -9455,9 +9781,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -9720,16 +10048,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -9748,9 +10079,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -9769,9 +10102,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -9790,9 +10125,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -9811,9 +10148,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -9832,9 +10171,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -9853,9 +10194,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -9874,9 +10217,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
@@ -9895,9 +10240,11 @@ exports[`Result component Renders result component 1`] = ` - +
attr_t_product_colour
@@ -10160,16 +10507,19 @@ exports[`Result component Renders result component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -10188,9 +10538,11 @@ exports[`Result component Renders result component 1`] = ` - +
name
@@ -10209,9 +10561,11 @@ exports[`Result component Renders result component 1`] = ` - +
title
@@ -10230,9 +10584,11 @@ exports[`Result component Renders result component 1`] = ` - +
short_description
@@ -10251,9 +10607,11 @@ exports[`Result component Renders result component 1`] = ` - +
img_500x500
@@ -10272,9 +10630,11 @@ exports[`Result component Renders result component 1`] = ` - +
date_released
@@ -10293,9 +10653,11 @@ exports[`Result component Renders result component 1`] = ` - +
supplier
@@ -10314,9 +10676,11 @@ exports[`Result component Renders result component 1`] = ` - +
price
diff --git a/public/components/query_compare/search_result/result_components/result_grid.scss b/public/components/query_compare/search_result/result_components/result_grid.scss index 1855152..018ebc9 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.scss +++ b/public/components/query_compare/search_result/result_components/result_grid.scss @@ -177,6 +177,10 @@ table { right: 0; } +.euiDescriptionList.euiDescriptionList--inline .euiDescriptionList__title.osdDescriptionListFieldTitle { + background-color: tintOrShade($euiColorPrimary, 90%, 70%); +} + /** * 1. Align icon with text in cell. * 2. Use opacity to make this element accessible to screen readers and keyboard. diff --git a/public/components/query_compare/search_result/result_components/result_grid.tsx b/public/components/query_compare/search_result/result_components/result_grid.tsx index 9f6a894..3424311 100644 --- a/public/components/query_compare/search_result/result_components/result_grid.tsx +++ b/public/components/query_compare/search_result/result_components/result_grid.tsx @@ -20,7 +20,7 @@ import { } from '@elastic/eui'; import _, { uniqueId } from 'lodash'; -import { IDocType, SearchResults, Document, QueryError } from '../../../../types/index'; +import { IDocType, SearchResults, Document } from '../../../../types/index'; import { DocumentRank } from '../../../../contexts/utils'; import { useSearchRelevanceContext } from '../../../../contexts'; @@ -30,14 +30,12 @@ interface ResultGridComponentProps { comparedDocumentsRank: DocumentRank; queryResult: SearchResults; resultNumber: number; - setQueryError: React.Dispatch>; } export const ResultGridComponent = ({ comparedDocumentsRank, queryResult, resultNumber, - setQueryError, }: ResultGridComponentProps) => { const { selectedIndex1, selectedIndex2 } = useSearchRelevanceContext(); @@ -48,9 +46,6 @@ export const ResultGridComponent = ({ // Click on expand/collapse button const toggleDetails = () => { setIsResultDetailOpen(!isResultDetailOpen); - setQueryError((error: QueryError) => ({ - ...error, - })); }; return ( @@ -99,13 +94,14 @@ export const ResultGridComponent = ({ {_.toPairs(doc).map((entry: string[]) => { return ( - {`${entry[0]}`} + {`${entry[0]}`} {_.isObject(entry[1]) ? JSON.stringify(entry[1]) : entry[1]} @@ -246,20 +242,6 @@ export const ResultGridComponent = ({ ); }; - // useEffect(() => { - // console.log('query result changed'); - // if (!_.isEmpty(queryResult)) - // setResultGrid( - // queryResult.hits.hits.map((doc: any, id: number) => { - // return ( - // <> - // {getTds(doc._source)} - // - // ); - // }) - // ); - // }, [queryResult]); - return (
diff --git a/public/components/query_compare/search_result/result_components/result_panel.tsx b/public/components/query_compare/search_result/result_components/result_panel.tsx index d0a76c0..161834b 100644 --- a/public/components/query_compare/search_result/result_components/result_panel.tsx +++ b/public/components/query_compare/search_result/result_components/result_panel.tsx @@ -19,7 +19,6 @@ import { QueryError, SearchResults } from '../../../../types/index'; import { useSearchRelevanceContext } from '../../../../contexts'; import './result_components.scss'; -// import { set } from 'lodash'; interface ResultPanelProps { resultNumber: number; @@ -74,7 +73,6 @@ export const ResultPanel = ({ queryResult={queryResult} comparedDocumentsRank={getComparedDocumentsRank()} resultNumber={resultNumber} - setQueryError={setQueryError} /> ) : ( <> From 3a1391009e8c4a10c45a17848745c308f2f9639d Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Mon, 27 Nov 2023 14:39:42 -0800 Subject: [PATCH 5/7] Update styling of results Signed-off-by: Nicholas Ung --- .../__snapshots__/result_grid.test.tsx.snap | 547 ++++++++++++------ .../__test__/result_grid.test.tsx | 3 - 2 files changed, 364 insertions(+), 186 deletions(-) diff --git a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap index 714f657..5768c4c 100644 --- a/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap +++ b/public/components/query_compare/search_result/result_components/__test__/__snapshots__/result_grid.test.tsx.snap @@ -202,7 +202,6 @@ exports[`Result grid component Renders result grid component 1`] = ` } } resultNumber={1} - setQueryError={[MockFunction]} >
- +
arr
@@ -347,9 +349,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
id
@@ -368,9 +372,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -389,9 +395,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -410,9 +418,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -431,9 +441,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -452,9 +464,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -473,9 +487,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -494,9 +510,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -698,16 +716,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
nestObj
@@ -726,9 +747,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
id
@@ -747,9 +770,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -768,9 +793,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -789,9 +816,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -810,9 +839,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -831,9 +862,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -852,9 +885,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -873,9 +908,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -894,9 +931,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
attr_t_product_colour
@@ -1098,16 +1137,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -1126,9 +1168,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -1147,9 +1191,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -1168,9 +1214,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -1189,9 +1237,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -1210,9 +1260,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -1231,9 +1283,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -1252,9 +1306,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -1273,9 +1329,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
attr_t_product_colour
@@ -1477,16 +1535,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -1505,9 +1566,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -1526,9 +1589,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -1547,9 +1612,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -1568,9 +1635,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -1589,9 +1658,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -1610,9 +1681,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -1631,9 +1704,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -1896,16 +1971,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -1924,9 +2002,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -1945,9 +2025,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -1966,9 +2048,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -1987,9 +2071,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -2008,9 +2094,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -2029,9 +2117,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -2050,9 +2140,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -2315,16 +2407,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -2343,9 +2438,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -2364,9 +2461,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -2385,9 +2484,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -2406,9 +2507,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -2427,9 +2530,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -2448,9 +2553,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -2469,9 +2576,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -2734,16 +2843,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -2762,9 +2874,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -2783,9 +2897,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -2804,9 +2920,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -2825,9 +2943,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -2846,9 +2966,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -2867,9 +2989,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -2888,9 +3012,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -2909,9 +3035,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
attr_t_product_colour
@@ -3174,16 +3302,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -3202,9 +3333,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -3223,9 +3356,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -3244,9 +3379,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -3265,9 +3402,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -3286,9 +3425,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -3307,9 +3448,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -3328,9 +3471,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -3593,16 +3738,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -3621,9 +3769,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -3642,9 +3792,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -3663,9 +3815,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -3684,9 +3838,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -3705,9 +3861,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -3726,9 +3884,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -3747,9 +3907,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
@@ -3768,9 +3930,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
attr_t_product_colour
@@ -4033,16 +4197,19 @@ exports[`Result grid component Renders result grid component 1`] = ` className="source truncate-by-height" compressed={true} textStyle="normal" + type="inline" >
- +
id
@@ -4061,9 +4228,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
name
@@ -4082,9 +4251,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
title
@@ -4103,9 +4274,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
short_description
@@ -4124,9 +4297,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
img_500x500
@@ -4145,9 +4320,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
date_released
@@ -4166,9 +4343,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
supplier
@@ -4187,9 +4366,11 @@ exports[`Result grid component Renders result grid component 1`] = ` - +
price
diff --git a/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx b/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx index 2c21b7b..74fdb33 100644 --- a/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx +++ b/public/components/query_compare/search_result/result_components/__test__/result_grid.test.tsx @@ -19,14 +19,12 @@ import { ResultPanel } from '../result_panel'; describe('Result grid component', () => { configure({ adapter: new Adapter() }); it('Renders result grid component', async () => { - const setQueryError = jest.fn(); const wrapper = mount( ); @@ -37,7 +35,6 @@ describe('Result grid component', () => { expect(wrapper).toMatchSnapshot(); wrapper.find('EuiButtonIcon').first().prop('onClick')?.({ target: {} }); }); - expect(setQueryError).toHaveBeenCalledTimes(1); }); }); From 0c24c35f4eeea36c61bf56a4ae4c3691bcbe0359 Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Tue, 28 Nov 2023 16:40:35 -0800 Subject: [PATCH 6/7] Update dependencies Signed-off-by: Nicholas Ung --- package.json | 1 + yarn.lock | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 142 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 108373e..e8e845e 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "dependencies": {}, "devDependencies": { + "@babel/plugin-proposal-class-properties": "^7.18.6", "@types/enzyme-adapter-react-16": "^1.0.6", "eslint": "^6.8.0" }, diff --git a/yarn.lock b/yarn.lock index 3a67dbf..111c35f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,6 +10,101 @@ "@babel/highlight" "^7.22.13" chalk "^2.4.2" +"@babel/code-frame@^7.22.13": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.4.tgz#03ae5af150be94392cb5c7ccd97db5a19a5da6aa" + integrity sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA== + dependencies: + "@babel/highlight" "^7.23.4" + chalk "^2.4.2" + +"@babel/helper-annotate-as-pure@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" + integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-create-class-features-plugin@^7.18.6": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz#97a61b385e57fe458496fad19f8e63b63c867de4" + integrity sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.22.5" + "@babel/helper-environment-visitor" "^7.22.5" + "@babel/helper-function-name" "^7.22.5" + "@babel/helper-member-expression-to-functions" "^7.22.15" + "@babel/helper-optimise-call-expression" "^7.22.5" + "@babel/helper-replace-supers" "^7.22.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" + "@babel/helper-split-export-declaration" "^7.22.6" + semver "^6.3.1" + +"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.22.5": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" + integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== + +"@babel/helper-function-name@^7.22.5": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" + integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== + dependencies: + "@babel/template" "^7.22.15" + "@babel/types" "^7.23.0" + +"@babel/helper-member-expression-to-functions@^7.22.15": + version "7.23.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" + integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== + dependencies: + "@babel/types" "^7.23.0" + +"@babel/helper-optimise-call-expression@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e" + integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-plugin-utils@^7.18.6": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" + integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== + +"@babel/helper-replace-supers@^7.22.9": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793" + integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-member-expression-to-functions" "^7.22.15" + "@babel/helper-optimise-call-expression" "^7.22.5" + +"@babel/helper-skip-transparent-expression-wrappers@^7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847" + integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-split-export-declaration@^7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-string-parser@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" + integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== + +"@babel/helper-validator-identifier@^7.22.20": + version "7.22.20" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" + integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== + "@babel/helper-validator-identifier@^7.22.5": version "7.22.15" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz#601fa28e4cc06786c18912dca138cec73b882044" @@ -24,6 +119,46 @@ chalk "^2.4.2" js-tokens "^4.0.0" +"@babel/highlight@^7.23.4": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" + integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== + dependencies: + "@babel/helper-validator-identifier" "^7.22.20" + chalk "^2.4.2" + js-tokens "^4.0.0" + +"@babel/parser@^7.22.15": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.4.tgz#409fbe690c333bb70187e2de4021e1e47a026661" + integrity sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ== + +"@babel/plugin-proposal-class-properties@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/template@^7.22.15": + version "7.22.15" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" + integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== + dependencies: + "@babel/code-frame" "^7.22.13" + "@babel/parser" "^7.22.15" + "@babel/types" "^7.22.15" + +"@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0": + version "7.23.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.4.tgz#7206a1810fc512a7f7f7d4dace4cb4c1c9dbfb8e" + integrity sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ== + dependencies: + "@babel/helper-string-parser" "^7.23.4" + "@babel/helper-validator-identifier" "^7.22.20" + to-fast-properties "^2.0.0" + "@types/cheerio@*": version "0.22.32" resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.32.tgz#1a41608fd072544c3ed6c0d6cc3fcf08d07715de" @@ -757,7 +892,7 @@ semver@^5.5.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== -semver@^6.1.2: +semver@^6.1.2, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -871,6 +1006,11 @@ tmp@^0.0.33: dependencies: os-tmpdir "~1.0.2" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + tough-cookie@^4.1.3: version "4.1.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.3.tgz#97b9adb0728b42280aa3d814b6b999b2ff0318bf" From 3e8134d4e8c100566d50a17db069e20cafac47d8 Mon Sep 17 00:00:00 2001 From: Nicholas Ung Date: Wed, 29 Nov 2023 14:41:52 -0800 Subject: [PATCH 7/7] Revert "Update dependencies" This reverts commit 8ec3868a3974cd0a637e463f50292b321d593b19. Signed-off-by: Nicholas Ung --- package.json | 1 - yarn.lock | 142 +-------------------------------------------------- 2 files changed, 1 insertion(+), 142 deletions(-) diff --git a/package.json b/package.json index e8e845e..108373e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,6 @@ }, "dependencies": {}, "devDependencies": { - "@babel/plugin-proposal-class-properties": "^7.18.6", "@types/enzyme-adapter-react-16": "^1.0.6", "eslint": "^6.8.0" }, diff --git a/yarn.lock b/yarn.lock index 111c35f..3a67dbf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,101 +10,6 @@ "@babel/highlight" "^7.22.13" chalk "^2.4.2" -"@babel/code-frame@^7.22.13": - version "7.23.4" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.23.4.tgz#03ae5af150be94392cb5c7ccd97db5a19a5da6aa" - integrity sha512-r1IONyb6Ia+jYR2vvIDhdWdlTGhqbBoFqLTQidzZ4kepUFH15ejXvFHxCVbtl7BOXIudsIubf4E81xeA3h3IXA== - dependencies: - "@babel/highlight" "^7.23.4" - chalk "^2.4.2" - -"@babel/helper-annotate-as-pure@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" - integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-create-class-features-plugin@^7.18.6": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz#97a61b385e57fe458496fad19f8e63b63c867de4" - integrity sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.5" - "@babel/helper-function-name" "^7.22.5" - "@babel/helper-member-expression-to-functions" "^7.22.15" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-replace-supers" "^7.22.9" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.22.6" - semver "^6.3.1" - -"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.22.5": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" - integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== - -"@babel/helper-function-name@^7.22.5": - version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" - integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== - dependencies: - "@babel/template" "^7.22.15" - "@babel/types" "^7.23.0" - -"@babel/helper-member-expression-to-functions@^7.22.15": - version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz#9263e88cc5e41d39ec18c9a3e0eced59a3e7d366" - integrity sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA== - dependencies: - "@babel/types" "^7.23.0" - -"@babel/helper-optimise-call-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e" - integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-plugin-utils@^7.18.6": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz#dd7ee3735e8a313b9f7b05a773d892e88e6d7295" - integrity sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg== - -"@babel/helper-replace-supers@^7.22.9": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz#e37d367123ca98fe455a9887734ed2e16eb7a793" - integrity sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-member-expression-to-functions" "^7.22.15" - "@babel/helper-optimise-call-expression" "^7.22.5" - -"@babel/helper-skip-transparent-expression-wrappers@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847" - integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-split-export-declaration@^7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" - integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-string-parser@^7.23.4": - version "7.23.4" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz#9478c707febcbbe1ddb38a3d91a2e054ae622d83" - integrity sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ== - -"@babel/helper-validator-identifier@^7.22.20": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0" - integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A== - "@babel/helper-validator-identifier@^7.22.5": version "7.22.15" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz#601fa28e4cc06786c18912dca138cec73b882044" @@ -119,46 +24,6 @@ chalk "^2.4.2" js-tokens "^4.0.0" -"@babel/highlight@^7.23.4": - version "7.23.4" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.23.4.tgz#edaadf4d8232e1a961432db785091207ead0621b" - integrity sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A== - dependencies: - "@babel/helper-validator-identifier" "^7.22.20" - chalk "^2.4.2" - js-tokens "^4.0.0" - -"@babel/parser@^7.22.15": - version "7.23.4" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.4.tgz#409fbe690c333bb70187e2de4021e1e47a026661" - integrity sha512-vf3Xna6UEprW+7t6EtOmFpHNAuxw3xqPZghy+brsnusscJRW5BMUzzHZc5ICjULee81WeUV2jjakG09MDglJXQ== - -"@babel/plugin-proposal-class-properties@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" - integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/template@^7.22.15": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.22.15.tgz#09576efc3830f0430f4548ef971dde1350ef2f38" - integrity sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w== - dependencies: - "@babel/code-frame" "^7.22.13" - "@babel/parser" "^7.22.15" - "@babel/types" "^7.22.15" - -"@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0": - version "7.23.4" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.23.4.tgz#7206a1810fc512a7f7f7d4dace4cb4c1c9dbfb8e" - integrity sha512-7uIFwVYpoplT5jp/kVv6EF93VaJ8H+Yn5IczYiaAi98ajzjfoZfslet/e0sLh+wVBjb2qqIut1b0S26VSafsSQ== - dependencies: - "@babel/helper-string-parser" "^7.23.4" - "@babel/helper-validator-identifier" "^7.22.20" - to-fast-properties "^2.0.0" - "@types/cheerio@*": version "0.22.32" resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.32.tgz#1a41608fd072544c3ed6c0d6cc3fcf08d07715de" @@ -892,7 +757,7 @@ semver@^5.5.0: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== -semver@^6.1.2, semver@^6.3.1: +semver@^6.1.2: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== @@ -1006,11 +871,6 @@ tmp@^0.0.33: dependencies: os-tmpdir "~1.0.2" -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - tough-cookie@^4.1.3: version "4.1.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.3.tgz#97b9adb0728b42280aa3d814b6b999b2ff0318bf"