diff --git a/packages/api/src/routes/transceivers.ts b/packages/api/src/routes/transceivers.ts index 2a12dee..cd4b3a2 100644 --- a/packages/api/src/routes/transceivers.ts +++ b/packages/api/src/routes/transceivers.ts @@ -81,7 +81,8 @@ transceiverRouter.get("/:id", async (req: Request, res: Response) => { t2.form_factor = t1.form_factor AND t2.speed_gbps = t1.speed_gbps AND ( - t1.reach_meters IS NULL OR t2.reach_meters IS NULL + t1.reach_meters IS NULL OR t1.reach_meters = 0 + OR t2.reach_meters IS NULL OR t2.reach_meters = 0 OR ABS(t2.reach_meters - t1.reach_meters) <= GREATEST(t1.reach_meters, 1) * 0.25 ) AND t2.id != t1.id diff --git a/packages/dashboard/index.html b/packages/dashboard/index.html index 3d5d674..80cc48b 100644 --- a/packages/dashboard/index.html +++ b/packages/dashboard/index.html @@ -2689,15 +2689,19 @@ async function openTxDetail(id) { } h += ''; - // Image section + // Image section — entire box clickable if product_page_url exists var hasRealImage = t.image_url || (t.vendor_name === 'FLEXOPTIX' && FF_REFERENCE_IMAGES[t.form_factor]); - h += '