-
Notifications
You must be signed in to change notification settings - Fork 229
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 plus step #3869
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
…onboarding-plus-step
packages/webapp/pages/onboarding.tsx
Outdated
@@ -224,6 +230,15 @@ export function OnboardPage(): ReactElement { | |||
return setActiveScreen(OnboardingStep.Sources); | |||
} | |||
|
|||
if ( | |||
(showOnboardingSources && activeScreen === OnboardingStep.Sources) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this not going to be behind any existing experiment we have for plus subscription?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sources is a running experiment, you can't rely on it yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should actually be it's own evaluation experiment
]; | ||
|
||
export const plusFeatureList = [ | ||
'Ads-free browsing', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Ads-free browsing', | |
'Everything on Free plan', | |
'Ads-free browsing', |
return ( | ||
<li className="flex gap-2"> | ||
<ChecklistAIcon className="text-text-quaternary" size={IconSize.Small} /> | ||
<ChecklistAIcon | ||
className="text-text-quaternary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logSubscriptionEvent: (event: LogSubscriptionEvent) => void; | ||
} => { | ||
const { user } = useAuthContext(); | ||
const isPlus = user?.isPlus || false; | ||
const plusSubscriptionFeature = useFeature(feature.plusSubscription); | ||
const isOnboardingPlusActive = useFeature(feature.onboardingPlus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh the only issue here is that it will enroll everyone as soon as they hit onboarding page, and actually anytime this hook gets called even.
Did you check enrollment with ido in #experiment channel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated ✔️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, just one minor change on enums for logging
packages/webapp/pages/onboarding.tsx
Outdated
if (isOnboardingPlusActive) { | ||
logSubscriptionEvent({ | ||
event_name: 'skip upgrade subscription', | ||
target_id: 'onboarding', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both these should be enums in log file
…feat-onboarding-plus-step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving already, but we should have onboarding already its not a new thing
@@ -281,6 +284,7 @@ export enum TargetId { | |||
Ads = 'ads', | |||
MyProfile = 'my profile', | |||
PlusBadge = 'plus badge', | |||
Onboarding = 'onboarding', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have this already, but maybe not id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have it on Origin
, should I use this instead?
Changes
Events
Did you introduce any new tracking events?
Experiment
Not anymore, according to #experiments channel thread
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Preview domain
https://feat-onboarding-plus-step.preview.app.daily.dev