Bugfix: what-to-eat utan hushall ger forslag; onboarding mal kan valjas multi

This commit is contained in:
Sven (AAMOS AI)
2026-08-06 21:32:32 +07:00
parent 8e6b780480
commit dd66ebedbf
18 changed files with 238 additions and 68 deletions
+3
View File
@@ -73,7 +73,10 @@ export type OnboardingInput = z.infer<typeof onboardingInputSchema>;
/** Progressive onboarding Step A minimal info for immediate value (FAS 1b). */
export const quickStartInputSchema = z.object({
// Backwards-compatible single goal; if `goals` is omitted we fall back to this.
primaryGoal: z.enum(GOAL_TYPES).optional(),
// Multi-select goals (new UI). First goal is considered primary.
goals: z.array(z.enum(GOAL_TYPES)).max(11).optional(),
precisionMode: z.enum(PRECISION_MODES).default("simple"),
});
export type QuickStartInput = z.infer<typeof quickStartInputSchema>;