posthog icon indicating copy to clipboard operation
posthog copied to clipboard

fix(quick start): Send user to install screen when clicking on ingest first event

Open lshaowei18 opened this issue 7 months ago • 2 comments

Problem

Attempt to close https://github.com/PostHog/posthog/issues/32032

The behavior for /onboarding/product_analytics seems to be that it will remember the user's last visited step.

When a user first signs up for posthog, they are very likely to complete all the steps, ending at the invite_teammates step.

As a result, when they are routed to /onboarding/product_analytics, they will see the invite_teammates step.

Changes

  • Specify the exact step that makes the most sense when routing, which is install.

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

I think it shouldn't have an impact.

How did you test this code?

Still trying to setup my local, so unable to test for now. If there are other ways to test it, please let me know and i will do the testing!

lshaowei18 avatar May 17 '25 03:05 lshaowei18

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

posthog-bot avatar Jun 02 '25 07:06 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

posthog-bot avatar Jun 16 '25 07:06 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

posthog-bot avatar Jun 25 '25 07:06 posthog-bot

Hmmmm I don't think the tests are failing because of these changes; but let me know if there is anything I can do to pass the tests!

lshaowei18 avatar Jun 27 '25 01:06 lshaowei18

@ishaowei18 I think the enum here needs to be moved out of the logic to avoid importing this logic into the sidepanel one - that should fix the jest tests :)

joshsny avatar Jun 28 '25 05:06 joshsny

@ishaowei18 I think the enum here needs to be moved out of the logic to avoid importing this logic into the sidepanel one - that should fix the jest tests :)

Ah! Thanks, i will mark as draft and try to fix them, thank you :)

lshaowei18 avatar Jun 28 '25 08:06 lshaowei18

@joshsny thanks for the tip; appreciate it! Seems like the tests are passing :)

lshaowei18 avatar Jun 28 '25 09:06 lshaowei18

Great work on this 🙌

joshsny avatar Jun 28 '25 09:06 joshsny