Connectors: Align client registration API with server#76737
Connectors: Align client registration API with server#76737jorgefilipecosta wants to merge 1 commit intotrunkfrom
Conversation
Rename `label` to `name` and `icon` to `logo` in ConnectorConfig and ConnectorRenderProps to match the server-side PHP connector registry. Promote `authentication` and `plugin` to first-class properties on both types so they flow through the store and into render props automatically, removing the need for manual destructuring in each render callback.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
Size Change: 0 B Total Size: 7.66 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 40ef5a9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23355088660
|
Summary
label→nameandicon→logoinConnectorConfig/ConnectorRenderPropsto match the server-side PHP connector registryauthenticationandpluginto first-class properties on connectors.ApiKeyConnectorto acceptConnectorRenderPropsdirectly instead of a flat mix of custom propsTest plan
npm run test:unit packages/connectors— all 7 tests passtsc --noEmit)