Repository navigation
feat(cms): send pages to Framer from Send to CMS (#1331) - #1580
Merged
gkhngyk merged 54 commits intoOct 28, 2026
Merged
Conversation
…ord and send pages to it as draft posts (ansvisor#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… read when the Library opens and daily (ansvisor#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ons (ansvisor#1331) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ss-server # Conflicts: # server/src/lib/content-delivery.test.js # supabase/schema.sql
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]>
Node 20 is end of life since 2026-04-30, and Framer's official Server API package (framer-api, for Send to CMS ansvisor#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]>
…re/cms-framer-server
…#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]>
…feature/cms-framer-settings
…ons (ansvisor#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]>
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]>
4 of 12 tasks
This was referenced Oct 27, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 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]>
…s-published Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ress-web Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r-server Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 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]>
…ings Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tings Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd-target Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Collaborator
Author
gkhngyk
approved these changes
Oct 28, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good
Reviewed this PR's own change: #1578's head 666028d → fb1811d, 12 web files. The branch holds #1578 (and #1575, #1569–#1572), but not #1576 or #1579. It needs their API (target: 'framer' and /framer-status), so merge it after both. On main (cfd8a35) it conflicts in the same three files as #1572 (_bulk-send-dialog.tsx, library/page.tsx, send-to-cms-dialog.tsx), and this PR's own diff edits all three. Once #1572 is resolved, merge #1578's new head here and keep both sides: WordPress's lines from #1572 and Framer's from here.
What I checked
- Picking the target.
useCmsTargetreads Webflow, WordPress and Framer together. Framer counts as ready under the API's own rule (framerFor): connected, a collection, and title and body fields. The order is Webflow, WordPress, Framer, then the webhook. A remembered CMS that's connected but not ready still sends to the webhook, never to another CMS. A remembered one that can't be read is named, with Try again. - The dialog and bulk send. Framer's description, the "made" and "updated" toasts, the images note and the "goes live with the next publish" note for a
liveitem all match what #1576 returns. The fourframer_*refusals have their own messages. - The Library.
/framer-statusis asked once per brand per visit, only when a listed row was sent to Framer and is stillsent. "Removed in Framer" shows as the reason. - Before the API is deployed: Framer's read fails and Framer is left out of the picker. Only someone who picked Framer before (nobody yet) would see the "couldn't check" note. Nothing changes for Webflow, WordPress or the webhook.
- Tests: content, Library and send-client tests pass (part of the 421 above).
tsc --noEmitand eslint/prettier are clean on the touched files.
4 of 12 tasks
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
Send to CMS, phase 2 (#1331): Framer, part 5. The Send dialog sends to the brand's Framer collection: from the editor, a Library row and the Library's bulk send. The Library reads which Framer items went live.
Stacked on #1578 (the Settings card), which is stacked on #1575 and #1572. It uses the API of #1576 (send) and #1579 (
/framer-status). This PR's own change is its last commit, web only. It follows WordPress's part 4 (#1572).Where pages go (
components/content/cms-target.tsx):useCmsTargetreads Webflow, WordPress and Framer together.framer_not_readyrule.sm, four in a 2×2 grid. The arrow keys still go round, past one that's off.The dialog:
live, not WordPress's.The Library:
/framer-statusonce per brand per visit, when a listed page is in Framer as a draft item.cms-send-client.ts:refreshFramerPublishedshares the helper with Webflow's and WordPress's.CmsTargettakes'framer', with the fourframer_*errors.Strings are in
en.json.Next: the docs.
Related issue
Part of #1331 (phase 2, Framer). Stacked on #1578 → #1575 + #1572; needs #1576 and #1579 on the API.
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 web && yarn vitest run src/components/content "src/app/[locale]/(dashboard)/dashboard/content/library" src/lib/content/cms-send-client.test.tsChecked in the browser at 1024 px, light and dark. I ran this branch's API and web against the dev DB, with temporary Webflow, WordPress and Framer rows, removed afterwards. Nothing was sent.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run in
web/:yarn format,yarn lint(0 errors),yarn typecheck,yarn test(4,228 tests) andyarn build. They ran after the pre-push review's fixes:livetoast's wording;sent, and again for another brand).Kept as Webflow has it: "as a draft item" for an updated item that isn't a draft. The delivery row doesn't keep
live, so the web can't tell the two apart.🤖 Generated with Claude Code