Skip to content

fix(settings): name the Webflow token's permissions one way, in the card's error and the docs - #1669

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/webflow-token-words
Oct 28, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/webflow-token-words

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

Follow-up from #1593: the Webflow token's permissions are named one way, in the card's error and in the docs.

The Webflow card's steps say "set CMS to Read and write and Sites to Read-only". But the error for a token without those permissions said "Sites: Read and CMS: Read and write", and the Send to CMS guide (#1507) said "Apps & integrations" and "Sites: Read".

  • The error now reads: "The token needs CMS: Read and write and Sites: Read-only. Generate a new one with them."
  • The guide's Connect Webflow step repeats the card's four steps in the card's words:
    1. Site settings › Apps & Integrations › API access;
    2. the token name;
    3. the permissions;
    4. Webflow shows the token only once.

Follow-up: the server's own message (server/src/lib/cms/webflow.js, shown in the Send to CMS dialog after a send fails on permissions) still uses the old words. It will go in a small server PR.

Where people see it: Settings › Integrations › Webflow, when a token lacks permissions, and docs › Send to CMS.

Related issue

Follow-up from #1593's review.

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/webflow-card.test.tsx
  2. Connect a Webflow token without CMS write: the card shows the new sentence.

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

Full checks were run once, in one tree with this batch's ten follow-up branches merged:

  • server format, lint and npm test: 246 files, 3,343 tests passed;
  • web format, lint (0 errors; 7 warnings already on main), typecheck and build: all pass;
  • web vitest: 4,348 of 4,349 tests passed. The editor's page.test.tsx timed out under load; it passed alone (271/271).

A pre-push review was run on all ten branches.

🤖 Generated with Claude Code

…ard's error and the docs

Follow-up from ansvisor#1593. The Webflow card's steps say "set CMS to Read and
write and Sites to Read-only". The error for a token without those
permissions said "Sites: Read and CMS: Read and write", and the Send to
CMS guide (ansvisor#1507) said "Apps & integrations" and "Sites: Read".

- The error reads "The token needs CMS: Read and write and Sites:
  Read-only. Generate a new one with them."
- The guide's Connect Webflow step repeats the card's four steps, in the
  card's words: Site settings › Apps & Integrations › API access, the
  token name, the permissions, and that Webflow shows the token once.

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

mintlify Bot commented Oct 28, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 3aac01c.

Approve preview

@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.

What I checked:

  • Own change. One commit on 3f6a4d4. It merges clean on main (b591947), and with #1676 and #1677 in any order.
  • The words. The error now matches the card's step: "CMS: Read and write and Sites: Read-only", in the same order as the step and with the same names Webflow shows under Permissions. Nothing else in the web or the docs still says "Sites: Read".
  • The guide. Its Connect Webflow step now has the card's four steps: the same menu path, written "Apps & Integrations" like the card, plus the token name, the permissions and the "shown only once" note. The paste is left to step 2, which already covers it.
  • Tests. The card's tests pass (22, on main with all three PRs). With main's en.json, the changed test fails. CI's web job doesn't run web tests.
  • Before the API deploy. Web and docs only: nothing waits on a deploy.

As the description says, the server's own message in webflow.js ('The site token needs the Sites (read) and CMS (read and write) scopes') still uses the old words. It's shown in the Send dialog after a send fails on permissions. The small server PR can bring it in line.

@gkhngyk
gkhngyk merged commit 79183f0 into ansvisor:main Oct 28, 2026
7 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