Connectors: Replace speak() with notice store for state changes#77174
Connectors: Replace speak() with notice store for state changes#77174
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
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. |
|
Size Change: 0 B Total Size: 7.74 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 3eb00f1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24274918115
|
Replace @wordpress/a11y speak() calls with createSuccessNotice and createErrorNotice from @wordpress/notices for plugin install/activate and connector connect/disconnect state changes. This surfaces feedback visually in addition to announcing it to screen readers, and aligns with the snackbar notice pattern used elsewhere in the codebase for async operation results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thanks for the feedback! I have replaced all instances of "speak" with snackbars. What do you think? 60293a423104bd3cb618b1b71ccc4b52.mp4 |
* Connectors: Show error notice when plugin install or activation fails Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Connectors: Replace speak() with notice store for state changes Replace @wordpress/a11y speak() calls with createSuccessNotice and createErrorNotice from @wordpress/notices for plugin install/activate and connector connect/disconnect state changes. This surfaces feedback visually in addition to announcing it to screen readers, and aligns with the snackbar notice pattern used elsewhere in the codebase for async operation results. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: gziolo <gziolo@git.wordpress.org>
|
I just cherry-picked this PR to the wp/7.0 branch to get it included in the next release: 209cde7 |

Closes #77089
What?
When plugin installation or activation fails on the Connectors page, display a visible error message along with screen reader text.
Why?
Otherwise, users not using a screen reader will not understand what is happening when an error occurs.
How?
Display an error snackbar notice instead of using
speak()directly. Ideally, server-side error text should probably be included in the message, but since the translation strings are already frozen for the 7.0 release, I preserve the previous error message.Testing Instructions
Screenshots or screencast
c8de5f499ab499e4c97b958dac20ad7b.mp4
Use of AI Tools
This PR was authored with assistance from Claude Code (Anthropic).