Skip to content

Hide the "Studies using the same instruments" discovery chip - #63

Merged
ronnyTodgers merged 1 commit into
masterfrom
hide-instruments-chip
Sep 24, 2026
Merged

ronnyTodgers merged 1 commit into
masterfrom
hide-instruments-chip

Conversation

@ronnyTodgers

Copy link
Copy Markdown
Collaborator

The Discover card links to Harmony Discovery with ?instruments=<name>. Discovery only matches its own instrument names, and Harmony's names don't line up with them. For example, SCARED English (child) + CES_D English return 0 results on harmonydata.ac.uk/search. So the chip sent users to an empty search.

This hides the chip behind SHOW_INSTRUMENTS_CHIP = false in Results.js. It also keeps the Discover card from showing up empty when topics are empty but instruments aren't. The "Studies with matching topics" chip and the per-match Discovery links are unchanged; both work on the live /search app.

Tested with a local production build (CI=true npm run build and build:HarmonyExport both pass). The Discover card renders with the topics chip only, and every match row carries its Discovery link.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for harmony-staging ready!

Name Link
🔨 Latest commit 5fb5b98
🔍 Latest deploy log https://app.netlify.com/projects/harmony-staging/deploys/6ab4f0d370e5100008fddb2d
😎 Deploy Preview https://deploy-preview-63--harmony-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ronnyTodgers
ronnyTodgers merged commit 3deedbb into master Sep 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant