Adds a single-select referral-source step between the goals and connect steps of onboarding. The choice is stored on users.referral_source and mirrored to PostHog, mirroring the existing persona and goals steps. - ReferralSource enum (12 sources) + nullable users.referral_source column - referralSource()/storeReferralSource() controller actions with the same self-hosted, subscribed, persona and goals guards as the sibling steps - connect() now requires a referral source before rendering - Single-select ReferralSource.vue page mirroring the goals step - Localized across all 15 locales
21 lines
446 B
PHP
21 lines
446 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Enums\User;
|
|
|
|
enum ReferralSource: string
|
|
{
|
|
case Google = 'google';
|
|
case X = 'x';
|
|
case LinkedIn = 'linkedin';
|
|
case YouTube = 'youtube';
|
|
case TikTok = 'tiktok';
|
|
case Instagram = 'instagram';
|
|
case Reddit = 'reddit';
|
|
case ProductHunt = 'product_hunt';
|
|
case AiAssistant = 'ai_assistant';
|
|
case Friend = 'friend';
|
|
case Blog = 'blog';
|
|
case Other = 'other';
|
|
}
|