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: add react to product analytics onboarding #29247

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

joshsny
Copy link
Contributor

@joshsny joshsny commented Feb 26, 2025

Problem

Where is React? 🤷‍♂️

Changes

We got it in there just after create-react-app was sunsetted, but at least it'll be there.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Ran locally

@joshsny joshsny requested a review from a team February 26, 2025 12:25
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds React as an option in the product analytics onboarding flow, addressing a missing SDK option in the platform.

  • Added ProductAnalyticsReactInstructions component in new file frontend/src/scenes/onboarding/sdks/product-analytics/react.tsx that combines existing React SDK installation instructions with common JS final steps
  • Added mapping for SDKKey.REACT to ProductAnalyticsReactInstructions in frontend/src/scenes/onboarding/sdks/product-analytics/ProductAnalyticsSDKInstructions.tsx
  • Exported React component via export * from './react' in frontend/src/scenes/onboarding/sdks/product-analytics/index.tsx
  • Updated frontend/src/scenes/onboarding/sdks/sdk-install-instructions/react.tsx to remove create-react-app specific references since it's been sunsetted

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Feb 26, 2025

Size Change: 0 B

Total Size: 9.73 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 9.73 MB

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@joshsny joshsny enabled auto-merge (squash) February 28, 2025 09:29
@joshsny joshsny merged commit 07e5a9e into master Feb 28, 2025
77 of 96 checks passed
@joshsny joshsny deleted the add-react-to-product-analytics-onboarding branch February 28, 2025 09:38
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (wasn't pushed!)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

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.

3 participants