refactor: Remove experience level from recommendation system

- Remove experienceLevel from UserProfile, RecommendationRequest, and PackagePreset types
- Remove experience level validation and handling from GET/POST endpoints
- Disable localStorage persistence in useRecommendationProfile hook (session-only storage)
- Disable automatic onboarding modal on first visit
- Set recommendations section to expanded by default
- Add empty state card for recommendations with wizard button
- Add translations
This commit is contained in:
Yusuf İpek
2025-11-23 14:55:49 +03:00
parent a5b65bb4df
commit 95ad5e32fd
6 changed files with 47 additions and 77 deletions
-8
View File
@@ -12,11 +12,6 @@ export type UserCategory =
| "productivity"
| "education";
/**
* User experience level
*/
export type ExperienceLevel = "beginner" | "intermediate" | "advanced";
/**
* User profile stored in localStorage
*/
@@ -25,7 +20,6 @@ export interface UserProfile {
categories: UserCategory[];
detectedOS?: string;
selectedOS?: string; // Manual override
experienceLevel?: ExperienceLevel;
hasCompletedOnboarding: boolean;
createdAt: string;
lastUpdated: string;
@@ -37,7 +31,6 @@ export interface UserProfile {
export interface RecommendationRequest {
platform_id: string;
categories: UserCategory[];
experienceLevel?: ExperienceLevel;
limit?: number;
}
@@ -76,7 +69,6 @@ export interface PackagePreset {
platforms: string[]; // ['windows', 'macos', 'ubuntu', 'arch', 'fedora']
priority: number; // 1-10, higher = more important
reason: string; // Why this package is recommended
experienceLevel?: ExperienceLevel[]; // Target experience levels
}
/**