Skip to content

feat(shopping): a product catalog per brand, with CSV import #1184

Closed as not planned

Description

@gkhngyk

Problem

Shopping knows the products AI shows, but not the brand's own catalog. A card counts as the brand's when its product brand, title or merchant domain matches the brand (matchCardBrand). So we can say "your brand appeared", but not "this product appeared", and nothing can list the products that never appear.

Every later e-commerce feature needs the catalog:

  • product-level matching of cards
  • the Products view ("Never shown", win rate, position)
  • the Shopify and marketplace connectors
  • revenue per product

Proposal

  1. Tables, scoped to a brand. Members read through RLS; the server writes.
    • Products: source (csv, feed, shopify, …), external id, title, manufacturer brand, description, URL, image URL, GTIN, MPN, SKU, price amount and currency, availability, categories (a product can be in several, as with Shopify collections), updated at.
    • Variants: product, external id, title, SKU, GTIN, price, availability, option values (size, color).
    • Unique on (brand, source, external id), so a re-import updates rows instead of adding them.
  2. One server function upserts a batch of catalog items. The CSV import below and every connector write through it.
  3. CSV import on the Shopping page:
    • Upload, map columns, preview, import. Title, URL and price are required; everything else is optional.
    • Google product feed column names (id, title, link, image_link, price, gtin, brand, product_type, availability) map on their own, so a Merchant Center export imports without mapping.
  4. Products tracked per plan. The numbers are decided in the e-commerce epic; the import enforces whatever the plan allows.

Related: #964 adds a free-text "products and services" field to the brand profile. The catalog is the structured list behind it.

Acceptance criteria

  • A 1,000-row Google feed CSV imports with no manual mapping, and the products show on the Shopping page.
  • Re-importing the same file changes nothing. Changing one price and re-importing updates one row.
  • A member of another organization can't read the catalog (checked as authenticated).
  • Rows with a missing title, URL or price are reported by line number, and the rest import.

Activity

  1. added
    enhancement
    e-commerce
    on Oct 19, 2026
  2. gkhngyk commented on Oct 20, 2026

    @gkhngyk
    ContributorAuthor

    Closing: the e-commerce plan is being reworked, and new issues will replace this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    e-commerceenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions