Repository navigation
feat(tracking): capture Microsoft Copilot shoppingCards into prompt_results - #87
Merged
Merged
Conversation
…esults Copilot returns its product cards under camelCase `shoppingCards`; unwrap into the shared snake_case `shopping_cards` parsed key (generic branch that Copilot + Perplexity share). Verified live against Cloro (real populated card). Stored verbatim; downstream branches on `platform` for shape. Closes #47 (Redo: the original PR #85 was stacked on the Perplexity branch and got merged into that branch instead of main, so the change never reached main. This targets main directly off the merged #46.)
This was referenced May 25, 2026
Merged
This branch was successfully deployed
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.
Summary
Captures Microsoft Copilot's product cards into
prompt_results.shopping_cards(the column added in #46, already onmain). One-line change in the generic/non-Google parser branch that Copilot and Perplexity share.Closes #47
Why this is a re-do
The original PR (#85) was stacked on the Perplexity branch (
feat/tracking-shopping-cards) and ended up merged into that branch, notmain— so the change never reachedmain(and #47 got auto-closed prematurely). This PR targetsmaindirectly, branched off the merged #46.Change
server/src/lib/cloro-scraper.js:result.shopping_cards(snake_case)result.shoppingCards(camelCase)[]Stored verbatim in Copilot's shape; downstream branches on
prompt_results.platform.Verification
node --checkpasses.shoppingCardsis a real top-level key with the documented shape (name,price.amount,seller,brandName,rating,url).Cleanup note
The stale
feat/tracking-shopping-cardsbranch (already squash-merged via #46, but still on the remote and now also holding the stranded Copilot commit) can be deleted.