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

Help Center: Open Zendesk with link #96448

Merged
merged 24 commits into from
Jan 22, 2025
Merged

Help Center: Open Zendesk with link #96448

merged 24 commits into from
Jan 22, 2025

Conversation

escapemanuele
Copy link
Contributor

@escapemanuele escapemanuele commented Nov 15, 2024

Related to https://github.com/Automattic/dotcom-forge/issues/9733
Fixes https://github.com/Automattic/dotcom-forge/issues/10038

Proposed Changes

This PR wants to add the possibility of directly opening Zendesk, skipping Wapuu.

Testing Instructions

  • Build the PR or use the PR link to test

Purchases

  • Go to /me/purchases and select a paid site plan. Then Click "Remove Plan".
Screenshot 2025-01-16 at 17 06 51
  • In the upper right corner there should be a button "Need help? Contact us". Clicking on it should submit the relevant user fields and create a zendesk chat

Domain Removal

  • Go to /purchases/subscriptions/ and select a domain subscription.
  • Click on the "Remove domain" button
Screenshot 2025-01-16 at 17 09 27
  • When the modal opens click the "Need help? Contact us" button
  • After the button is clicked, the modal should close, relevant user fields should get submitted and a zendesk chat should be created.

Purchase Cancelation

  • Go to me/purchases and select a business plan
  • Click "Cancel plan"
Screenshot 2025-01-16 at 17 13 29
  • Then click on the Ask a Happiness Engineer. button
  • Clicking on it should submit the relevant user fields and create a zendesk chat

@matticbot
Copy link
Contributor

matticbot commented Nov 15, 2024

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 hc-zendesk-link on your sandbox.

@matticbot
Copy link
Contributor

matticbot commented Nov 15, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~100 bytes added 📈 [gzipped])

name            parsed_size           gzip_size
hosting              +111 B  (+0.0%)      +55 B  (+0.0%)
email                +111 B  (+0.0%)      +56 B  (+0.0%)
domains              +111 B  (+0.0%)      +55 B  (+0.0%)
site-purchases        +81 B  (+0.0%)      +44 B  (+0.0%)
purchases             +81 B  (+0.0%)      +44 B  (+0.0%)

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 (~289 bytes added 📈 [gzipped])

name                                       parsed_size           gzip_size
async-load-automattic-help-center-stepper       +643 B  (+0.1%)     +289 B  (+0.1%)
async-load-automattic-help-center               +643 B  (+0.1%)     +289 B  (+0.1%)

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@heavyweight heavyweight marked this pull request as ready for review January 16, 2025 16:17
@heavyweight heavyweight requested a review from a team as a code owner January 16, 2025 16:17
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 16, 2025
selectedSiteURL={ site?.URL as string }
selectedConversationId={ conversationId }
selectedSiteId={ Number( siteId ) || ( site?.ID as number ) }
selectedSiteURL={ siteUrl || ( site?.URL as string ) }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just noting here that this happened to me

image

@agrullon95 agrullon95 self-requested a review January 21, 2025 06:45
@agrullon95
Copy link
Contributor

@heavyweight - Theres an issue with the back button not working on first click when I open HC to support chat from plan cancellation:

CleanShot.2025-01-21.at.21.52.43.mp4

@agrullon95
Copy link
Contributor

The AI chat response (initial message from Wapuu/AI) is displaying for a moment if I already started a support chat and click the link again.

CleanShot.2025-01-21.at.22.00.39.mp4

@escapemanuele
Copy link
Contributor Author

As a follow-up, not strictly needed here, we need to check what's wrong with Jump to recent

image

Copy link
Contributor

@agrullon95 agrullon95 left a comment

Choose a reason for hiding this comment

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

Tested both paths and confirmed the help center directly opened a support chat interaction.

@heavyweight heavyweight merged commit afe6165 into trunk Jan 22, 2025
13 checks passed
@heavyweight heavyweight deleted the hc-zendesk-link branch January 22, 2025 16:11
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 22, 2025
JessBoctor pushed a commit that referenced this pull request Jan 22, 2025
Co-authored-by: Tony Arcangelini <[email protected]>
Co-authored-by: heavyweight <[email protected]>
Co-authored-by: Kosta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants