Repository navigation
feat(shopping): card-eligible prompts tab - #178
Conversation
|
Thanks @Pallavikumarimdb — the #176 landed just before this and refactored the same three files ( What's neededRebase onto the current Concretely, after
Once it's rebased and green again, ping me and I'll re-review. The actual logic here is fine — it's purely the layout reconciliation that needs your eyes, since how the four tabs sit together is a design call I don't want to make for you. |
dceb069 to
d2868e8
Compare
Hey @gkhngyk , Thanks for the review. I have resolved merge conflicts and CI is green, could you please review again. |
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks @Pallavikumarimdb — the rebase reconciliation is exactly right. All four tabs coexist cleanly (Overview · Card-eligible prompts · My Products · Competitors), the en.json key sets are both preserved, Trigger rate slots into the existing KpiGrid, and the drawer is reused rather than duplicated. getCardEligiblePrompts stays type-safe and consistent with the other Shopping actions. Nicely done — merging.
Adds the Card-eligible prompts tab on the Shopping analytics dashboard to surface tracked prompts that trigger AI shopping cards.
Key Changes
getCardEligiblePrompts(brandId, filters)to aggregate card-triggering prompts, own/competitor/other distributions, and last triggered dates. Fully type-safe withoutanycasts.shopping_analyticsplan limit.Sheetdrawer to show exact appearances, grouped by platform and timestamp, containing product images, pricing, and merchant links.en.json.Closes: #106