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

Only add CSS class when truly needed for blogger onboarding #94074

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

daledupreez
Copy link
Contributor

@daledupreez daledupreez commented Aug 30, 2024

Related to:

Proposed Changes

  • This PR removes an unintentional problem introduced by Add launchpad_screen check in post-publish redirects #90706, which resulted in us continuing to hide a post-publish modal even when we're not going to redirect users to the launchpad.
  • The specific change is to update the logic so that we only add the blog-onboarding-hide class to the document when we explicitly detect that we're in a specific onboarding use case, and removes it when we are not.
    • A minor side use case is that we shift the logic for the currentPostType select to the main component logic so we can use it to drive the main effect and return before we start subscribing to the data stores for publish state changes.

Why are these changes being made?

Testing Instructions

  • Create a test site via the /setup/design-first or /setup/start-writing flows.
  • Work through the flow until you get to the fullscreen launchpad or you are dropped into the post editor.
  • Follow the instructions in this comment to apply the wpcom-block-editor changes from this PR to your WordPress.com sandbox
  • Ensure that widgets.wp.com is pointed at your sandbox
  • Ensure that you're not caching JS resources via your browser
  • If you're in the fullscreen launchpad, select an option like "Write your first post" to load the post editor.
    • If you're already in the post editor, refresh the page
  • Add some content to the post, and publish it.
  • Verify that you see the "Great progress" modal (see screenshot below)
  • Now navigate to /wp-admin/post-new.php?start-writing=true for the test site
  • Edit the post, and publish it.
  • Verify that you're redirected to the fullscreen launchpad
Screenshot 2024-08-30 at 14 53 11

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?
  • [N/A] Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • [N/A] Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • [N/A] 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)?

@daledupreez daledupreez added [Feature] Post/Page Editor The editor for editing posts and pages. [Feature Group] Signup & Site Onboarding Tools for user registration and onboarding new users to the site. [Feature] Site Goals & Onboarding Paths The onboarding flows for all new sites. [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. [Type] Fit and Finish Issues related to the fit, finish and overall polish of WordPress.com labels Aug 30, 2024
@daledupreez daledupreez requested a review from a team August 30, 2024 12:57
@daledupreez daledupreez self-assigned this Aug 30, 2024
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Aug 30, 2024
@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.

@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

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug fix/reinstate-hidden-modal-for-blog-post-publish on your sandbox.

Copy link
Contributor

@markbiek markbiek left a comment

Choose a reason for hiding this comment

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

LGTM!

@daledupreez daledupreez merged commit 1c411b8 into trunk Aug 30, 2024
12 checks passed
@daledupreez daledupreez deleted the fix/reinstate-hidden-modal-for-blog-post-publish branch August 30, 2024 14:18
@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 Aug 30, 2024
@daledupreez
Copy link
Contributor Author

Noting that this was deployed to production in D160061-code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Signup & Site Onboarding Tools for user registration and onboarding new users to the site. [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. [Feature] Post/Page Editor The editor for editing posts and pages. [Feature] Site Goals & Onboarding Paths The onboarding flows for all new sites. [Type] Fit and Finish Issues related to the fit, finish and overall polish of WordPress.com
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants