Repository navigation
docs(contributing): a guide to adding an integration, with Webflow as the worked example - #2189
Merged
Merged
Conversation
… the worked example Closes ansvisor#2138. docs/contributing/adding-an-integration.md shows how an integration plugs into Ansvisor today, for the community integration issues: - every connection belongs to a brand (00470: integration_accounts, the account's pool of sign-ins; brand_integrations, the one each brand uses; brand_cms_connections for a CMS site), read with brandConnection() after assertBrandAccess; - the nearest pattern per kind: content send (cms/webflow*.js and NATIVE in content-delivery.js), data read (gsc-sync.js), catalog (CONNECTORS.md), AI bot logs (bot-log-formats.js READERS and CONNECTION_KINDS); - Webflow, part by part; - what every integration ships with: a card with strings in en.json, secrets encrypted and never logged, role checks, Vitest tests against recorded fixtures, a Help article, "not configured" on a self-host, and drafts rather than publishing; - the review steps before the PR. CONTRIBUTING.md and CONNECTORS.md link to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
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
Adds
docs/contributing/adding-an-integration.md, a guide for contributors and agents who add an integration. It uses Webflow as the worked example.It covers:
integration_accounts,brand_integrations,brand_cms_connections, andbrandConnection()afterassertBrandAccess.READERS,CONNECTION_KINDS).Every file path and function name in the guide was checked against main. Links that leave
docs/are full GitHub URLs, so they also work on Mintlify.CONTRIBUTING.md(Ways to Contribute) andCONNECTORS.md(intro) link to the guide.Note:
docs/contributing/isn't inmint.json's navigation, so the page builds as a hidden page. A nav group can follow if you want one.Related issue
Closes #2138
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
Read
docs/contributing/adding-an-integration.mdand follow a few of its paths into the code.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)help/(or no user-visible change) — see help/README.mdCI passed on this branch (a18721d), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/42210294028): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code