Skip to content
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

Hundred Year Plan Site Picker: Replace presales-chat with Help Center #99100

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

AtrumGeost
Copy link
Contributor

@AtrumGeost AtrumGeost commented Jan 30, 2025

Related to https://github.com/Automattic/martech/issues/3670

Proposed Changes

Remove calypso/lib/presales-chat in favor of HelpCenter. It follows the same implementation as /help:

https://github.com/Automattic/wp-calypso/blob/24a703ea71a4c0eac2cce908e9ef861b363f934c/client/me/help/help-contact-us-header.tsx

To skip the bot/AI I used as reference:

https://github.com/Automattic/wp-calypso/blob/24a703ea71a4c0eac2cce908e9ef861b363f934c/client/me/help/help-contact-us-header.tsx

But I would love help on this approach.

Things that I would like feedback on how to implement

  • How to communicate to the Happiness Engineer this user came through the 100-Year Plan flow

Why are these changes being made?

In its current state, the 'Need help? Contact Us' chat button is not working. The best experience is to use Help Center:

p1738252192081029-slack-C07D72S1135

Testing Instructions

  • Go to http://calypso.localhost:3000/setup/hundred-year-plan/site-picker
  • Select a test site
  • Try clicking on "Need help? Contact us"
  • Make sure the Help Center pops up and you can directly go to a human
    • Keep in mind that if you test this flow proxied, you won't get an actual response since the ZD interaction will go to the sandboxed version of Zendesk.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@AtrumGeost
Copy link
Contributor Author

Changing the approach here since I confirmed we want to default to the Help Center experience instead of the Zendesk Widget: p1738252192081029-slack-C07D72S1135

@AtrumGeost AtrumGeost force-pushed the update/hundred-year-plan-site-picker-chat-button branch from 9d81fec to b6534e5 Compare January 31, 2025 14:38

const openHelpCenter = () => {
recordTracksEvent( 'calypso_hundred_year_plan_help_click' );
setNavigateToRoute( '/odie?provider=zendesk' );
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to know if this is the best way to skip the bot.

@AtrumGeost AtrumGeost marked this pull request as ready for review January 31, 2025 16:40
@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • blaze-dashboard
  • command-palette-wp-admin
  • help-center
  • notifications
  • odyssey-stats
  • whats-new

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/hundred-year-plan-site-picker-chat-button on your sandbox.

@AtrumGeost AtrumGeost requested review from escapemanuele and a team January 31, 2025 16:40
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 31, 2025
@AtrumGeost AtrumGeost requested a review from a team January 31, 2025 16:40
@AtrumGeost AtrumGeost changed the title Hundred Year Plan Site Picker: Replace presales-chat with chat-button component Hundred Year Plan Site Picker: Replace presales-chat with Help Center Jan 31, 2025
Copy link
Contributor

@escapemanuele escapemanuele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great. Remember that you can add &userFieldMessage=${ message }&siteUrl=${ siteUrl }&siteId=${ siteId } as info to the '/odie?provider=zendesk' to pass more info to Happiness Engineers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants