Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
feat(catalog): recommend the product feed URL, and say an upload doesn't refresh (#1752)
Cihan5d2f0700cdbe
diff --git a/web/messages/en.json b/web/messages/en.jsonindex 697df7d5a..23b534524 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -8532,7 +8532,7 @@"catalog": "Product catalog","catalogLine": "{count, plural, one {# product} other {# products}} · synced {when}","catalogNotSynced": "{count, plural, one {# product} other {# products}} · not synced yet",- "catalogNone": "Not connected · your products, from a feed or a file",+ "catalogNone": "Not connected · add your product feed's URL (read every day) or upload a file","catalogFailed": "Couldn't be read right now","ga": "Google Analytics","gsc": "Google Search Console",@@ -8574,7 +8574,7 @@"tabReadiness": "Readiness","tabProducts": "Products","tabMyProducts": "My Products",- "connectCatalog": "These are your products as AI shopping cards showed them. Add your product catalog (a product feed URL or a file you upload) in <link>Settings › Integrations</link>, and the Content Editor checks your product pages' price, GTIN and stock against it.",+ "connectCatalog": "These are your products as AI shopping cards showed them. Add your product catalog (a product feed URL, read every day, or a file you upload once) in <link>Settings › Integrations</link>, and the Content Editor checks your product pages' price, GTIN and stock against it.","tabCompetitors": "Competitors","colProductTitle": "Product Title","colPlatforms": "Platforms",@@ -9238,7 +9238,7 @@"description": "Where {brand}'s products come from: a product feed URL, read every day, or a file you upload. Google product feeds (XML), Meta catalog CSVs and store CSV exports work.","noBrand": "Pick a brand to see its catalog.","unavailable": "Couldn't read the catalog's sources right now.",- "empty": "No catalog yet. Add your product feed's URL, or upload a CSV.",+ "empty": "No catalog yet. Add your product feed's URL: it's read every day, so prices and stock stay current. Or upload a file once.","upload": "Uploaded file","status": {"ok": "Synced",@@ -9261,7 +9261,10 @@"urlPlaceholder": "https://example.com/products.xml","addFeed": "Add feed","uploadFile": "Upload a file",- "uploadHint": "CSV or XML, up to 4 MB. For a larger catalog, add its feed URL.",+ "uploadHint": "One-off: prices and stock stay as uploaded until you upload again. CSV or XML, up to 4 MB; a larger catalog needs its feed URL.",+ "recommended": "Recommended",+ "feedRecommended": "Your product feed's URL: read every day, so prices and stock stay current.",+ "uploadStale": "Last uploaded {when} · prices and stock don't refresh by themselves. Upload again, or add the feed's URL.","managersOnly": "Admins and managers can add and sync sources.","categories": {"title": "Category pages",@@ -9307,7 +9310,7 @@"too_many": "A brand can have 10 sources at most.","forbidden": "Only admins and managers can change the catalog.","recent": "Synced a moment ago. Try again in a few minutes.",- "too_large": "The file is larger than 4 MB. Add its feed URL instead.",+ "too_large": "The file is larger than 4 MB. Add its feed URL instead: a feed up to 50 MB is read every day.","not_found": "This source no longer exists.","session": "Your session expired. Sign in again.","workspace": "This brand isn't in your workspace.",diff --git a/web/src/app/[locale]/(dashboard)/dashboard/shopping/_data-strip.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/shopping/_data-strip.test.tsxindex a9cddc958..6750c276a 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/shopping/_data-strip.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/shopping/_data-strip.test.tsx@@ -106,7 +106,9 @@ describe('ProductDataStrip', () => {});it('asks for the catalog when there is none, with Connect for those who may connect it', () => {- expect(render([])).toContain('Not connected · your products, from a feed or a file');+ expect(render([])).toContain(+ "Not connected · add your product feed's URL (read every day) or upload a file",+ );expect([...container.querySelectorAll('a')].some((a) => a.textContent === 'Connect')).toBe(true,);diff --git a/web/src/components/settings/catalog-sources-card.test.tsx b/web/src/components/settings/catalog-sources-card.test.tsxindex e6a36b192..0904b8543 100644--- a/web/src/components/settings/catalog-sources-card.test.tsx+++ b/web/src/components/settings/catalog-sources-card.test.tsx@@ -215,6 +215,27 @@ describe('CatalogSourcesCard', () => {expect(text).toContain('Item 2: price is missing.');});+ it('recommends the feed URL, read every day, and calls an upload one-off', async () => {+ await render();+ const text = container.textContent ?? '';+ expect(text).toContain(+ "RecommendedYour product feed's URL: read every day, so prices and stock stay current.",+ );+ expect(text).toContain('One-off: prices and stock stay as uploaded until you upload again.');+ });++ it("says when a file was uploaded, and that its prices and stock don't refresh", async () => {+ listCatalogSources.mockResolvedValue([+ { ...FEED, id: 's3', kind: 'upload', url: null, lastCounts: null },+ ]);+ await render();+ const row = container.querySelector('li')!.textContent ?? '';+ expect(row).toContain('Uploaded file');+ expect(row).toContain('Last uploaded');+ expect(row).toContain("prices and stock don't refresh by themselves");+ expect(row).not.toContain('Synced ');+ });+it('adds a feed URL and reads it at once', async () => {await render();const input = container.querySelector<HTMLInputElement>('input[type="url"]')!;diff --git a/web/src/components/settings/catalog-sources-card.tsx b/web/src/components/settings/catalog-sources-card.tsxindex 5d61b94bd..4ec1a0854 100644--- a/web/src/components/settings/catalog-sources-card.tsx+++ b/web/src/components/settings/catalog-sources-card.tsx@@ -327,9 +327,18 @@ export function CatalogSourcesCard({` · ${t('issues', { count: source.lastCounts!.issues!.items })}`}{(source.lastCounts?.repeated ?? 0) > 0 &&` · ${t('repeated', { count: source.lastCounts!.repeated! })}`}- {source.lastSyncedAt &&+ {source.kind !== 'upload' &&+ source.lastSyncedAt &&` · ${t('lastSync', { when: format.relativeTime(new Date(source.lastSyncedAt), now) })}`}</p>+ {/* An upload is read once: it says so, with when, rather than "synced". */}+ {source.kind === 'upload' && source.lastSyncedAt && (+ <p className="text-xs text-amber-700 dark:text-amber-400">+ {t('uploadStale', {+ when: format.relativeTime(new Date(source.lastSyncedAt), now),+ })}+ </p>+ )}{source.lastStatus !== 'ok' && source.lastError && (<p className="text-xs text-destructive">{source.lastError}</p>)}@@ -380,6 +389,10 @@ export function CatalogSourcesCard({{canManage ? (<div className="space-y-2">+ <p className="flex flex-wrap items-center gap-2 text-xs text-muted-foreground">+ <Badge variant="secondary">{t('recommended')}</Badge>+ {t('feedRecommended')}+ </p><formclassName="flex flex-col gap-2 sm:flex-row"onSubmit={(e) => {