diff --git a/backend/tests/sample_image/0_200.jpg b/backend/tests/sample_image/0_200.jpg new file mode 100644 index 0000000..932d077 Binary files /dev/null and b/backend/tests/sample_image/0_200.jpg differ diff --git a/backend/tests/sample_image/0_700.jpg b/backend/tests/sample_image/0_700.jpg new file mode 100644 index 0000000..dd58419 Binary files /dev/null and b/backend/tests/sample_image/0_700.jpg differ diff --git a/backend/tests/sample_image/90_200.jpg b/backend/tests/sample_image/90_200.jpg new file mode 100644 index 0000000..cc010f5 Binary files /dev/null and b/backend/tests/sample_image/90_200.jpg differ diff --git a/backend/tests/sample_image/90_700.jpg b/backend/tests/sample_image/90_700.jpg new file mode 100644 index 0000000..0847088 Binary files /dev/null and b/backend/tests/sample_image/90_700.jpg differ diff --git a/backend/tests/sample_image/after_dc.jpeg.jpg b/backend/tests/sample_image/after_dc.jpeg.jpg new file mode 100644 index 0000000..0a17d52 Binary files /dev/null and b/backend/tests/sample_image/after_dc.jpeg.jpg differ diff --git a/backend/tests/sample_image/after_lc.jpeg.jpg b/backend/tests/sample_image/after_lc.jpeg.jpg new file mode 100644 index 0000000..536c14c Binary files /dev/null and b/backend/tests/sample_image/after_lc.jpeg.jpg differ diff --git a/backend/tests/sample_image/bb_raster_0.jpg b/backend/tests/sample_image/bb_raster_0.jpg new file mode 100644 index 0000000..557da0a Binary files /dev/null and b/backend/tests/sample_image/bb_raster_0.jpg differ diff --git a/backend/tests/sample_image/bb_raster_90.jpg b/backend/tests/sample_image/bb_raster_90.jpg new file mode 100644 index 0000000..8875f10 Binary files /dev/null and b/backend/tests/sample_image/bb_raster_90.jpg differ diff --git a/backend/tests/sample_image/mount.jpeg.jpg b/backend/tests/sample_image/mount.jpeg.jpg new file mode 100644 index 0000000..87e2530 Binary files /dev/null and b/backend/tests/sample_image/mount.jpeg.jpg differ diff --git a/frontend/src/components/ResultGrid.tsx b/frontend/src/components/ResultGrid.tsx index 13fab24..c11af32 100644 --- a/frontend/src/components/ResultGrid.tsx +++ b/frontend/src/components/ResultGrid.tsx @@ -71,56 +71,45 @@ const ResultGrid: React.FC = ({ activePgroup }) => { width: 300, renderCell: (params) => { const imageList: ImageInfo[] = params.value; - if (imageList && imageList.length) { - const primaryImage = imageList[0]; - const imageUrl = basePath + primaryImage.filepath; - - return ( -
- sample - {imageList.length > 1 && ( -
- +{imageList.length - 1} -
- {imageList.slice(1).map((img) => { - const url = basePath + img.filepath; - return ( - {img.comment - ); - })} - -
-
- )} -
- ); + if (!imageList || imageList.length === 0) { + return null; } - return null; + + // Filter the images to include only the two bb_raster images + const filteredImages = imageList.filter( + (img) => + img.filepath.includes("bb_raster_0") || + img.filepath.includes("bb_raster_90") + ); + + if (filteredImages.length === 0) { + return null; + } + + return ( +
+ {filteredImages.map((img) => { + const url = basePath + img.filepath; + return ( + {img.comment + ); + })} +
+ ); }, }, + ]; return (