Skip to content

Remove useGoalsFirstExperiment from onboarding#101864

Merged
autumnfjeld merged 4 commits intotrunkfrom
update/remove-goalsfirst-references
Mar 27, 2025
Merged

Remove useGoalsFirstExperiment from onboarding#101864
autumnfjeld merged 4 commits intotrunkfrom
update/remove-goalsfirst-references

Conversation

@autumnfjeld
Copy link
Contributor

@autumnfjeld autumnfjeld commented Mar 25, 2025

Related to # #101759
This is the first of multiple PRs that will remove GoalsFirst code.

Proposed Changes

  • Removing references to useGoalsFirstExperiment
  • Steps included:
    • goals
    • create-site
    • unified-domains

Why are these changes being made?

Leadership has confirmed we will not be resurrecting the Goals First onboarding flow. We can remove all traces of this flow.

Testing Instructions

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

@autumnfjeld autumnfjeld marked this pull request as draft March 25, 2025 21:39
@github-actions
Copy link

github-actions bot commented Mar 25, 2025

@matticbot
Copy link
Contributor

matticbot commented Mar 25, 2025

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

Sections (~41 bytes removed 📉 [gzipped])

Details
name                        parsed_size           gzip_size
async-step-unified-domains       -131 B  (-0.0%)      -41 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.

@paulopmt1 paulopmt1 force-pushed the update/remove-goalsfirst-references branch from 00539dc to 66f46e1 Compare March 26, 2025 11:22
@paulopmt1 paulopmt1 self-requested a review March 26, 2025 11:24
@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 Mar 26, 2025
Copy link
Contributor

@paulopmt1 paulopmt1 left a comment

Choose a reason for hiding this comment

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

So far, so good!

I did a rebase, updated a file, and performed tests. Everything is working as expected.

setGoals( refGoals[ refParameter ] );
}
// Delibirately not including all deps in the deps array
// Deliberately not including all deps in the deps array
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for also catching that!

action,
is_goals_first: isGoalsAtFrontExperiment,
} );
recordTracksEvent( 'calypso_signup_goals_nav_click', { action } );
Copy link
Contributor

Choose a reason for hiding this comment

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

I also removed this one here.

@autumnfjeld autumnfjeld self-assigned this Mar 27, 2025
@autumnfjeld autumnfjeld marked this pull request as ready for review March 27, 2025 00:17
@autumnfjeld autumnfjeld merged commit f883454 into trunk Mar 27, 2025
14 checks passed
@autumnfjeld autumnfjeld deleted the update/remove-goalsfirst-references branch March 27, 2025 00:21
@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 Mar 27, 2025
siteUrl,
progress,
partnerBundle,
siteGoals,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we also remove the siteGoals: select( ONBOARD_STORE ).getGoals() line inside the useSelect ?

Copy link
Member

Choose a reason for hiding this comment

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

This looks like a missed opportunity.

Copy link
Contributor

Choose a reason for hiding this comment

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

Cleaning it up in #101921

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

Comments