feat(bing): v2 panels — striking distance, queries/pages tables, tiles, get_bing_queries - #3
Merged
Merged
Conversation
…position tiles, get_bing_queries MCP tool Builds the spec's Future directions (specs/0009) on the sampled GetQueryStats/GetPageStats endpoints probed live on 2026-07-25: - bingClient: getQueryStats/getPageStats sharing one probed row schema - bingQueryReport: whole-window aggregation (impression-weighted position, AvgClickPosition ignored) and the 5-20 striking-distance band - BingService.getQueryReport + getBingQueryReport server fn - UI: CTR and avg-position tiles, half-split period deltas from the dense daily series, tabs for striking distance / queries / pages / daily, copy/save-as-keywords on the striking table - MCP: get_bing_queries (dimension, strikingDistanceOnly, limit) No date picker or device/country filters — Bing's API has none, and the query/page rows are sampled (~16 dates over ~5 months), so only whole-window aggregates are honest. No DB changes. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds the "Future directions" section of specs/0009-bing-webmaster-integration.md on the fork while the upstream proposal (every-app#150) awaits a maintainer response. Fork-only; the clean v1 upstream branch is untouched and unaffected.
What's included
get_bing_queries: dimension (query|page), strikingDistanceOnly, limit 1–500. Unmetered read, registered next to get_bing_performance.Data-honesty constraints (from the spec)
Not included
No DB/schema changes, no edits to GSC files (only imports of already-exported helpers: formatCtr/formatPosition/formatCount, TabButton, table components).
Verification
pnpm test), including new suites for bingClient stats methods, aggregation math (boundary cases 4.9/5/20/20.1), the half-split comparison, BingService.getQueryReport, and the MCP tool.pnpm ci:checkandvite buildclean.get_bing_queriesreturns rows over MCP.🤖 Generated with Claude Code