Spaces:
Running
Running
Commit History
4 days ago
-
fix(sonar): wave 5 - final in-scope sweep, 92 findings across 67 files (complete: 994/994 in-scope)
Z User- 23 two-count files + 44 one-count files: S6582/S7503/S7755/S7773/ S7780/S8786/S9382/S3776/S6759/S6819/S5906/S5976/S3863/S7763/S7785/ S8782/S4138/S7744/S6606/S4624/S7778/S7754 - google-auth-router 47->11, shield 39->6, security middleware 24->8, ForgotPassword 34->4, VerifyEmail 22->5, Courses 28->13 (DOM identical) - S9382 NOSONAR only for: Redis connection retry backoff, migration ledger order - both documented sequential necessities - contract tests re-pinned: issueSessionResponse centralization (both session paths categorize), isHostGateExempt approval-action exemption Verified: tsc clean, eslint 0 errors, vitest 1394/1394.6165987
8 days ago
-
fix(remember-device): boot auth verification never destroys a session the server did not reject
ahmdelbaz28-uxRoot cause (measured live 2026-11-25/26): the reported 'exits the site -> the app forgets I was logged in despite Remember this device' was NOT a cookie/session death. The 30-day cookie pair, 7d JWT + 30-day grace renewal and tokenVersion revocation are all sound. What broke the remember-device promise was the BOOT VERIFICATION RACE on infrastructure outside the auth pipeline: - the canonical domain (qzz.io) rides an external Cloudflare edge that answers /api/* with 403 cf-mitigated:challenge ('Just a moment…') — live-captured on /api/health and auth.sessionProbe; an XHR can never solve an interactive challenge, so during any challenge window every tRPC call dies - the HF Space container restarts on every deploy (frequent pushes) and can briefly 5xx during cold starts / healthcheck restarts auth.me ran with retry:false, so the FIRST such failure flipped isAuthenticated to false and ProtectedRoute navigated to /login while the user's valid 30-day cookie was sti…2435544
-
fix(sonarcloud): batch 11 — S7781 regex→string, S6759 props readonly
ahmdelbaz28-uxS7781 (44 swaps across 9 files): - Convert .replace(/single-char/g, ...) and .replaceAll(/single-char/g, ...) to .replaceAll("char", ...) — single-char regex is equivalent to a string literal but slower to compile. - Files: api/{boot,google-auth-router,twofa-router,export-router, lib/jwt.test,lib/email}, infra/resend-integration/email, src/components/{ChatBot,NotificationCenter}. S6759 (19 interfaces made readonly across 18 files): - Add `readonly` to every property in component Props interfaces. React props should never be mutated; marking them readonly enforces this at compile time. - New script: scripts/fix_props_readonly.py — finds interfaces named *Props and adds `readonly` to each property. - Files: AnimatedIcon, ArcFlashButton, AnimatedCounter, BentoCard, CertificateCard, CourseDetail, ElectricParticles, ElectricalIcon, Logo3D, MagneticCursor, ProtectedRoute, QuizComponent, ScadaGauge, ScrollReveal, SEO, SingleLineDiagram, ThemeToggle, ui-modules.d.ts. Test…8e2a64c
-
refactor: extract Google OAuth to shared utility and clean up comments
8a33002 -
fix: resolve hydration errors by deferring auth check and suppressing hydration warnings
9fb477d
-
feat(images): replace hero banner + generate professional course thumbnails
ahmdelbaz28-uxHERO BANNER: - Replaced hero-main.webp with professional ETAP software screenshot COURSE THUMBNAILS (all AI-generated, 1344x768, professional quality): - course-cable.jpg: high-voltage power transmission lines at golden hour - course-etap.jpg: ETAP software interface with one-line diagram - course-skm.jpg: short circuit analysis with relay coordination curves - course-powerfactory.jpg: power flow analysis with voltage profile graphs - course-pvsyst.jpg: large-scale photovoltaic solar farm, 3D isometric - course-panel.jpg: electrical control panel with breakers and wiring All images are LFS-tracked with properly cached objects.2aed803
-
feat: Elite Engineering UI Modernization, Production Auth Fixes, and HF Deployment Stability
ahmdelbaz28-ux50a005c