Repository navigation
feat(prompts): show which engines share their searches on the Query Fan-out page - #1057
Conversation
…an-out page
The page listed only Copilot and said nothing about why: ChatGPT's
searches stopped arriving on 2026-09-30, and Google AI Overviews, AI Mode
and Gemini never send any. It read as broken.
- An engine strip above the lists: each engine's share of answers with
searches and its distinct searches. A chip filters both views to that
engine. Engines that never share are labelled "not shared".
- An engine that usually shares (ChatGPT, Copilot, Perplexity) but shared
none over at least 20 answers is marked amber, with when it last did
("none since Sep 29") and a general note that clears itself once
searches arrive again.
- An Engines column on the By-prompt list: coloured where an engine shared
searches for the prompt, faded where it answered without.
- A filtered engine with nothing in the window says so, and the empty state
and coverage tooltip now name the right engines (strings in en.json).
- The Fan-out tab opens on 7 days; a window the user didn't pick follows
each tab's own default.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk The Query Fan-out page now explains which engines share their searches: an engine strip with a filter, an amber note for an engine that usually shares but sent none (ChatGPT since Sep 29), "not shared" for Google's engines, an Engines column, and a 7-day default. Companion to #1056. Ready for review when you have a moment. |
…ne-coverage # Conflicts: # web/messages/en.json
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks, approving. On the tree merged with main (now with #1088–#1090 and #1056), web tests pass (851). One note on the last-shared lookup: on the largest brand the planner walks idx_prompt_results_created_at across every brand rather than the brand index, which took 153 ms warm and 6.6 s cold, against the 8 s limit. A smaller brand uses idx_prompt_results_brand_created and takes 25 ms. A failure only drops the date, so it isn't a blocker, but worth keeping in mind if the brand grows.
Summary
On production, the Query Fan-out page lists only Copilot, and nothing on the page says why. Users mostly track ChatGPT and Google AI Overviews, so the page reads as broken. There are two reasons (see #1056):
This PR makes the page say so, and lets the user look at one engine at a time.
Engine strip
A strip above the lists shows every engine that answered in the window:
config/fanout-platforms.ts), and needs at least 20 answers in the window, since a few answers with none is chance.Lists
messages/en.json.Date range
Data (
getQueryFanout)Read from the same rows as before:
engines);platforms,fanoutPlatforms).The only new read is the "last shared" lookup for a silent engine. It runs alongside the prompt roster read and uses PostgREST's
search_queries->0JSON-path filter, which I checked against the dev database.Review
I ran a code review before opening this. It found 5 things; 4 are fixed:
Left as is: with an engine picked, a row's "Answers with fan-out" ratio still counts every engine.
Related issue
None. Follows #1056, which fixes the capture side and adds the health report alert.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): 0 errors; the 7 warnings are in code this PR doesn't touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn test: 552/552.fanout.test.ts: per-engine counts, prompt platforms, the last-shared lookup, which runs only for a sharing engine and only with enough answers._fanout-engines.test.tsx: the chips, the filter toggle, the notices and the silent rule.yarn build: passed.🤖 Generated with Claude Code