Skip to content

Prefill connector setup fields from the link (addresses only) - #1334

Merged
helpcodeai merged 1 commit into
mainfrom
feat/setup-prefill
Oct 29, 2026
Merged

helpcodeai merged 1 commit into
mainfrom
feat/setup-prefill

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

A link to the guided connector setup can now start fields with values: /connectors/setup/<slug>?prefill.<NAME>=<value>. We are publishing a free AnythingMCP module for Odoo; its settings button opens the Odoo setup with the Odoo address, database name and user id already filled, so the user only pastes the API key.

Only address and setting fields are taken from the link. A credential (or any field marked secret) is ignored, so no key travels in a URL. Values typed by the user or stored on an existing connector win over the link.

Behaviour is the same in Cloud and self-hosted: the page is shared, and the link is opt-in.

Changes

  • connectors/setup/[slug]/page.tsx: read prefill.* query parameters and apply them to non-credential fields once the adapter description is loaded; document the parameter in the page's query list.
  • New Playwright spec connector-setup-prefill.spec.ts: address fields are prefilled and trimmed, a prefill.ODOO_API_KEY in the link is ignored, and the prefilled values are sent to verify like typed ones.

Type

  • Bug fix
  • New feature
  • Documentation
  • Refactoring
  • Performance improvement
  • Other (describe below)

Testing

  • Added/updated unit tests
  • Tested manually (describe steps below)
  • No tests needed (explain why)

In packages/frontend:

  • npx tsc --noEmit -p tsconfig.json: passed.
  • npx eslint "src/app/connectors/setup/[slug]/page.tsx" tests/e2e/connector-setup-prefill.spec.ts: no warnings.
  • npx playwright test tests/e2e/connector-setup-prefill.spec.ts tests/e2e/connector-guided-setup.spec.ts tests/e2e/connector-setup-guide.spec.ts tests/e2e/setup-link.spec.ts tests/e2e/starter-pack.spec.ts tests/e2e/catalog-url-match.spec.ts: 36 passed. The local dev server logs a react/react-dom version mismatch warning from the local node_modules; it does not affect the tests.

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • I have updated documentation (if applicable)
  • All existing tests pass (npm test)
  • This PR has a descriptive title

Related Issues

None.

Addresses and settings only; a credential is never read from a link.
The AnythingMCP module for Odoo will use it to hand over the Odoo address,
database and user id.
@helpcodeai
helpcodeai merged commit ecb233f into main Oct 29, 2026
15 checks passed
@helpcodeai
helpcodeai deleted the feat/setup-prefill branch October 29, 2026 18:51
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant