Skip to content

fix(settings): say Framer's set-up isn't finished until a collection is saved - #1719

Merged
gkhngyk merged 53 commits into
ansvisor:mainfrom
cihan-gyk:fix/framer-setup-not-finished
Oct 29, 2026
Merged

gkhngyk merged 53 commits into
ansvisor:mainfrom
cihan-gyk:fix/framer-setup-not-finished

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

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.

  • The badge: connected with no collection saved, it reads "Setup not finished" in amber (the card's amber classes, with dark:). The green "Connected" shows once a collection is saved.
  • The last step, spelled out above the collection picker for admins and managers until then: "Last step: pick the collection your pages go to, check which field takes what, then Save. Pages can't be sent to Framer until then." It goes away once saved.
  • Connecting:
    • The toast says "Framer connected. Now pick a collection and save.", and the collection picker takes the focus.
    • A new key for a project that's already set up keeps its collection, says "Framer connected" as before, and moves no focus.
  • Members read "No collection picked yet. Pages can't go to Framer until an admin or manager finishes the setup."

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 feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. cd web && npx vitest run src/components/settings/framer-card.test.tsx. It covers:
    • the amber badge and the step line until a collection is saved, and the green badge after;
    • the new toast and the picker's focus right after connecting, and no focus when the page is just opened;
    • a new key for the same project keeping its set-up;
    • the members' line.
  2. With a real Framer project (gkhngyk): in Settings › Integrations › Framer, connect a project's API key.
    • The badge says "Setup not finished", the step line shows, and the Collection picker has the focus.
    • Pick a collection and Save: the badge turns green and the line goes.
    • Check light and dark, and 1024 px.

I didn't check this in the browser in this round.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

What ran on this head (after merging main ce9a3dc):

  • yarn typecheck in web/;
  • framer-card.test.tsx and framer-client.test.ts (41 tests);
  • ESLint and Prettier --check on the changed files;
  • the embed-hint scan from fix/ambiguous-embed-guard.

The full yarn lint, yarn format:check, yarn test and yarn build weren'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

cihan-gyk and others added 30 commits October 27, 2026 10:18
…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]>
…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]>
…#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]>
…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]>
… 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]>
… 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]>
# Conflicts:
#	web/src/components/content/send-to-cms-dialog.tsx
cihan-gyk and others added 22 commits October 28, 2026 15:03
…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]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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", with dark: 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. connectedSetupToast when the project has no collection yet. A new key for an already set-up project keeps connectedToast and moves no focus (setSettingUpFor(next.collectionId ? null : …)).
  • Focus. Picker already takes autoFocus on 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.tsx under 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.tsx and framer-client.test.ts pass (41/41). Two timeouts under machine load pass when run alone.
  • tsc is clean, and eslint and prettier are clean on the touched files. It merges cleanly on ce9a3dc and alongside #1717 and #1741.

Follow-up

  1. The badge and the admin view now decide "set up" by collectionId. The members' line still decides by collectionName: connection.collectionName ? pagesGoTo : noCollection. Both are nullable in FramerConnection. 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. Using collectionId there too, with the name fallback the admin view now has, would keep them in step.

@gkhngyk
gkhngyk merged commit 4210c5f into ansvisor:main Oct 29, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants