feat: smart package recommendations with UX improvements

- Added smart recommendations section with category-based filtering
- Implemented onboarding flow with 3-step wizard (categories, OS, experience level)
- Added 'Select All/Deselect All' for recommendations
- Added 'Preferences' button in header to reopen onboarding
- Fixed script generation for recommendation-based packages (auto-detect platform)
- Fixed onboarding completion bug (removed duplicate save)
- Added comprehensive debug logging
- Enhanced ScriptPreview to work with auto-generated platform info
- Optimized recommendation API with proper validation and error handling
- Added localStorage profile management with version control
This commit is contained in:
ersaayan
2025-11-22 18:10:16 +03:00
parent a893ec6837
commit 32b415a97f
8 changed files with 182 additions and 29 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ export async function POST(request: NextRequest) {
{ status: 400 }
);
}
const limit = body.limit && body.limit > 0 && body.limit <= 50 ? body.limit : 20;
const limit =
body.limit && body.limit > 0 && body.limit <= 50 ? body.limit : 20;
// Generate recommendations
const recommendations = await RecommendationService.generateRecommendations(