[RSM] Blog Talks Back > Add reader-chat entry point with page context and suggestions#110024
Draft
kat3samsin wants to merge 2 commits intotrunkfrom
Draft
[RSM] Blog Talks Back > Add reader-chat entry point with page context and suggestions#110024kat3samsin wants to merge 2 commits intotrunkfrom
kat3samsin wants to merge 2 commits intotrunkfrom
Conversation
Jetpack Cloud Live (direct link)
Automattic for Agencies Live (direct link)
Dashboard Live (dotcom) (direct link)
|
4 tasks
Contributor
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
- reader-chat.js: minimal React entry reading from window.JetpackReaderChatConfig, mounts AgentsManager to #jetpack-reader-chat for frontend readers - webpack.config.js: add getReaderConfig() without DependencyExtractionWebpackPlugin so all WP deps are bundled inline (no wp.element/wp.data on frontend)
- Set agentsManagerData.currentPost from JetpackReaderChatConfig - Generate contextual suggestions based on current page (post-specific or general blog prompts for archives/home) - Wire agentId through agentsManagerData for useAgentConfig()
46eb229 to
68a7582
Compare
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
reader-chat.jsentry point — self-contained React bundle (no WP script loader needed)agentsManagerData.agentIdfromJetpackReaderChatConfigRelated PRs
add/jetpack-reader-chatTest plan
reader-chat.min.jsloads on blog frontend