Skip to content

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

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/webflow-setup-not-finished
Oct 27, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/webflow-setup-not-finished

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Settings › Integrations › Webflow says the set-up isn't finished until a collection is saved. Right after the token connected, the card said "Connected" in green and the toast "Webflow connected". Yet nothing could be sent until a collection was picked and saved. Ansvisor saw this in its own live set-up.

  • The badge: until a collection is saved, it reads "Setup not finished" in amber (the page's amber classes, with dark:). The green "Connected" shows only once a collection is saved.
  • A line above the pickers, until then: "Last step: pick the collection your pages go to, check which field takes what, then Save. Pages can't be sent to Webflow until then." It goes once saved.
  • Connecting:
    • The toast says "Webflow connected. Now pick a collection and save.", and focus moves to the collection picker, which scrolls it into view.
    • A new token on a site that's already set up keeps "Webflow connected" and its collection.
  • Members read "No collection picked yet. Pages can't go to Webflow until an admin or manager finishes the setup."

WordPress (#1571) and Framer (#1578) will get the same pattern once they merge. The settings card is also touched by #1593 and the Date field PR, on different lines. Whichever merges second may need a small merge of webflow-card.tsx and en.json.

Related issue

Part of #1331 (Send to CMS).

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 && yarn vitest run src/components/settings/webflow-card.test.tsx:
    • the amber badge and the line show until saved, and the green badge after;
    • connecting gives the new toast and focus;
    • a new token keeps the set-up;
    • the members' line.
  2. On a server with Webflow set up, connect a site's token: the badge says "Setup not finished", the line shows, and the collection picker has focus. Save a collection, and the badge turns green with the line gone.

Checked in the browser at 1024 px, light and dark. This server has no Webflow set up, so the card's reads were stubbed in the page: a connected site with no collection saved, then a "Blog Posts" collection.

  • Before saving: the amber "Setup not finished" badge and the "Last step: …" line above the Collection picker show.
  • After saving: picking Blog Posts and Save gave "Saved. Pages go to Blog Posts." The badge turned to the green "Connected", and the line was gone.
  • Nothing scrolls sideways.

The connect step itself (its toast and the focus) needs a real token, so it's covered by the card's tests.

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

Also run in web/: yarn format, yarn lint (0 errors), yarn typecheck, yarn test and yarn build. The full test run happened while two dev servers were up for a browser check, and editor/[draftId]/page.test.tsx timed out under the load. Run alone, all 266 of its tests pass, and every other file passed in the full run.

🤖 Generated with Claude Code

… is saved

Right after the token connected, the card said "Connected" in green,
though nothing could be sent until a collection was picked and saved.

- Until a collection is saved, the badge reads "Setup not finished" in
  amber, and a line above the pickers says what's left. It goes once
  saved.
- Connecting says "Webflow connected. Now pick a collection and save."
  and moves focus to the collection picker. A new token on a site that's
  already set up keeps "Webflow connected".
- Members read that pages can't go to Webflow until an admin or manager
  finishes the set-up.

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.

What I checked:

  • Own change. One commit on 5bbd162, the commit before #1593: the card, en.json and the card test. It merges clean on main (15b5b5f), with #1600, and on main with #1600 merged first. With both, the card test passes (20).
  • The badge.
    • "Connected" (green) shows only with a saved collection. "Setup not finished" (amber, with dark: classes) shows for a connected token without one.
    • A refused token keeps its own badge.
    • Members get the same badge and the longer "No collection picked yet" line, without the admins' step line.
  • Connecting.
    • The toast reads from the connection the API returns. A new token for a site that's already set up keeps its collection (routes/cms.js), so it says "Webflow connected", and the picker doesn't take the focus.
    • The focus is kept per brand (settingUpFor), and a save clears it.
    • The picker mounts only once the collections are read, so autoFocus focuses it then, and focus() scrolls it into view.
  • The step line shows while no collection is saved, and goes once a save returns one.
  • Tests. The card tests pass (22 with the client test). With main's card and en.json, the three new or changed tests fail and the rest pass. CI's web job doesn't run web tests.
  • Before the API deploy. Web only. It reads collectionId, which the API on prod already returns, so nothing waits on a deploy.

Follow-up:

  1. A token that reaches several sites (webflow-card.tsx:494, :512, :522). The API saves no site then. So the collection picker isn't shown and nothing takes the focus, while the line says to pick the collection. When no site is picked, focus the site picker instead. Word the line "pick the site and the collection" for that case.

The Framer card PRs that edit this file (#1578, #1580) still merge clean with this one.

@gkhngyk
gkhngyk merged commit 6f6419d into ansvisor:main Oct 27, 2026
6 checks passed
gkhngyk pushed a commit that referenced this pull request Oct 28, 2026
…veral, and focus its picker (#1676)

* fix(settings): ask for the Webflow site first when a token reaches several, and focus its picker

Follow-up from #1601. A token that reaches several sites saves no site,
so after connecting the collection picker wasn't shown and nothing took
the focus, while the toast and the setup line said to pick the
collection.

- The site picker takes the focus right after connecting when no site is
  saved (focusCollection && !siteId); the collection picker still takes it
  once a site is picked.
- The toast reads "Webflow connected. Now pick the site and the
  collection, and save.", and the setup line "Last step: pick the site
  and the collection your pages go to, …" until a site is picked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(settings): keep the Webflow setup line on the site while the sites are read

Review follow-up. The line asked for the site only once more than one
site was read, so with none saved it first said "pick the collection"
while the sites loaded, then changed. With no site, it now asks for the
site while they're read too (a token for several sites is the one that
saves none), and after: unless the token reaches a single site, which is
then taken.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Cihan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
gkhngyk added a commit that referenced this pull request Oct 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]>
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