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

fix(gatsby): show multiple invites together & at end where people are more likely to see them (#28450) #28541

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

gatsbybot
Copy link
Collaborator

Backporting #28450 to the 2.28 release branch

(cherry picked from commit 7e734cc)

… more likely to see them (#28450)

* fix(gatsby): show multiple invites together & at end where people are more likely to see them

* Add telemetry

* update copy from suggestions by @DSchau

* Actually stop listening

* Update packages/gatsby/src/utils/show-experiment-notice.ts

Co-authored-by: Matt Kane <[email protected]>

* Add test for generating the message

* rewrite messages & make shorter

* make all the things happy

* update flag

* This breaking windows??

* Don't use explicit \n to see if that helps snapshot

* Maybe jest is fine w/ explicit new-lines 🤷‍♂️

* Strip ansi for tests

* Update packages/gatsby/src/services/initialize.ts

Co-authored-by: Michal Piechowiak <[email protected]>

* Update packages/gatsby/src/services/run-page-queries.ts

Co-authored-by: Michal Piechowiak <[email protected]>

* use trackCLI not trackFeatureIsUsed

* only store that we showed the invite when we actually do show the invite

* Call code directly from webpack's done callback

* mock in jest

* be more explicit about how the caching behavior changes

* Show full code sample per @pelikhan's feedback

* typescript fixes

* Update packages/gatsby/src/services/initialize.ts

Co-authored-by: Michal Piechowiak <[email protected]>

* Update packages/gatsby/src/services/initialize.ts

Co-authored-by: Matt Kane <[email protected]>
Co-authored-by: gatsbybot <[email protected]>
Co-authored-by: Michal Piechowiak <[email protected]>
(cherry picked from commit 7e734cc)
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 8, 2020
@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 9, 2020
@pieh pieh merged commit f8d5c9b into release/2.28 Dec 10, 2020
@pieh pieh deleted the backport-2.28-28450 branch December 10, 2020 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants