Repository navigation
feat(server): keep a workspace read-only once its plan has ended - #1589
Merged
gkhngyk merged 1 commit intoOct 27, 2026
Merged
Conversation
On the cloud, an organization whose trial ended or whose plan was cancelled can still read everything, but every write answers 402 `subscription_inactive` until it buys a plan. - requireActiveSubscription runs on /api after decodeToken. - Left open: reads, /billing, the requests that stop a cost or an access (COST_STOPPING), and the onboarding's three AI calls for an organization that never subscribed. - An active organization is remembered per person for 30 s. - Scheduled work skips these organizations: the GSC and GA syncs, page opportunities, the signal catch-up and the Action Center's task runs (filtered in the query). Their queued jobs are cancelled while still waiting. - site-trust and brand-facts give an ended plan its saved reads only, with no scrape. - The task writer and content-pages keep plan-guard's 402 instead of turning it into a 429. Self-hosted is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk On the |
This was referenced Oct 27, 2026
Merged
feat(billing): show the plans in the read-only dialog, with Monthly or Annual and a promo code
#1604
Merged
Merged
gkhngyk
approved these changes
Oct 27, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups.
What I checked:
- Own change. One commit (9040212) on 55b49e7.
git merge-treewith main (5bbd162) is clean. Main's server changes since then (plan-guard.js,plans.jscomments,webhook-dispatch.js,content.js) don't touch anything this PR reads. - Who counts as ended.
- The middleware reads
subscription_statusthroughisSubscriptionActive, the same test plan-guard and daily tracking use. It also readsstripe_subscription_id, but only for the onboarding exception. - The dashboard layout lets in the same two statuses (
evaluateSubscriptionAccess: active, trialing). So the API and the web agree on who is ended. subscription_ends_at,planandplan_overridesaren't read. An organization set toactiveby hand stays open, whatever its period end or Stripe's own state.past_due,unpaid,incomplete,incomplete_expired,pausedandcanceledare all ended. A missing profile or organization counts as ended.- Self-hosted, nothing changes.
isCloud()lets every request through, the sweep filters let every organization through, andsweepTaskExecutionkeeps its old query.
- The middleware reads
- What's refused.
- Every
POST,PUT,PATCHandDELETEunder/api, apart from/billing/…, the five named stops and onboarding's three routes. Underapp.use('/api', …),req.pathis relative to the mount, as the regexes expect. - I tried
/billing/../tracking/checkand its encoded spellings in Express 4.22: they reach no other router (404). Upper-case spellings are refused, so case can't open anything. - The regexes are anchored and linear.
- Every
- GET routes. I read every GET handler on the server.
- None starts tracking, AI or an audit.
- The only two that read a site, site trust (Scrape.do) and brand facts, now answer from what's stored for an ended organization.
- The outside calls left on GET are Composio's (integration status, the Search Console and Analytics property lists) and Webflow's collections, which use the customer's own token.
- The POST routes that only read but call a model or another site are refused: the report summary, fan-out intents, Webflow status, page read, link check and import. That's right for cost; the web part has to expect a 402 from them.
- Billing.
/billing/…(AI usage, cancel feedback) stays open.- Checkout, the portal, plan switches, the trial check and invoices are the web's
/api/stripe/*and never reach this API. Signing out is Supabase. - There's no account deletion.
DELETE /brands/:idis refused (follow-up 3).
- Outside
/api.- The Stripe webhook runs on the web.
- The Cloro callback, the content webhook callbacks,
/bots/ingest,/trackand/api/internal/*are mounted before the middleware. /bots/ingestalready refuses an ended organization through plan-guard's caps (402)./trackkeeps storing visits from an ended organization's site.- The internal routes behind the MCP tools resolve the organization's plan and answer 402 for an ended one: the brief, the site audit and Improve's send.
trigger-trackingandanalyze-volumesare called only by the checkout success route, after it has written the new status.
- Scheduled work.
- Newly filtered: the Search Console and Analytics syncs, page opportunities, the signal catch-up, task runs (in the query) and the waiting-job recovery.
- Already filtered, as the description says: daily tracking, pulse, brand facts, catalog, Webflow status and the traffic digest.
- Auto-audits check the quota before they read an inbox, so an ended organization does no work there.
- The task writer refuses at
reserveAiBudget, before any model call (follow-up 4). - What's left is database upkeep: rollups, counters and pruning.
jobs.brand_idisNOT NULLandcancelledis allowed byjobs_status_check, socancelWaitingJobcan't fail on either. Jobs still queued in this process are left out before the check, so a job waiting for a free slot is never cancelled.
- Failure and cache.
- A failed profile or organization read answers 500 to the write and never lets it through. A failed read in a sweep runs the sweep for no organization.
- Only "active" is remembered, per person, for 30 s. A plan bought now works on the next request; a cancellation takes up to 30 s to be enforced.
- API keys and MCP. These requests never reach this middleware: MCP and
/v1run on the web withans_keys. The paid MCP tools go through/api/internal/*, which plan-guard refuses for an ended organization. The free MCP writes (statuses, accepting a suggestion, a sentiment override) stay open until the web part. - Tests.
- The PR's 15 test files, 271 tests, all pass at the head.
- Under the same tests with 55b49e7's source files, the two new files don't load and 22 of the others' tests fail.
- The whole server suite on the merge with main passes, apart from timing tests in
content-people.test.js. Those fail the same way on main alone on this machine and aren't touched here.
Before and after the API deploy:
- Merging changes nothing until the API is deployed by hand.
- With this API and today's web, users see no change:
- The dashboard already sends an ended workspace's admins to the plan step and shows other members the "plan ended" notice, so nobody there reaches a page that writes through the API.
- The resumed plan step calls no API route. The onboarding suggestions need a brand loaded in the wizard, and the resume doesn't load one.
- Someone whose plan ends during a session gets the 402 on their next write. The web's
api-failure.tsreads a 402 as a plan problem, and themessageis readable. Their next page load takes them to the plan step.
- The first job-recovery pass after the deploy cancels any waiting tracking or content job of an ended organization.
- Deploy this API before the web part merges. Several AI and page-reading routes on today's API leave the plan to this middleware. If the web lets ended workspaces into the dashboard while the old API runs, those routes are open to them.
Follow-ups:
- Reads that cost nothing but still fail for an ended workspace. These matter once the web part lets ended workspaces in.
GET /volumes/brand/:brandId(volumes.js:483) reads the volumes, thengetVolumeQuotaStatus. For an ended organization that throws aPlanLimitErrorwith nostatus, so the catch at:488answers 500 and the stored volumes are lost.GET /bots/connections/:brandIdanswers 402 (getBotEventCap,bots.js:74).GET /audits/settings,GET /audits/quota,GET /content/usage,GET /content/briefs/quotaandGET /billing/ai-usageanswer 402 too.- On these GETs, read the quota or caps with a "no plan" fallback (for example
quota: null,cap: 0), so what's stored still comes back. At leastvolumes/brandshould stop answering 500. - The
requireFeaturereads the description lists (/prompts/:id/improve,/volumes/status,/content/prompts/:id/suggestion) belong with these.
- Bound the onboarding routes.
/topics/suggest,/prompts/from-topicsand/competitors/suggeststay open to a workspace that never subscribed, as before, with only the global API limiter on them. A small per-workspace allowance while there's no plan would bound the work. For example, a few calls a day, counted per organization. - Removing what the person gave us.
- When a store connector that keeps a sign-in lands, its
disconnectrevokes that sign-in at the platform. AddDELETE /catalog/sources/:id(catalog.js:148) toCOST_STOPPINGthen. DELETE /brands/:idonly removes data. Whether an ended workspace may delete its brand without buying first is a product call./billingis open by prefix, while every other route is named. NamingPOST /billing/cancel-feedbackwould hold billing to the same rule, so a future billing route that costs isn't let through by its path.
- When a store connector that keeps a sign-in lands, its
- The task writer's nightly read.
sweepActionTasksreads 20 recent actions with no tasks yet (task-writer/index.js:495). An ended organization's actions from its last three days keep their place in that read, because each is refused and never stamped. They push out actions from organizations still on a plan, as the task runs' old tasks did before you moved that filter into the query. The samebrands!inner(organizations!inner(subscription_status))filter fits here.
On the questions in the description:
past_due: this matches what the web does today. Daily tracking already skips it, and the dashboard already sends its admins to the plan step, so this PR doesn't make it stricter. If there's to be a grace period, it belongs inisSubscriptionActiveon both the server and the web. One way:past_duecounts as active untilsubscription_ends_atplus a few days.- Composio reads: fine to leave open. They're the person's own accounts, and the read-only Settings page needs them.
7 of 12 tasks
gkhngyk
added a commit
that referenced
this pull request
Oct 27, 2026
… ended (#1608) * feat(server): keep a workspace read-only once its plan has ended On the cloud, an organization whose trial ended or whose plan was cancelled can still read everything, but every write answers 402 `subscription_inactive` until it buys a plan. - requireActiveSubscription runs on /api after decodeToken. - Left open: reads, /billing, the requests that stop a cost or an access (COST_STOPPING), and the onboarding's three AI calls for an organization that never subscribed. - An active organization is remembered per person for 30 s. - Scheduled work skips these organizations: the GSC and GA syncs, page opportunities, the signal catch-up and the Action Center's task runs (filtered in the query). Their queued jobs are cancelled while still waiting. - site-trust and brand-facts give an ended plan its saved reads only, with no scrape. - The task writer and content-pages keep plan-guard's 402 instead of turning it into a 429. Self-hosted is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(server): stop every automatic process for a workspace whose plan ended A follow-up to the read-only API (#1589). On the cloud, nothing runs or is taken in for an organization without an active subscription: - Jobs (tracking, content, retries, the internal trigger) are cancelled when claimed, with failed_reason subscription_inactive (cancelClaimedJob). So nothing they start runs: content opportunities, clusters, site pages. - The signal pass, and the actions it raises, skip these organizations at every entry, not only the catch-up. - The task writer's sweep filters in SQL, so they can't fill its list. - Volume analysis (the internal analyze-volumes) stops. - A Cloro result for one is dropped and its pending row removed: saving it would call the LLM for sentiment. - Ingest: - /bots/ingest answers 200 and reads nothing; - /track (visits, CE-017 events) answers 204 and writes nothing; - the content and content-draft webhooks answer 202 once their secret checks, and write nothing. The sender never sees an error to retry. - isBrandActive, plus a 5-minute cache for these outside events (isOrgActiveCached, isBrandActiveCached): one read per brand at once, failed reads not kept, 10,000 entries at most. A new plan reaches ingest within 5 minutes. Database upkeep (rollups, counters, validation, clean-ups) still runs; none of it raises an action. Self-hosted is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(server): never drop a paying workspace's data while checking whether its plan ended (read-only automation review) - "Not active" is remembered for at most 60 s ("active" stays 5 min). A Cloro result is dropped only on a fresh read that says so. - On a failed read, the Cloro callback and /track count the workspace as active and keep the data. The pending Cloro row is removed only once the result is saved. - /bots/ingest re-reads on a PlanLimitError. It answers NOT_STORED only for a workspace that isn't active; otherwise 500, so the sender retries. - /track checks the plan after the body, so a bad body gets the same 400 either way. - A claimed job whose cancel fails is failed, not left active. - The Cloro callback moved to routes/cloro-callback.js, to be tested as a route. The plan check runs there, before any brand reads. 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 was referenced Oct 27, 2026
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 27, 2026
Ansvisor's decision (2026-10-27), the product call on ansvisor#1589's follow-up 3: DELETE /brands/:id only removes what the person gave us, so it joins a new DATA_REMOVAL list, open whatever the plan. Admins only, as before; every other brand write stays closed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 27, 2026
Merged
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 28, 2026
… has ended Since ansvisor#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]>
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 28, 2026
… has ended Since ansvisor#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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 of 12 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Oct 28, 2026
Ansvisor's decision (2026-10-27), the product call on #1589's follow-up 3: DELETE /brands/:id only removes what the person gave us, so it joins a new DATA_REMOVAL list, open whatever the plan. Admins only, as before; every other brand write stays closed. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
7 of 12 tasks
gkhngyk
added a commit
that referenced
this pull request
Oct 28, 2026
…ord and send pages to it as draft posts (#1331) (#1569) * 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]> * 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]> --------- 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
… read when the Library opens and daily (#1331) (#1570) * 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]> * 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]> --------- 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
…ons (#1331) (#1571) * 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]> * 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]> * 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. --------- 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
* 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]> * 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]> * 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
…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
…1575) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. 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 28, 2026
…1331) (#1576) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to a brand's Framer collection as draft items (#1331) writeItem adds a draft item (draft: true) or updates the one the page's last Framer send made in that collection, keeping its state; the new id is read back by slug among new items, a clashing slug stops the send, and a draft with the page's slug and title left by a send that broke halfway is taken back. framer-items.js keeps tables (Framer's rich text has them), leaves media out and counts it, and maps title, page, meta and JSON-LD to the brand's fields. content-delivery.js gains the 'framer' target. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): send a product card or grid to Framer as a list, as to Webflow Main's product blocks (#1607) are a grid of linked cards; Framer's formatted text has no grid, so the cards ran together in one paragraph. They now go as Webflow's do (productsAsList): a list, a product an item, its name linked and its price after it. 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 28, 2026
…site (#1331) (#1579) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to a brand's Framer collection as draft items (#1331) writeItem adds a draft item (draft: true) or updates the one the page's last Framer send made in that collection, keeping its state; the new id is read back by slug among new items, a clashing slug stops the send, and a draft with the page's slug and title left by a send that broke halfway is taken back. framer-items.js keeps tables (Framer's rich text has them), leaves media out and counts it, and maps title, page, meta and JSON-LD to the brand's fields. content-delivery.js gains the 'framer' target. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): mark a page published once its Framer item is live on the site (#1331) framer-status.js reads each page's latest Framer send (Library open and a daily sweep): an item out of draft, with a production publish after the send and after the item's last change, is published at the site's address plus the collection page's path with its slug; an item gone closes its send as "Removed in Framer". readPublished reads items, the publish and the detail page over one connection. POST /api/content-drafts/framer-status. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): send a product card or grid to Framer as a list, as to Webflow Main's product blocks (#1607) are a grid of linked cards; Framer's formatted text has no grid, so the cards ran together in one paragraph. They now go as Webflow's do (productsAsList): a list, a product an item, its name linked and its price after it. 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 28, 2026
…ons (#1331) (#1578) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): open the plan dialog from the Framer card while the workspace is read-only Connect, Replace key and Save open it before anything is sent, and a connect, save or disconnect the API refuses for the plan opens it instead of an error. Disconnect stays open, as WordPress's and Webflow's. --------- 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
* 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to Framer from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's Framer collection beside Webflow, WordPress and the webhook, in a 2x2 grid when all four are there. Framer is ready with a collection and its title and page fields; a remembered CMS that isn't ready goes to the webhook. The toast says made or updated, images left out, and that a non-draft item's change waits for the site's next publish. The Library marks rows sent to Framer and asks /framer-status once per brand per visit. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. 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 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
…is saved (#1719) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(settings): say Framer's set-up isn't finished until a collection is saved As on the Webflow card (#1601): - Connected without a collection, the Framer card shows an amber "Setup not finished" badge, not "Connected", until a collection is saved. - Connecting leaves the setup's last step: the toast says to pick a collection and save, and the collection picker takes the focus. A new key for the same project keeps its collection and says "Framer connected", as before. - Admins and managers see the last step spelled out above the picker. Members read that pages can't go to Framer until an admin or manager finishes the setup. 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
…nd pages to its Blog as draft posts (#1331) (#1721) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to Framer from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's Framer collection beside Webflow, WordPress and the webhook, in a 2x2 grid when all four are there. Framer is ready with a collection and its title and page fields; a remembered CMS that isn't ready goes to the webhook. The toast says made or updated, images left out, and that a non-draft item's change waits for the site's next publish. The Library marks rows sent to Framer and asks /framer-status once per brand per visit. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Wix site with its owner's API key and send pages to its Blog as draft posts (#1331) Send to CMS, Wix (phase 2), server. After Webflow, WordPress and Framer, a brand connects its Wix site: the site's id (or its dashboard's address) and an API key its owner makes in Wix's API Keys Manager with the Wix Blog permissions. Pages go to the site's Blog as draft posts; nothing publishes. - 00372: brand_cms_connections and content_draft_deliveries take 'wix' (site_id and the posts' owner member in `account`); the key is sealed in brand_cms_credentials as WordPress's sign-in is; reserve_content_deliveries keeps a page from being sent to Wix twice at once. Applied on the dev DB. - lib/cms/wix.js: Authorization: <key> with wix-site-id; checkSite (the Blog answers, a member owns the posts: its newest post's, else its first member; the site's name when the key may read it); the page's HTML turned into Wix's rich content by Wix's converter in pieces of 10,000 characters; draft posts created, read and updated, a live post as its draft version (UPDATE_PUBLICATION), never the post people read. - lib/cms/wix-delivery.js: a page updates the post its last send made on that site, else makes one; title, meta description and JSON-LD go as the post's SEO tags; images stay out and are counted; a refused key marks the connection for a new one. - routes/cms-wix.js: GET / POST { siteId, apiKey } / DELETE, admins and managers to write; the key is never logged or sent back. Disconnecting works after a plan ends. content-delivery.js sends target 'wix'. Real Wix keys are tried by the maintainer; tests run against a fake of the API (its answers as Wix's reference shows them). Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): escape "<" in the JSON-LD sent to Wix as a post's SEO script The JSON-LD goes in a script tag of the post's SEO settings. A "<" in it (a headline quoting "</script>", for example) could end that tag. Every "<" is now written as <, as Webflow's JSON-LD field already is; the JSON reads the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): write a scheduled Wix post as a draft, not as a published post's changes A page whose post was scheduled in Wix was written with UPDATE_PUBLICATION, which Wix keeps for a post that's already published (it writes the post's draft version). A scheduled post isn't published yet, so it's now written with UPDATE, as a draft is. A published post still goes as its draft version. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): keep the Wix post's id when the answer to an update leaves it out A send that updated a post kept the id Wix's answer gave. Without one, the delivery kept no post, and the page's next send made a second post beside it. The id of the post read before the update is kept instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): check that a Wix key may use the Ricos converter before it's kept A page goes to Wix through Wix's converter (HTML to its rich content), which needs the Ricos permission (Manage Ricos Document) beside the Blog's. A key with the Blog's permissions only connected, then every send failed. Before a key is kept, the converter is now tried on a line of text (Wix keeps nothing of it); a refusal there answers no_ricos_permission, which says to add the permission to the key. A send refused by the converter says the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): give a Wix post's address https:// when Wix sends it without a scheme Wix can give a post's address without its scheme (mysite.wixsite.com/mysite/post/x). Kept as it came, it wasn't a web address: the Library's link and the published check couldn't use it. webAddress() adds https:// to such an address (and to a //host one), keeps an http(s) one, and gives null for anything else; a draft post's address goes through it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): send Wix's converter pieces near its limit, and split a long block by its parts A page went to Wix's converter in pieces of 10,000 characters, though it takes 30,000: pieces are now up to 29,000, so a long page takes fewer requests. A single block longer than that went as its bare text, cut every few thousand characters, mid-word. It's now split among its children, each piece in a copy of its tag: a long list's items in lists, a table's rows in tables, a paragraph's text in paragraphs with its links and styles kept, always between words. Only a block with nothing to split it by (a tag taking half the room) still goes as its text, between words. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(cms): cover Send to CMS's route to Wix as WordPress's is covered content-delivery's Wix target had no test of its own. As for WordPress: a page goes to sendToWix with the brand's connection (p_target 'wix', the post kept on the delivery, no webhook); wix_not_configured, no_wix and wix_refused refuse before reserving (a WordPress connection isn't a Wix one); a page on its way names Wix; a refused key stops a batch and closes the rest with the reason. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(cms): name Wix in brand_cms_connections.site_name's comment (00372) 00372 updated the comments of site_id and account for Wix, not site_name's, which still named Webflow, WordPress and Framer only. It now says a Wix connection keeps the site's display name there, when the key may read it. schema.sql rebuilt. 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
…d send pages to it from Send to CMS (#1331) (#1749) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to Framer from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's Framer collection beside Webflow, WordPress and the webhook, in a 2x2 grid when all four are there. Framer is ready with a collection and its title and page fields; a remembered CMS that isn't ready goes to the webhook. The toast says made or updated, images left out, and that a non-draft item's change waits for the site's next publish. The Library marks rows sent to Framer and asks /framer-status once per brand per visit. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Wix site with its owner's API key and send pages to its Blog as draft posts (#1331) Send to CMS, Wix (phase 2), server. After Webflow, WordPress and Framer, a brand connects its Wix site: the site's id (or its dashboard's address) and an API key its owner makes in Wix's API Keys Manager with the Wix Blog permissions. Pages go to the site's Blog as draft posts; nothing publishes. - 00372: brand_cms_connections and content_draft_deliveries take 'wix' (site_id and the posts' owner member in `account`); the key is sealed in brand_cms_credentials as WordPress's sign-in is; reserve_content_deliveries keeps a page from being sent to Wix twice at once. Applied on the dev DB. - lib/cms/wix.js: Authorization: <key> with wix-site-id; checkSite (the Blog answers, a member owns the posts: its newest post's, else its first member; the site's name when the key may read it); the page's HTML turned into Wix's rich content by Wix's converter in pieces of 10,000 characters; draft posts created, read and updated, a live post as its draft version (UPDATE_PUBLICATION), never the post people read. - lib/cms/wix-delivery.js: a page updates the post its last send made on that site, else makes one; title, meta description and JSON-LD go as the post's SEO tags; images stay out and are counted; a refused key marks the connection for a new one. - routes/cms-wix.js: GET / POST { siteId, apiKey } / DELETE, admins and managers to write; the key is never logged or sent back. Disconnecting works after a plan ends. content-delivery.js sends target 'wix'. Real Wix keys are tried by the maintainer; tests run against a fake of the API (its answers as Wix's reference shows them). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Wix site from Settings › Integrations and send pages to it from Send to CMS (#1331) Send to CMS, Wix (phase 2), web. The API connects a brand's Wix site and sends pages to its Blog as draft posts (PR 1); here a person does it. - lib/wix-client.ts: the connection read, connected with { siteId, apiKey } and disconnected through the API's proxy; the key goes to the API once. - Settings › Integrations › Wix (wix-card.tsx): admins and managers paste the site's id (or its dashboard's address) and an API key, change the key and disconnect (the key is deleted here; the card says to delete it in Wix's API Keys Manager too); members see where pages go. A refused key asks to connect again. - Send to CMS: Wix is a target beside Webflow, WordPress and Framer, in the editor's dialog and the Library's bulk send (five cards go three in a row); "A draft post on {site}'s Blog"; the toast says how many images stayed out; Wix's errors in our words; the Library's mark says "In Wix as a draft post". Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): escape "<" in the JSON-LD sent to Wix as a post's SEO script The JSON-LD goes in a script tag of the post's SEO settings. A "<" in it (a headline quoting "</script>", for example) could end that tag. Every "<" is now written as <, as Webflow's JSON-LD field already is; the JSON reads the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): write a scheduled Wix post as a draft, not as a published post's changes A page whose post was scheduled in Wix was written with UPDATE_PUBLICATION, which Wix keeps for a post that's already published (it writes the post's draft version). A scheduled post isn't published yet, so it's now written with UPDATE, as a draft is. A published post still goes as its draft version. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): keep the Wix post's id when the answer to an update leaves it out A send that updated a post kept the id Wix's answer gave. Without one, the delivery kept no post, and the page's next send made a second post beside it. The id of the post read before the update is kept instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): check that a Wix key may use the Ricos converter before it's kept A page goes to Wix through Wix's converter (HTML to its rich content), which needs the Ricos permission (Manage Ricos Document) beside the Blog's. A key with the Blog's permissions only connected, then every send failed. Before a key is kept, the converter is now tried on a line of text (Wix keeps nothing of it); a refusal there answers no_ricos_permission, which says to add the permission to the key. A send refused by the converter says the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): give a Wix post's address https:// when Wix sends it without a scheme Wix can give a post's address without its scheme (mysite.wixsite.com/mysite/post/x). Kept as it came, it wasn't a web address: the Library's link and the published check couldn't use it. webAddress() adds https:// to such an address (and to a //host one), keeps an http(s) one, and gives null for anything else; a draft post's address goes through it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): send Wix's converter pieces near its limit, and split a long block by its parts A page went to Wix's converter in pieces of 10,000 characters, though it takes 30,000: pieces are now up to 29,000, so a long page takes fewer requests. A single block longer than that went as its bare text, cut every few thousand characters, mid-word. It's now split among its children, each piece in a copy of its tag: a long list's items in lists, a table's rows in tables, a paragraph's text in paragraphs with its links and styles kept, always between words. Only a block with nothing to split it by (a tag taking half the room) still goes as its text, between words. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(cms): cover Send to CMS's route to Wix as WordPress's is covered content-delivery's Wix target had no test of its own. As for WordPress: a page goes to sendToWix with the brand's connection (p_target 'wix', the post kept on the delivery, no webhook); wix_not_configured, no_wix and wix_refused refuse before reserving (a WordPress connection isn't a Wix one); a page on its way names Wix; a refused key stops a batch and closes the rest with the reason. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(cms): name Wix in brand_cms_connections.site_name's comment (00372) 00372 updated the comments of site_id and account for Wix, not site_name's, which still named Webflow, WordPress and Framer only. It now says a Wix connection keeps the site's display name there, when the key may read it. schema.sql rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(cms): count Wix in cms-target's comments, and wrap the long line The Send dialog's target hook and picker said "Webflow, WordPress and Framer" where Wix is one of them too, and Wix's line in the header comment ran past the others. Comments only. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): say in Settings when a Wix key lacks the Ricos permission The API now refuses a Wix key that may write the Blog but not use Wix's converter (no_ricos_permission). The Wix card names that reason: the key needs the Ricos permission (Manage Ricos Document) too. The key's hint lists both permissions it needs: Manage Blog and Manage Ricos Document. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): open the plan dialog from the Wix card while the workspace is read-only Connect and Change API key open it before anything is sent, and a connect or disconnect the API refuses for the plan opens it instead of an error. Disconnect stays open, as WordPress's, Framer's and Webflow's. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): name Wix among a page's last-send targets in the MCP The drafts tools' description and McpLastSend's comment listed webhook, Webflow, WordPress and Framer only, while the last-send reader already returns wix. Tests read a Wix send back as Wix and check the description names every target. --------- 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
… the Library opens and daily (#1331) (#1750) * 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]> * chore(server): run the API on Node 24 Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS #1331) needs Node 22 or later for its global WebSocket. Node 24 is LTS until April 2028. The Dockerfile, CI's server job and the server README move to 24; the web job stays on 20. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project for Send to CMS (#1331) Framer's official Server API (framer-api, needs Node 22+): a brand's project connects with an API key made in it, sealed as WordPress's sign-in is. 00295 adds provider 'framer' (site_id = project id) and the 'framer' delivery target, and reserve_content_deliveries keeps one queued send per page for it too. Routes check the project, list the user's own collections with their fields, save the collection and field map (title to text, page to formatted text, required fields refused as for Webflow) and disconnect (Framer has no API to revoke a key). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Framer project from Settings › Integrations (#1331) The Framer card connects the brand's project with an API key made in it, lists the project's own collections with their fields, suggests and saves which field takes the title, the page, meta and JSON-LD (required fields it can't fill and missing title or page fields marked), replaces the key, shows a refused key, and disconnects with a reminder to delete the key in Framer, which has no API to revoke it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): send pages to Framer from Send to CMS (#1331) The Send dialog (editor, Library row, bulk) offers the brand's Framer collection beside Webflow, WordPress and the webhook, in a 2x2 grid when all four are there. Framer is ready with a collection and its title and page fields; a remembered CMS that isn't ready goes to the webhook. The toast says made or updated, images left out, and that a non-draft item's change waits for the site's next publish. The Library marks rows sent to Framer and asks /framer-status once per brand per visit. 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]> * fix(cms): let a brand's Framer project 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 and WordPress's disconnects do. Framer's disconnect deletes the project's API key, so it joins the list. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Wix site with its owner's API key and send pages to its Blog as draft posts (#1331) Send to CMS, Wix (phase 2), server. After Webflow, WordPress and Framer, a brand connects its Wix site: the site's id (or its dashboard's address) and an API key its owner makes in Wix's API Keys Manager with the Wix Blog permissions. Pages go to the site's Blog as draft posts; nothing publishes. - 00372: brand_cms_connections and content_draft_deliveries take 'wix' (site_id and the posts' owner member in `account`); the key is sealed in brand_cms_credentials as WordPress's sign-in is; reserve_content_deliveries keeps a page from being sent to Wix twice at once. Applied on the dev DB. - lib/cms/wix.js: Authorization: <key> with wix-site-id; checkSite (the Blog answers, a member owns the posts: its newest post's, else its first member; the site's name when the key may read it); the page's HTML turned into Wix's rich content by Wix's converter in pieces of 10,000 characters; draft posts created, read and updated, a live post as its draft version (UPDATE_PUBLICATION), never the post people read. - lib/cms/wix-delivery.js: a page updates the post its last send made on that site, else makes one; title, meta description and JSON-LD go as the post's SEO tags; images stay out and are counted; a refused key marks the connection for a new one. - routes/cms-wix.js: GET / POST { siteId, apiKey } / DELETE, admins and managers to write; the key is never logged or sent back. Disconnecting works after a plan ends. content-delivery.js sends target 'wix'. Real Wix keys are tried by the maintainer; tests run against a fake of the API (its answers as Wix's reference shows them). Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): connect a brand's Wix site from Settings › Integrations and send pages to it from Send to CMS (#1331) Send to CMS, Wix (phase 2), web. The API connects a brand's Wix site and sends pages to its Blog as draft posts (PR 1); here a person does it. - lib/wix-client.ts: the connection read, connected with { siteId, apiKey } and disconnected through the API's proxy; the key goes to the API once. - Settings › Integrations › Wix (wix-card.tsx): admins and managers paste the site's id (or its dashboard's address) and an API key, change the key and disconnect (the key is deleted here; the card says to delete it in Wix's API Keys Manager too); members see where pages go. A refused key asks to connect again. - Send to CMS: Wix is a target beside Webflow, WordPress and Framer, in the editor's dialog and the Library's bulk send (five cards go three in a row); "A draft post on {site}'s Blog"; the toast says how many images stayed out; Wix's errors in our words; the Library's mark says "In Wix as a draft post". Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(cms): mark a page published once its Wix post is live, read when the Library opens and daily (#1331) Send to CMS, Wix (phase 2), the published check, as WordPress's and Framer's. Wix calls nothing back when a post goes live, so Ansvisor reads the posts its sends made. - lib/cms/wix-status.js: each page's latest send to the connected site (60 days back), its draft post read with the key: PUBLISHED with no changes left unpublished marks the page published at the post's address; a live post whose draft version holds the send's changes waits for the person to publish them; a post deleted or gone closes its send; a key refused stops the check and marks the connection. Daily for brands on an active plan, shuffled, under a deadline. - wix.js reads hasUnpublishedChanges as `pending`. - POST /api/content-drafts/wix-status: any member, a brand at most every two minutes; server.js runs the daily sweep beside WordPress's. - Web: the Library asks once per brand per visit when a page sits in Wix as a draft post, and reads the list again when any went live. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): escape "<" in the JSON-LD sent to Wix as a post's SEO script The JSON-LD goes in a script tag of the post's SEO settings. A "<" in it (a headline quoting "</script>", for example) could end that tag. Every "<" is now written as <, as Webflow's JSON-LD field already is; the JSON reads the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): write a scheduled Wix post as a draft, not as a published post's changes A page whose post was scheduled in Wix was written with UPDATE_PUBLICATION, which Wix keeps for a post that's already published (it writes the post's draft version). A scheduled post isn't published yet, so it's now written with UPDATE, as a draft is. A published post still goes as its draft version. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): keep the Wix post's id when the answer to an update leaves it out A send that updated a post kept the id Wix's answer gave. Without one, the delivery kept no post, and the page's next send made a second post beside it. The id of the post read before the update is kept instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): check that a Wix key may use the Ricos converter before it's kept A page goes to Wix through Wix's converter (HTML to its rich content), which needs the Ricos permission (Manage Ricos Document) beside the Blog's. A key with the Blog's permissions only connected, then every send failed. Before a key is kept, the converter is now tried on a line of text (Wix keeps nothing of it); a refusal there answers no_ricos_permission, which says to add the permission to the key. A send refused by the converter says the same. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): give a Wix post's address https:// when Wix sends it without a scheme Wix can give a post's address without its scheme (mysite.wixsite.com/mysite/post/x). Kept as it came, it wasn't a web address: the Library's link and the published check couldn't use it. webAddress() adds https:// to such an address (and to a //host one), keeps an http(s) one, and gives null for anything else; a draft post's address goes through it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): send Wix's converter pieces near its limit, and split a long block by its parts A page went to Wix's converter in pieces of 10,000 characters, though it takes 30,000: pieces are now up to 29,000, so a long page takes fewer requests. A single block longer than that went as its bare text, cut every few thousand characters, mid-word. It's now split among its children, each piece in a copy of its tag: a long list's items in lists, a table's rows in tables, a paragraph's text in paragraphs with its links and styles kept, always between words. Only a block with nothing to split it by (a tag taking half the room) still goes as its text, between words. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(cms): cover Send to CMS's route to Wix as WordPress's is covered content-delivery's Wix target had no test of its own. As for WordPress: a page goes to sendToWix with the brand's connection (p_target 'wix', the post kept on the delivery, no webhook); wix_not_configured, no_wix and wix_refused refuse before reserving (a WordPress connection isn't a Wix one); a page on its way names Wix; a refused key stops a batch and closes the rest with the reason. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(cms): name Wix in brand_cms_connections.site_name's comment (00372) 00372 updated the comments of site_id and account for Wix, not site_name's, which still named Webflow, WordPress and Framer only. It now says a Wix connection keeps the site's display name there, when the key may read it. schema.sql rebuilt. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(cms): count Wix in cms-target's comments, and wrap the long line The Send dialog's target hook and picker said "Webflow, WordPress and Framer" where Wix is one of them too, and Wix's line in the header comment ran past the others. Comments only. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): say in Settings when a Wix key lacks the Ricos permission The API now refuses a Wix key that may write the Blog but not use Wix's converter (no_ricos_permission). The Wix card names that reason: the key needs the Ricos permission (Manage Ricos Document) too. The key's hint lists both permissions it needs: Manage Blog and Manage Ricos Document. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): mark a Wix page published when its post's address comes without a scheme The published check took a post's address only when it began with http(s)://, so a post Wix gave as mysite.wixsite.com/mysite/post/x stayed "In Wix as a draft post" after it went live. The check now reads the address through webAddress(): such an address gets https://, one with no host still waits. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(cms): open the plan dialog from the Wix card while the workspace is read-only Connect and Change API key open it before anything is sent, and a connect or disconnect the API refuses for the plan opens it instead of an error. Disconnect stays open, as WordPress's, Framer's and Webflow's. 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
Read-only once the plan has ended: the API. On the cloud, a workspace whose free trial ended, or whose plan was cancelled, can still sign in and look around. Nothing it does may change anything or cost us anything until it buys a plan: no tracking, no scraping, no AI, no agents, no audits, no sends. This PR is the server's part. The web's part (the "Upgrade your plan" dialog, letting these workspaces into the dashboard, and the MCP tools) is a separate PR from main. Self-hosted, nothing changes.
middleware/subscription.js(requireActiveSubscription) runs on/apiright afterdecodeToken, before every route.POST,PUT,PATCHorDELETEgets 402{ error: 'plan_limit', code: 'subscription_inactive', message }while their organization's subscription isn'tactiveortrialing. That's the existingisSubscriptionActive.reads (
GET,HEAD,OPTIONS): looking around is the point;/billing/…: choosing or cancelling a plan;COST_STOPPING: requests that end a cost or an access, named route by route so nothing gets in by its name alone:DELETE /tracking/job/:id, cancelling a tracking job;POST /content-drafts/:id/stop, stopping the Content Agent;DELETE /integrations/:provider, disconnecting Search Console or Analytics;DELETE /cms/brands/:id/webflow;DELETE /bots/connections/:brandId/:id.A person can always take back access to their own accounts.
ONBOARDING_ROUTES, only for an organization that never had a subscription (nostripe_subscription_id):POST /topics/suggest,/prompts/from-topicsand/competitors/suggest, the onboarding's own calls before the plan step. The person's ownonboarding_completedflag isn't trusted; Stripe keeps the subscription id after a cancellation, so an ended trial never gets this.DELETE /brands/:idstays refused: only buying is open.Scheduled work skips these organizations on the cloud. It's filtered in the query where a cap applies (
lib/active-subscriptions.js:activeOrgFilter,activeBrandFilter,isOrgActive, in chunks of 100):gsc-sync.js,ga-sync.js);page-opportunities.js);signals/pass.js);execution/run.js).actions!inner(… brands!inner(organizations!inner(subscription_status))). So an ended organization's old tasks can't fill the 1,000-row read and push out the active ones.cancelWaitingJob). It's only while stillwaiting, withfailed_reason: 'subscription_inactive'.Reads that cost:
GET /audits/site-trustgives an ended organization its saved read only, however old. With none it answers 402, and nothing is scraped (no Scrape.do).GET /brand-factsgives the saved facts only. Nothing is read from the site, now or in the background.402s that were reported as something else:
action-center.js's task writer turned plan-guard's 402 into a 429 "budget"; now 402plan_limit.content-pages.js(source classes, claims) did the same; now 402no_subscription, as the editor's other routes answer.Related issue
None. Product decision (Ansvisor, 2026-10-27): an ended trial or plan browses read-only until it buys.
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
cd server && npx vitest run src/middleware/subscription.test.js src/lib/active-subscriptions.test.js src/lib/job-manager.test.js src/lib/job-runner.test.js src/lib/action-center/execution/run.test.js src/lib/gsc-sync.test.js src/lib/ga-sync.test.js src/lib/page-opportunities.test.js src/lib/signals/pass.test.js src/lib/site-trust.test.js src/lib/brand-facts.test.js src/routesIS_CLOUD), set an organization'ssubscription_statustocanceled(with astripe_subscription_id):GETstill answers;POST(e.g./api/tracking/check) answers 402subscription_inactive;DELETE /api/tracking/job/:idand/api/billing/…still work.active: the next write goes through.The middleware's place in
server.jsis tested by reading the source:routesis mounted only behinddecodeToken → requireActiveSubscription.server.jscan't be imported in tests.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) — no web changeyarn typecheckpasses (run fromweb/) — no web changeyarn format:checkpasses (run fromweb/) — no web changeAlso run, in
server/:npm run format,npm run lintandnpm test(2,982 tests pass).bash supabase/build-schema.shleavesschema.sqlunchanged (no migration).The pre-push review's findings are folded in:
For gkhngyk:
past_dueisn't active (isSubscriptionActiveis unchanged). A paying customer whose card was refused is read-only while Stripe retries. Say if that should get a grace period.requireFeatureanswer 402 for an ended plan, as before:GET /prompts/:id/improve,/volumes/status,/content/prompts/:id/suggestion. So a saved Improve suggestion isn't shown while browsing. Opening those reads to an ended plan would be its own change to plan-guard.🤖 Generated with Claude Code