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

feat(onboarding): add product config screen #18720

Merged
merged 21 commits into from
Dec 5, 2023

Conversation

raquelmsmith
Copy link
Member

@raquelmsmith raquelmsmith commented Nov 17, 2023

Problem

Some products need to have a config - eg. product analytics + autocapture, and soon session replay + minimum duration or sampling controls. We need a screen in onboarding to set this.

Changes

Adds a new onboarding screen where these configs can live.

image

Note: I think I'm just going to go ahead and extend this for session replay now and put it behind a flag.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Having issues with running storybook locally so no tests for now...

Copy link
Contributor

github-actions bot commented Nov 17, 2023

Size Change: +59 B (0%)

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.83 MB +59 B (0%)

compressed-size-action

}, [])

return configOptions ? (
<OnboardingStep title={`Set up your configuration`} stepKey={stepKey} continueAction={saveConfiguration}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a bit more clear to say "Configure ${product.name}"?

@posthog-bot
Copy link
Contributor

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.

inverseToggle: true,
},
]}
/>
</OnboardingWrapper>
)
Copy link
Member

Choose a reason for hiding this comment

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

Ha, github won't let me comment on the replay lines because they've not changed 🙈

Would be cool to have the basic settings here
Screenshot 2023-11-30 at 10 08 05

Ultimately we'll want the cost controls here too

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep! Planning on picking this up again today 👍

@raquelmsmith
Copy link
Member Author

raquelmsmith commented Dec 1, 2023

@pauldambra this is what we've got now for session replay onboarding config:

image

Note: When someone starts onboarding to session replay, the toggle to record sessions is automatically enabled, so it's not shown as an option here.

Note 2: I don't love the design here but @corywatilo tells me he's going to redesign all this once 3000 is out so I'm fine with this for now 😛

LMK your thoughts + code review is helpful + we can merge next week.

@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.

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

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

LGTM

frontend/src/scenes/onboarding/Onboarding.tsx Outdated Show resolved Hide resolved
@raquelmsmith raquelmsmith enabled auto-merge (squash) December 5, 2023 17:10
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 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.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 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.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 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.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@raquelmsmith raquelmsmith merged commit 14d3db3 into master Dec 5, 2023
78 checks passed
@raquelmsmith raquelmsmith deleted the feat/onboarding-product-config-screen branch December 5, 2023 20:32
Twixes pushed a commit that referenced this pull request Dec 6, 2023
* stub out config screen

* saave the configuration

* fix

* add existing replay controls to config

* dont show any toasts in onboarding

* add minimum duration option

* move dropdown

* flag the control

* Update frontend/src/scenes/onboarding/Onboarding.tsx

Co-authored-by: Paul D'Ambra <[email protected]>

---------

Co-authored-by: Paul D'Ambra <[email protected]>
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.

4 participants