mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-12 02:56:07 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user