From 5fb5b985062d859a074591366d37ef84d9179a62 Mon Sep 17 00:00:00 2001 From: John Rogers Date: Thu, 24 Sep 2026 10:43:35 +0100 Subject: [PATCH] Hide the "Studies using the same instruments" discovery chip Discovery's instruments filter needs its own instrument names; Harmony's names (e.g. "SCARED English (child)", "CES_D English") return zero results, so the chip would land users on an empty search. Kept behind a flag so it can come back once the names are mapped. Co-Authored-By: Claude Opus 5.5 --- src/components/Results.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Results.js b/src/components/Results.js index 996fc53..da34bd4 100644 --- a/src/components/Results.js +++ b/src/components/Results.js @@ -9,6 +9,10 @@ import ResultsOptions from "./ResultsOptions"; import { parse, test } from "liqe"; +// Discovery's instruments filter needs its own instrument names; Harmony's +// (e.g. "SCARED English (child)") match nothing, so hide the chip for now. +const SHOW_INSTRUMENTS_CHIP = false; + export default function Results({ apiData, setApiData, @@ -453,7 +457,8 @@ export default function Results({ )} {/* Discovery Card - Harmony Discovery Links */} - {(topics.length > 0 || uniqueInstruments.length > 0) && ( + {(topics.length > 0 || + (SHOW_INSTRUMENTS_CHIP && uniqueInstruments.length > 0)) && ( )} - {uniqueInstruments.length > 0 && ( + {SHOW_INSTRUMENTS_CHIP && uniqueInstruments.length > 0 && (