fix: onboarding source selection
This commit is contained in:
parent
12d504c6c8
commit
c8c2ce2a6b
3 changed files with 7 additions and 1 deletions
|
|
@ -236,7 +236,10 @@ export function App() {
|
|||
// Handle discovery source selection (telemetry tracked in backend)
|
||||
const handleDiscoverySource = (source: DiscoverySource, details?: string) => {
|
||||
setDiscoveryDetails(details || "");
|
||||
handleSaveAndContinue({ discoverySource: source });
|
||||
handleSaveAndContinue({
|
||||
discoverySource: source,
|
||||
discoveryDetails: details,
|
||||
});
|
||||
};
|
||||
|
||||
// Handle model selection (telemetry tracked in backend)
|
||||
|
|
|
|||
|
|
@ -214,6 +214,7 @@ export class OnboardingService extends EventEmitter {
|
|||
updates.discoverySource = preferences.discoverySource;
|
||||
this.telemetryService.trackOnboardingDiscoverySelected({
|
||||
source: preferences.discoverySource,
|
||||
details: preferences.discoveryDetails,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ export interface ModelRecommendation {
|
|||
export interface OnboardingPreferences {
|
||||
featureInterests?: FeatureInterest[];
|
||||
discoverySource?: DiscoverySource;
|
||||
discoveryDetails?: string;
|
||||
selectedModelType?: ModelType;
|
||||
modelRecommendation?: ModelRecommendation & { followed: boolean };
|
||||
lastVisitedScreen?: OnboardingScreen;
|
||||
|
|
@ -125,6 +126,7 @@ export const OnboardingStateSchema = z.object({
|
|||
export const OnboardingPreferencesSchema = z.object({
|
||||
featureInterests: z.array(FeatureInterestSchema).optional(),
|
||||
discoverySource: DiscoverySourceSchema.optional(),
|
||||
discoveryDetails: z.string().max(200).optional(),
|
||||
selectedModelType: ModelTypeSchema.optional(),
|
||||
modelRecommendation: z
|
||||
.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue