From cb22ac37b377e662218f17d6fec1b53cd825dee6 Mon Sep 17 00:00:00 2001 From: John Rogers Date: Thu, 24 Sep 2026 12:31:57 +0100 Subject: [PATCH] Hide the "Studies with matching topics" discovery chip Discovery ANDs keyword filters, and the chip sends every topic found in the matches. Two to four topics still return studies, but broader instruments produce six or more (SCARED child alone gives six at the default 70% threshold), which returns nothing. With both chips hidden the Discover card no longer renders; the per-match Discovery links are unaffected. Co-Authored-By: Claude Opus 5.5 --- src/components/Results.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Results.js b/src/components/Results.js index da34bd4..656bc87 100644 --- a/src/components/Results.js +++ b/src/components/Results.js @@ -12,6 +12,9 @@ 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; +// Discovery ANDs keyword filters, so sending every matched topic (often 6+) +// returns no studies. Hidden until the link sends a narrower set. +const SHOW_TOPICS_CHIP = false; export default function Results({ apiData, @@ -457,7 +460,7 @@ export default function Results({ )} {/* Discovery Card - Harmony Discovery Links */} - {(topics.length > 0 || + {((SHOW_TOPICS_CHIP && topics.length > 0) || (SHOW_INSTRUMENTS_CHIP && uniqueInstruments.length > 0)) && ( - {topics.length > 0 && ( + {SHOW_TOPICS_CHIP && topics.length > 0 && (