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

Sites Dashboard: Implement survey #98218

Merged
merged 14 commits into from
Jan 13, 2025
Merged

Sites Dashboard: Implement survey #98218

merged 14 commits into from
Jan 13, 2025

Conversation

taipeicoder
Copy link
Contributor

@taipeicoder taipeicoder commented Jan 10, 2025

Proposed Changes

This PR implements a survey popup as proposed in pfYzsZ-1ib-p2. The survey will only be shown to 15% of English locale users, but it can be forced via the URL parameter show_survey.

Screenshot 2025-01-11 at 10 35 34 PM

Note

This PR updates the SurveyModal component, see below on its impact.

GitHub Deployment Survey

Before After
Screenshot 2025-01-11 at 11 31 56 AM Screenshot 2025-01-12 at 12 22 17 AM

SSO Survey

Before After
Screenshot 2025-01-11 at 11 31 35 AM Screenshot 2025-01-12 at 12 28 24 AM

Why are these changes being made?

pfYzsZ-1ib-p2

Testing Instructions

  • Head to /sites?show_survey
  • Ensure that the survey is displayed as intended
  • Ensure that clicking the CTA opens a new tab with the intended URL
  • Ensure that clicking close or "No thanks" closes the survey and is not displayed again on page refresh
  • Ensure that clicking the backdrop closes the survey and it's displayed again on page refresh
  • (Optional) Change locale and ensure that the survey is not displayed. There will be a flash of the survey since non production environments tend to take longer for the locale to be applied.

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)?

@taipeicoder taipeicoder self-assigned this Jan 10, 2025
@matticbot
Copy link
Contributor

matticbot commented Jan 10, 2025

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

App Entrypoints (~27 bytes added 📈 [gzipped])

name        parsed_size           gzip_size
entry-main        +48 B  (+0.0%)      +27 B  (+0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~349 bytes added 📈 [gzipped])

name                parsed_size           gzip_size
staging-site            +3296 B  (+0.2%)     +903 B  (+0.2%)
sites-dashboard         +3296 B  (+0.3%)     +903 B  (+0.3%)
site-settings           +3296 B  (+0.2%)     +903 B  (+0.2%)
site-performance        +3296 B  (+0.2%)     +903 B  (+0.2%)
site-overview           +3296 B  (+0.2%)     +903 B  (+0.2%)
site-monitoring         +3296 B  (+0.2%)     +903 B  (+0.2%)
site-marketing          +3296 B  (+0.2%)     +903 B  (+0.2%)
site-logs               +3296 B  (+0.2%)     +903 B  (+0.2%)
hosting-features        +3296 B  (+0.3%)     +903 B  (+0.2%)
hosting                 +3296 B  (+0.1%)     +903 B  (+0.1%)
site-tools               +795 B  (+0.0%)     +334 B  (+0.1%)
github-deployments       +795 B  (+0.1%)     +334 B  (+0.1%)
settings-security         -63 B  (-0.0%)      +15 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.

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.

@matticbot
Copy link
Contributor

matticbot commented Jan 10, 2025

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

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

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug feat/sites-survey on your sandbox.

@taipeicoder taipeicoder marked this pull request as ready for review January 12, 2025 02:28
@taipeicoder taipeicoder requested a review from a team January 12, 2025 02:28
@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 12, 2025
@taipeicoder taipeicoder requested a review from matt-west January 12, 2025 02:28
Copy link
Contributor

@arthur791004 arthur791004 left a comment

Choose a reason for hiding this comment

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

Tested and works as expected!

image

@taipeicoder taipeicoder merged commit f2878c5 into trunk Jan 13, 2025
18 checks passed
@taipeicoder taipeicoder deleted the feat/sites-survey branch January 13, 2025 02:52
@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 13, 2025
@taipeicoder
Copy link
Contributor Author

@matt-west one change is that the title for the GitHub Deployments survey now drops to a second line. Let me know if this is something you'd like to address.

image

@matt-west
Copy link
Contributor

one change is that the title for the GitHub Deployments survey now drops to a second line. Let me know if this is something you'd like to address.

@taipeicoder I think this is okay.

Screenshot 2025-01-13 at 09 18 45

The screenshot in the modal looks really blurry. Can you export that at a higher-resolution. Let me know if you need any help.

@taipeicoder
Copy link
Contributor Author

@matt-west could you try disabling this CSS rule and see if it does the trick? I can merge the code tomorrow if that fixes it.
Screenshot 2025-01-13 at 10 17 57 PM

@matt-west
Copy link
Contributor

@taipeicoder Sadly that didn’t help. It still appears blurry. I’m testing in Safari.

Screen.Recording.2025-01-13.at.15.19.18.mov

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.

4 participants