Skip to content

feat(blogs): articles and products on a connected site - #36

Merged
alihesari merged 2 commits into
feature/reddit-extrasfrom
feature/remote-articles
Oct 18, 2026
Merged

alihesari merged 2 commits into
feature/reddit-extrasfrom
feature/remote-articles

Conversation

@alihesari

@alihesari alihesari commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Adds the blogs surface from fopost/fopost#1072 to this client: the blogs, articles and products a connected site already owns, addressed by the platform's own ids rather than FoPost ids.

updateArticle changes the live article in place and never creates a second post on the site. Reads need the posts scope; everything that writes to the site needs publish as well.

The branch had decayed behind main, so part of this is reconciliation rather than new work. Two things to know when reviewing:

  • main has since gained its own blog resource (the FoPost content engine, which writes articles). That is a different thing from this blogs resource, which reads and edits what is already on the customer's site. They are adjacent names for unrelated surfaces; renaming either one is its own decision, not this merge's.
  • fopost/fopost#1072 now returns the bare object for a single article or product rather than { data }. This client unwraps data only when it is the response's sole key, so both shapes deserialize correctly and no change was needed; the list endpoints still carry the envelope.

Stacking and release

Stacked on feature/reddit-extras; merge that first. The last commit is the release prep for 0.3.0: after this merges, tag main as v0.3.0 and the release workflow publishes.

Reaches content the connected site already owns, by the platform's own ids:
the blogs on a WordPress site or a Shopify store, the articles on a blog, and a
Shopify store's products.

update_article addresses the article by its own id and sends only the keyword
arguments the caller passed, so editing a live post changes it in place instead
of forking it into a duplicate. Reads need the posts scope; writes need publish.
@alihesari
alihesari force-pushed the feature/remote-articles branch from 580e21a to e7167d8 Compare October 18, 2026 13:13
@alihesari
alihesari changed the base branch from main to feature/reddit-extras October 18, 2026 13:13
@alihesari
alihesari force-pushed the feature/remote-articles branch from e7167d8 to dd9a09a Compare October 18, 2026 13:14
@alihesari
alihesari merged commit c66c0f6 into feature/reddit-extras Oct 18, 2026
4 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.

1 participant