Skip to content

fix(search): History and every other list of a search's filters leave out a filter the active index can't serve - #1734

Merged
sickerine merged 1 commit into
devfrom
fix/qa1204-chips
Dec 4, 2026
Merged

sickerine merged 1 commit into
devfrom
fix/qa1204-chips

Conversation

@sickerine

Copy link
Copy Markdown
Collaborator

Found by the daily QA of 4 December, checking #1731.

#1731 hid study design, which our index can't serve, from the search box's chips. History still listed it on an older search ("Study design Randomised controlled trial") though the search no longer applies it. The search's hover card, extraction's search picker, a screening's picked search and the assistant's step cards draw the same chips (FilterChips) and showed it too.

FilterChips now leaves out a filter the active index can't serve, through servedFilters in lib/search/source.ts, which the sidebar's count uses as well. The search keeps the filter, so it shows again once search runs where it's served. A community's source summary keeps it: that source asks OpenAlex, which serves study design (PinSearchSource, as its dialog does).

Checks:

  • On dev, History shows the study design chip on the Verify Agent's "insecticide treated nets malaria children"; on this branch's build it shows Year and Country focus only.
  • npx tsc --noEmit, npm run check:ui-rules, vitest on lib/search, bucket filters and the community source query (160 passed).
  • npm run verify -- shift /history with History's search box typed into: passes in Chromium and Firefox.
  • No new test: the rule is one helper over UNSERVED_FILTERS, checked on the page.

… out a filter the active index can't serve

#1731 hid study design from the search box's chips on our index. History, the
search hover card, extraction's search picker, a screening's picked search and
the assistant's step cards draw the same chips through FilterChips and still
showed it. FilterChips now leaves it out, through servedFilters in
lib/search/source.ts, which the sidebar's count uses too. A community source's
summary keeps it: its source asks OpenAlex.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T08:42:00.275186Z 0b715b1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 67255279-87c2-44f3-9a78-e470bcc6ba55
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sickerine
sickerine merged commit 4c98c3d into dev Dec 4, 2026
7 of 10 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