-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch all support articles from the same endpoint #76734
Conversation
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~191 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~8137 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~777 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
I can't replicate these test failures locally - help! |
I merged my changes to the Support specs in #76960.
|
@klimeryk and others - main things that need cleaning up:
I think if we can make those changes then this is good to go. I think they'll be much quicker to make for someone familiar with the help center. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, what a PR! Can't believe I couldn't find any issues. Went through it twice.
I reviewed and tested in Calypso and the editor. In the Editor there are no GPT results as expected.
I tested searching, suggestions, giving feedback to GPT results, all works as expected. I didn't test in Atomic, but I didn't find any changes that would need testing in Atomic (eg changing endpoints).
The only thing I wasn't able to see is this:
Add a "Cancel" button for generating response, a shortcut to emailing
Co-authored-by: Omar Alshaker <omar@omaralshaker.com>
Merged from trunk. I plan to merge this as soon as tests pass. |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7993732 Thank you @gravityrail for including a screenshot in the description! This is really helpful for our translators. |
* Hack Calypso help to pull all articles from the same endpoint * checkpoint * Linting * Fix missing variables (need to keep siteIntent for later * Revert unrelated change * Revert more unrelated changes * Remove disabled tests that were breaking the build * Armwrestling the type system * Revert unrelated changes * Add more tracks events * Remove more Sibyl parts * Remove all trace of Sibyl for now * Add more tracking, thumbs up/down, and button state tweaks * Add external/internal icons to search results * Add better styling, remove warnings, better type hints * Remove unrelated changes * Better (but not perfect) state handling * Revert unnecessary changes * Fix small formatting issue * Set email subject/message from search query * More informative error * Make search result titles more consistent * Fix naming of contact form tracks events Co-authored-by: Omar Alshaker <omar@omaralshaker.com> * Remove stray and incorrect comment --------- Co-authored-by: Omar Alshaker <omar@omaralshaker.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was working on #77046, which (unfortunately) means fixing "new" type issues (well, it fixes bugs which caused some issues to not get reported) -- dropped a couple questions to make sure any fixes I do work correctly
location: 'help-center', | ||
result_url: result.link, | ||
post_id: result.postId, | ||
blog_id: result.blogId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this meant to be post_id
or blog_id
? (or is postId also available? -- the types only encode the underscore variant)
params.set( 'blogId', result.blog_id ); | ||
} | ||
|
||
navigate( `/post/?${ params }`, searchResult ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does searchResult
do anything here? The type info for navigate here doesn't share any properties with searchResult
Translation for this Pull Request has now been finished. |
This change is intended to support moving all help content, even default content, into a back-end vector database. This includes consolidating "Sibyl" and regular help center articles, plus so-called "default links" that used to be baked into the front-end, and potentially more in the future.
It also adds a bunch of tracking and convenience features, thumbs up/down on GPT generated response, etc.
The back-end changes have already been merged in this change: D110161-code
This will allow much easier and more consistent instrumentation and optimization of our whole help-search workflow since everything will be going through a single endpoint with a single ranking algorithm and set of events.
Issues I Encountered
This patch has slowly grown as I hit a few issues with the help center. Here's just a few:
Proposed Changes
/wpcom/v2/help/search/wpcom
(which already exists)section
with the help query to guide the responseNew tracking events:
Other Changes
Known Issues
TODO next time
Testing Instructions
Side-by-side comparisons
Pre-merge Checklist