Agents Manager: add standalone AI chat button to the admin bar#49455
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
There was a problem hiding this comment.
Pull request overview
Adds a standalone “Ask AI” admin-bar entry for Agents Manager so users in the unified experience can open a new chat directly, separate from the Help Center dropdown.
Changes:
- Register a new
agents-manager-ai-chatnode undertop-secondarywhenagents_manager_use_unified_experienceis enabled (and only for connected, non-Gutenberg, non-CIAB contexts). - Add a new changelog entry documenting the new admin-bar button.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| projects/packages/agents-manager/src/class-agents-manager.php | Adds an admin_bar_menu registration for a new “Ask AI” admin-bar item (standalone new-chat entry). |
| projects/packages/agents-manager/changelog/add-agents-manager-ai-chat-button | Changelog entry for the new standalone AI chat admin-bar button. |
3a04ab8 to
04762a7
Compare
Code Coverage SummaryCoverage changed in 1 file.
Full summary · PHP report · JS report Coverage check overridden by
I don't care about code coverage for this PR
|
04762a7 to
b4bae55
Compare
b4bae55 to
edeff72
Compare
57c5e09 to
72d1a18
Compare
johngodley
left a comment
There was a problem hiding this comment.
Tested as part of Automattic/wp-calypso#111434 and everything works as described. Code looks good
Adds an "Ask AI" button (`agents-manager-ai-chat`) to the wp-admin bar, separate from the Help Center menu. Registered only in the unified experience, for connected, non-Gutenberg, non-CIAB variants. Its click behavior (reopening the chat) is defined Calypso-side. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
72d1a18 to
5dd54dc
Compare
Part of AI-995
Proposed changes
agents-manager-ai-chatnode undertop-secondary), separate from the Help Center menu.agents_manager_use_unified_experience), for connected, non-Gutenberg, non-CIAB variants.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions