Spaces:
Running
Running
Commit History
-
fix(course-engine): eliminate premature 400 rejection and add Framer to design catalog
e5a8984
-
fix(search): eliminate effectiveKey distortion, preserve exact user skill query, and prevent generic token hijacking
254fd54
-
Remove ALL fallback from course pipeline; fix skill resolution; add retry buttons
BREAKING: Zero fallback policy — every failure must propagate to the UI. Backend: - courseEngine.ts: removed buildFallbackResources(); normalizeResources throws on missing YouTube URL; buildCourse throws instead of falling back - videoCatalog.ts: removed Python/JS hardcoded fallback in getOfflineFallbackCandidates() — returns empty array instead of wrong videos - videoSearch.ts: disabled selection cache (TTL=0), always does fresh search - llm_service.ts: removed generateRawPromptResponse try/catch fallback (no more 'autonomous free mode' hardcoded content) - skillValidationService.ts: stage2Token checks n-grams before single tokens; single-token match only for ≤2 word queries; skips filler words (prevents 'full stack in java' being reduced to 'java-developer') - api/index.ts: better error message with skill name + 'Please retry.' hint Frontend: - getcertV2API.ts: removed withFallback(), fallbackProject(), fallbackEvaluateProject() — generateProject and evaluateProject now…48e10ef -
Fix course gen fallback and onboarding bugs
- generateCourse.ts: remove defaultModules fallback (errors propagate with retry button) - generateCourse.ts: fix timeout default 10s -> 300s (Gemma 4 needs ~40s) - getcertV2API.ts: remove fallbackCourse and withFallback call for generateCourse - migration: UPDATE existing users onboarding_completed=true so they skip onboarding - App.tsx: fix onboarding loading state (was falling through to dashboard before API check) - skillValidationService.ts: reduce validateWithLlm timeout to 60s - api/index.ts: remove unused skillValidationService import24502b8 -
Onboarding + skill auto-indexing + phone from profile
- New OnboardingScreen component (full name, country code dropdown, phone validation) - Onboarding API (GET/POST /api/v2/onboarding) with per-country digit validation - skillValidationService.ts: multi-stage known/unknown detection (direct match -> token decomposition -> levenshtein -> phonetic -> LLM validation) - LLM validation + auto-indexing for unknown skills into known_skills DB table - Demand tracking via skill_requests table with daily rate limit (3 attempts/user) - Payment backend reads phone from user profile (getUserPhoneFromDb) instead of request body - Phone input removed from QuickCertPayment and FinalProject payment screens - DB migration: 003_onboarding_skill_indexing.sqla547bfc