Repository navigation
fix(settings): say Framer's set-up isn't finished until a collection is saved - #1719
Merged
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]>
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]>
# Conflicts: # web/src/components/content/send-to-cms-dialog.tsx
…is saved As on the Webflow card (ansvisor#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]>
This was referenced Oct 29, 2026
gkhngyk
approved these changes
Oct 29, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with a follow-up
Reviewed ae0a6f2. It merged main at ce9a3dc, so its own diff is origin/main...ae0a6f20: framer-card.tsx, its test and en.json. No migration, no server code, no new query.
What I checked
- Badge. It is green only when
status === 'connected'and a collection is saved. Connected with no collection, it is amber "Setup not finished", withdark:classes. "Key refused" is unchanged. - The step line. Admins and managers see it until a collection is saved. It uses the same amber box as the refused-key note.
- Toast after connecting.
connectedSetupToastwhen the project has no collection yet. A new key for an already set-up project keepsconnectedToastand moves no focus (setSettingUpFor(next.collectionId ? null : …)). - Focus.
Pickeralready takesautoFocuson its trigger, and it mounts only once the collections are listed, so the focus lands after loading. The flag is cleared on save. It is keyed to the brand, so switching brands doesn't carry it over. - Read-only workspaces. Connect still goes through
guard()(the plan dialog first). The PR adds no server action or route. - The tests catch it. With main's
framer-card.tsxunder the PR's tests, 4 cases fail: the setup line and badge, focus on connect, the members' line, and the re-read. With the PR's file,framer-card.test.tsxandframer-client.test.tspass (41/41). Two timeouts under machine load pass when run alone. tscis clean, and eslint and prettier are clean on the touched files. It merges cleanly on ce9a3dc and alongside #1717 and #1741.
Follow-up
- The badge and the admin view now decide "set up" by
collectionId. The members' line still decides bycollectionName:connection.collectionName ? pagesGoTo : noCollection. Both are nullable inFramerConnection. A saved collection with no stored name would show members "No collection picked yet… until an admin or manager finishes the setup" next to a green Connected badge. UsingcollectionIdthere too, with the name fallback the admin view now has, would keep them in step.
9 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
Settings › Integrations › Framer says the set-up isn't finished until a collection is saved, as the Webflow card does since #1601. Before this, the card showed a green "Connected" badge and a "Framer connected" toast right after the key was accepted. Pages still couldn't go to Framer until a collection and its fields were saved.
dark:). The green "Connected" shows once a collection is saved.The branch merges main (ce9a3dc), which has #1578 and your read-only change on the card (e4b66d5). The two merged without a conflict: Connect still opens the plan dialog first, and the success toast picks between the two messages.
Not stacked any more: #1578 is on main.
Related issue
Part of #1331 (Send to CMS). Follows #1601 (Webflow).
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 && npx vitest run src/components/settings/framer-card.test.tsx. It covers:I didn't check this in the browser in this round.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)What ran on this head (after merging main ce9a3dc):
yarn typecheckinweb/;framer-card.test.tsxandframer-client.test.ts(41 tests);--checkon the changed files;fix/ambiguous-embed-guard.The full
yarn lint,yarn format:check,yarn testandyarn buildweren't run this round. Before main's Framer merges, the branch's full test run passed, except files that timed out under machine load; run alone, those passed.🤖 Generated with Claude Code