Repository navigation
fix(search): filters follow the active index for the assistant, Reviews only uses the review type, and the phone tab switch sticks - #1731
Conversation
It used to add (review OR synthesis OR "meta-analysis") to the query, so on "school feeding" 84% of what it kept were ordinary articles that mention the word (110,811 of 132,564), and it missed 368 typed reviews. Both indexes serve OpenAlex's review type. It now works on a search by meaning too. Saved community sources keep the query they were approved with.
…index serves UNSERVED_FILTERS names each unserved filter's setting too. Each reply's tools are built for the active index: a setting it can't serve (study design on our index) is left out of their arguments and descriptions, and a call that asks for it anyway is refused with why, instead of the search dropping it while the assistant reports success. The filter chips hide it as the sidebar does.
…he top bar on every page On the home page a swipe scrolls the page itself (its content is short), and the switch slid under the sticky top bars, behind the sign-in card. It now sticks under them, and a tab's content is its own layer, so nothing in it draws over the switch. Checked in Safari on an iPhone simulator, before and after the keyboard.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f196958356
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
… be taken off on our index The update tool keeps the setting's name, and a change to null or nothing isn't refused: only asking for an unserved filter is.
The assistant is offered only the filters the active index serves.
UNSERVED_FILTERS(lib/search/source.ts) already drove the sidebar and the works request; each entry now names its setting too. Each reply's tools are built for the active index (servedByinconvex/assistant/tools.ts): a setting it can't serve, study design on our index today, is left out of their arguments, including the update tool's list of settings, and out of their descriptions. A call that sends it anyway is refused with a plain reason (unservedIn). Before, the search dropped it and the assistant reported success. The filter chips now hide it, as the sidebar does.Reviews only keeps the papers the index types as reviews. It used to add
(review OR synthesis OR "meta-analysis")to the query. Measured on our index for "school feeding": that kept 132,564 papers, 110,811 of them typed as articles, and missed 368 typed reviews. Thereviewtype keeps 10,848. Both indexes serve the type, so it also works on a search by meaning now. A publication type picked beside it gives way to it. Saved community sources keep the query they were approved with until someone edits them.On a phone, the Search/Filters switch sticks under the top bar on every page. On the home page the content is short, so a swipe scrolls the page itself, and the switch slid under the sticky top bars and behind the home page's sign-in card (
z-20). It now sticks under them, and a tab's content is its own stacking layer. Checked in Safari on an iPhone 17 simulator: swiping, and opening and closing the keyboard.Checks:
npx tsc --noEmit,npm run check:ui-rules, vitest on the assistant tools (two new tests for the active index's filters), the community source query, bucket filters, the library page and request limits (83 passed).A separate PR brings the same commits to
prod.