Skip to content

feat(catalog): recommend the product feed URL, and say an upload doesn't refresh - #1752

Merged
gkhngyk merged 3 commits into
ansvisor:mainfrom
cihan-gyk:feature/catalog-feed-recommended
Oct 29, 2026
Merged

gkhngyk merged 3 commits into
ansvisor:mainfrom
cihan-gyk:feature/catalog-feed-recommended

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

An uploaded catalog file is read once: the daily sync leaves uploads out, so its prices and stock go stale. Nothing said so, or which way of adding a catalog keeps it current. Merchant Center can't be connected on the cloud, so a feed URL is the way to keep a catalog current.

  • Settings › Integrations › Product catalog:
    • The feed URL form is marked Recommended ("read every day, so prices and stock stay current").
    • The upload's hint says it is one-off, and the empty list says both.
  • An uploaded source's row says "Last uploaded · prices and stock don't refresh by themselves" in place of "synced ".
  • Over 4 MB (the API proxy's limit on one request): "Add its feed URL instead: a feed up to 50 MB is read every day".
  • Product Visibility's data strip and catalog note say the same: a feed URL read every day, or a file uploaded once.

The 4 MB upload limit stays. Recommending the feed URL was chosen over compressing or storing uploads; gzip can come later if shops need bigger uploads.

Copy and one row label only; no change to how sources are read.

Related issue

Follows #1270 (Merchant Center isn't offered on the cloud).

Stacked on #1748 (copy that promised Merchant Center status or Shopify). The diff against #1748 holds only this change.

Type of change

  • feat — New feature

How to test

  1. Settings › Integrations › Product catalog: the feed URL form shows Recommended, the upload says it is one-off, and the empty list names both ways.
  2. Upload a small CSV: its row reads "Last uploaded … · prices and stock don't refresh by themselves". A feed URL source still reads "synced …".
  3. Try a file over 4 MB: the message points to the feed URL.
  4. Product Visibility with no catalog: the strip and the catalog note say "a feed URL read every day, or a file uploaded once".

Checklist

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • Web: format, lint (0 errors, 7 warnings), typecheck and build pass
  • Web tests: 554 of 555 files pass. content/editor/[draftId]/_before-publish.test.tsx fails one focus assertion on this machine while other checks run. This branch doesn't touch that folder, which is identical to main.
  • Tests updated (catalog-sources-card.test.tsx, _data-strip.test.tsx)

🤖 Generated with Claude Code

cihan-gyk and others added 2 commits October 29, 2026 11:50
…ct doesn't have

Copy that read as if Google Merchant Center were connected, or a store
could be, where neither is offered:

- Brief › Shopping path: "and by Merchant Center status once it's
  connected" is gone (a refused product is still left out where an
  account is connected).
- Product Visibility's "Why": the fix step no longer says "we send it to
  Shopify": fixes go to the Action Center, the agent rewrites the page
  and its schema, the person sends it to their CMS, feed fields change
  in the feed.
- The data strip's empty catalog: "from a feed or a file", no store.
- Action Center and Content Editor guides: a product "refused by
  Merchant Center" now says "(when a Merchant Center account is
  connected)".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n't refresh

An uploaded file is read once, and the daily sync leaves uploads out, so
its prices and stock go stale; the copy didn't say so, nor which way to
add a catalog keeps it current.

- Settings › Integrations › Product catalog: the feed URL form is marked
  Recommended ("read every day, so prices and stock stay current"); the
  upload's hint says it is one-off; the empty list says both.
- An uploaded source's row says "Last uploaded <when> · prices and stock
  don't refresh by themselves", in place of "synced <when>".
- Over 4 MB (the API proxy's limit on one request): "Add its feed URL
  instead: a feed up to 50 MB is read every day".
- Product Visibility's data strip and catalog note say the same: a feed
  URL read every day, or a file uploaded once.

The 4 MB limit stays: the user chose to recommend the feed URL rather
than compress or store uploads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with follow-ups

Reviewed this PR's own change (bc2d1354..5596ff16, on top of #1748). No migration.

What I checked

  • The copy matches the server.
    • The daily sync skips uploads: the sweep in lib/catalog/sources.js filters .neq('kind', 'upload'). So "one-off" and "prices and stock don't refresh by themselves" are true.
    • A brand has one upload source, and a new upload replaces its file (routes/catalog.js). So "upload again" refreshes it.
    • A feed URL may be up to 50 MB (FEED_MAX_BYTES), and an upload up to 4 MB, as the messages say.
  • The row. An upload's row drops "synced …" and shows "Last uploaded … · prices and stock don't refresh by themselves" instead. It only appears when the upload has been read (lastSyncedAt). Feeds and stores still say "synced …".
  • Recommended. The badge and its line are shown only to those who can add sources (inside canManage). Badge was already imported.
  • Strip and catalog note. They say the same thing as Settings.
  • Merge. Merges clean on main, on top of #1748, and with #1747's stack.
  • No PostgREST embeds, server actions or routes are added.
  • Tests on main merged with this PR and #1747's stack: catalog-sources-card (including the two new tests) and the shopping folder pass. tsc passes. Prettier and eslint pass on the touched files.

Follow-ups

  1. The upload row's hint ends with "Upload again, or add the feed's URL". Analysts see it too, but they can't do either. Dropping that sentence when !canManage, or pointing them to an admin, would be more accurate.
  2. An upload whose last read failed shows both the error and "Last uploaded … · prices and stock don't refresh". The time is when that failed read happened. That's fine, but you might show the stale line only when lastStatus === 'ok'.

@gkhngyk
gkhngyk merged commit 5d2f070 into ansvisor:main Oct 29, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants