Repository navigation
feat(content): mark pages sent to Webflow published once they go live there (Send to CMS #1331, phase 2 part 6: Webflow published) - #1509
Merged
Conversation
…o CMS ansvisor#1331, phase 2 part 1: Webflow connection) A brand connects its Webflow site with a site token, kept by Composio as an API-key connected account under the brand's own Composio user, picks the collection pages go to and which of its fields takes the body, meta title, meta description and JSON-LD. 00283 adds brand_cms_connections (members read; the server writes for admins and managers). Routes under /api/cms/brands/:brandId/webflow connect, list collections and fields with a suggested map, save the map and disconnect. The token is never stored, logged or sent back. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…refusals narrowly (pre-push review) - A new token is a second Composio account until the first is removed, so connect with allowMultiple; once the new one is saved, the brand's other Webflow accounts go (forgetWebflowAccounts), and a disconnect removes them all, keeping the row when Composio can't. - Writes are tied to the account the request read: a map checked with a token replaced meanwhile isn't saved (409 changed), a late refusal marks only its own token, and a disconnect leaves a token connected meanwhile. - Only a 401 or a missing Composio account is auth_failed; a 403 is no_access and changes nothing; a successful read connects a refused connection again. - A collection's fields are given only for one on a site the token reaches. - A missing brand answers not_found; a required field can't be the JSON-LD's. - Unused exports dropped; composio.test.js covers the Webflow helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ction as draft items (Send to CMS ansvisor#1331, phase 2 part 2: Webflow send) POST /api/content-drafts/send takes target 'webflow': each page becomes a draft item in the brand's collection (00283) by its field map, or updates the item its last send made there (a new one when it was deleted in Webflow). Webflow's rich text has no tables, so a table goes as a list; images wait for workspace files (CHAT-06); the meta description falls back to the page's opening words; JSON-LD goes as its JSON to its own field. The same 200 a day, 25 per send and pause apply. 00284 adds the delivery's target and the item's collection, and reserve_content_deliveries takes the target ('webhook' by default, so the earlier API still works). A token Webflow refuses marks the connection auth_failed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… as they are (pre-push review) - A table cell keeps its paragraphs, items and lines a space apart, and its links; a table a figure wraps is kept, a table in a cell read once; words or items outside a block become paragraphs; comments go; a picture counts as one image. - A slug with nothing Latin left falls back to the draft's id, the same on every send, not the delivery's. - 00284: a second Webflow send of a page while one is queued is refused under the cap's lock (in_progress), so two sends can't make two items. - The item's id is kept even when the delivery's row was written meanwhile. - A batch stops once Webflow refuses the token, closing the rest. - The webhook callback answers only for webhook deliveries. - An emptied JSON-LD field clears the item's old one; every "<" in it is escaped; the opening words stay within 160 characters. - A taken slug says what to do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… in Settings › Integrations (Send to CMS ansvisor#1331, phase 2 part 3: Webflow card) A Webflow card under the product catalog: admins and managers paste the brand's site token (sent from the browser to the API's proxy once, never through a server action), pick the site and collection pages go to, and which field takes the page content, meta title, meta description and JSON-LD (the collection's suggested map first), replace the token and disconnect; members see where pages go. A refused token asks for a new one; a connection changed meanwhile is read again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…CMS (Send to CMS ansvisor#1331, phase 2 part 4: send target) Once Settings has the brand's Webflow collection ready, the editor's and the Library's Send dialogs offer where pages go: Webflow (a draft item in the collection, the first choice) or the workflow's webhook, remembered per brand in this browser. A Webflow send says whether the item was made or updated and what Webflow's rich text couldn't keep (tables as lists, images not yet); its refusals are named; the Library marks a page sent there as a draft item in Webflow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ow isn't ready (pre-push review) - A brand's Webflow that can't be read holds the send, with Try again, instead of reading as no Webflow and sending to the webhook. - Webflow connected but not ready (its token refused, no collection) shows in the picker, off, with what to do; the webhook is then picked in view. - The description is neutral until the target is read. - The bulk dialog clears a refusal when the target changes, and says a page (not "this page") is already on its way to Webflow. - A collection without a name reads as "your collection". - Tests: a send held while reading, a failed read and Try again, the remembered choice read back, not-ready Webflow, the last send's line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… there (Send to CMS ansvisor#1331, phase 2 part 6: Webflow published) Nothing calls back when a Webflow item goes live, so the API reads the items its sends made: each page's latest send to Webflow not seen live yet (up to 25 a brand, the last 60 days), and marks a live one published at its address on the site (its custom domain or webflow.io host, the collection's slug and the item's). The Library asks once as it opens for a brand with pages in Webflow (any member, a brand at most every two minutes), and a daily sweep reads every connected brand. Marking a page published is shared with the webhook's callback (content-published.js). A token refused while reading marks the connection. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed it after the send (pre-push review)
- A live page sent again stays sent until Webflow publishes it again: the
item counts only when its lastPublished is at or after the send.
- An item deleted in Webflow closes its send (Removed in Webflow), so the
page's next send makes a new item and the check stops reading it.
- One item's failure doesn't stop the check; three in a row do.
- The Library reads a brand's 10 newest sends; the daily sweep reads up to
100 a brand, its brands shuffled so the deadline leaves out others daily.
- A site's host is the custom domain published to last, else webflow.io.
- An item wrapped as { item } is read; logs carry the error's code.
- The Library's reload isn't lost when its filter changes meanwhile.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 25, 2026
…d to CMS ansvisor#1331, ansvisor#1509) Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
reviewed
Oct 25, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups to fix before it's turned on.
What I checked:
- Who can ask.
POST /api/content-drafts/webflow-statustakes only a brand id, checks the brand is in the caller's workspace (any member), and writes only what Webflow shows. It's behindcmsLimiter, and a brand is read at most every two minutes. The Library asks once per brand per visit, and only when a row's last send is a Webflow draft item. The Composio account it reads with is the brand's own row (brand_cms_connectionsbybrand_id). No token reaches the answer or the logs: errors are logged by name and code only. - Only what's live, only after the send. It reads
sentWebflow deliveries that have an item id, from the last 60 days, the latest send for each page. An item counts as live when it haslastPublished, isn't a draft and isn't archived, andlastPublishedis at or aftersent_at.sent_atis written after Webflow took the item, so a publish that races the send waits for the next one. A live page sent again stays sent. The address is built from Webflow's own host, collection slug and item slug, and is always https. - Refused token. It stops the check and marks only that account
auth_failed(matched oncomposio_account_id), as the send does. Composio's own failures (a tool it can't retrieve, an execute error) read asfailed, so the check stops after three of them in a row and no brand is marked refused. - Daily sweep. It does nothing without Composio set up. It covers connected brands on an active subscription, in shuffled order, within a 10-minute deadline. If one brand fails, that's logged and the next goes on. It runs beside the catalog sweep and never holds up tracking.
- Shared publish path.
content-published.jsis the webhook callback's code moved over unchanged, and the callback's tests pass as they were. - Behind the setting. Without
COMPOSIO_WEBFLOW_AUTH_CONFIG_ID, the route and the sweep return nothing, and there are no Webflow deliveries to read.
Follow-up (please fix before Webflow is set up on the API server):
server/src/lib/cms/webflow.js:182andwebflow-status.js:128-131: a "not found" closes the send for good ("Removed in Webflow"), and nothing can bring it back. The page's next send then makes a new item, becauselastItem(webflow-delivery.js:22) only takessentandpublishedsends. If the first item is in fact still there, Webflow refuses the new one on its slug, and the page is stuck until someone deletes an item in Webflow. "Not found" comes from a pattern match on Composio's error text. The PR also leaves open whetherWEBFLOW_GET_COLLECTION_ITEMreads the staged item: if it reads the live one, every draft item that was never published comes back as a 404 and gets closed. Two changes would cover it:- (a) Let
lastItemalso take the item of a send closed as removed (drop its status filter;updateItemalready makes a new item when the old one is gone). A wrong "removed" then costs nothing on the next send. - (b) Add a step to How to test: a draft item that was never published still reads as a draft, not as removed.
- (a) Let
7 of 12 tasks
…-settings # Conflicts: # server/.env.example # supabase/schema.sql
…sed parts by their labels, tell members a refused token stops sends (review)
- A saved part whose field was deleted or changed type in Webflow is left
out when the fields arrive, so what's saved is what the pickers show.
- The API's problems name a part by its label ("Meta title: …"), in a
list read out as an alert; the token hint describes its field.
- With the token refused, a member reads that pages can't go to Webflow
until an admin or manager pastes a new one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…_webhook for a Webflow not ready, and move between targets with the arrow keys (review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ebflow, in case it wasn't (review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… so, and keep Try again off while sending (pre-push review) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
Thanks. Both follow-ups are done (7a1a30f), and #1506's new head is merged in (c321487, no conflicts).
Server: format, lint, |
gkhngyk
approved these changes
Oct 25, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
What I checked:
- Earlier follow-up 1 (a): Done (7a1a30f).
lastItem(server/src/lib/cms/webflow-delivery.js:20-34) now takes the item of the page's latest send to this collection that has an item id, whatever that send's status is.- If a send was closed as "Removed in Webflow" by mistake, the next send updates the same item, so no second item fights it for the slug. If the item really is gone, the update answers
not_foundand a new draft item is made (:68-76). That's the same path an item deleted before any check already took. - The update reads Webflow's errors the same way the check does (
webflow.js:50-84), so a 404 that closed the send is a 404 on the update too. - A send that never made an item has no id, so it can't be picked. The test checks that the filter has no status.
- Earlier follow-up 1 (b): Done. How to test now has the step: a draft item that was never published still reads "In Webflow as a draft item", not "Removed in Webflow".
- Merges. b315008 and c321487 change nothing beyond merging their parents. The PR contains main and #1506's new head, and merges cleanly.
- Before the API is deployed.
- The Library asks for the Webflow check only when a row's last send is a Webflow draft item (
library/page.tsx:179-191). There are none until the API sends to Webflow. - If the route isn't there yet,
refreshWebflowPublishedtakes the 404 as nothing marked (cms-send-client.ts:135), and the row keeps "In Webflow as a draft item". - The daily sweep runs only on the API.
- Nothing that works today changes.
- The Library asks for the Webflow check only when a row's last send is a Webflow draft item (
No new findings.
4 of 12 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Oct 27, 2026
…hey go (Send to CMS #1331, phase 2 part 5) (#1507) * docs(content): document sending pages to Webflow and choosing where they go (Send to CMS #1331, phase 2 part 5) Send to CMS's guide covers connecting a brand's Webflow site (site token, scopes, collection and field map, the JSON-LD embed, self-hosting env), choosing Webflow or the workflow in the Send dialog, what a Webflow send does (draft item, updated in place, tables as lists, no images yet, the meta description's fallback), the shared daily cap and the Library mark. The Content Editor guide and the webhook event table say which sends go through the webhook. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say when a page sent to Webflow becomes Published (Send to CMS #1331, #1509) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say who connects Webflow, what Save refuses, the item slug and the 60-day check (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a Send dialog that can't check Webflow sends to your workflow, and says so (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
gkhngyk
added a commit
that referenced
this pull request
Oct 28, 2026
…nd to CMS #1331) (#1573) * docs(content): document sending pages to Webflow and choosing where they go (Send to CMS #1331, phase 2 part 5) Send to CMS's guide covers connecting a brand's Webflow site (site token, scopes, collection and field map, the JSON-LD embed, self-hosting env), choosing Webflow or the workflow in the Send dialog, what a Webflow send does (draft item, updated in place, tables as lists, no images yet, the meta description's fallback), the shared daily cap and the Library mark. The Content Editor guide and the webhook event table say which sends go through the webhook. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say when a page sent to Webflow becomes Published (Send to CMS #1331, #1509) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say who connects Webflow, what Save refuses, the item slug and the 60-day check (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a Send dialog that can't check Webflow sends to your workflow, and says so (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site with an Application Password and send pages to it as draft posts (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): mark a page published once its WordPress post is put live, read when the Library opens and daily (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site from Settings › Integrations (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to WordPress from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's WordPress site beside Webflow and the webhook. A remembered CMS that isn't ready goes to the webhook, never the other CMS. The toast says when a live post got a new draft and when JSON-LD was left out. The Library marks rows sent to WordPress and asks /wordpress-status once per brand per visit. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to WordPress as draft posts (Send to CMS #1331) Connect WordPress (Application Password, the site check and what its messages mean, change sign-in, disconnect, self-hosting key), where pages go with three targets, what goes to WordPress and when a send makes a new draft, the published check, bulk and Library lines, and the webhook and editor guide lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): let a brand's WordPress site be disconnected while the plan has ended Since #1589 a workspace whose plan has ended can't write, but taking back an outside account's access stays open (COST_STOPPING), as Webflow's disconnect does. WordPress's disconnect revokes the Application Password where the site allows, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a page published in WordPress gets its address on its own too (Send to CMS #1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): open the plan dialog from the WordPress card while the workspace is read-only Connect and Change sign-in open it before anything is sent, and a connect or disconnect the API refuses for the plan opens it instead of saying WordPress couldn't be reached. Disconnect stays open, as Webflow's. * test(cms): the Library asks neither Webflow nor WordPress by itself while the workspace is read-only --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk
added a commit
that referenced
this pull request
Oct 28, 2026
…to CMS #1331) (#1581) * docs(content): document sending pages to Webflow and choosing where they go (Send to CMS #1331, phase 2 part 5) Send to CMS's guide covers connecting a brand's Webflow site (site token, scopes, collection and field map, the JSON-LD embed, self-hosting env), choosing Webflow or the workflow in the Send dialog, what a Webflow send does (draft item, updated in place, tables as lists, no images yet, the meta description's fallback), the shared daily cap and the Library mark. The Content Editor guide and the webhook event table say which sends go through the webhook. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say when a page sent to Webflow becomes Published (Send to CMS #1331, #1509) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say who connects Webflow, what Save refuses, the item slug and the 60-day check (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a Send dialog that can't check Webflow sends to your workflow, and says so (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site with an Application Password and send pages to it as draft posts (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): mark a page published once its WordPress post is put live, read when the Library opens and daily (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site from Settings › Integrations (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to WordPress from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's WordPress site beside Webflow and the webhook. A remembered CMS that isn't ready goes to the webhook, never the other CMS. The toast says when a live post got a new draft and when JSON-LD was left out. The Library marks rows sent to WordPress and asks /wordpress-status once per brand per visit. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to WordPress as draft posts (Send to CMS #1331) Connect WordPress (Application Password, the site check and what its messages mean, change sign-in, disconnect, self-hosting key), where pages go with three targets, what goes to WordPress and when a send makes a new draft, the published check, bulk and Library lines, and the webhook and editor guide lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to Framer as draft items (Send to CMS #1331) Connect Framer (API key from Site Settings › General, the card, the collection and field table, marked collections, key replaced or refused, self-hosting: CONNECTOR_CREDENTIALS_KEY, Node 22+, wss://api.framer.com, FRAMER_API_LOG_LEVEL), Framer in where pages go, what goes to Framer and when the page becomes Published, bulk and Library lines, and the webhook and editor guide lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): let a brand's WordPress site be disconnected while the plan has ended Since #1589 a workspace whose plan has ended can't write, but taking back an outside account's access stays open (COST_STOPPING), as Webflow's disconnect does. WordPress's disconnect revokes the Application Password where the site allows, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a page published in WordPress gets its address on its own too (Send to CMS #1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a product grid goes to Framer as a list, and a page published in Framer gets its address on its own (Send to CMS #1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
gkhngyk
added a commit
that referenced
this pull request
Oct 29, 2026
…CMS #1331) (#1722) * docs(content): document sending pages to Webflow and choosing where they go (Send to CMS #1331, phase 2 part 5) Send to CMS's guide covers connecting a brand's Webflow site (site token, scopes, collection and field map, the JSON-LD embed, self-hosting env), choosing Webflow or the workflow in the Send dialog, what a Webflow send does (draft item, updated in place, tables as lists, no images yet, the meta description's fallback), the shared daily cap and the Library mark. The Content Editor guide and the webhook event table say which sends go through the webhook. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say when a page sent to Webflow becomes Published (Send to CMS #1331, #1509) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say who connects Webflow, what Save refuses, the item slug and the 60-day check (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a Send dialog that can't check Webflow sends to your workflow, and says so (review) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site with an Application Password and send pages to it as draft posts (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): mark a page published once its WordPress post is put live, read when the Library opens and daily (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's WordPress site from Settings › Integrations (#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to WordPress from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's WordPress site beside Webflow and the webhook. A remembered CMS that isn't ready goes to the webhook, never the other CMS. The toast says when a live post got a new draft and when JSON-LD was left out. The Library marks rows sent to WordPress and asks /wordpress-status once per brand per visit. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to WordPress as draft posts (Send to CMS #1331) Connect WordPress (Application Password, the site check and what its messages mean, change sign-in, disconnect, self-hosting key), where pages go with three targets, what goes to WordPress and when a send makes a new draft, the published check, bulk and Library lines, and the webhook and editor guide lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to Framer as draft items (Send to CMS #1331) Connect Framer (API key from Site Settings › General, the card, the collection and field table, marked collections, key replaced or refused, self-hosting: CONNECTOR_CREDENTIALS_KEY, Node 22+, wss://api.framer.com, FRAMER_API_LOG_LEVEL), Framer in where pages go, what goes to Framer and when the page becomes Published, bulk and Library lines, and the webhook and editor guide lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): let a brand's WordPress site be disconnected while the plan has ended Since #1589 a workspace whose plan has ended can't write, but taking back an outside account's access stays open (COST_STOPPING), as Webflow's disconnect does. WordPress's disconnect revokes the Application Password where the site allows, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a page published in WordPress gets its address on its own too (Send to CMS #1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): say a product grid goes to Framer as a list, and a page published in Framer gets its address on its own (Send to CMS #1331) Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(content): document sending pages to Wix as draft posts (Send to CMS #1331) The Wix guide beside WordPress's and Framer's: connecting a site with its owner's API key (Wix Blog permissions) and its id, the check and its toasts, a page as a draft post on the Blog with its SEO settings and no images, a published post's draft version written to, and the published check. Wix joins the target order, the daily cap and the status marks; the editor guide and the webhook reference name it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(cms): list the Wix key's permissions, and say a send again drops images added in Wix - send-to-cms.mdx: the key's permissions, in full: Manage Blog (Wix Blog), Manage Ricos Document (Ricos, Wix's converter; the check now tries it), and Read Members only while the Blog has no post. The toast table names the Ricos refusal. Sending a page again replaces the post's text, so images added to it in Wix are removed. - content-editor.mdx: a page published in Wix gets its address on its own too. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Gökhan Geyik <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#1331, phase 2, part 6: a page sent to Webflow becomes Published once it goes live there.
Server (
lib/cms/webflow-status.js)checkWebflowPublished(brandId, { limit }):sent, not yet published) in the last 60 days, newest first. It reads the item withWEBFLOW_GET_COLLECTION_ITEM.https://{host}/{collection slug}/{item slug}, the collection page Webflow makes.webflow.ioaddress (a site published only there), else its first custom domain.auth_failed(only that account).sweepWebflowPublished, next to the catalog sweep) for up to 100 a brand. The sweep covers brands with Webflow connected on an active subscription, in shuffled order, so the 10-minute deadline leaves out different brands each day.POST /api/content-drafts/webflow-status { brandId }: for any member of the brand's workspace. It only writes what Webflow shows. It runs a brand at most every two minutes (in memory, per instance) and is rate-limited withcmsLimiter. The answer is{ checked, published: [{ draftId, url }], recent? }.lib/content-published.js: marking a delivery published (and its page when it's the latest, and a "publish" version in History) is moved out of the webhook callback, unchanged, so both paths share it. The callback's tests pass as they were.lib/cms/webflow.js:listSitesgives each site'shost, andgetItemreads{ slug, live, lastPublished }. A not-found item isnull.Web
Related issue
Part of #1331 (phase 2, Webflow). Stacked on #1506 → #1505 → #1504 → #1503.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Run the unit tests. From
server/:npx vitest run src/lib/cms src/routes/content-drafts-send.test.js src/routes/webhook-content-draft-callback.test.js. Fromweb/: the Library andcms-send-clienttests.With a real site token (yours):
https://{your domain}/{collection}/{slug};WEBFLOW_GET_COLLECTION_ITEMreads the staged item. Even if a send is wrongly closed as removed, its next send updates the same item, becauselastItemtakes the item of any earlier send in the collection, a removed one too.Please check that Composio's
WEBFLOW_GET_COLLECTION_ITEManswers withlastPublished,isDraftandfieldData.slugas Webflow's v2 API names them.Deploy order
After #1503–#1506 (00283, 00284). No new migration or env var. The daily sweep needs no setting: it does nothing without
COMPOSIO_WEBFLOW_AUTH_CONFIG_ID.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): 0 errors; the 6 warnings are in files this PR doesn't touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)A pre-push review found these. Their fixes are the last commit:
{ item }wrapper;Server:
npm run format,npm run lintandnpm test(2,658 passed) pass. Web:yarn test(3,889 passed) andyarn buildpass.🤖 Generated with Claude Code