Repository navigation
Conversation
This was referenced Jun 5, 2026
gkhngyk
added a commit
that referenced
this pull request
Jun 11, 2026
…232) The Shopping page's card-rate KPI and the per-platform card-rate bar chart read prompt_results.shopping_cards, which the seed left at the default '[]' for every row — so both showed 0% on the demo dashboard. (#176 already seeded the normalized prompt_result_shopping_cards table, which drives the other KPIs and the trend chart.) Set shopping_cards to provider-shape JSON on the exact prompt_results rows the normalized cards reference (prompt 801: Perplexity US/GB, Google AI Mode US, Copilot US), so the raw and normalized layers agree: - Perplexity -> snake_case (image_url, review_count, ...) - Google AI Mode / Copilot -> camelCase (imageUrl, reviewCount, ...) Same products/prices/merchants as the normalized rows; everything else stays '[]'. Reuses the existing Acme/Demo/Fixture/Sample fixture brands.
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.
Description
Implements the My Products and Competitors tabs under the Shopping analytics page.
Key Changes
getOwnProducts,getCompetitorProducts, andgetCompetitorSummaryserver actions to aggregate shopping cards by product title/brand and calculate competitor share of voice (SOV) metrics.supabase/seed.sql.Fixes #105